diff --git a/.gitattributes b/.gitattributes index fade959f..0a4d0346 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,9 +5,3 @@ docs/fop/thrybi.ttf -text docs/fop/thryi.ttf -text docs/fop/thryn.ttf -text misc/smarty_icon.gif -text -trunk/docs/chm/make_chm_spc.gif -text -trunk/docs/fop/thryb.ttf -text -trunk/docs/fop/thrybi.ttf -text -trunk/docs/fop/thryi.ttf -text -trunk/docs/fop/thryn.ttf -text -trunk/misc/smarty_icon.gif -text diff --git a/.gitignore b/.gitignore index 9efa2298..8ebfb9f2 100644 --- a/.gitignore +++ b/.gitignore @@ -17,22 +17,3 @@ docs/phpweb docs/revcheck.html docs/scripts/file-entities.php /templates_c -trunk/docs/*.cache -trunk/docs/*.fot -trunk/docs/Makefile -trunk/docs/chm/*.chm -trunk/docs/chm/*.hh? -trunk/docs/chm/fancy -trunk/docs/config.* -trunk/docs/configure -trunk/docs/diff -trunk/docs/dsssl/html-common.dsl -trunk/docs/entities/file-entities.ent -trunk/docs/entities/version.ent -trunk/docs/html -trunk/docs/manual.pdf -trunk/docs/manual.xml -trunk/docs/phpweb -trunk/docs/revcheck.html -trunk/docs/scripts/file-entities.php -trunk/templates_c diff --git a/trunk/.cvsignore b/trunk/.cvsignore deleted file mode 100644 index 198e8534..00000000 --- a/trunk/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -templates_c diff --git a/trunk/BUGS b/trunk/BUGS deleted file mode 100644 index 9f1a80f3..00000000 --- a/trunk/BUGS +++ /dev/null @@ -1,7 +0,0 @@ -Smarty is supported only in PHP 4.0.6 or later. - -Smarty versions previous to 2.0 require the PEAR libraries. Be sure to include -the path to the PEAR libraries in your php include_path. Config_file.class.php -uses the PEAR library for its error handling routines. PEAR comes with the PHP -distribution. Unix users check /usr/local/lib/php, windows users check -C:/php/pear. diff --git a/trunk/COPYING.lib b/trunk/COPYING.lib deleted file mode 100644 index 3b204400..00000000 --- a/trunk/COPYING.lib +++ /dev/null @@ -1,458 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS diff --git a/trunk/ChangeLog b/trunk/ChangeLog deleted file mode 100644 index 941d83ec..00000000 --- a/trunk/ChangeLog +++ /dev/null @@ -1,9183 +0,0 @@ -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: - sync with en. - -2007-09-27 Monte Ohrt - - * docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml: - remove redundant attribute - -2007-09-18 Messju Mohr - - * docs/id/programmers/plugins/plugins-functions.xml: - removed errornous whitespace - -2007-09-18 Zaenal Mutaqin - - * docs/id/designers/language-basic-syntax/language-escaping.xml - docs/id/designers/language-basic-syntax/language-math.xml - docs/id/designers/language-basic-syntax/language-syntax-attributes.xml - docs/id/designers/language-basic-syntax/language-syntax-comments.xml - docs/id/designers/language-basic-syntax/language-syntax-functions.xml - docs/id/designers/language-basic-syntax/language-syntax-quotes.xml - docs/id/designers/language-basic-syntax/language-syntax-variables.xml - docs/id/designers/language-builtin-functions/language-function-capture.xml - docs/id/designers/language-builtin-functions/language-function-config-load.xml - docs/id/designers/language-builtin-functions/language-function-foreach.xml - docs/id/designers/language-builtin-functions/language-function-if.xml - docs/id/designers/language-builtin-functions/language-function-include-php.xml - docs/id/designers/language-builtin-functions/language-function-include.xml - docs/id/designers/language-builtin-functions/language-function-insert.xml - docs/id/designers/language-builtin-functions/language-function-ldelim.xml - docs/id/designers/language-builtin-functions/language-function-literal.xml - docs/id/designers/language-builtin-functions/language-function-php.xml - docs/id/designers/language-builtin-functions/language-function-section.xml - docs/id/designers/language-builtin-functions/language-function-strip.xml - docs/id/designers/language-custom-functions/language-function-assign.xml - docs/id/designers/language-custom-functions/language-function-counter.xml - docs/id/designers/language-custom-functions/language-function-cycle.xml - docs/id/designers/language-custom-functions/language-function-debug.xml - docs/id/designers/language-custom-functions/language-function-eval.xml - docs/id/designers/language-custom-functions/language-function-fetch.xml - docs/id/designers/language-custom-functions/language-function-html-checkboxes.xml - docs/id/designers/language-custom-functions/language-function-html-image.xml - docs/id/designers/language-custom-functions/language-function-html-options.xml - docs/id/designers/language-custom-functions/language-function-html-radios.xml - docs/id/designers/language-custom-functions/language-function-html-select-date.xml - docs/id/designers/language-custom-functions/language-function-html-select-time.xml - docs/id/designers/language-custom-functions/language-function-html-table.xml - docs/id/designers/language-custom-functions/language-function-mailto.xml - docs/id/designers/language-custom-functions/language-function-math.xml - docs/id/designers/language-custom-functions/language-function-popup-init.xml - docs/id/designers/language-custom-functions/language-function-popup.xml - docs/id/designers/language-custom-functions/language-function-textformat.xml - docs/id/designers/language-modifiers/language-modifier-capitalize.xml - docs/id/designers/language-modifiers/language-modifier-cat.xml - docs/id/designers/language-modifiers/language-modifier-count-characters.xml - docs/id/designers/language-modifiers/language-modifier-count-paragraphs.xml - docs/id/designers/language-modifiers/language-modifier-count-sentences.xml - docs/id/designers/language-modifiers/language-modifier-count-words.xml - docs/id/designers/language-modifiers/language-modifier-date-format.xml - docs/id/designers/language-modifiers/language-modifier-default.xml - docs/id/designers/language-modifiers/language-modifier-escape.xml - docs/id/designers/language-modifiers/language-modifier-indent.xml - docs/id/designers/language-modifiers/language-modifier-lower.xml - docs/id/designers/language-modifiers/language-modifier-nl2br.xml - docs/id/designers/language-modifiers/language-modifier-regex-replace.xml - docs/id/designers/language-modifiers/language-modifier-replace.xml - docs/id/designers/language-modifiers/language-modifier-spacify.xml - docs/id/designers/language-modifiers/language-modifier-string-format.xml - docs/id/designers/language-modifiers/language-modifier-strip-tags.xml - docs/id/designers/language-modifiers/language-modifier-strip.xml - docs/id/designers/language-modifiers/language-modifier-truncate.xml - docs/id/designers/language-modifiers/language-modifier-upper.xml - docs/id/designers/language-modifiers/language-modifier-wordwrap.xml - docs/id/designers/language-variables/language-assigned-variables.xml - docs/id/designers/language-variables/language-config-variables.xml - docs/id/designers/language-variables/language-variables-smarty.xml - docs/id/programmers/advanced-features/advanced-features-objects.xml - docs/id/programmers/advanced-features/advanced-features-outputfilters.xml - docs/id/programmers/advanced-features/advanced-features-postfilters.xml - docs/id/programmers/advanced-features/advanced-features-prefilters.xml - docs/id/programmers/advanced-features/section-template-cache-handler-func.xml - docs/id/programmers/advanced-features/template-resources.xml - docs/id/programmers/api-functions/api-append-by-ref.xml - docs/id/programmers/api-functions/api-append.xml - docs/id/programmers/api-functions/api-assign-by-ref.xml - docs/id/programmers/api-functions/api-assign.xml - docs/id/programmers/api-functions/api-clear-all-assign.xml - docs/id/programmers/api-functions/api-clear-all-cache.xml - docs/id/programmers/api-functions/api-clear-assign.xml - docs/id/programmers/api-functions/api-clear-cache.xml - docs/id/programmers/api-functions/api-clear-compiled-tpl.xml - docs/id/programmers/api-functions/api-clear-config.xml - docs/id/programmers/api-functions/api-config-load.xml - docs/id/programmers/api-functions/api-display.xml - docs/id/programmers/api-functions/api-fetch.xml - docs/id/programmers/api-functions/api-get-config-vars.xml - docs/id/programmers/api-functions/api-get-registered-object.xml - docs/id/programmers/api-functions/api-get-template-vars.xml - docs/id/programmers/api-functions/api-is-cached.xml - docs/id/programmers/api-functions/api-load-filter.xml - docs/id/programmers/api-functions/api-register-block.xml - docs/id/programmers/api-functions/api-register-compiler-function.xml - docs/id/programmers/api-functions/api-register-function.xml - docs/id/programmers/api-functions/api-register-modifier.xml - docs/id/programmers/api-functions/api-register-object.xml - docs/id/programmers/api-functions/api-register-outputfilter.xml - docs/id/programmers/api-functions/api-register-postfilter.xml - docs/id/programmers/api-functions/api-register-prefilter.xml - docs/id/programmers/api-functions/api-register-resource.xml - docs/id/programmers/api-functions/api-template-exists.xml - docs/id/programmers/api-functions/api-trigger-error.xml - docs/id/programmers/api-functions/api-unregister-block.xml - docs/id/programmers/api-functions/api-unregister-compiler-function.xml - docs/id/programmers/api-functions/api-unregister-function.xml - docs/id/programmers/api-functions/api-unregister-modifier.xml - docs/id/programmers/api-functions/api-unregister-object.xml - docs/id/programmers/api-functions/api-unregister-outputfilter.xml - docs/id/programmers/api-functions/api-unregister-postfilter.xml - docs/id/programmers/api-functions/api-unregister-prefilter.xml - docs/id/programmers/api-functions/api-unregister-resource.xml - docs/id/programmers/api-variables/variable-autoload-filters.xml - docs/id/programmers/api-variables/variable-cache-dir.xml - docs/id/programmers/api-variables/variable-cache-handler-func.xml - docs/id/programmers/api-variables/variable-cache-lifetime.xml - docs/id/programmers/api-variables/variable-cache-modified-check.xml - docs/id/programmers/api-variables/variable-caching.xml - docs/id/programmers/api-variables/variable-compile-check.xml - docs/id/programmers/api-variables/variable-compile-dir.xml - docs/id/programmers/api-variables/variable-compile-id.xml - docs/id/programmers/api-variables/variable-compiler-class.xml - docs/id/programmers/api-variables/variable-config-booleanize.xml - docs/id/programmers/api-variables/variable-config-dir.xml - docs/id/programmers/api-variables/variable-config-fix-newlines.xml - docs/id/programmers/api-variables/variable-config-overwrite.xml - docs/id/programmers/api-variables/variable-config-read-hidden.xml - docs/id/programmers/api-variables/variable-debug-tpl.xml - docs/id/programmers/api-variables/variable-debugging-ctrl.xml - docs/id/programmers/api-variables/variable-debugging.xml - docs/id/programmers/api-variables/variable-default-modifiers.xml - docs/id/programmers/api-variables/variable-default-resource-type.xml - docs/id/programmers/api-variables/variable-default-template-handler-func.xml - docs/id/programmers/api-variables/variable-error-reporting.xml - docs/id/programmers/api-variables/variable-force-compile.xml - docs/id/programmers/api-variables/variable-left-delimiter.xml - docs/id/programmers/api-variables/variable-php-handling.xml - docs/id/programmers/api-variables/variable-plugins-dir.xml - docs/id/programmers/api-variables/variable-request-use-auto-globals.xml - docs/id/programmers/api-variables/variable-request-vars-order.xml - docs/id/programmers/api-variables/variable-right-delimiter.xml - docs/id/programmers/api-variables/variable-secure-dir.xml - docs/id/programmers/api-variables/variable-security-settings.xml - docs/id/programmers/api-variables/variable-security.xml - docs/id/programmers/api-variables/variable-template-dir.xml - docs/id/programmers/api-variables/variable-trusted-dir.xml - docs/id/programmers/api-variables/variable-use-sub-dirs.xml - docs/id/programmers/caching/caching-cacheable.xml - docs/id/programmers/caching/caching-groups.xml - docs/id/programmers/caching/caching-multiple-caches.xml - docs/id/programmers/caching/caching-setting-up.xml - docs/id/programmers/plugins/plugins-block-functions.xml - docs/id/programmers/plugins/plugins-compiler-functions.xml - docs/id/programmers/plugins/plugins-functions.xml - docs/id/programmers/plugins/plugins-howto.xml - docs/id/programmers/plugins/plugins-inserts.xml - docs/id/programmers/plugins/plugins-modifiers.xml - docs/id/programmers/plugins/plugins-naming-conventions.xml - docs/id/programmers/plugins/plugins-outputfilters.xml - docs/id/programmers/plugins/plugins-prefilters-postfilters.xml - docs/id/programmers/plugins/plugins-resources.xml - docs/id/programmers/plugins/plugins-writing.xml: - Typos correction and all translated now. - -2007-09-17 Messju Mohr - - * docs/id/bookinfo.xml - docs/id/getting-started.xml - docs/id/language-defs.ent - docs/id/language-snippets.ent - docs/id/livedocs.ent - docs/id/preface.xml: - added indonesian docs - thanks Zaenal Mutaqin - - * docs/scripts/generate_web.php: - raise pcre.backtrack_limit - thanks to takagi - -2007-09-16 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - fix typo - -2007-08-22 George Miroshnikov - - * docs/ru/getting-started.xml - docs/ru/getting-started.xml: - Sync with EN. - -2007-08-01 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - add append feature to capture - -2007-06-24 TAKAGI Masahiro - - * docs/ja/getting-started.xml: - sync with en. - -2007-06-24 Messju Mohr - - * docs/Makefile.in: - reverted accidently modified file - - * docs/Makefile.in - docs/de/getting-started.xml: - sync with en - - * docs/en/getting-started.xml: - fixed link to ini_set(). thanks to Lee Yunyoung. - -2007-06-18 TAKAGI Masahiro - - * docs/ja/language-snippets.ent - docs/ja/programmers/api-functions/api-register-outputfilter.xml - docs/ja/programmers/api-functions/api-register-postfilter.xml - docs/ja/programmers/api-functions/api-register-prefilter.xml: - sync with en. - -2007-06-18 Danilo Buerger - - * docs/en/language-snippets.ent - docs/en/programmers/api-functions/api-register-outputfilter.xml - docs/en/programmers/api-functions/api-register-postfilter.xml - docs/en/programmers/api-functions/api-register-prefilter.xml: - Updated docs according to the changes from the previous commit - - * NEWS - libs/Smarty.class.php: - Added the ability to (un)register multiple filters of the same type with - the same method name but different class name. Before it was not possible - due to the fact that only the method name was used to distinguish between - different filters of the same type. This does however not allow (same as - before) to register multiple filters of the same type with the same method - and class name (i.e. different instances of the same class). - -2007-05-29 Messju Mohr - - * libs/plugins/compiler.assign.php: - fixed typo - -2007-05-11 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed calling registered objects' methods with an empty argument list. - thanks marcello - -2007-05-03 TAKAGI Masahiro - - * docs/ja/designers/language-variables.xml - docs/ja/designers/language-builtin-functions/language-function-config-load.xml - docs/ja/designers/language-builtin-functions/language-function-foreach.xml - docs/ja/designers/language-builtin-functions/language-function-if.xml - docs/ja/designers/language-modifiers/language-modifier-cat.xml - docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml - docs/ja/designers/language-variables/language-variables-smarty.xml: - sync with en. - -2007-05-03 Monte Ohrt - - * docs/en/designers/language-variables.xml - docs/en/designers/language-builtin-functions/language-function-config-load.xml - docs/en/designers/language-builtin-functions/language-function-foreach.xml - docs/en/designers/language-builtin-functions/language-function-if.xml - docs/en/designers/language-modifiers/language-modifier-cat.xml - docs/en/designers/language-modifiers/language-modifier-wordwrap.xml - docs/en/designers/language-variables/language-variables-smarty.xml: - update documentation corrections from marcello in the forums. Thanks - marcello! - -2007-04-22 TAKAGI Masahiro - - * docs/ja/programmers/advanced-features.xml - docs/ja/programmers/api-functions.xml - docs/ja/programmers/api-variables.xml: - corrected the garbled text. - -2007-04-21 TAKAGI Masahiro - - * docs/ja/bookinfo.xml - docs/ja/getting-started.xml - docs/ja/language-defs.ent - docs/ja/language-snippets.ent - docs/ja/livedocs.ent - docs/ja/make_chm_index.html - docs/ja/preface.xml - docs/ja/translation.xml - docs/ja/appendixes/bugs.xml - docs/ja/appendixes/resources.xml - docs/ja/appendixes/tips.xml - docs/ja/appendixes/troubleshooting.xml - docs/ja/designers/chapter-debugging-console.xml - docs/ja/designers/config-files.xml - docs/ja/designers/language-basic-syntax.xml - docs/ja/designers/language-builtin-functions.xml - docs/ja/designers/language-combining-modifiers.xml - docs/ja/designers/language-custom-functions.xml - docs/ja/designers/language-modifiers.xml - docs/ja/designers/language-variables.xml - docs/ja/designers/language-basic-syntax/language-escaping.xml - docs/ja/designers/language-basic-syntax/language-math.xml - docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml - docs/ja/designers/language-basic-syntax/language-syntax-comments.xml - docs/ja/designers/language-basic-syntax/language-syntax-functions.xml - docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml - docs/ja/designers/language-basic-syntax/language-syntax-variables.xml - docs/ja/designers/language-builtin-functions/language-function-capture.xml - docs/ja/designers/language-builtin-functions/language-function-config-load.xml - docs/ja/designers/language-builtin-functions/language-function-foreach.xml - docs/ja/designers/language-builtin-functions/language-function-if.xml - docs/ja/designers/language-builtin-functions/language-function-include-php.xml - docs/ja/designers/language-builtin-functions/language-function-include.xml - docs/ja/designers/language-builtin-functions/language-function-insert.xml - docs/ja/designers/language-builtin-functions/language-function-ldelim.xml - docs/ja/designers/language-builtin-functions/language-function-literal.xml - docs/ja/designers/language-builtin-functions/language-function-php.xml - docs/ja/designers/language-builtin-functions/language-function-section.xml - docs/ja/designers/language-builtin-functions/language-function-strip.xml - docs/ja/designers/language-custom-functions/language-function-assign.xml - docs/ja/designers/language-custom-functions/language-function-counter.xml - docs/ja/designers/language-custom-functions/language-function-cycle.xml - docs/ja/designers/language-custom-functions/language-function-debug.xml - docs/ja/designers/language-custom-functions/language-function-eval.xml - docs/ja/designers/language-custom-functions/language-function-fetch.xml - docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml - docs/ja/designers/language-custom-functions/language-function-html-image.xml - docs/ja/designers/language-custom-functions/language-function-html-options.xml - docs/ja/designers/language-custom-functions/language-function-html-radios.xml - docs/ja/designers/language-custom-functions/language-function-html-select-date.xml - docs/ja/designers/language-custom-functions/language-function-html-select-time.xml - docs/ja/designers/language-custom-functions/language-function-html-table.xml - docs/ja/designers/language-custom-functions/language-function-mailto.xml - docs/ja/designers/language-custom-functions/language-function-math.xml - docs/ja/designers/language-custom-functions/language-function-popup-init.xml - docs/ja/designers/language-custom-functions/language-function-popup.xml - docs/ja/designers/language-custom-functions/language-function-textformat.xml - docs/ja/designers/language-modifiers/language-modifier-capitalize.xml - docs/ja/designers/language-modifiers/language-modifier-cat.xml - docs/ja/designers/language-modifiers/language-modifier-count-characters.xml - docs/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml - docs/ja/designers/language-modifiers/language-modifier-count-sentences.xml - docs/ja/designers/language-modifiers/language-modifier-count-words.xml - docs/ja/designers/language-modifiers/language-modifier-date-format.xml - docs/ja/designers/language-modifiers/language-modifier-default.xml - docs/ja/designers/language-modifiers/language-modifier-escape.xml - docs/ja/designers/language-modifiers/language-modifier-indent.xml - docs/ja/designers/language-modifiers/language-modifier-lower.xml - docs/ja/designers/language-modifiers/language-modifier-nl2br.xml - docs/ja/designers/language-modifiers/language-modifier-regex-replace.xml - docs/ja/designers/language-modifiers/language-modifier-replace.xml - docs/ja/designers/language-modifiers/language-modifier-spacify.xml - docs/ja/designers/language-modifiers/language-modifier-string-format.xml - docs/ja/designers/language-modifiers/language-modifier-strip-tags.xml - docs/ja/designers/language-modifiers/language-modifier-strip.xml - docs/ja/designers/language-modifiers/language-modifier-truncate.xml - docs/ja/designers/language-modifiers/language-modifier-upper.xml - docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml - docs/ja/designers/language-variables/language-assigned-variables.xml - docs/ja/designers/language-variables/language-config-variables.xml - docs/ja/designers/language-variables/language-variables-smarty.xml - docs/ja/programmers/advanced-features.xml - docs/ja/programmers/api-functions.xml - docs/ja/programmers/api-variables.xml - docs/ja/programmers/caching.xml - docs/ja/programmers/plugins.xml - docs/ja/programmers/smarty-constants.xml - docs/ja/programmers/advanced-features/advanced-features-objects.xml - docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml - docs/ja/programmers/advanced-features/advanced-features-postfilters.xml - docs/ja/programmers/advanced-features/advanced-features-prefilters.xml - docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml - docs/ja/programmers/advanced-features/template-resources.xml - docs/ja/programmers/api-functions/api-append-by-ref.xml - docs/ja/programmers/api-functions/api-append.xml - docs/ja/programmers/api-functions/api-assign-by-ref.xml - docs/ja/programmers/api-functions/api-assign.xml - docs/ja/programmers/api-functions/api-clear-all-assign.xml - docs/ja/programmers/api-functions/api-clear-all-cache.xml - docs/ja/programmers/api-functions/api-clear-assign.xml - docs/ja/programmers/api-functions/api-clear-cache.xml - docs/ja/programmers/api-functions/api-clear-compiled-tpl.xml - docs/ja/programmers/api-functions/api-clear-config.xml - docs/ja/programmers/api-functions/api-config-load.xml - docs/ja/programmers/api-functions/api-display.xml - docs/ja/programmers/api-functions/api-fetch.xml - docs/ja/programmers/api-functions/api-get-config-vars.xml - docs/ja/programmers/api-functions/api-get-registered-object.xml - docs/ja/programmers/api-functions/api-get-template-vars.xml - docs/ja/programmers/api-functions/api-is-cached.xml - docs/ja/programmers/api-functions/api-load-filter.xml - docs/ja/programmers/api-functions/api-register-block.xml - docs/ja/programmers/api-functions/api-register-compiler-function.xml - docs/ja/programmers/api-functions/api-register-function.xml - docs/ja/programmers/api-functions/api-register-modifier.xml - docs/ja/programmers/api-functions/api-register-object.xml - docs/ja/programmers/api-functions/api-register-outputfilter.xml - docs/ja/programmers/api-functions/api-register-postfilter.xml - docs/ja/programmers/api-functions/api-register-prefilter.xml - docs/ja/programmers/api-functions/api-register-resource.xml - docs/ja/programmers/api-functions/api-template-exists.xml - docs/ja/programmers/api-functions/api-trigger-error.xml - docs/ja/programmers/api-functions/api-unregister-block.xml - docs/ja/programmers/api-functions/api-unregister-compiler-function.xml - docs/ja/programmers/api-functions/api-unregister-function.xml - docs/ja/programmers/api-functions/api-unregister-modifier.xml - docs/ja/programmers/api-functions/api-unregister-object.xml - docs/ja/programmers/api-functions/api-unregister-outputfilter.xml - docs/ja/programmers/api-functions/api-unregister-postfilter.xml - docs/ja/programmers/api-functions/api-unregister-prefilter.xml - docs/ja/programmers/api-functions/api-unregister-resource.xml - docs/ja/programmers/api-variables/variable-autoload-filters.xml - docs/ja/programmers/api-variables/variable-cache-dir.xml - docs/ja/programmers/api-variables/variable-cache-handler-func.xml - docs/ja/programmers/api-variables/variable-cache-lifetime.xml - docs/ja/programmers/api-variables/variable-cache-modified-check.xml - docs/ja/programmers/api-variables/variable-caching.xml - docs/ja/programmers/api-variables/variable-compile-check.xml - docs/ja/programmers/api-variables/variable-compile-dir.xml - docs/ja/programmers/api-variables/variable-compile-id.xml - docs/ja/programmers/api-variables/variable-compiler-class.xml - docs/ja/programmers/api-variables/variable-config-booleanize.xml - docs/ja/programmers/api-variables/variable-config-dir.xml - docs/ja/programmers/api-variables/variable-config-fix-newlines.xml - docs/ja/programmers/api-variables/variable-config-overwrite.xml - docs/ja/programmers/api-variables/variable-config-read-hidden.xml - docs/ja/programmers/api-variables/variable-debug-tpl.xml - docs/ja/programmers/api-variables/variable-debugging-ctrl.xml - docs/ja/programmers/api-variables/variable-debugging.xml - docs/ja/programmers/api-variables/variable-default-modifiers.xml - docs/ja/programmers/api-variables/variable-default-resource-type.xml - docs/ja/programmers/api-variables/variable-default-template-handler-func.xml - docs/ja/programmers/api-variables/variable-error-reporting.xml - docs/ja/programmers/api-variables/variable-force-compile.xml - docs/ja/programmers/api-variables/variable-left-delimiter.xml - docs/ja/programmers/api-variables/variable-php-handling.xml - docs/ja/programmers/api-variables/variable-plugins-dir.xml - docs/ja/programmers/api-variables/variable-request-use-auto-globals.xml - docs/ja/programmers/api-variables/variable-request-vars-order.xml - docs/ja/programmers/api-variables/variable-right-delimiter.xml - docs/ja/programmers/api-variables/variable-secure-dir.xml - docs/ja/programmers/api-variables/variable-security-settings.xml - docs/ja/programmers/api-variables/variable-security.xml - docs/ja/programmers/api-variables/variable-template-dir.xml - docs/ja/programmers/api-variables/variable-trusted-dir.xml - docs/ja/programmers/api-variables/variable-use-sub-dirs.xml - docs/ja/programmers/caching/caching-cacheable.xml - docs/ja/programmers/caching/caching-groups.xml - docs/ja/programmers/caching/caching-multiple-caches.xml - docs/ja/programmers/caching/caching-setting-up.xml - docs/ja/programmers/plugins/plugins-block-functions.xml - docs/ja/programmers/plugins/plugins-compiler-functions.xml - docs/ja/programmers/plugins/plugins-functions.xml - docs/ja/programmers/plugins/plugins-howto.xml - docs/ja/programmers/plugins/plugins-inserts.xml - docs/ja/programmers/plugins/plugins-modifiers.xml - docs/ja/programmers/plugins/plugins-naming-conventions.xml - docs/ja/programmers/plugins/plugins-outputfilters.xml - docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml - docs/ja/programmers/plugins/plugins-resources.xml - docs/ja/programmers/plugins/plugins-writing.xml: - added Japanese translation files. - - * docs/Makefile.in - docs/configure.in: - added the configuration for Japanese translation. - -2007-04-11 Messju Mohr - - * docs/en/programmers/smarty-constants.xml: - fixed typo - -2007-04-04 Messju Mohr - - * docs/ru/getting-started.xml: - fixed uri for Zend Accelerator - -2007-04-03 Messju Mohr - - * docs/de/getting-started.xml - docs/es/getting-started.xml - docs/it/getting-started.xml - docs/pt_BR/getting-started.xml: - fixed uris for php-accelerator - -2007-03-08 Monte Ohrt - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers - -2007-03-07 Monte Ohrt - - * (Smarty_2_6_18) - NEWS: - update NEWS file with patch - - * (Smarty_2_6_18) - docs/en/designers/language-builtin-functions/language-function-section.xml: - note the fact that section loop will accept an integer - -2007-03-06 Monte Ohrt - - * NEWS - libs/plugins/function.html_select_date.php: - fix html_select_date separator when parts are missing (thanks to kayk for - the patch) - -2007-03-06 Messju Mohr - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - bumped version number - - * NEWS: - added release headline - - * libs/internals/core.write_compiled_include.php: - fixed detection of non-cached block when writing compiled includes - -2007-03-01 Danilo Buerger - - * NEWS - libs/Smarty_Compiler.class.php: - Applied boots clean up patch and removed commented out code. - Updated NEWS file - -2007-02-27 Danilo Buerger - - * NEWS - docs/en/designers/language-modifiers/language-modifier-date-format.xml - libs/internals/core.write_file.php - libs/plugins/modifier.date_format.php: - Updated smarty_core_write_file() and smarty_modifier_date_format() to speed - up Windows detection. - Emulated more parameters for Windows in smarty_modifier_date_format() and - fixed some old ones. - Updated the docs to tell what parameters are emulated on Windows. - Updated NEWS file. - - * NEWS: - Updated NEWS file to reflect changes commited in the last revision - -2007-02-27 Monte Ohrt - - * docs/en/appendixes/troubleshooting.xml: - fix typo - -2007-02-27 Danilo Buerger - - * libs/Smarty_Compiler.class.php: - Modified _(push|pop)_cacheable_state() to embedd alternate syntax. See this - bug report: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=10502 - -2007-02-26 Peter 'Mash' Morgan - - * docs/en/designers/language-custom-functions/language-function-html-options.xml: - Fix incorrect var name - -2007-02-23 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - escape creating of language=php from interleaving - - * libs/Smarty_Compiler.class.php: - add removed line back in - - * libs/Smarty_Compiler.class.php: - fix up last patch, remove unnecessary lines - - * libs/Smarty_Compiler.class.php: - fix situation when no compiled tags are present - - * libs/Smarty_Compiler.class.php: - fix problem with php open tags generated from tag interleaving - -2007-02-06 boots - - * docs/en/programmers/advanced-features/template-resources.xml: - Correct default template handler function example. - -2007-01-17 Messju Mohr - - * NEWS - libs/plugins/modifier.truncate.php: - fixed handling of $etc in the truncate modifier when $etc is longer - than $length. - - thanks to Sylvinus! - -2007-01-10 boots - - * NEWS - libs/plugins/modifier.date_format.php - libs/plugins/modifier.date_format.php: - fix handling of %I with mysql timestamps - - Thanks to Danilo Buerger - - * NEWS - libs/internals/core.write_file.php: - Better recognize Windows filesystems to reduce warnings - - * NEWS - libs/plugins/modifier.date_format.php: - Emulate %R in the date_format modifier on Windows - - Thanks to Danilo Buerger - -2006-12-10 Yannick Torres - - * docs/fr/getting-started.xml: - fix build - - * docs/fr/language-snippets.ent - docs/fr/designers/language-builtin-functions/language-function-include-php.xml - docs/fr/designers/language-modifiers/language-modifier-truncate.xml - docs/fr/designers/language-variables/language-variables-smarty.xml: - sync with EN - -2006-12-02 Peter 'Mash' Morgan - - * docs/en/designers/language-builtin-functions/language-function-include-php.xml: - Tidy example, speeling andd add links - - * docs/en/getting-started.xml: - Add/correct entities - - * docs/entities/global.ent: - Fix entities (strange) - -2006-12-01 Monte Ohrt - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update dev version numbers - -2006-12-01 boots - - * (Smarty_2_6_16) - NEWS: - Fixed replacement bug introduced in trimwhitespaces output filter that - was introduced in the last release. - - Thanks to Spuerhund from the forums. - - * (Smarty_2_6_16) - libs/plugins/outputfilter.trimwhitespace.php: - Fixed replacement bug introduced by last changes. - - Thanks to Spuerhund from the forums. - -2006-11-30 Monte Ohrt - - * NEWS - docs/en/designers/language-modifiers/language-modifier-truncate.xml - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update dev version numbers, fix manual typo - -2006-11-22 George Miroshnikov - - * docs/ru/getting-started.xml - docs/ru/language-snippets.ent: - sync with EN - - * docs/en/getting-started.xml: - replaced hardcoded path separator with PATH_SEPARATOR constant - -2006-11-20 boots - - * libs/plugins/modifier.debug_print_var.php: - fix depth formatting of arrays and objects in modifier debug_print_var - -2006-11-10 Messju Mohr - - * docs/en/designers/language-variables/language-variables-smarty.xml: - fixed typo. thanks jonez. - -2006-11-08 boots - - * NEWS - libs/internals/core.write_file.php: - change file writing semantics in smarty_core_write_file() - - This avoids unlink() unless rename() fails or a Windows system is detected - - see: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=6956 - - Thanks to c960657 from the forums. - -2006-11-07 boots - - * NEWS - libs/debug.tpl: - update debug.tpl to xhtml 1.1 compliance, fix javascript escaping in debug - output and apply a Smarty based color scheme - - see: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=7178 - - thanks to cybot from the forums! - - * NEWS - libs/plugins/modifier.debug_print_var.php: - enhance reporting precision of debug_print_var modifier - - see: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=9281 - - thanks to cybot from the forums - -2006-11-01 boots - - * NEWS - libs/plugins/function.html_select_date.php: - make html_select_date work consistently with 0000-00-00 00:00:00 and - 0000-00-00 inputs - - Thanks to cybot from forums - -2006-10-16 George Miroshnikov - - * docs/en/language-snippets.ent: - minor typo fix - &$class doesn't make sense. - -2006-10-14 Yannick Torres - - * docs/fr/designers/language-basic-syntax.xml - docs/fr/designers/language-builtin-functions.xml - docs/fr/designers/language-basic-syntax/language-syntax-attributes.xml - docs/fr/designers/language-basic-syntax/language-syntax-comments.xml - docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml - docs/fr/designers/language-builtin-functions/language-function-capture.xml - docs/fr/designers/language-builtin-functions/language-function-php.xml - docs/fr/designers/language-builtin-functions/language-function-section.xml - docs/fr/designers/language-custom-functions/language-function-popup-init.xml - docs/fr/designers/language-modifiers/language-modifier-escape.xml - docs/fr/programmers/api-functions/api-display.xml - docs/fr/programmers/plugins/plugins-inserts.xml: - sync with EN - -2006-10-14 Fernando Correa da Conceição - - * docs/pt_BR/programmers/api-variables/variable-error-reporting.xml: - New Translation - - * docs/pt_BR/designers/language-basic-syntax/language-escaping.xml - docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml: - New Translations - - * docs/pt_BR/translation.xml: - Used in revcheck - - * docs/pt_BR/getting-started.xml - docs/pt_BR/language-snippets.ent - docs/pt_BR/make_chm_index.html - docs/pt_BR/preface.xml - docs/pt_BR/appendixes/resources.xml - docs/pt_BR/appendixes/troubleshooting.xml - docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml - docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml - docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml - docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml - docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml - docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml - docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml - docs/pt_BR/designers/language-modifiers/language-modifier-default.xml - docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml - docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml - docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml - docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml - docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml - docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml - docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml - docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml - docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml - docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml - docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml - docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml - docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml - docs/pt_BR/designers/language-variables/language-assigned-variables.xml - docs/pt_BR/designers/language-variables/language-config-variables.xml - docs/pt_BR/designers/language-variables/language-variables-smarty.xml - docs/pt_BR/programmers/advanced-features.xml - docs/pt_BR/programmers/api-functions.xml - docs/pt_BR/programmers/api-variables.xml - docs/pt_BR/programmers/caching.xml - docs/pt_BR/programmers/plugins.xml - docs/pt_BR/programmers/smarty-constants.xml - docs/pt_BR/programmers/advanced-features/advanced-features-objects.xml - docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml - docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml - docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml - docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml - docs/pt_BR/programmers/advanced-features/template-resources.xml - docs/pt_BR/programmers/api-functions/api-append-by-ref.xml - docs/pt_BR/programmers/api-functions/api-append.xml - docs/pt_BR/programmers/api-functions/api-assign-by-ref.xml - docs/pt_BR/programmers/api-functions/api-assign.xml - docs/pt_BR/programmers/api-functions/api-clear-all-assign.xml - docs/pt_BR/programmers/api-functions/api-clear-all-cache.xml - docs/pt_BR/programmers/api-functions/api-clear-assign.xml - docs/pt_BR/programmers/api-functions/api-clear-cache.xml - docs/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml - docs/pt_BR/programmers/api-functions/api-clear-config.xml - docs/pt_BR/programmers/api-functions/api-config-load.xml - docs/pt_BR/programmers/api-functions/api-display.xml - docs/pt_BR/programmers/api-functions/api-fetch.xml - docs/pt_BR/programmers/api-functions/api-get-config-vars.xml - docs/pt_BR/programmers/api-functions/api-get-registered-object.xml - docs/pt_BR/programmers/api-functions/api-get-template-vars.xml - docs/pt_BR/programmers/api-functions/api-is-cached.xml - docs/pt_BR/programmers/api-functions/api-load-filter.xml - docs/pt_BR/programmers/api-functions/api-register-block.xml - docs/pt_BR/programmers/api-functions/api-register-compiler-function.xml - docs/pt_BR/programmers/api-functions/api-register-function.xml - docs/pt_BR/programmers/api-functions/api-register-modifier.xml - docs/pt_BR/programmers/api-functions/api-register-object.xml - docs/pt_BR/programmers/api-functions/api-register-outputfilter.xml - docs/pt_BR/programmers/api-functions/api-register-postfilter.xml - docs/pt_BR/programmers/api-functions/api-register-prefilter.xml - docs/pt_BR/programmers/api-functions/api-register-resource.xml - docs/pt_BR/programmers/api-functions/api-template-exists.xml - docs/pt_BR/programmers/api-functions/api-trigger-error.xml - docs/pt_BR/programmers/api-functions/api-unregister-block.xml - docs/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml - docs/pt_BR/programmers/api-functions/api-unregister-function.xml - docs/pt_BR/programmers/api-functions/api-unregister-modifier.xml - docs/pt_BR/programmers/api-functions/api-unregister-object.xml - docs/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml - docs/pt_BR/programmers/api-functions/api-unregister-postfilter.xml - docs/pt_BR/programmers/api-functions/api-unregister-prefilter.xml - docs/pt_BR/programmers/api-functions/api-unregister-resource.xml - docs/pt_BR/programmers/api-variables/variable-autoload-filters.xml - docs/pt_BR/programmers/api-variables/variable-cache-dir.xml - docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml - docs/pt_BR/programmers/api-variables/variable-cache-lifetime.xml - docs/pt_BR/programmers/api-variables/variable-cache-modified-check.xml - docs/pt_BR/programmers/api-variables/variable-caching.xml - docs/pt_BR/programmers/api-variables/variable-compile-check.xml - docs/pt_BR/programmers/api-variables/variable-compile-dir.xml - docs/pt_BR/programmers/api-variables/variable-compile-id.xml - docs/pt_BR/programmers/api-variables/variable-compiler-class.xml - docs/pt_BR/programmers/api-variables/variable-config-booleanize.xml - docs/pt_BR/programmers/api-variables/variable-config-dir.xml - docs/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml - docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml - docs/pt_BR/programmers/api-variables/variable-config-read-hidden.xml - docs/pt_BR/programmers/api-variables/variable-debug-tpl.xml - docs/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml - docs/pt_BR/programmers/api-variables/variable-debugging.xml - docs/pt_BR/programmers/api-variables/variable-default-modifiers.xml - docs/pt_BR/programmers/api-variables/variable-default-resource-type.xml - docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml - docs/pt_BR/programmers/api-variables/variable-force-compile.xml - docs/pt_BR/programmers/api-variables/variable-global-assign.xml - docs/pt_BR/programmers/api-variables/variable-left-delimiter.xml - docs/pt_BR/programmers/api-variables/variable-php-handling.xml - docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml - docs/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml - docs/pt_BR/programmers/api-variables/variable-request-vars-order.xml - docs/pt_BR/programmers/api-variables/variable-right-delimiter.xml - docs/pt_BR/programmers/api-variables/variable-secure-dir.xml - docs/pt_BR/programmers/api-variables/variable-security-settings.xml - docs/pt_BR/programmers/api-variables/variable-security.xml - docs/pt_BR/programmers/api-variables/variable-template-dir.xml - docs/pt_BR/programmers/api-variables/variable-trusted-dir.xml - docs/pt_BR/programmers/api-variables/variable-undefined.xml - docs/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml - docs/pt_BR/programmers/caching/caching-cacheable.xml - docs/pt_BR/programmers/caching/caching-groups.xml - docs/pt_BR/programmers/caching/caching-multiple-caches.xml - docs/pt_BR/programmers/caching/caching-setting-up.xml - docs/pt_BR/programmers/plugins/plugins-block-functions.xml - docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml - docs/pt_BR/programmers/plugins/plugins-functions.xml - docs/pt_BR/programmers/plugins/plugins-howto.xml - docs/pt_BR/programmers/plugins/plugins-inserts.xml - docs/pt_BR/programmers/plugins/plugins-modifiers.xml - docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml - docs/pt_BR/programmers/plugins/plugins-outputfilters.xml - docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml - docs/pt_BR/programmers/plugins/plugins-resources.xml - docs/pt_BR/programmers/plugins/plugins-writing.xml: - Big update. Revision tag for all files. Some updates. Now I can update it - -2006-10-09 Peter 'Mash' Morgan - - * docs/en/getting-started.xml - docs/en/designers/language-basic-syntax.xml - docs/en/designers/language-custom-functions/language-function-popup-init.xml - docs/en/designers/language-modifiers/language-modifier-escape.xml - docs/en/programmers/api-functions/api-display.xml - docs/en/programmers/plugins/plugins-inserts.xml: - Minor changes and corrections - - * docs/en/designers/language-basic-syntax.xml - docs/en/designers/language-builtin-functions.xml - docs/en/designers/language-basic-syntax/language-syntax-attributes.xml - docs/en/designers/language-basic-syntax/language-syntax-comments.xml - docs/en/designers/language-basic-syntax/language-syntax-quotes.xml - docs/en/designers/language-modifiers/language-modifier-escape.xml: - Minor formatting and error correction - - * docs/en/designers/language-builtin-functions/language-function-capture.xml - docs/en/designers/language-builtin-functions/language-function-php.xml - docs/en/designers/language-builtin-functions/language-function-section.xml: - minor formatting and changes - - * docs/en/getting-started.xml: - Tidied up formatting so more readable, tidied up the install to the paths - are more clear (ta jj) - -2006-10-09 Yannick Torres - - * docs/fr/designers/language-builtin-functions/language-function-section.xml: - sync with EN - -2006-10-08 Yannick Torres - - * docs/fr/designers/language-builtin-functions/language-function-php.xml - docs/fr/designers/language-modifiers/language-modifier-escape.xml - docs/fr/designers/language-variables/language-variables-smarty.xml - docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml: - fix build - - * docs/fr/designers/language-builtin-functions/language-function-strip.xml - docs/fr/programmers/caching.xml - docs/fr/programmers/smarty-constants.xml - docs/fr/programmers/api-variables/variable-autoload-filters.xml - docs/fr/programmers/api-variables/variable-cache-dir.xml - docs/fr/programmers/api-variables/variable-cache-handler-func.xml - docs/fr/programmers/api-variables/variable-cache-lifetime.xml - docs/fr/programmers/api-variables/variable-cache-modified-check.xml - docs/fr/programmers/api-variables/variable-caching.xml - docs/fr/programmers/api-variables/variable-compile-check.xml - docs/fr/programmers/api-variables/variable-compile-dir.xml - docs/fr/programmers/api-variables/variable-compile-id.xml - docs/fr/programmers/api-variables/variable-compiler-class.xml - docs/fr/programmers/api-variables/variable-config-booleanize.xml - docs/fr/programmers/api-variables/variable-config-dir.xml - docs/fr/programmers/api-variables/variable-config-fix-newlines.xml - docs/fr/programmers/api-variables/variable-config-overwrite.xml - docs/fr/programmers/api-variables/variable-config-read-hidden.xml - docs/fr/programmers/api-variables/variable-debug-tpl.xml - docs/fr/programmers/api-variables/variable-debugging-ctrl.xml - docs/fr/programmers/api-variables/variable-debugging.xml - docs/fr/programmers/api-variables/variable-default-modifiers.xml - docs/fr/programmers/api-variables/variable-default-resource-type.xml - docs/fr/programmers/api-variables/variable-default-template-handler-func.xml - docs/fr/programmers/api-variables/variable-error-reporting.xml - docs/fr/programmers/api-variables/variable-force-compile.xml - docs/fr/programmers/api-variables/variable-left-delimiter.xml - docs/fr/programmers/api-variables/variable-php-handling.xml - docs/fr/programmers/api-variables/variable-plugins-dir.xml - docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml - docs/fr/programmers/api-variables/variable-request-vars-order.xml - docs/fr/programmers/api-variables/variable-right-delimiter.xml - docs/fr/programmers/api-variables/variable-secure-dir.xml - docs/fr/programmers/api-variables/variable-security-settings.xml - docs/fr/programmers/api-variables/variable-security.xml - docs/fr/programmers/api-variables/variable-template-dir.xml - docs/fr/programmers/api-variables/variable-trusted-dir.xml - docs/fr/programmers/api-variables/variable-use-sub-dirs.xml - docs/fr/programmers/caching/caching-cacheable.xml - docs/fr/programmers/caching/caching-groups.xml - docs/fr/programmers/caching/caching-multiple-caches.xml - docs/fr/programmers/caching/caching-setting-up.xml - docs/fr/programmers/plugins/plugins-block-functions.xml - docs/fr/programmers/plugins/plugins-compiler-functions.xml - docs/fr/programmers/plugins/plugins-functions.xml - docs/fr/programmers/plugins/plugins-inserts.xml - docs/fr/programmers/plugins/plugins-modifiers.xml - docs/fr/programmers/plugins/plugins-naming-conventions.xml - docs/fr/programmers/plugins/plugins-outputfilters.xml - docs/fr/programmers/plugins/plugins-prefilters-postfilters.xml - docs/fr/programmers/plugins/plugins-resources.xml - docs/fr/programmers/plugins/plugins-writing.xml: - sync with EN - -2006-10-07 Yannick Torres - - * docs/fr/programmers/advanced-features/advanced-features-objects.xml - docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml - docs/fr/programmers/advanced-features/advanced-features-postfilters.xml - docs/fr/programmers/advanced-features/advanced-features-prefilters.xml - docs/fr/programmers/advanced-features/section-template-cache-handler-func.xml - docs/fr/programmers/advanced-features/template-resources.xml - docs/fr/programmers/api-functions/api-append-by-ref.xml - docs/fr/programmers/api-functions/api-append.xml - docs/fr/programmers/api-functions/api-assign-by-ref.xml - docs/fr/programmers/api-functions/api-assign.xml - docs/fr/programmers/api-functions/api-clear-all-assign.xml - docs/fr/programmers/api-functions/api-clear-all-cache.xml - docs/fr/programmers/api-functions/api-clear-assign.xml - docs/fr/programmers/api-functions/api-clear-cache.xml - docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml - docs/fr/programmers/api-functions/api-clear-config.xml - docs/fr/programmers/api-functions/api-config-load.xml - docs/fr/programmers/api-functions/api-display.xml - docs/fr/programmers/api-functions/api-fetch.xml - docs/fr/programmers/api-functions/api-get-config-vars.xml - docs/fr/programmers/api-functions/api-get-registered-object.xml - docs/fr/programmers/api-functions/api-get-template-vars.xml - docs/fr/programmers/api-functions/api-is-cached.xml - docs/fr/programmers/api-functions/api-load-filter.xml - docs/fr/programmers/api-functions/api-register-block.xml - docs/fr/programmers/api-functions/api-register-compiler-function.xml - docs/fr/programmers/api-functions/api-register-function.xml - docs/fr/programmers/api-functions/api-register-modifier.xml - docs/fr/programmers/api-functions/api-register-object.xml - docs/fr/programmers/api-functions/api-register-outputfilter.xml - docs/fr/programmers/api-functions/api-register-postfilter.xml - docs/fr/programmers/api-functions/api-register-prefilter.xml - docs/fr/programmers/api-functions/api-register-resource.xml - docs/fr/programmers/api-functions/api-template-exists.xml - docs/fr/programmers/api-functions/api-trigger-error.xml - docs/fr/programmers/api-functions/api-unregister-block.xml - docs/fr/programmers/api-functions/api-unregister-compiler-function.xml - docs/fr/programmers/api-functions/api-unregister-function.xml - docs/fr/programmers/api-functions/api-unregister-modifier.xml - docs/fr/programmers/api-functions/api-unregister-object.xml - docs/fr/programmers/api-functions/api-unregister-outputfilter.xml - docs/fr/programmers/api-functions/api-unregister-postfilter.xml - docs/fr/programmers/api-functions/api-unregister-prefilter.xml - docs/fr/programmers/api-functions/api-unregister-resource.xml: - sync with EN - -2006-10-03 Yannick Torres - - * docs/fr/designers/language-custom-functions/language-function-html-select-time.xml - docs/fr/designers/language-custom-functions/language-function-html-table.xml - docs/fr/designers/language-custom-functions/language-function-mailto.xml - docs/fr/designers/language-custom-functions/language-function-math.xml - docs/fr/designers/language-custom-functions/language-function-popup-init.xml - docs/fr/designers/language-custom-functions/language-function-popup.xml - docs/fr/designers/language-custom-functions/language-function-textformat.xml - docs/fr/designers/language-modifiers/language-modifier-capitalize.xml - docs/fr/designers/language-modifiers/language-modifier-cat.xml - docs/fr/designers/language-modifiers/language-modifier-count-characters.xml - docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml - docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml - docs/fr/designers/language-modifiers/language-modifier-count-words.xml - docs/fr/designers/language-modifiers/language-modifier-date-format.xml - docs/fr/designers/language-modifiers/language-modifier-default.xml - docs/fr/designers/language-modifiers/language-modifier-escape.xml - docs/fr/designers/language-modifiers/language-modifier-indent.xml - docs/fr/designers/language-modifiers/language-modifier-lower.xml - docs/fr/designers/language-modifiers/language-modifier-nl2br.xml - docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml - docs/fr/designers/language-modifiers/language-modifier-replace.xml - docs/fr/designers/language-modifiers/language-modifier-spacify.xml - docs/fr/designers/language-modifiers/language-modifier-string-format.xml - docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml - docs/fr/designers/language-modifiers/language-modifier-strip.xml - docs/fr/designers/language-modifiers/language-modifier-truncate.xml - docs/fr/designers/language-modifiers/language-modifier-upper.xml - docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml - docs/fr/designers/language-variables/language-assigned-variables.xml - docs/fr/designers/language-variables/language-config-variables.xml - docs/fr/designers/language-variables/language-variables-smarty.xml: - sync with EN - -2006-10-01 Yannick Torres - - * docs/fr/designers/language-builtin-functions/language-function-include-php.xml - docs/fr/designers/language-builtin-functions/language-function-include.xml - docs/fr/designers/language-builtin-functions/language-function-insert.xml - docs/fr/designers/language-builtin-functions/language-function-ldelim.xml - docs/fr/designers/language-builtin-functions/language-function-literal.xml - docs/fr/designers/language-builtin-functions/language-function-php.xml - docs/fr/designers/language-custom-functions/language-function-assign.xml - docs/fr/designers/language-custom-functions/language-function-counter.xml - docs/fr/designers/language-custom-functions/language-function-cycle.xml - docs/fr/designers/language-custom-functions/language-function-debug.xml - docs/fr/designers/language-custom-functions/language-function-eval.xml - docs/fr/designers/language-custom-functions/language-function-fetch.xml - docs/fr/designers/language-custom-functions/language-function-html-checkboxes.xml - docs/fr/designers/language-custom-functions/language-function-html-image.xml - docs/fr/designers/language-custom-functions/language-function-html-options.xml - docs/fr/designers/language-custom-functions/language-function-html-radios.xml - docs/fr/designers/language-custom-functions/language-function-html-select-date.xml: - sync with EN - -2006-09-30 Yannick Torres - - * docs/fr/getting-started.xml: - fix build - - * docs/fr/designers/chapter-debugging-console.xml - docs/fr/designers/config-files.xml - docs/fr/designers/language-builtin-functions.xml - docs/fr/designers/language-modifiers.xml - docs/fr/designers/language-variables.xml - docs/fr/designers/language-basic-syntax/language-escaping.xml - docs/fr/designers/language-basic-syntax/language-math.xml - docs/fr/designers/language-basic-syntax/language-syntax-comments.xml - docs/fr/designers/language-basic-syntax/language-syntax-functions.xml - docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml - docs/fr/designers/language-basic-syntax/language-syntax-variables.xml - docs/fr/designers/language-builtin-functions/language-function-capture.xml - docs/fr/designers/language-builtin-functions/language-function-config-load.xml - docs/fr/designers/language-builtin-functions/language-function-foreach.xml - docs/fr/designers/language-builtin-functions/language-function-if.xml: - sync with EN - - * docs/fr/getting-started.xml - docs/fr/language-snippets.ent - docs/fr/appendixes/resources.xml - docs/fr/appendixes/tips.xml - docs/fr/appendixes/troubleshooting.xml: - sync with EN - -2006-09-27 Peter 'Mash' Morgan - - * docs/en/designers/language-builtin-functions/language-function-section.xml: - Minor tweaks and corrections - - * docs/en/getting-started.xml - docs/en/designers/chapter-debugging-console.xml - docs/en/designers/language-basic-syntax/language-syntax-comments.xml - docs/en/designers/language-custom-functions/language-function-html-image.xml - docs/en/designers/language-custom-functions/language-function-html-options.xml - docs/en/designers/language-custom-functions/language-function-html-radios.xml - docs/en/designers/language-custom-functions/language-function-html-select-date.xml - docs/en/designers/language-custom-functions/language-function-html-select-time.xml - docs/en/designers/language-custom-functions/language-function-html-table.xml - docs/en/designers/language-custom-functions/language-function-mailto.xml - docs/en/designers/language-custom-functions/language-function-popup-init.xml - docs/en/designers/language-custom-functions/language-function-textformat.xml - docs/en/designers/language-variables/language-config-variables.xml - docs/en/designers/language-variables/language-variables-smarty.xml: - Add literal tags to html, general formatting - - * docs/en/getting-started.xml - docs/en/appendixes/resources.xml - docs/en/appendixes/tips.xml - docs/en/appendixes/troubleshooting.xml - docs/en/designers/config-files.xml - docs/en/programmers/caching.xml - docs/en/programmers/smarty-constants.xml - docs/en/programmers/advanced-features/advanced-features-objects.xml - docs/en/programmers/advanced-features/advanced-features-outputfilters.xml - docs/en/programmers/advanced-features/advanced-features-postfilters.xml - docs/en/programmers/advanced-features/advanced-features-prefilters.xml - docs/en/programmers/advanced-features/section-template-cache-handler-func.xml - docs/en/programmers/advanced-features/template-resources.xml - docs/en/programmers/api-variables/variable-autoload-filters.xml - docs/en/programmers/api-variables/variable-cache-dir.xml - docs/en/programmers/api-variables/variable-cache-handler-func.xml - docs/en/programmers/api-variables/variable-cache-lifetime.xml - docs/en/programmers/api-variables/variable-cache-modified-check.xml - docs/en/programmers/api-variables/variable-caching.xml - docs/en/programmers/api-variables/variable-compile-check.xml - docs/en/programmers/api-variables/variable-compile-dir.xml - docs/en/programmers/api-variables/variable-compile-id.xml - docs/en/programmers/api-variables/variable-config-booleanize.xml - docs/en/programmers/api-variables/variable-config-dir.xml - docs/en/programmers/api-variables/variable-config-fix-newlines.xml - docs/en/programmers/api-variables/variable-config-overwrite.xml - docs/en/programmers/api-variables/variable-config-read-hidden.xml - docs/en/programmers/api-variables/variable-debug-tpl.xml - docs/en/programmers/api-variables/variable-debugging-ctrl.xml - docs/en/programmers/api-variables/variable-debugging.xml - docs/en/programmers/api-variables/variable-default-modifiers.xml - docs/en/programmers/api-variables/variable-default-resource-type.xml - docs/en/programmers/api-variables/variable-error-reporting.xml - docs/en/programmers/api-variables/variable-force-compile.xml - docs/en/programmers/api-variables/variable-left-delimiter.xml - docs/en/programmers/api-variables/variable-php-handling.xml - docs/en/programmers/api-variables/variable-plugins-dir.xml - docs/en/programmers/api-variables/variable-request-use-auto-globals.xml - docs/en/programmers/api-variables/variable-request-vars-order.xml - docs/en/programmers/api-variables/variable-right-delimiter.xml - docs/en/programmers/api-variables/variable-secure-dir.xml - docs/en/programmers/api-variables/variable-security-settings.xml - docs/en/programmers/api-variables/variable-security.xml - docs/en/programmers/api-variables/variable-template-dir.xml - docs/en/programmers/api-variables/variable-trusted-dir.xml - docs/en/programmers/api-variables/variable-use-sub-dirs.xml - docs/en/programmers/caching/caching-cacheable.xml - docs/en/programmers/caching/caching-groups.xml - docs/en/programmers/caching/caching-multiple-caches.xml - docs/en/programmers/caching/caching-setting-up.xml: - Tidy up of formatting - - * docs/entities/global.ent: - Adding some more resources - - * docs/en/programmers/plugins/plugins-block-functions.xml - docs/en/programmers/plugins/plugins-compiler-functions.xml - docs/en/programmers/plugins/plugins-functions.xml - docs/en/programmers/plugins/plugins-inserts.xml - docs/en/programmers/plugins/plugins-modifiers.xml - docs/en/programmers/plugins/plugins-naming-conventions.xml - docs/en/programmers/plugins/plugins-outputfilters.xml - docs/en/programmers/plugins/plugins-prefilters-postfilters.xml - docs/en/programmers/plugins/plugins-resources.xml - docs/en/programmers/plugins/plugins-writing.xml: - Tidy up some formatting - -2006-09-26 Peter 'Mash' Morgan - - * docs/en/programmers/api-functions/api-append-by-ref.xml - docs/en/programmers/api-functions/api-append.xml - docs/en/programmers/api-functions/api-assign-by-ref.xml - docs/en/programmers/api-functions/api-assign.xml - docs/en/programmers/api-functions/api-clear-all-assign.xml - docs/en/programmers/api-functions/api-clear-all-cache.xml - docs/en/programmers/api-functions/api-clear-assign.xml - docs/en/programmers/api-functions/api-clear-cache.xml - docs/en/programmers/api-functions/api-clear-compiled-tpl.xml - docs/en/programmers/api-functions/api-clear-config.xml - docs/en/programmers/api-functions/api-config-load.xml - docs/en/programmers/api-functions/api-display.xml - docs/en/programmers/api-functions/api-fetch.xml - docs/en/programmers/api-functions/api-get-config-vars.xml - docs/en/programmers/api-functions/api-get-registered-object.xml - docs/en/programmers/api-functions/api-get-template-vars.xml - docs/en/programmers/api-functions/api-is-cached.xml - docs/en/programmers/api-functions/api-load-filter.xml - docs/en/programmers/api-functions/api-register-block.xml - docs/en/programmers/api-functions/api-register-compiler-function.xml - docs/en/programmers/api-functions/api-register-function.xml - docs/en/programmers/api-functions/api-register-modifier.xml - docs/en/programmers/api-functions/api-register-object.xml - docs/en/programmers/api-functions/api-register-outputfilter.xml - docs/en/programmers/api-functions/api-register-postfilter.xml - docs/en/programmers/api-functions/api-register-prefilter.xml - docs/en/programmers/api-functions/api-register-resource.xml - docs/en/programmers/api-functions/api-template-exists.xml - docs/en/programmers/api-functions/api-trigger-error.xml - docs/en/programmers/api-functions/api-unregister-block.xml - docs/en/programmers/api-functions/api-unregister-compiler-function.xml - docs/en/programmers/api-functions/api-unregister-function.xml - docs/en/programmers/api-functions/api-unregister-modifier.xml - docs/en/programmers/api-functions/api-unregister-object.xml - docs/en/programmers/api-functions/api-unregister-outputfilter.xml - docs/en/programmers/api-functions/api-unregister-postfilter.xml - docs/en/programmers/api-functions/api-unregister-prefilter.xml - docs/en/programmers/api-functions/api-unregister-resource.xml: - Tidy up formatting and examples - - * docs/en/language-snippets.ent: - Moved recurring para for register_* - - * docs/en/designers/language-modifiers.xml: - Spelling on modifiers - - * docs/en/designers/language-builtin-functions.xml - docs/en/designers/language-modifiers.xml - docs/en/designers/language-custom-functions/language-function-html-options.xml - docs/en/designers/language-modifiers/language-modifier-capitalize.xml - docs/en/designers/language-modifiers/language-modifier-cat.xml - docs/en/designers/language-modifiers/language-modifier-count-characters.xml - docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml - docs/en/designers/language-modifiers/language-modifier-count-sentences.xml - docs/en/designers/language-modifiers/language-modifier-count-words.xml - docs/en/designers/language-modifiers/language-modifier-date-format.xml - docs/en/designers/language-modifiers/language-modifier-default.xml - docs/en/designers/language-modifiers/language-modifier-escape.xml - docs/en/designers/language-modifiers/language-modifier-indent.xml - docs/en/designers/language-modifiers/language-modifier-lower.xml - docs/en/designers/language-modifiers/language-modifier-nl2br.xml - docs/en/designers/language-modifiers/language-modifier-regex-replace.xml - docs/en/designers/language-modifiers/language-modifier-replace.xml - docs/en/designers/language-modifiers/language-modifier-spacify.xml - docs/en/designers/language-modifiers/language-modifier-string-format.xml - docs/en/designers/language-modifiers/language-modifier-strip-tags.xml - docs/en/designers/language-modifiers/language-modifier-strip.xml - docs/en/designers/language-modifiers/language-modifier-truncate.xml - docs/en/designers/language-modifiers/language-modifier-upper.xml - docs/en/designers/language-modifiers/language-modifier-wordwrap.xml: - Tidying up some markup - - * docs/en/designers/language-variables.xml: - typo - - * docs/en/designers/language-variables.xml - docs/en/designers/language-variables/language-assigned-variables.xml - docs/en/designers/language-variables/language-config-variables.xml - docs/en/designers/language-variables/language-variables-smarty.xml: - Tidy up formatting on variables - - * docs/en/designers/language-basic-syntax/language-escaping.xml - docs/en/designers/language-basic-syntax/language-math.xml - docs/en/designers/language-basic-syntax/language-syntax-comments.xml - docs/en/designers/language-basic-syntax/language-syntax-functions.xml - docs/en/designers/language-basic-syntax/language-syntax-quotes.xml - docs/en/designers/language-basic-syntax/language-syntax-variables.xml: - Formatting of the basic-syntax dir - - * docs/en/designers/language-custom-functions/language-function-assign.xml - docs/en/designers/language-custom-functions/language-function-counter.xml - docs/en/designers/language-custom-functions/language-function-cycle.xml - docs/en/designers/language-custom-functions/language-function-debug.xml - docs/en/designers/language-custom-functions/language-function-eval.xml - docs/en/designers/language-custom-functions/language-function-fetch.xml - docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml - docs/en/designers/language-custom-functions/language-function-html-image.xml - docs/en/designers/language-custom-functions/language-function-html-options.xml - docs/en/designers/language-custom-functions/language-function-html-radios.xml - docs/en/designers/language-custom-functions/language-function-html-select-date.xml - docs/en/designers/language-custom-functions/language-function-html-select-time.xml - docs/en/designers/language-custom-functions/language-function-html-table.xml - docs/en/designers/language-custom-functions/language-function-mailto.xml - docs/en/designers/language-custom-functions/language-function-math.xml - docs/en/designers/language-custom-functions/language-function-popup-init.xml - docs/en/designers/language-custom-functions/language-function-popup.xml - docs/en/designers/language-custom-functions/language-function-textformat.xml: - More formatting and cleaning up examples - -2006-09-25 Peter 'Mash' Morgan - - * docs/en/designers/language-builtin-functions/language-function-foreach.xml - docs/en/designers/language-builtin-functions/language-function-section.xml: - Doh! removing tabs - - * docs/en/designers/language-builtin-functions/language-function-capture.xml - docs/en/designers/language-builtin-functions/language-function-config-load.xml - docs/en/designers/language-builtin-functions/language-function-foreach.xml - docs/en/designers/language-builtin-functions/language-function-if.xml - docs/en/designers/language-builtin-functions/language-function-include-php.xml - docs/en/designers/language-builtin-functions/language-function-include.xml - docs/en/designers/language-builtin-functions/language-function-insert.xml - docs/en/designers/language-builtin-functions/language-function-ldelim.xml - docs/en/designers/language-builtin-functions/language-function-literal.xml - docs/en/designers/language-builtin-functions/language-function-php.xml - docs/en/designers/language-builtin-functions/language-function-section.xml - docs/en/designers/language-builtin-functions/language-function-strip.xml: - A lot of formatting, tagging and tidy up. Some consistency at last - - * docs/en/designers/language-builtin-functions/language-function-section.xml: - Major tidy up - - * docs/en/designers/language-builtin-functions/language-function-foreach.xml: - Major tidy up, added index property and some examples - -2006-09-03 Yannick Torres - - * docs/fr/designers/language-custom-functions/language-function-popup-init.xml - docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml - docs/fr/programmers/advanced-features/advanced-features-postfilters.xml - docs/fr/programmers/advanced-features/advanced-features-prefilters.xml: - sync with EN - -2006-09-01 George Miroshnikov - - * docs/ru/programmers/api-functions/api-append-by-ref.xml - docs/ru/programmers/api-functions/api-append.xml - docs/ru/programmers/api-functions/api-assign-by-ref.xml - docs/ru/programmers/api-functions/api-assign.xml - docs/ru/programmers/api-functions/api-clear-all-assign.xml - docs/ru/programmers/api-functions/api-clear-all-cache.xml - docs/ru/programmers/api-functions/api-clear-assign.xml - docs/ru/programmers/api-functions/api-clear-cache.xml - docs/ru/programmers/api-functions/api-clear-compiled-tpl.xml - docs/ru/programmers/api-functions/api-clear-config.xml - docs/ru/programmers/api-functions/api-config-load.xml - docs/ru/programmers/api-functions/api-display.xml: - sync with EN - -2006-08-25 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed wrong handling of name attribute in {insert} - thanks to Ivan Kravets for reporting this - - * libs/Smarty_Compiler.class.php: - fixed typo - -2006-08-21 George Miroshnikov - - * docs/ru/designers/language-custom-functions/language-function-popup-init.xml - docs/ru/programmers/advanced-features/advanced-features-objects.xml - docs/ru/programmers/advanced-features/advanced-features-outputfilters.xml - docs/ru/programmers/advanced-features/advanced-features-postfilters.xml - docs/ru/programmers/advanced-features/advanced-features-prefilters.xml - docs/ru/programmers/advanced-features/section-template-cache-handler-func.xml - docs/ru/programmers/advanced-features/template-resources.xml: - sync with EN - - * docs/en/programmers/advanced-features/advanced-features-prefilters.xml: - another missing dot - - * docs/en/programmers/advanced-features/advanced-features-postfilters.xml: - missing dot - - * docs/en/programmers/advanced-features/advanced-features-outputfilters.xml: - missing comma - -2006-08-19 Peter 'Mash' Morgan - - * docs/en/designers/language-custom-functions/language-function-popup-init.xml: - avoid dupes and added remote paths - -2006-08-06 Yannick Torres - - * docs/fr/designers/language-custom-functions/language-function-html-table.xml - docs/fr/designers/language-custom-functions/language-function-mailto.xml: - sync with EN - -2006-08-03 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fix false replacement of "$t" inside double quotes - thanks to checat for reporting this - -2006-07-20 George Miroshnikov - - * docs/ru/designers/language-custom-functions/language-function-html-table.xml - docs/ru/designers/language-custom-functions/language-function-mailto.xml: - incrementing EN-Revision - - * docs/ru/designers/language-custom-functions/language-function-assign.xml - docs/ru/designers/language-custom-functions/language-function-eval.xml - docs/ru/designers/language-custom-functions/language-function-fetch.xml - docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml - docs/ru/designers/language-custom-functions/language-function-html-image.xml - docs/ru/designers/language-custom-functions/language-function-html-options.xml - docs/ru/designers/language-custom-functions/language-function-html-radios.xml - docs/ru/designers/language-custom-functions/language-function-html-table.xml - docs/ru/designers/language-custom-functions/language-function-mailto.xml - docs/ru/designers/language-custom-functions/language-function-popup-init.xml - docs/ru/designers/language-custom-functions/language-function-popup.xml - docs/ru/designers/language-modifiers/language-modifier-date-format.xml - docs/ru/designers/language-modifiers/language-modifier-default.xml - docs/ru/designers/language-modifiers/language-modifier-escape.xml - docs/ru/designers/language-modifiers/language-modifier-indent.xml - docs/ru/designers/language-modifiers/language-modifier-lower.xml - docs/ru/designers/language-modifiers/language-modifier-nl2br.xml - docs/ru/designers/language-modifiers/language-modifier-strip.xml - docs/ru/designers/language-modifiers/language-modifier-truncate.xml - docs/ru/designers/language-modifiers/language-modifier-upper.xml - docs/ru/designers/language-modifiers/language-modifier-wordwrap.xml - docs/ru/designers/language-variables/language-variables-smarty.xml: - sync with EN - - * docs/en/designers/language-custom-functions/language-function-mailto.xml: - typo - -2006-07-10 boots - - * libs/plugins/function.html_table.php: - fixed email address in comments - - * NEWS - libs/plugins/function.html_table.php: - html_table: fixed th/tr output, added hdir support for column - headings,update docs to reflect new features - -2006-07-08 Messju Mohr - - * libs/plugins/function.html_table.php: - fix occasional notices on undefined variables - -2006-07-08 boots - - * libs/plugins/function.html_table.php: - Added ability to specify column headings in {html_table} - - Added th_attrs attribute which works similary to td_attr and tr_attr but - for TH elements. Changes the cols attribute to allow mixed values; a - numeric still specifies the number of columns to render but now an array - of values can be used to specify TH column values. The number of columns - is determine from the size of the array. Further, a comma-separated - string of column names can be used which is internally coverted to an - array and used as if it was specified as a normal array. - - Thanks for lynlyn for the feature request. - -2006-06-23 boots - - * libs/plugins/outputfilter.trimwhitespace.php: - fix comments in outputfilter.trimwhitespace - - * NEWS - libs/plugins/outputfilter.trimwhitespace.php: - fixed ordering of replacements in trimwhitespace output filter - - Thanks to Getty from IRC for reporting this. - -2006-06-20 boots - - * NEWS - libs/plugins/function.mailto.php: - update mailto function plugin to work around a firefox/thunderbird escaping - bug - - Thanks to elijahlofgren from the forums for reporting this and providing - the necessary patch - - * NEWS - libs/plugins/modifier.date_format.php: - emulate %l in the date_format modifier on windows - - thanks to Gibberish from the forums for reporting this - -2006-06-14 boots - - * NEWS - libs/plugins/modifier.capitalize.php: - Fix handling of apostrophes in the capitalize modifier. - - Thanks to asmecher from the forums for reporting this and providing a - partial solution. - -2006-05-28 Monte Ohrt - - * NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers - -2006-05-25 boots - - * NEWS - libs/Smarty_Compiler.class.php: - un-hide hidden xml open tags - -2006-05-09 boots - - * NEWS - libs/Smarty_Compiler.class.php: - separate handling of comment blocks from "special blocks" - - * NEWS - libs/plugins/function.popup_init.php: - reverted {popup_init} as proposed change to insertion behviour was not BC - -2006-05-04 boots - - * NEWS - libs/plugins/function.popup_init.php: - changed {popup_init} to only emit code once during a request - - Thanks to TGKnIght from forums - -2006-04-22 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fix handling of block-methods of registered objects - thanks to El Hombre Gris - -2006-04-04 Monte Ohrt - - * libs/plugins/function.html_select_date.php: - fix typo - -2006-03-09 Monte Ohrt - - * (Smarty_2_6_13) - NEWS: - update for release - -2006-03-08 Monte Ohrt - - * libs/plugins/modifier.regex_replace.php: - remove delim quote - - * libs/plugins/modifier.regex_replace.php: - fix delimiter issue - -2006-03-03 Monte Ohrt - - * libs/plugins/modifier.regex_replace.php: - use preg_replace to cover any space chars - - * libs/plugins/modifier.regex_replace.php: - fix problem with allowing "e" modifier - -2006-01-29 Messju Mohr - - * libs/Smarty_Compiler.class.php: - removed possiblity for E_NOTICE on an undefined variable in - Smarty_Compiler::_compile_if_tag() - thanks to sbeh - -2006-01-18 Monte Ohrt - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers - - * (Smarty_2_6_12) - NEWS: - commit 2.6.12 release - -2006-01-15 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed use of references $cache_attrs and $repeat in Smarty_Compiler. - - php does not allow to pass an assigned by reference to a function. since - php-5.1.2 - the reference to the lval gets lost when passing an assignment. - -2005-12-31 Messju Mohr - - * NEWS - libs/Smarty.class.php: - fixed incompatible use of fread() in Smarty::_read_file() - it choke on php-5.1.1 and later. - thanks to andig for pointing this out. - -2005-12-21 boots - - * NEWS - libs/Smarty_Compiler.class.php: - Fix improper tokenization of certain inline math expressions. - - Thanks to gerard at forums for reporting this. - -2005-12-19 Messju Mohr - - * libs/plugins/function.math.php: - fixed problem with math in certain LC_NUMERIC locales. - thanks to wiebren for providing problem+solution. - -2005-12-14 Messju Mohr - - * NEWS: - fixed iso-latin1 special chars - -2005-12-14 Monte Ohrt - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers - - * (Smarty_2_6_11) - NEWS: - commit NEWS file for 2.6.11 - -2005-12-08 Messju Mohr - - * docs/de/getting-started.xml: - sync with en - -2005-11-29 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed code generation of non-cacheable blocks to play well with php's - "Alternative syntax" used for example in compiled {if}..{else}..{/if} - blocks. - - (see: http://php.net/manual/en/control-structures.alternative-syntax.php - on "Alternative syntax") - - thanks to kihara from the forum. - -2005-11-26 Messju Mohr - - * NEWS: - fixed handling of multiple identical calls to {insert}. - - the function was called multiple times, but all inserts where replaced - by the results of the first call to the insert function. - - * libs/plugins/compiler.assign.php - libs/plugins/function.config_load.php: - added credits - - * libs/plugins/function.popup.php: - added "closeclick" from - http://www.bosrup.com/web/overlib/?Command_Reference - -2005-11-23 boots - - * NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/plugins/modifier.escape.php: - replace {} string access with equivalent substr() to avoid E_STRICT - warnings in PHP 5.1 - -2005-11-09 boots - - * NEWS - libs/Smarty.class.php: - return valid reference in get_config_vars() when given var is non-existant - -2005-10-11 Monte Ohrt - - * libs/plugins/block.textformat.php - libs/plugins/compiler.assign.php - libs/plugins/function.assign_debug_info.php - libs/plugins/function.config_load.php - libs/plugins/function.counter.php - libs/plugins/function.eval.php - libs/plugins/function.fetch.php - libs/plugins/function.html_options.php - libs/plugins/function.html_select_date.php - libs/plugins/function.html_select_time.php - libs/plugins/function.math.php - libs/plugins/function.popup.php - libs/plugins/function.popup_init.php - libs/plugins/modifier.capitalize.php - libs/plugins/modifier.count_characters.php - libs/plugins/modifier.count_paragraphs.php - libs/plugins/modifier.count_sentences.php - libs/plugins/modifier.count_words.php - libs/plugins/modifier.date_format.php - libs/plugins/modifier.debug_print_var.php - libs/plugins/modifier.default.php - libs/plugins/modifier.escape.php - libs/plugins/modifier.indent.php - libs/plugins/modifier.lower.php - libs/plugins/modifier.regex_replace.php - libs/plugins/modifier.replace.php - libs/plugins/modifier.spacify.php - libs/plugins/modifier.string_format.php - libs/plugins/modifier.strip_tags.php - libs/plugins/modifier.truncate.php - libs/plugins/modifier.upper.php - libs/plugins/modifier.wordwrap.php - libs/plugins/shared.escape_special_chars.php - libs/plugins/shared.make_timestamp.php: - Added author title to plugins where they don't exist. I put my name where I - was the original or co-author. If there needs to be more credit given - somewhere, speak up! - -2005-10-10 Monte Ohrt - - * NEWS - libs/plugins/function.html_image.php: - add path_prefix to html_image, fix incorrect secure_dir error when image - file is missing - -2005-10-04 Monte Ohrt - - * demo/templates/index.tpl: - remove popup example, update section var syntax - -2005-09-16 Nuno Lopes - - * docs/de/getting-started.xml: - more fixes - - * docs/de/getting-started.xml: - fix php bug #34520: broken example display (de only) - -2005-08-30 Monte Ohrt - - * libs/plugins/modifier.escape.php: - change default charset from utf8 to iso-8859-1 - - * NEWS - libs/plugins/modifier.escape.php: - add char_set param - -2005-08-17 Monte Ohrt - - * NEWS: - fix notice in debug security check - - * libs/Smarty.class.php: - fix typo - - * NEWS - libs/Smarty.class.php: - return valid reference in get_template_vars() when given var is - non-existant - -2005-08-12 Monte Ohrt - - * NEWS - libs/plugins/modifier.escape.php: - add "urlpathinfo" escape type to escape modifier. (apache does not like %2F - in the PATH_INFO) - -2005-08-05 Monte Ohrt - - * NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers - -2005-08-04 Monte Ohrt - - * NEWS: - update secure_dir notes - - * NEWS: - allow debug.tpl to work from arbitrary dir - -2005-08-04 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed proper escaping for literal strings passed to - Smarty_Compiler::_expand_quoted_text() by - Smarty_Compiler::_parse_var_props() - -2005-07-27 Messju Mohr - - * NEWS - libs/plugins/shared.make_timestamp.php: - removed ambiguity for numeric values passed to smarty_make_timestamp(). - numeric values are *always* treated as timestamps now. - -2005-07-18 Messju Mohr - - * libs/Config_File.class.php: - removed E_NOTICE from Config_File::get() - - * libs/Smarty.class.php: - removed E_NOTICE - -2005-07-10 Yannick Torres - - * docs/fr/getting-started.xml: - sync with EN - -2005-07-08 Monte Ohrt - - * NEWS: - correct username in NEWS file - - * NEWS - libs/plugins/function.html_select_date.php: - added passthru attribute feature to html_select_date - -2005-07-03 Yannick Torres - - * docs/fr/language-snippets.ent - docs/fr/preface.xml: - sync with EN - -2005-06-16 Messju Mohr - - * docs/de/preface.xml - docs/de/preface.xml: - sync with en - -2005-06-13 Monte Ohrt - - * NEWS - libs/plugins/modifier.truncate.php: - add "middle" parameter to truncate modifier - -2005-06-10 Messju Mohr - - * docs/de/livedocs.ent: - added german livedocs.ent - - * docs/de/language-snippets.ent - docs/de/preface.xml: - sync with en - -2005-06-09 Messju Mohr - - * docs/de/bookinfo.xml - docs/de/getting-started.xml - docs/de/getting-started.xml: - sync with en - -2005-05-24 Yannick Torres - - * docs/fr/getting-started.xml - docs/fr/language-snippets.ent: - sync with EN - -2005-05-20 Monte Ohrt - - * libs/plugins/function.html_radios.php: - fix allowable label id characters - -2005-05-06 Monte Ohrt - - * NEWS - libs/plugins/function.html_radios.php: - make form input label ids optional (monte) - -2005-05-02 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - add error message for empty if/elseif statements - -2005-04-15 Monte Ohrt - - * NEWS - libs/plugins/function.html_radios.php: - cast selected value to string for comparison in html_radios - -2005-04-07 Messju Mohr - - * NEWS - libs/plugins/function.html_select_date.php: - added xhtml compliance to html_select_date's year_as_text-feature - thanks to Mark West - - * NEWS - libs/plugins/function.html_select_date.php: - fixed handling of selected month html_select_date - thanks to Yuri Weseman for providing problem+solution - -2005-04-07 Nuno Lopes - - * docs/configure.in: - sync configure and file-entities scripts with phpdoc, for better - windows/cygwin support - -2005-03-31 Monte Ohrt - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers - - * (Smarty_2_6_9) - NEWS: - update NEWS file - -2005-03-30 Messju Mohr - - * libs/plugins/function.math.php: - re-enabled hex-constant. i hope in a sane way this time. - -2005-03-30 Monte Ohrt - - * libs/plugins/function.math.php: - fix function testing logic - - * libs/Smarty_Compiler.class.php: - disable variable func calls completely - - * libs/Smarty_Compiler.class.php: - disallow variable func calls when security is enabled - -2005-03-22 Messju Mohr - - * NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - bumped version-number to 2.6.9-dev - added headline of 2.6.6 release to NEWS file - -2005-03-21 Messju Mohr - - * (Smarty_2_6_8) - NEWS: - maybe even better this way. thanks monte :) - - * NEWS: - little more clear news-entry - -2005-03-21 Monte Ohrt - - * NEWS: - update NEWS with e-modifier removal - - * (Smarty_2_6_8) - libs/plugins/modifier.regex_replace.php: - remove e-modifier - -2005-03-19 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - objects don't get casted to arrays anymore in {foreach} - -2005-02-26 Messju Mohr - - * NEWS - libs/Smarty.class.php: - add "null" as a valid token for {if} when security is enabled - -2005-02-25 Monte Ohrt - - * NEWS - libs/plugins/function.mailto.php: - add javascript_charcode option to mailto - -2005-02-24 Monte Ohrt - - * NEWS: - update NEWS file - - * QUICK_START - libs/plugins/function.html_radios.php: - add label ids to html_radios - -2005-02-10 Monte Ohrt - - * QUICK_START: - update with directory structure - -2005-02-10 Nuno Lopes - - * docs/Makefile.in: - fix chm generation - -2005-02-10 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed too agressive {strip} around delimiters inside strip-blocks - -2005-02-10 Monte Ohrt - - * QUICK_START: - fix a couple errors - -2005-02-10 Nuno Lopes - - * docs/Makefile.in - docs/README: - commiting the new tools to make the CHM manual. - -2005-02-09 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed handling of strip-tags with non-default delimiters - -2005-02-04 Messju Mohr - - * libs/plugins/function.html_radios.php: - fixed syntax error. shame on me. - -2005-02-03 Monte Ohrt - - * QUICK_START: - fix example - - * QUICK_START: - initial commit - - * RELEASE_NOTES - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers in cvs - - * (Smarty_2_6_7) - NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - commit version numbers for new release - -2005-02-03 Messju Mohr - - * (Smarty_2_6_7) - libs/plugins/function.html_image.php: - fixed comment (thanks to CirTap) - -2005-02-01 Monte Ohrt - - * libs/plugins/function.html_image.php: - remove border tag - -2005-02-01 Messju Mohr - - * libs/Smarty.class.php: - fixed serialization of values containing newlines (like _cache_attrs) - in core_write_cache_file() - - bumped version to 2.6.6-dev-3 to indicate that the fileformat of cache - has changed - -2005-01-30 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed handling of hashed opening php-tags inside strip-blocks - (reported by titi_rafa) - -2005-01-30 Nuno Lopes - - * docs/fr/language-snippets.ent: - fix build - -2005-01-28 Messju Mohr - - * NEWS - libs/plugins/modifier.escape.php: - escape:url now uses the (RFC 1738 compliant) rawurlencode() - -2005-01-23 Messju Mohr - - * libs/Smarty.class.php: - replaced ? true : false and removed intermediate $_cookie_var in the - handling of the SMARTY_DEBUG-cookie - -2005-01-22 Yannick Torres - - * docs/fr/bookinfo.xml: - update EN-Revision tag - -2005-01-21 Monte Ohrt - - * README - RELEASE_NOTES - docs/de/bookinfo.xml - docs/fr/bookinfo.xml - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/plugins/function.cycle.php - libs/plugins/function.debug.php - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_image.php - libs/plugins/function.html_radios.php - libs/plugins/function.html_table.php - libs/plugins/function.mailto.php - libs/plugins/modifier.cat.php - libs/plugins/modifier.nl2br.php - libs/plugins/modifier.strip.php - libs/plugins/outputfilter.trimwhitespace.php: - de-spammify e-mails - - * README - RELEASE_NOTES - docs/de/bookinfo.xml - docs/fr/bookinfo.xml - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/plugins/function.cycle.php - libs/plugins/function.debug.php - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_image.php - libs/plugins/function.html_radios.php - libs/plugins/function.html_table.php - libs/plugins/function.mailto.php - libs/plugins/modifier.cat.php - libs/plugins/modifier.nl2br.php - libs/plugins/modifier.strip.php - libs/plugins/outputfilter.trimwhitespace.php: - update copyright notices, e-mail addresses - -2005-01-06 Messju Mohr - - * libs/Smarty_Compiler.class.php: - reduced the code that is generated on a {foreach}-block that has a - name. - - instead of pre-computing all foreach-properties (like first, last, - show) on each iteration, they are computed on demand as soon as - {$smarty.foreach.*}-variables are used. - - * NEWS - libs/Smarty_Compiler.class.php: - slight optimization in the compilation of $smarty.const.FOO . - - more complex consts like $smarty.const.$name still compile to - constant($this->_tpl_vars['name']) - -2005-01-05 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - make block functions and registered objects' block methods use a - local variable for block_content instead of $this->_block_content - - it's not necessary to have $smarty->_block_content accessible. - -2005-01-04 Yannick Torres - - * docs/fr/bookinfo.xml: - sync with EN - -2005-01-01 Messju Mohr - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - Happy new year from germany. - -2004-12-28 Monte Ohrt - - * libs/Smarty.class.php: - fix _read_file comments - -2004-12-26 Yannick Torres - - * docs/fr/getting-started.xml - docs/fr/preface.xml: - typo - - * docs/fr/language-defs.ent - docs/fr/language-snippets.ent - docs/fr/livedocs.ent: - sync with EN & typo - -2004-12-21 Yannick Torres - - * docs/fr/bookinfo.xml - docs/fr/getting-started.xml - docs/fr/translation.xml: - sync with EN - -2004-12-17 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed escaping of template-filenames in the generated code that loads - needed plugins - -2004-12-15 Monte Ohrt - - * NEWS - libs/plugins/function.popup.php: - fix invalid HTML issue with popup - -2004-12-06 boots - - * NEWS - libs/plugins/function.popup.php: - - fixed {popup} to properly handle inarray and function parameters and - added support for mouseoff and followmouse options - -2004-11-21 Mehdi Achour - - * docs/fr/livedocs.ent: - add livedocs specific entities files - -2004-11-16 Messju Mohr - - * libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_radios.php: - cleaned up typecasting - -2004-11-15 Messju Mohr - - * libs/plugins/function.html_options.php: - fixed semantically misleading check for $options (use isset() instead - of is_array() because it is always an array). - - thanks to albert almeida. - -2004-11-08 Messju Mohr - - * libs/Smarty_Compiler.class.php: - removed unused code - -2004-10-25 Mehdi Achour - - * docs/fr/bookinfo.xml - docs/fr/getting-started.xml: - sync with en - -2004-10-13 Monte Ohrt - - * NEWS: - update header - -2004-10-02 Messju Mohr - - * NEWS: - fixed nocache-handling with nested includes. there was a logical error - in the replacement of internal nocache-tags to dynamic content that - lead to false results with deeply nested includes or with - nocache-blocks inside nocache-blocks. - - many thanks to Lars Jankowfsky for providing big help on reproducing - and tracking down this bug! - -2004-10-01 Messju Mohr - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - - better header for compiled includes (more in line with compiled - templates) - - - reuse cache_serials if a file is compiled more than once in one - process (force_compile) - - - don't print nocache-delimiters wenn already inside - process_cached_inserts() - -2004-09-29 Messju Mohr - - * libs/Smarty.class.php: - switched from @count() to !empty() . this was pointed out a few times - by a few people with buggy error-handlers - - * libs/Smarty_Compiler.class.php: - added some property declarations - -2004-09-28 Messju Mohr - - * libs/Smarty.class.php: - bumped up version number to reflect incompatibility in tempfiles of - 'core' vs. 'internals' - -2004-09-24 Messju Mohr - - * libs/plugins/function.html_select_date.php: - fixed $start_year when no value for the year in $time is given. - -2004-09-21 Messju Mohr - - * libs/plugins/function.html_table.php: - fixed handling of "inner"-attribute - - * libs/Smarty_Compiler.class.php: - fixed handling of object derefence inside backticks - -2004-09-20 Monte Ohrt - - * libs/debug.tpl: - add tags - -2004-09-18 boots - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/plugins/function.config_load.php - libs/plugins/function.debug.php - libs/plugins/function.fetch.php - libs/plugins/function.html_image.php: - Fixed \\r\\n line endings mistakenly introduced in last commit. d'oh. - -2004-09-16 boots - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.assemble_plugin_filepath.php - libs/core/core.assign_smarty_interface.php - libs/core/core.create_dir_structure.php - libs/core/core.display_debug_console.php - libs/core/core.get_include_path.php - libs/core/core.get_microtime.php - libs/core/core.get_php_resource.php - libs/core/core.is_secure.php - libs/core/core.is_trusted.php - libs/core/core.load_plugins.php - libs/core/core.load_resource_plugin.php - libs/core/core.process_cached_inserts.php - libs/core/core.process_compiled_include.php - libs/core/core.read_cache_file.php - libs/core/core.rm_auto.php - libs/core/core.rmdir.php - libs/core/core.run_insert_handler.php - libs/core/core.smarty_include_php.php - libs/core/core.write_cache_file.php - libs/core/core.write_compiled_include.php - libs/core/core.write_compiled_resource.php - libs/core/core.write_file.php - libs/plugins/function.config_load.php - libs/plugins/function.debug.php - libs/plugins/function.fetch.php - libs/plugins/function.html_image.php: - Moved /libs/core to /libs/internals and created new constant, - SMARTY_CORE_DIR which defaults to SMARTY_DIR/internals. This should help - CVS and rsynch users butupgrades will require changes and this may affect - 3rd party plugins that use the /core dir. - -2004-09-15 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - moved $this->_num_const_regexp out of $this->_var_regexp and added it - to the places that affect $this->_var_regexp - - this should fix some problems parsing plugin-names endings with digits - -2004-09-14 Messju Mohr - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update files to 2.6.6-dev - -2004-09-13 Messju Mohr - - * NEWS: - fixed typo - -2004-09-13 Monte Ohrt - - * (Smarty_2_6_5) - NEWS: - update NEWS file with parsing correction note - -2004-09-11 Messju Mohr - - * libs/plugins/function.debug.php: - removed notice from {debug} - thanks to Peter Billen for pointing this one out! - -2004-09-11 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - fix more object calling syntax issues - -2004-09-10 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - added $smarty->security_settings['ALLOW_CONSTANTS'] - including test-cases for them - -2004-09-09 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - break down regex to digestable chunks, fix multiple param problem with - method calls, - add object method testing to unit_test cases - - * libs/Smarty_Compiler.class.php: - update code comment with more examples - - * libs/Smarty_Compiler.class.php: - allow objects in arbitrary param positions - - * libs/Smarty_Compiler.class.php: - fix object parameter regex, allow one level of object indirection - - * libs/Smarty_Compiler.class.php: - fix compile problem with numeric constants and math operator matching - -2004-09-07 Monte Ohrt - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update files to 2.6.5-dev - - * (Smarty_2_6_4) - NEWS: - update NEWS file with 2.6.4 header - -2004-08-31 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - fix preg_quote - - * libs/Smarty_Compiler.class.php: - fix math in object params, clean up some regex on the way, change - preg_ delimiters to ~ to avoid character clashes with ! and % - -2004-08-30 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - add $smarty.ldelim and $smarty.rdelim to smarty special var - -2004-08-29 Messju Mohr - - * NEWS - libs/core/core.write_file.php: - tempnam() seems to be borken on many installation. - - now we try tempnam first and if that fails we generate our own - temp-filename with uniqid() - -2004-08-23 Monte Ohrt - - * libs/plugins/modifier.capitalize.php: - dont use constant, use static var instead - - * libs/plugins/modifier.capitalize.php: - implement optional param to capitalize for digit behavior - - * libs/plugins/modifier.capitalize.php: - another commit to capitalize, taking special chars into account - -2004-08-23 Messju Mohr - - * libs/Smarty_Compiler.class.php: - cleaned up attribute-handling in Smarty_Compiler::_compile_foreach_start() - -2004-08-23 Monte Ohrt - - * NEWS - libs/plugins/function.html_select_date.php - libs/plugins/modifier.capitalize.php: - fix capitalize modifier to not rely on buggy ucwords() func - -2004-08-20 Monte Ohrt - - * libs/plugins/function.html_select_date.php: - update version - - * NEWS - libs/plugins/function.html_select_date.php: - make time param work with negative timestamps, force year range to include - given date unless explicitly set - -2004-08-19 Monte Ohrt - - * NEWS - libs/plugins/function.fetch.php: - fix bug with fetch, passing user/pass in url did not work - -2004-08-13 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed handling of {foreachelse} and {sectionelse} that got borked with - the latest commit (v 1.330) - -2004-08-12 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed occasional wrong error messages on mismatched tags when - {else}, {elseif}, {foreachelse} or {sectionelse} is involved - - thanks to Ooypunk for pointing me on this - -2004-08-12 Nuno Lopes - - * docs/.cvsignore - docs/Makefile.in - docs/configure.in: - enable russian PDF builds - -2004-07-30 Nuno Lopes - - * docs/configure.in: - typo - - * docs/Makefile.in - docs/README - docs/configure.in: - add make test_xml - this is usefull to detect XML problems - -2004-07-29 Nuno Lopes - - * docs/configure.in: - avoid warnings in head - - * docs/.cvsignore - docs/Makefile.in - docs/README - docs/configure.in: - build pdf files - just type make pdf - -2004-07-27 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed handling of methods arguments. - - thanks to Manfred Wischin for finding this one and providing the - conceptual fix. - -2004-07-23 Messju Mohr - - * libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_radios.php: - there was little flaw in smarty_function_html_radios() and - smarty_function_html_checkboxes(): - - the newly introduced assign-attribute was still added to the - tag-output as an extra-attribute. - - fixed. - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.load_plugins.php - libs/core/core.load_resource_plugin.php - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_image.php - libs/plugins/function.html_options.php - libs/plugins/function.html_radios.php - libs/plugins/function.html_select_date.php - libs/plugins/function.html_select_time.php - libs/plugins/modifier.date_format.php: - backed out renaming of _get_plugin_filepath() to get_plugin_filepath() - - we'll stick to _get_plugin_filepath() and look for a more viable - solution to be exposed to plugin-writers. - -2004-07-20 Messju Mohr - - * libs/Smarty_Compiler.class.php - libs/core/core.is_trusted.php - libs/plugins/compiler.assign.php: - Some fixes on PhpDocumentor comments. Thanks go to Ruben Vermeersch. - -2004-07-16 andreas halter - - * docs/de/bookinfo.xml - docs/de/getting-started.xml - docs/de/language-defs.ent - docs/de/language-snippets.ent - docs/de/preface.xml: - - updated for 2.6.3 - - updates for new build system - - added missing files - - corrections from users - - revcheck comments for all files - - big up to didou and nuno, brilliant work - - make test: ok - - make: ok - -2004-07-16 Nuno Lopes - - * docs/de/getting-started.xml: - fix the revision tracking tag - the revision number might not be right. just check it, please - -2004-07-16 andreas halter - - * docs/de/getting-started.xml: - - updated version (incl revcheck comment) for revcheck testing - -2004-07-14 Monte Ohrt - - * libs/Smarty.class.php: - replace " with ' where literal strings are quoted (ever so slight speedup) - -2004-07-12 Messju Mohr - - * libs/plugins/modifier.date_format.php: - changed call from $smarty->_get_plugin_filepath() to - $smarty->get_plugin_filepath() - - * libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_image.php - libs/plugins/function.html_options.php - libs/plugins/function.html_radios.php - libs/plugins/function.html_select_date.php - libs/plugins/function.html_select_time.php: - renamed calls to $smarty->_get_plugin_filepath() to - $smarty->get_plugin_filepath() - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.load_plugins.php - libs/core/core.load_resource_plugin.php: - renamed Smarty::_get_plugin_filepath() to Smarty::get_plugin_filepath() - - * NEWS - libs/Smarty.class.php - libs/core/core.write_compiled_include.php - libs/core/core.write_compiled_resource.php - libs/core/core.write_file.php: - removed touch() call. changing the timestamp of the compiled-template - to the source template's may be irritating for certain - source-code-caches. now a newly compiled template gets the current - time as timestamp. - -2004-07-02 gerald croes - - * docs/fr/getting-started.xml - docs/fr/preface.xml: - Fixed missing tags to be able to make doc again - - * docs/fr/preface.xml: - added the "is a good thing [TM]" as in en docs - - * docs/fr/getting-started.xml: - added ctags, updated screen => programm listing. - added the technical note founded on the en doc - -2004-07-02 Monte Ohrt - - * NEWS - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_radios.php - libs/plugins/function.mailto.php: - add assign attribute to html_checkboxes and html_radios - -2004-07-01 Messju Mohr - - * NEWS - libs/Smarty.class.php: - removed use of get_include_filepath() inside - get_auto_filename(). thanks go to c960657 - - * NEWS - libs/Smarty_Compiler.class.php: - enhanced error-reporting for {foreach} - - * NEWS - libs/Smarty_Compiler.class.php: - fixed handling of digits inside tagnames. this problem slipped into - the regexps by adding support for numeric contants next to string - constants as variables. - -2004-06-27 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed escaping of backslashes in Smarty_Compiler::_quote_replace() - -2004-06-23 Monte Ohrt - - * libs/plugins/modifier.date_format.php: - display date_format %e, %T and %D as expected for windows - -2004-06-17 Messju Mohr - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - changed version-number to 2.6.4-dev - -2004-06-16 Monte Ohrt - - * (Smarty_2_6_3) - NEWS: - update NEWS file with version number - -2004-06-09 Monte Ohrt - - * NEWS - libs/plugins/modifier.escape.php: - added escapement of ' - - * docs/fr/translation.xml: - Add other translators. - -2004-06-08 Messju Mohr - - * libs/Smarty.class.php: - made the correct value of "use_sub_dirs" available to the compiler. - (not worth a NEWS-entry, i think) - -2004-06-01 Messju Mohr - - * libs/plugins/function.fetch.php: - fix: proper initialistaion of $content. - thanks to Dmitry Koteroff for pointing this out. - -2004-05-29 Mehdi Achour - - * docs/fr/translation.xml: - oups :) - - * docs/fr/translation.xml: - added translation file - -2004-05-28 Nuno Lopes - - * docs/Makefile.in: - clean also file-entities.php - -2004-05-28 Messju Mohr - - * NEWS - libs/plugins/function.mailto.php: - added obfuscation of protocol-string in {mailto} when using - hex-encoding (thanks to bharat) - -2004-05-26 Messju Mohr - - * NEWS - libs/Smarty.class.php: - enhanced auto-generated filenames for templates_c and cache - - incremented Smarty::_version because the tempfiles' structure changed - a little - -2004-05-23 Mehdi Achour - - * docs/fr/bookinfo.xml - docs/fr/getting-started.xml - docs/fr/preface.xml: - WS and added revcheck - -2004-05-21 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed typo in error-messages - - * docs/de/language-snippets.ent - docs/fr/language-snippets.ent: - added empty language-snippets.ent to fix "make web" - -2004-05-12 Monte Ohrt - - * NEWS - libs/plugins/modifier.escape.php: - add 'nonstd' escape modifier - -2004-05-07 Monte Ohrt - - * NEWS - libs/plugins/block.textformat.php: - update textformat to not output wrap chars after last para - -2004-05-06 Messju Mohr - - * NEWS - libs/core/core.write_file.php: - use tempnam() instead of unqid() to create better temporary files in - smarty_core_write_file(). - - (thanks to xces for finding this race-condition and his work on - fixing it) - -2004-05-04 Messju Mohr - - * libs/Smarty.class.php: - added check if for file_exists() to Smarty::_read_file() - -2004-04-30 Monte Ohrt - - * NEWS - libs/plugins/modifier.escape.php: - add 'mail' attribute to escape modifier - -2004-04-20 Mehdi Achour - - * docs/manual.xml.in: - added the language-snippets.ent file and started using entities for notes - under en/programmers/api-functions - -2004-04-18 Mehdi Achour - - * docs/de/getting-started.xml - docs/fr/getting-started.xml: - new global entity for zend and php-accelerator - - * docs/fr/bookinfo.xml - docs/fr/getting-started.xml - docs/fr/preface.xml: - added myself as translator and added vim comments and xml tags - -2004-04-16 Messju Mohr - - * NEWS: - added entry for numeric constants - - * libs/Smarty_Compiler.class.php: - removed unused 2nd param in call to _parse_var() - - * libs/Smarty_Compiler.class.php: - added explanation for $this->_num_const_regexp - - * NEWS - libs/plugins/modifier.escape.php: - added escape type "decentity" to smarty_modifier_escape() - - * libs/Smarty_Compiler.class.php: - enabled numerical constants be parsed as statements. - (like {10} or {10|@range:12} ) - - * libs/Smarty_Compiler.class.php: - removed unused $smarty_compiler->_dvar_num_var_regexp - - * libs/Smarty.class.php: - reverted Stuff - - * libs/debug.tpl - libs/core/core.assemble_plugin_filepath.php - libs/core/core.read_cache_file.php - libs/core/core.write_file.php - libs/plugins/function.eval.php - libs/plugins/function.popup.php - libs/plugins/modifier.escape.php - libs/plugins/shared.make_timestamp.php: - reverted stuff - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/debug.tpl - libs/core/core.assemble_plugin_filepath.php - libs/core/core.read_cache_file.php - libs/core/core.write_file.php - libs/plugins/function.eval.php - libs/plugins/function.popup.php - libs/plugins/modifier.escape.php - libs/plugins/shared.make_timestamp.php: - Smarty_Compiler.class.php - -2004-04-15 Messju Mohr - - * NEWS - libs/core/core.write_compiled_include.php: - made smarty_core_write_compiled_include() php5-aware - - if someone knows a better way than patching the source with the - tokenizer, please stand up! - -2004-04-14 Nuno Lopes - - * docs/Makefile.in: - remove file-entities.ent also - - * docs/.cvsignore - docs/Makefile.in - docs/README: - allow make revcheck - -2004-04-13 Nuno Lopes - - * docs/configure.in: - do not need inipath - -2004-04-13 Mehdi Achour - - * docs/TODO: - done - - * docs/configure.in - docs/manual.xml.in: - now the files entites are generated dynamically - -2004-04-12 Messju Mohr - - * NEWS - libs/Config_File.class.php - libs/Smarty.class.php: - removed unused functionality to load a subset of lines from a file in - Smarty::_read_file() - - additionally removed a warning that is emitted since php-4.3.5 when - fread() is called on an empty file (with filesize()==0). thanks to - Andreas Streichardt who pointed this out. - - * NEWS - libs/core/core.is_secure.php: - smarty_core_is_secure() only checks the file for readability now, not - the directory where is in. - - * libs/Smarty.class.php: - removed unused security_setting 'ALLOW_CONSTANTS' - -2004-04-07 Messju Mohr - - * libs/plugins/function.assign_debug_info.php - libs/plugins/function.cycle.php - libs/plugins/function.mailto.php: - removed trailing spaces - - * libs/Smarty.class.php: - removed unused $smarty->_error_msg - -2004-04-04 Nuno Lopes - - * docs/configure.in: - fixing my crap - put build_date back on-line - -2004-04-03 Nuno Lopes - - * docs/Makefile.in - docs/configure.in - docs/manual.xml.in: - trying to fix ru problems - -2004-03-30 Monte Ohrt - - * libs/core/core.display_debug_console.php: - fix problem with debug_tpl path and security - - * NEWS - libs/core/core.display_debug_console.php: - fix problem displaying debug console when $default_resource_type is not - "file:" - -2004-03-29 Mehdi Achour - - * docs/TODO: - and finally, add a TODO here - - * docs/de/bookinfo.xml - docs/de/manual.sgml - docs/fr/bookinfo.xml - docs/fr/manual.xml: - translate bookinfo.xml and put back the translators - -2004-03-28 Mehdi Achour - - * docs/manual.xml.in: - add global.ent and define some general entities - - * docs/de/bookinfo.xml - docs/de/getting-started.xml - docs/de/language-defs.ent - docs/de/preface.xml: - add new de files - - * docs/de/appendixes.sgml - docs/de/designers.sgml - docs/de/getting-started.sgml - docs/de/html-common.dsl - docs/de/preface.sgml - docs/de/programmers.sgml: - drop old de files - - * docs/fr/bookinfo.xml - docs/fr/getting-started.xml - docs/fr/manual.xml - docs/fr/preface.xml: - add ommited files - - * docs/fr/language-defs.ent: - split the french dir - - * docs/fr/appendixes.sgml - docs/fr/designers.sgml - docs/fr/getting-started.sgml - docs/fr/html-common.dsl - docs/fr/manual.sgml - docs/fr/preface.sgml - docs/fr/programmers.sgml: - drop old french files - - * docs/manual.xml.in: - let's put the new build system - -2004-03-26 Mehdi Achour - - * docs/de/common.dsl - docs/de/html.dsl - docs/fr/common.dsl - docs/fr/html.dsl - docs/fr/php.dsl: - not needed anymore - -2004-03-24 Nuno Lopes - - * docs/Makefile.in: - updated stylesheets - highlight PHP automatically - - * docs/Makefile.in - docs/html.dsl: - remove unneeded file - -2004-03-23 Nuno Lopes - - * docs/version.ent.in: - remove this also - - * docs/getting-started.sgml: - remove this one too - - * docs/appendixes.sgml - docs/common.dsl - docs/designers.sgml - docs/html-common.dsl - docs/manual.sgml - docs/php.dsl - docs/preface.sgml - docs/programmers.sgml: - removing uneeded files - - * docs/.cvsignore: - commiting missing files for docbook - - * docs/.cvsignore - docs/Makefile.in - docs/configure.in - docs/manual.xml.in: - bundling docbook 4 - now make and make web works - -2004-03-23 Messju Mohr - - * NEWS - libs/plugins/function.config_load.php: - unrolled call to the is_compiled()-check to be able to supply the - correct resource_base_path for config_load. this avoids errors when - config-files are accessed where security is enabled. - - thanks to shuther for pointing out this bug. - -2004-03-20 Nuno Lopes - - * docs/manual.xml.in: - fix build date - -2004-03-18 Messju Mohr - - * libs/core/core.is_secure.php: - removed merging of $smarty->template_dir into $smarty->secure_dir - - the resource_base_path is considerd secure instead. this change should - have absolutely no impact on smarty's security's behaviour - -2004-03-18 Nuno Lopes - - * docs/configure.in: - correcting non-existent var - - * docs/.cvsignore - docs/Makefile.in - docs/configure.in - docs/manual.xml.in - docs/version.ent.in: - generate build date - - * docs/.cvsignore - docs/Makefile.in - docs/README - docs/configure.in - docs/manual.xml.in: - new build/test system - -2004-03-18 Messju Mohr - - * libs/Smarty.class.php: - moved setting of a default resource_base_path from - Smarty::_parse_resource_name() to Smarty::_fetch_resource_info() - - this shouldn't affect anything, since all calls to - _parse_resource_name() that are not done from within - _fetch_resource_info() all pass their own resource_base_path - -2004-03-17 Messju Mohr - - * NEWS - libs/Smarty.class.php: - removed '.' from the list of default resource_base_paths in - _parse_resource_name() - - this should only affect _parse_resource_name() for templates, not for - php-resources and not for config_files. the latter pass two their own - resource_base_path. - -2004-03-16 Mehdi Achour - - * docs/appendixes.sgml - docs/getting-started.sgml - docs/preface.sgml: - adding editor comments - - * docs/appendixes.sgml - docs/getting-started.sgml: - cleaning words spacing, killing tabulations, using roles for - programlisting.. - -2004-03-15 Messju Mohr - - * libs/Smarty.class.php: - simplified Smarty::clear_all_cache(); - -2004-03-12 boots - - * docs/programmers.sgml: - Updated is_cached prototype to indicate proper return type. (thanks to - Geoffrey Hoffman) - -2004-03-11 Messju Mohr - - * libs/core/core.assemble_plugin_filepath.php: - fixed little bug that prevented plugins filepaths that are found in - php's include_path (and not in one of the plugins_dirs) from being - cached in the internal plugins-filepath-cache - -2004-03-01 Monte Ohrt - - * docs/designers.sgml: - update include_php docs:wq - :q - - * docs/appendixes.sgml: - update componentized template example to something useful - -2004-02-24 Messju Mohr - - * NEWS - libs/Smarty.class.php: - _parse_resource_name() returned true on non-existant absolute - paths. This caused a warning on _fetch_resource_info() when used in - conjunction with template_exists(). It should be fixed now without - negative effects. - -2004-02-24 Monte Ohrt - - * docs/designers.sgml: - one more typo - - * docs/designers.sgml: - fix typo - -2004-02-24 Messju Mohr - - * NEWS - libs/core/core.is_secure.php: - smarty_resource_*_secure got &$smarty passed errornously as 3rd - parameter and not as 2nd. this is fixed. - -2004-02-23 Messju Mohr - - * NEWS: - fix handling of integer values like width and delay im - smarty_function_popup() - - * libs/plugins/function.popup.php: - fixed handling of integer-attributes - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - updated version to 2.6.3-dev - -2004-02-22 Messju Mohr - - * libs/plugins/function.html_select_date.php: - removed notice on html_select_date with the month_empty-attribute - - * libs/plugins/function.mailto.php: - removed 2 notices of undefined vars (thanks Cit) - -2004-02-17 Monte Ohrt - - * NEWS: - add header - - * (Smarty_2_6_2) - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - change some info in headers, remove fluff - -2004-02-13 Messju Mohr - - * NEWS - libs/plugins/function.html_select_date.php: - correctly handle partially empty dates (like "2004--" or "-12-"). - - * docs/programmers.sgml: - learned something about and sgml and applied this to the - use.sub.dirs-section :) - - * docs/designers.sgml: - changed attribute-name "checked" to "selected" in the docs for - html_radios and html_checkboxes. "checked" is deprecated for ages - AFAIK and selected is recommended for consistency with {html_options} - - * docs/programmers.sgml: - added note about use_sub_dirs and Smarty-2.6.2 . - fixed markup for section about clear_compiled_tpl() . - -2004-02-12 Messju Mohr - - * NEWS - libs/Config_File.class.php: - YES and NO should not be booleanized inside triple-quotes in a - config-file. this behaviour changed by accident in 2.6.1 and is now - reverted to pre-2.6.1 behaviour - -2004-02-10 Messju Mohr - - * NEWS - libs/Config_File.class.php: - fixed slurping of a the next line following a triple-quoted value in a - config-file - -2004-02-07 Messju Mohr - - * libs/Config_File.class.php: - avoid @-operator for handling empty lines in Config_File.class.php - - * libs/Smarty_Compiler.class.php: - removed two notices from Smarty_Compiler::_parse_is_expr() - (thanks shuther!) - - * NEWS - libs/Smarty.class.php: - changed default for use_sub_dirs to false - - * libs/plugins/function.mailto.php: - removed notice of undefined variable. (thanks shuther!) - -2004-01-29 Messju Mohr - - * libs/Smarty_Compiler.class.php: - added file and line-number-information to error-messages regarding - assigned objects an an error messages regarding modifiers with - security. - -2004-01-27 Messju Mohr - - * libs/Smarty_Compiler.class.php: - removed use of temporary var $_params in compiled code of block-plugins - - * NEWS - libs/plugins/function.popup.php: - fixed quoting of values in smarty_function_popup() - -2004-01-25 Messju Mohr - - * docs/programmers.sgml: - documented parameters of Smarty::clear_compiled_tpl() - - * libs/Smarty_Compiler.class.php: - Smarty_Compiler::_syntax_error() uses Smarty::_trigger_fatal_error() now - instead of the trigger_error()-function - - * libs/Smarty.class.php: - Smarty::_trigger_fatal_error() uses Smarty::trigger_error() now, - instead of the native trigger_error()-function - - * libs/Smarty_Compiler.class.php: - unrecognized custom-functions trigger an error at compile now, not at - display-time. - -2004-01-23 Monte Ohrt - - * docs/getting-started.sgml: - reword a paragraph - -2004-01-22 Messju Mohr - - * libs/plugins/function.config_load.php: - removed emission of unnecessary notices for unavailable config-files - in config_load() - - * NEWS - libs/Config_File.class.php: - fixed handling of hidden sections in Config_File - -2004-01-21 Messju Mohr - - * NEWS - libs/plugins/function.config_load.php: - added handling of resources for {config_load} - -2004-01-19 Messju Mohr - - * NEWS - libs/plugins/function.html_table.php: - fixed bug when using arrays with tr_attr and td_attr in {html_table} - -2004-01-16 Monte Ohrt - - * NEWS: - add unit testing - - * NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers, add initial unit test directory - - * (Smarty_2_6_1) - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers for 2.6.1 release - -2004-01-16 Messju Mohr - - * (Smarty_2_6_1) - NEWS - docs/programmers.sgml - libs/Smarty.class.php: - renamed $smarty->tpl_rror_reporting to $smarty->error_reporting - "tpl_" is a bit redundant here (it's a TemPLate-engine overall :) - -2004-01-15 Messju Mohr - - * libs/plugins/function.html_image.php: - forgot to remove duplicate is_secure()-check - - * NEWS - libs/plugins/function.html_image.php: - fix: $smarty->security is now correctly handled - - minor optimizations: - core/core.is_secure.php is only included when needed - $dpi_default is only determined when needed - -2004-01-14 Messju Mohr - - * docs/appendixes.sgml - docs/programmers.sgml: - removed suggestions to use extract() from the manual - - * docs/designers.sgml: - fixed typo - -2004-01-12 Messju Mohr - - * docs/designers.sgml: - mention SCRIPT_NAME below {$smarty} reserved variable because it got - lost in the docs for $smarty->global_assign - - * docs/designers.sgml: - added docs for {$smarty.version} special variable - - * docs/programmers.sgml: - removed docs for $global_assign - - * docs/programmers.sgml: - added docs for tpl_error_reporting - - * docs/designers.sgml: - added docs for year_empty-, month_empty- and day_emtpy-attributes of - html_select_date. maybe an example is needed to better explain empty - values in YYY-MM-DD. - -2004-01-10 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed handling of {php}-tags - -2004-01-10 Monte Ohrt - - * docs/designers.sgml: - fix html_checkboxes examples - -2004-01-08 Messju Mohr - - * NEWS - libs/core/core.assemble_plugin_filepath.php: - added caching of requested paths to smarty_core_assemble_plugin_filepath() - - * NEWS: - fix handling of comments inside {php}- and {literal}-blocks - - * libs/Smarty_Compiler.class.php: - fixed handling of comments inside {php} and {literal} - -2004-01-06 Messju Mohr - - * NEWS - libs/Config_File.class.php: - fixed bug handling triple-quotes in config-files - - * libs/Config_File.class.php: - fixed bugs with triple-quotes in config-files - thanks BRDude for finding them testing! - -2004-01-02 Messju Mohr - - * libs/Smarty.class.php: - removed unnecessary param in call to _fetch_resource_info() - -2003-12-30 Messju Mohr - - * libs/Smarty.class.php: - oops! removed tabs. - -2003-12-27 Messju Mohr - - * NEWS - libs/Smarty.class.php: - made $SCRIPT_NAME available again - changes default for request_use_auto_global to prefer autoglobals - - * libs/Smarty.class.php: - removed tabs and trailing spaces - - * NEWS - libs/Smarty_Compiler.class.php: - readded default_modifiers. who removed that? - -2003-12-23 Monte Ohrt - - * NEWS: - add portuguese docs - -2003-12-22 Monte Ohrt - - * docs/designers.sgml: - fix counter example - -2003-12-19 Monte Ohrt - - * libs/Smarty.class.php: - add debug console persistance feature - -2003-12-19 Messju Mohr - - * libs/plugins/block.textformat.php - libs/plugins/function.html_table.php - libs/plugins/function.popup.php: - removed extract(). enhanced parameter parsing. - - * libs/plugins/function.counter.php - libs/plugins/function.fetch.php - libs/plugins/function.popup_init.php - libs/plugins/modifier.capitalize.php - libs/plugins/modifier.cat.php - libs/plugins/modifier.date_format.php - libs/plugins/modifier.debug_print_var.php - libs/plugins/modifier.escape.php - libs/plugins/modifier.indent.php - libs/plugins/modifier.lower.php - libs/plugins/modifier.nl2br.php - libs/plugins/modifier.strip.php - libs/plugins/modifier.upper.php - libs/plugins/modifier.wordwrap.php - libs/plugins/outputfilter.trimwhitespace.php - libs/plugins/shared.escape_special_chars.php: - removed tabs. fixed indentiation. - - * libs/plugins/modifier.truncate.php: - removed tabs - - * libs/plugins/function.counter.php - libs/plugins/function.cycle.php: - removed extract() from parameter-parsing - -2003-12-17 Messju Mohr - - * libs/plugins/function.html_select_date.php: - fix plugin-name in error message - - * libs/plugins/function.html_select_time.php: - remove extract-call from {html_select_time} - - * NEWS - libs/plugins/function.html_select_date.php: - allow single-digit days and months without smarty_make_timestamp() - this makes dates like "1968-11-6" work correctly since no strtotime() - is involved - - add warning when unknown parameter is passed - -2003-12-16 Messju Mohr - - * NEWS - libs/Smarty.class.php: - fix headers sent erroneously with cache_modified_check and fetch() - -2003-12-12 Monte Ohrt - - * libs/plugins/function.config_load.php: - move set_path() call below the conditional bracket - - * NEWS - libs/plugins/function.config_load.php: - fix config_load filepath bug - -2003-12-12 boots - - * docs/designers.sgml: - Updated language.function.if with additional annotation and to fix error - that broke docs build process - -2003-12-11 Messju Mohr - - * libs/Smarty_Compiler.class.php: - little optimization for "is odd" and "is even" - -2003-12-11 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - fix 'is even by' and 'is odd by' logic - -2003-12-11 Messju Mohr - - * docs/designers.sgml: - update example-output of {mailto} - - * libs/plugins/function.mailto.php: - removed extract-call -> cleaner parameter-handling - - * libs/plugins/function.mailto.php: - fixed indentiation - - * TODO: - removed two done topics - -2003-12-11 boots - - * docs/designers.sgml: - Updated language.function.if to describe qualifiers (thanks andre) - -2003-12-10 Messju Mohr - - * NEWS - libs/plugins/function.html_select_date.php: - added day_empty, month_empty, year_empty and all_empty attributes - to pass an undefined date use {html_select_date time="--" ...} - - * libs/plugins/function.html_select_date.php: - removed extract()-call - - * libs/plugins/function.html_select_date.php: - fixed indetiation - -2003-12-10 boots - - * NEWS - docs/designers.sgml: - Added table to language.function.if to describe qualifiers - -2003-12-09 Messju Mohr - - * libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_options.php: - strict comparason didn't work in all cases. use type-casting now. - - * NEWS - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_options.php: - fix bug when comparing array-keys to "selected" in html_options and - html_checkboxes - - in_array() uses "strict" comparason now. - - * libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_options.php - libs/plugins/function.html_radios.php: - removed tabs, fixed indentiation - -2003-12-08 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - add better checks for correctly nested tags when compiling - -2003-12-04 Messju Mohr - - * libs/Smarty.class.php - libs/plugins/function.html_image.php: - fix: check $smarty->request_use_auto_globals at the last occurences of - HTTP_*_VARS - -2003-12-03 Messju Mohr - - * NEWS - libs/Smarty.class.php: - remove $global_assign property from Smarty and $global_assign-handling - from the constructor. the only visible change is, that $SCRIPT_NAME is - not available in the tempates anymore. $smarty.server.SCRIPT_NAME has - to be used from now. - -2003-12-03 boots - - * docs/designers.sgml: - Fixed example for count_characters - -2003-12-01 boots - - * docs/designers.sgml: - Added section "Escaping Smarty Parsing" under Basic Syntax. - -2003-12-01 Messju Mohr - - * libs/core/core.create_dir_structure.php: - thought again about my latest commit and backed it out. - - * libs/core/core.create_dir_structure.php: - fix root-dir-handling on windows filepath - -2003-11-29 boots - - * libs/plugins/function.config_load.php: - really make the fixes the last patch was supposed to do - - * libs/plugins/function.config_load.php: - removed tabs and killed trailing white-space - - * libs/plugins/function.config_load.php: - changed $smarty->_syntax_error to $smarty->trigger_error - -2003-11-27 Messju Mohr - - * NEWS - libs/plugins/modifier.debug_print_var.php: - remove warning in debug_print_var on php-resources - - * README: - fix version number - -2003-11-26 Messju Mohr - - * libs/Smarty_Compiler.class.php: - raise max_level for $smarty.config... to 3 to allow arrays of config-vars - -2003-11-25 Messju Mohr - - * libs/Smarty.class.php: - changed version-tag to indicate incompatibility to older compiled - templates - -2003-11-24 Messju Mohr - - * NEWS - libs/plugins/compiler.assign.php - libs/plugins/function.assign.php: - move function.assign.php to compiler.assign.php - - * libs/core/core.get_include_path.php: - silence occasional warnings of open_basedir- and - safe_mode-restrictions in core.get_include_path.php - -2003-11-23 Messju Mohr - - * libs/core/core.write_compiled_resource.php - libs/core/core.write_file.php: - avoid touch()-ing of recently unlinked files by touch()-ing the - tempfile before rename instead of touch()-ing the resulting file after - rename. - - * NEWS - libs/Smarty.class.php: - add property $tpl_error_reporting - -2003-11-22 Messju Mohr - - * libs/plugins/function.assign.php: - remove use of extract() in smarty_function_assign() - - * NEWS - libs/Smarty.class.php: - remove property $undefined. "null" is used literally instead - -2003-11-21 Messju Mohr - - * libs/Smarty_Compiler.class.php: - remove two E_NOTICES - -2003-11-20 Messju Mohr - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - change version to 2.6.1-dev - -2003-11-19 Monte Ohrt - - * (Smarty_2_6_0) - NEWS: - update NEWS file - - * (Smarty_2_6_0) - docs/designers.sgml - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - change version numbers to 2.6.0 - -2003-11-19 Messju Mohr - - * docs/designers.sgml - docs/de/designers.sgml - docs/fr/designers.sgml: - fix examples of escape-modifier (in docs, docs/de and docs/fr !) - -2003-11-18 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - move Smarty::quote_replace() to Smarty_Compiler::_quote_replace() - - * libs/Smarty.class.php: - removed extract-calls from _include()- and _eval()-wrappers - variables passed with {include_php} have to accessed as members of $params - now - -2003-11-17 Messju Mohr - - * docs/designers.sgml: - fixed typo - -2003-11-13 Messju Mohr - - * libs/Config_File.class.php: - fix occasional notice - -2003-11-13 andreas halter - - * docs/de/designers.sgml: - - added cat modifier, thanks messju :-) - -2003-11-13 Monte Ohrt - - * (Smarty_2_6_0-RC3) - NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - commit RC3 tags - -2003-11-13 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fix handling of $var.key inside [] - - * libs/Smarty.class.php: - fix unnecessary loading of core.load_resource_plugin.php - - * (Smarty_2_6_0-RC3) - docs/fr/designers.sgml: - fixed example of html_table - -2003-11-11 Messju Mohr - - * NEWS - libs/core/core.process_cached_inserts.php: - fix handling of assign inside {insert}-tags - -2003-11-06 Messju Mohr - - * libs/core/core.read_cache_file.php: - added $exp_time-parameter - - * docs/programmers.sgml: - added $exp_time to cache_handler_func-example - - * libs/Smarty.class.php - libs/core/core.write_cache_file.php: - added $exp_time-parameter of clear_cache() and clear_all_cache() to - cache_handler_func. - -2003-11-05 Messju Mohr - - * NEWS - libs/Config_File.class.php: - fix handling if [...] inside triple-quotes in config-files - -2003-11-04 Messju Mohr - - * libs/Smarty.class.php: - fixed little bug in _parse_resource_name() (jlgunter, messju) - -2003-11-03 andreas halter - - * docs/designers.sgml - docs/de/designers.sgml - docs/fr/designers.sgml: - - changed Smarty.php.class occurences to Smarty.class.php - -2003-10-29 boots - - * docs/appendixes.sgml - docs/designers.sgml - docs/manual.sgml - docs/programmers.sgml - docs/de/appendixes.sgml - docs/de/designers.sgml - docs/de/programmers.sgml - docs/fr/appendixes.sgml - docs/fr/designers.sgml - docs/fr/getting-started.sgml - docs/fr/manual.sgml - docs/fr/preface.sgml - docs/fr/programmers.sgml: - Fixes to documentation syntax so that all content can be processed used - xsltproc docbook-xsl tools. In particular, fixes unescaped entities, - broken tags, unquoted attributes. - -2003-10-27 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fix handling of simple-math-operators inside modifiers - -2003-10-25 Messju Mohr - - * libs/Smarty_Compiler.class.php: - removed unused property _output_type - removed unused param $tag_attrs of _parse_var_props() - cleaned up alignment of class-properties - -2003-10-23 Messju Mohr - - * libs/Smarty_Compiler.class.php: - removed notice in php-tag handling in Smarty_Compiler::_compile_file() - - * libs/Smarty_Compiler.class.php: - removed two occasional E_NOTICES from - Smarty_Compiler::_compile_include_php_tag() - - * NEWS - libs/core/core.create_dir_structure.php: - fix handling of trailing-slashes in open_basedir in - smarty_core_create_dir_structure() - -2003-10-20 Messju Mohr - - * libs/Smarty_Compiler.class.php: - elements inside `` are bracketed now inside the compiled-tpl. this - fixes some issues with simple-math inside backticks. - -2003-10-16 Monte Ohrt - - * docs/designers.sgml: - update overlib docs, no working examples - -2003-10-12 Messju Mohr - - * libs/Smarty.class.php - libs/core/core.is_secure.php: - move check for template_dir in secure_dir-array into core.is_secure.php - - this makes template_exists() work correctly with security=true even if - template_dir is not inside the secure_dir-array - -2003-10-11 Messju Mohr - - * libs/plugins/shared.make_timestamp.php: - tightened check for YYYYMMDDHHMMSS-format. thanks konstantin for - pointing this out. - - removed a few tabs. - - * libs/Smarty_Compiler.class.php: - fix precedence of simple-math-operators before modifiers. - thanks dominik! - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.assemble_plugin_filepath.php - libs/core/core.assign_smarty_interface.php - libs/core/core.create_dir_structure.php - libs/core/core.display_debug_console.php - libs/core/core.get_include_path.php - libs/core/core.get_microtime.php - libs/core/core.get_php_resource.php - libs/core/core.is_secure.php - libs/core/core.is_trusted.php - libs/core/core.load_plugins.php - libs/core/core.load_resource_plugin.php - libs/core/core.process_cached_inserts.php - libs/core/core.process_compiled_include.php - libs/core/core.read_cache_file.php - libs/core/core.rm_auto.php - libs/core/core.rmdir.php - libs/core/core.run_insert_handler.php - libs/core/core.smarty_include_php.php - libs/core/core.write_compiled_include.php - libs/core/core.write_compiled_resource.php - libs/core/core.write_file.php: - removed tabs from the main and the core/*.php files - -2003-10-08 Monte Ohrt - - * (Smarty_2_6_0-RC2) - NEWS - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - update version numbers to RC2 - -2003-09-18 Messju Mohr - - * docs/designers.sgml - docs/de/designers.sgml: - fixed description of cycle's advance-attribute - -2003-09-16 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - apply modifiers only once to section-loop and foreach-from attributes - -2003-09-15 Messju Mohr - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.write_cache_paths_file.php: - backed out _smarty_cached_paths-file-handling - - * libs/Smarty.class.php - libs/core/core.rm_auto.php: - fixed clear_compiled_tpl with explicit $tpl_file given - fixed return value of smarty_core_rm_auto() + Smarty::_unlink() - - * libs/Smarty.class.php: - little fix in _get_auto_filename() - -2003-09-14 Messju Mohr - - * libs/Smarty.class.php - libs/core/core.assemble_auto_filename.php: - removed auto-filenames from path-cache. merged assemble_auto_filename - back into Smarty::_get_auto_filename() - -2003-09-12 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed quoting of modifier parameters - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.get_php_resource.php - libs/core/core.load_plugins.php - libs/core/core.load_resource_plugin.php: - remove Smarty::_plugin_implementation_exists() - use php's native - is_callable() - -2003-09-11 Messju Mohr - - * libs/Smarty.class.php: - silenced two notices acces HTTP_SERVER_VARS - -2003-09-10 andreas halter - - * docs/de/designers.sgml - docs/de/getting-started.sgml - docs/de/programmers.sgml: - - minor fixes (2 rep), slight wording changes - - jade transform problem fixed - -2003-09-08 andreas halter - - * docs/de/designers.sgml - docs/de/getting-started.sgml - docs/de/manual.sgml - docs/de/preface.sgml - docs/de/programmers.sgml: - all updated for 2.6.0 release, translated everything from 2_5_0 branch to - 20030908 - -2003-09-04 Messju Mohr - - * libs/Smarty.class.php: - proper checking for files in _fetch_resource_info() - -2003-09-02 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - ignore {strip}/{/strip) inside {strip}-blocks - - * libs/plugins/function.mailto.php: - fixed 2 notices in smarty_function_mailto() - -2003-09-01 Messju Mohr - - * libs/Smarty.class.php: - re-include cache_paths on multiple calls to fetch() to avoid - inconsistencies - at multiple calls to fetch() in one script - - * libs/Smarty_Compiler.class.php: - fixed handling of \r in {strip} - renamed $_trailing_lf to $_additional_newline - - * libs/Smarty_Compiler.class.php: - the weekly fix for {strip} :) - - * docs/designers.sgml: - fixed example for simple math. - -2003-08-29 Messju Mohr - - * libs/core/core.assign_smarty_interface.php - libs/core/core.display_debug_console.php - libs/plugins/function.assign.php - libs/plugins/function.html_options.php - libs/plugins/function.html_table.php: - fixed PHPDocumentor-comments (thanks Konstantin) - - * libs/core/core.rmdir.php: - made rmdir a bit more optimistic. especially it now removes - directories correctly that where created accidently by "safe_mode=On - && $use_sub_dirs=true" - -2003-08-27 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed removal of leading/trailing newlines in {strip}-blocks - -2003-08-25 Messju Mohr - - * INSTALL: - added note emphasizing the introduction of "libs/" with 2.5.0 - - * NEWS - libs/plugins/modifier.escape.php: - fixed proper escaping of " and ' with escape:javascript - -2003-08-22 Messju Mohr - - * NEWS - libs/core/core.assemble_plugin_filepath.php: - fixed bug in traversal of $smarty->plugins_dir-array in - smarty_core_assemble_plugin_filepath(). the first matching plugin in - the path should be used, not the last one. - - * libs/core/core.read_cache_file.php: - discard $_cache_info when the cache should be regenerated - -2003-08-20 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php - libs/plugins/block.strip.php: - reverted {strip} from a block-plugin back into the compiler - - * docs/programmers.sgml: - fixed examples for register_function() and register_block() - - * libs/Smarty.class.php: - made template_exists() quiet when the template does not exist (thanks - to konstatin for pointing this out) - -2003-08-18 Monte Ohrt - - * docs/getting-started.sgml: - fix example title - - * docs/README - docs/getting-started.sgml: - change installation wording confusion - -2003-08-18 Messju Mohr - - * libs/Smarty.class.php - libs/core/core.read_cache_file.php: - fixed unnecessary load of source in template_exists() and the - compile-check of smarty_core_read_cache_file() - - * libs/Smarty_Compiler.class.php: - allow section-, array- and object-dereference in $smarty-references - -2003-08-15 Messju Mohr - - * docs/designers.sgml: - added parameter-descriptions for count_characters (thanks Konstantin - A. Pelepelin) - - fixed docs for {html_checkboxes} - -2003-08-14 Messju Mohr - - * libs/Smarty.class.php - libs/core/core.read_cache_file.php: - fixed timestamp-check of config-files in smarty_core_read_cache_file() - - * libs/Smarty.class.php: - fixed typecasting for arrays in _parse_resource_name() - - * NEWS - libs/plugins/function.config_load.php: - fixes in config_load: - - handling of section-attribute - - reusing the same config-file multiple times - - serialization of config-data for php<4.2.0 (no var_export) - - many thanks to atu for pointing this out and for testing - -2003-08-13 Messju Mohr - - * libs/Smarty.class.php - libs/core/core.smarty_include_php.php: - fixed problem with vars as attributes in {include_php} - -2003-08-13 Monte Ohrt - - * docs/README: - commit README file for documentation compiling - -2003-08-13 Messju Mohr - - * libs/debug.tpl - libs/plugins/modifier.debug_print_var.php: - removed '\r' from debug_print_vars' output - properly escape vars in javascript-version of debug.tpl - -2003-08-11 Monte Ohrt - - * (Smarty_2_6_0_RC1) - NEWS - docs/designers.sgml - docs/html.dsl - docs/php.dsl - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - get ready for 2.6.0-RC1 release - -2003-08-10 Messju Mohr - - * NEWS - libs/Smarty.class.php: - fixed status-header for cache_modified_check under cgi-sapi - -2003-08-09 Messju Mohr - - * libs/core/core.is_secure.php - libs/core/core.is_trusted.php: - synced secure_dir-checking with trusted_dir-checking - - * libs/core/core.is_secure.php: - tightenend path checking in smarty_core_is_secure() - -2003-08-08 Messju Mohr - - * libs/Smarty.class.php: - fix: proper nesting of $smarty->_cache_including flag in cascaded - cached/not-cached/fetched/inserted/foo-templates - - * libs/debug.tpl: - better escaping for $_debug_tpls[templates].filenames - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - removed redundant $smarty from Smarty::_smarty_include() - - * libs/debug.tpl: - proper escaping of filenames in debug-console (thanks to prossel). - -2003-08-07 Messju Mohr - - * docs/programmers.sgml: - added docs for block-methods of registered objects - - * docs/programmers.sgml: - fixed typo in example for registered objects - - * docs/designers.sgml: - fixed exampls of html_image and html_checkboxes - - * libs/plugins/function.debug.php: - fixed {debug} and removed tabs in function.debug.php - - * docs/programmers.sgml: - fixed example for register_object - - * docs/designers.sgml - docs/programmers.sgml: - updated docs for capture, html_table, html_image and register_object - -2003-08-07 Monte Ohrt - - * docs/designers.sgml - docs/programmers.sgml: - add math and default_resource_type to docs - - * docs/getting-started.sgml: - add core to example, add tech note - -2003-08-07 Messju Mohr - - * docs/manual.sgml - docs/fr/manual.sgml: - upd copyright in the docs - -2003-08-07 Monte Ohrt - - * docs/getting-started.sgml: - added core directory to install instructions - -2003-08-07 Messju Mohr - - * docs/designers.sgml - docs/programmers.sgml: - added docs for php-functions as modifiers - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - better caching of attributes for $cacheable=false-plugins - - * docs/programmers.sgml: - added section "caching.cacheable" to the docs, explaining the usage of - the $cacheable-flag of the register_(block|compiler|function)-functions - - * libs/Smarty_Compiler.class.php: - fixed output of custom-functions with cached attributes - - * docs/programmers.sgml: - docs update on callbacks to the register_*-functions - -2003-08-06 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.process_compiled_include.php: - added optional parameter $cache_attrs to register_function() and - register_block(). $cache_attrs is an array containing attribute- names - that should be cached on calls to functions that have $cacheable set - to false. - - * libs/Smarty.class.php: - fixed bug in _run_mod_handler - - * libs/Smarty_Compiler.class.php: - fixed bug with autoload-handling of modifiers. thanks ándre. - -2003-08-05 Messju Mohr - - * libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - updated copyright notice - - * libs/Smarty.class.php - libs/core/core.load_plugins.php: - fixed bug that occurred when using the same not-cacheable plugin in - multiple includes - - * docs/programmers.sgml: - docs-update for plugins.writing - -2003-08-04 Messju Mohr - - * docs/designers.sgml - docs/programmers.sgml: - updated docs for register_block_function(), block-functions, - $request_use_auto_globals and html_checkboxes - -2003-07-31 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - enabled registration of class-methods as callbacks for the - register_*-functions - - use: array('classname', 'method_name')) as callback - -2003-07-29 Messju Mohr - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - modifiers are resolved at compile-time now. _run_mod_handler() is - still used for modifiers with map_array=true (== no preceeding '@') - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.smarty_include.php: - moved _smarty_include() back into Smarty.class.php - - * libs/Smarty.class.php - libs/core/core.load_plugins.php: - prevent unnecessary calls to _read_file() in _is_compiled() - converted method-call to internal function-call in - smarty_core_load_plugins() - -2003-07-28 Messju Mohr - - * libs/Smarty_Compiler.class.php: - quote smarty-header properly to prevent resource-names from escaping from - the comment - -2003-07-25 Messju Mohr - - * libs/core/core.create_dir_structure.php: - weakend race-condition and removed bogus error-message caused by that - in smarty_core_create_dir_structure(). - -2003-07-23 Messju Mohr - - * libs/Smarty.class.php - libs/core/core.display_debug_console.php - libs/core/core.fetch_resource_info.php - libs/core/core.get_php_resource.php - libs/core/core.parse_resource_name.php - libs/core/core.process_cached_inserts.php - libs/core/core.read_cache_file.php - libs/core/core.run_insert_handler.php - libs/core/core.smarty_include.php - libs/core/core.smarty_include_php.php - libs/plugins/function.eval.php: - moved _fetch_resource_info and _parse_resource_name back into - Smarty.class.php - renamed smarty_include and smarty_eval wrappers to _include and _eval - -2003-07-17 Messju Mohr - - * libs/core/core.process_compiled_include.php - libs/core/core.read_cache_file.php: - improved checking of compiled_include against cached-template with - non-cached-chunks - - * libs/core/core.write_compiled_include.php: - fixed too short open-tag - - * libs/plugins/function.eval.php: - fixed assign parameter for eval (must have gotton lost on its way to 2.5.0) - cleaned up indentiation - -2003-07-03 Messju Mohr - - * libs/Smarty_Compiler.class.php: - resurrected $foo->$bar syntax - - * libs/Smarty_Compiler.class.php: - i'm so stupid. kick me. - - * libs/Smarty_Compiler.class.php: - fixed initialisation of $this->_plugins in compile_block_tag() - -2003-07-03 Monte Ohrt - - * libs/Config_File.class.php: - add preg_quote delimiter - -2003-07-03 Messju Mohr - - * libs/Smarty_Compiler.class.php: - applied fix for {$var1->p1|modifier:$var2->p2}-syntax - thanks Dominik - -2003-07-02 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed duplicate generation of arg-list in _compile_block_tag() - - * libs/Smarty_Compiler.class.php: - fixed off-by-one-error in nocache-tag-handling - -2003-06-30 Messju Mohr - - * libs/Smarty_Compiler.class.php: - backed out errornously committed support for $foo->$bar - - * libs/core/core.write_file.php: - fixed indentiation, silenced occasional warning - - * libs/plugins/function.html_image.php: - match first character of file-attribute against "/" instead of - DIRECTORY_SEPARATOR since it is a url-path and not a file-path. - - * libs/Smarty_Compiler.class.php - libs/core/core.write_file.php - libs/plugins/function.html_image.php: - libs/plugins/function.html_image.php - - * libs/Smarty_Compiler.class.php: - re-fixed cacheable_state-handling - - * libs/core/core.display_debug_console.php - libs/core/core.process_cached_inserts.php - libs/core/core.process_compiled_include.php - libs/core/core.run_insert_handler.php: - extincting $this out of smarty_core_*-functions - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - fixed handling of nocache-state - -2003-06-29 Messju Mohr - - * libs/Smarty.class.php - libs/core/core.smarty_include.php - libs/core/core.smarty_include_php.php - libs/plugins/function.eval.php: - removed $this from smarty_include and smarty_include_php - added cleaner handling of $this to {eval} - - * libs/core/core.load_resource_plugin.php: - fixed inlude_once-call - - * docs/de/designers.sgml - docs/fr/designers.sgml: - fixed examples of html_radios and html_checkboxes in german and french docs - -2003-06-25 Monte Ohrt - - * libs/core/core.assemble_auto_filename.php - libs/core/core.write_cache_paths_file.php: - fix typo, fix write_cache_paths logic - - * libs/Smarty.class.php - libs/core/core.assemble_auto_filename.php: - fix SMARTY_COMPILE_DIR_SEP problem, make local var - -2003-06-24 Monte Ohrt - - * libs/Smarty.class.php - libs/core/core.assemble_auto_filename.php - libs/core/core.write_cache_paths_file.php: - fixed cache_paths bug, simplified filename assembly logic - -2003-06-24 Messju Mohr - - * libs/plugins/function.html_image.php: - added parsing of forgotton param "basedir" - - * libs/Smarty_Compiler.class.php: - fixed $smarty.get-reference - - * libs/plugins/block.textformat.php: - removed warning - - * libs/Smarty_Compiler.class.php: - fixed value of _cacheable_state on compiler-startup - -2003-06-23 Monte Ohrt - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.write_cache_paths_file.php: - make cache_path per resource, fix a couple directory path issues - -2003-06-23 Messju Mohr - - * libs/Smarty_Compiler.class.php: - removed warning when compiling empty template - - * libs/core/core.write_compiled_include.php: - fixed bug in write_compiled_include - - * libs/core/core.assemble_plugin_filepath.php: - fixed warning - -2003-06-22 Messju Mohr - - * libs/plugins/function.eval.php: - fixed propagation of $this into evald code in smarty_function_eval() - - * libs/core/core.write_cache_paths_file.php - libs/core/core.write_compiled_include.php: - fix in compiled-include-handling - - * libs/core/core.assemble_auto_filename.php - libs/core/core.assemble_plugin_filepath.php - libs/core/core.assign_smarty_interface.php - libs/core/core.create_dir_structure.php - libs/core/core.fetch_resource_info.php - libs/core/core.get_include_path.php - libs/core/core.get_microtime.php - libs/core/core.get_php_resource.php - libs/core/core.is_secure.php - libs/core/core.is_trusted.php - libs/core/core.load_plugins.php - libs/core/core.load_resource_plugin.php - libs/core/core.parse_resource_name.php - libs/core/core.read_cache_file.php - libs/core/core.rm_auto.php - libs/core/core.rmdir.php - libs/core/core.write_cache_file.php - libs/core/core.write_cache_paths_file.php - libs/core/core.write_compiled_include.php - libs/core/core.write_compiled_resource.php - libs/core/core.write_file.php - libs/plugins/modifier.date_format.php: - started moving from $this to $smarty in core.*.php - -2003-06-21 Monte Ohrt - - * libs/core/core.create_dir_structure.php - libs/core/core.write_file.php - libs/plugins/function.config_load.php: - fix more dir paths - - * NEWS - libs/Smarty.class.php - libs/core/core.assemble_auto_filename.php - libs/core/core.assemble_plugin_filepath.php - libs/core/core.fetch_resource_info.php - libs/core/core.get_php_resource.php - libs/core/core.parse_resource_name.php - libs/core/core.process_cached_inserts.php - libs/core/core.read_cache_file.php - libs/core/core.rm_auto.php - libs/core/core.rmdir.php - libs/core/core.run_insert_handler.php - libs/core/core.smarty_include.php - libs/core/core.smarty_include_php.php - libs/core/core.write_cache_file.php - libs/core/core.write_cache_paths_file.php - libs/core/core.write_compiled_include.php - libs/core/core.write_compiled_resource.php - libs/core/core.write_file.php - libs/plugins/function.config_load.php - libs/plugins/function.fetch.php - libs/plugins/function.html_image.php: - fix filepaths to core files to use DIRECTORY_SEPARATOR - -2003-06-21 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed {plugin|modifier} syntax - - * libs/Smarty.class.php - libs/core/core.write_compiled_include.php: - fixed compiled include handling - -2003-06-21 Monte Ohrt - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.assemble_auto_filename.php - libs/core/core.assemble_plugin_filepath.php - libs/core/core.write_cache_paths_file.php: - added filepath caching - -2003-06-20 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - update more varnames - - * libs/Smarty.class.php - libs/core/core.display_debug_console.php - libs/core/core.fetch_file_info.php - libs/core/core.fetch_resource_info.php - libs/core/core.get_php_resource.php - libs/core/core.parse_file_path.php - libs/core/core.parse_resource_name.php - libs/core/core.process_cached_inserts.php - libs/core/core.read_cache_file.php - libs/core/core.run_insert_handler.php - libs/core/core.smarty_include.php - libs/core/core.smarty_include_php.php - libs/core/core.write_compiled_resource.php - libs/core/core.write_compiled_template.php - libs/plugins/function.config_load.php: - refactored var naming to better reflect "resource" instead of "file" where - appropriate - -2003-06-19 Messju Mohr - - * libs/Smarty.class.php: - updated version-number to 2.5.0-cvs - - * libs/core/core.write_cache_file.php: - omit is-cache_dir-writable-check if a cache_handler_function is in use - - * libs/core/core.smarty_include_php.php: - fixed comments in smarty_include_php - -2003-06-19 Monte Ohrt - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.display_debug_console.php - libs/core/core.smarty_include.php - libs/plugins/function.eval.php: - split up _compile_template to _compile_file and _compile_source, fix eval - function - VS: ---------------------------------------------------------------------- - - * libs/plugins/function.config_load.php: - fix logic for _is_compiled() - -2003-06-19 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - added optional assign-attribute to {capture}-tag - - * NEWS - libs/Smarty.class.php: - added $cacheable-parameter to register_compiler_function() - -2003-06-18 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.load_plugins.php - libs/core/core.process_compiled_include.php - libs/core/core.read_cache_file.php - libs/core/core.write_cache_file.php - libs/core/core.write_compiled_include.php: - added $cacheable-parameter to register_function() and register_block() - - * libs/Smarty.class.php: - append '.php' to all compiled templates regardless of the settings of - $use_sub_dirs - - * libs/Smarty.class.php - libs/core/core.read_cache_file.php: - fixed $file_path-parameters passed to smarty_core_fetch_file_info() - -2003-06-17 Monte Ohrt - - * NEWS: - fix name - - * libs/Smarty_Compiler.class.php: - change varnames to follow coding methods - - * NEWS - libs/Smarty_Compiler.class.php: - add math patch to core - -2003-06-17 Messju Mohr - - * libs/core/core.smarty_include.php: - switched _process_template() to _is_compiled()-logic - -2003-06-17 Monte Ohrt - - * libs/Smarty.class.php: - fix _is_compiled logic - - * NEWS: - update news file - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - fix _run_mod_handler routine - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.display_debug_console.php - libs/core/core.fetch_file_info.php - libs/core/core.parse_file_path.php - libs/core/core.write_compiled_template.php - libs/plugins/function.config_load.php: - fix path problems, rename some varibles from "template" to "file" - -2003-06-16 Monte Ohrt - - * libs/core/core.fetch_file_info.php - libs/core/core.fetch_template_info.php: - rename file, commit - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.parse_file_path.php - libs/core/core.read_cache_file.php - libs/plugins/block.strip.php - libs/plugins/block.textformat.php - libs/plugins/compiler.config_load.php - libs/plugins/function.config_load.php - libs/plugins/function.eval.php - libs/plugins/function.fetch.php - libs/plugins/function.html_image.php: - fix config_load, compile fetched arrays to compile_dir, switch display - back to runtime. clean up var names and function names, split up compile - testing and compiling to separate funcs, rename some template_* functions - to - file_* functions and update logic so they can be used for file resources - other than templates. - -2003-06-16 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed little bug in _compile_custom_tag() - -2003-06-16 Monte Ohrt - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/core/core.assign_smarty_interface.php - libs/core/core.create_dir_structure.php - libs/core/core.display_debug_console.php - libs/core/core.fetch_template_info.php - libs/core/core.get_include_path.php - libs/core/core.get_microtime.php - libs/core/core.get_php_resource.php - libs/core/core.is_secure.php - libs/core/core.is_trusted.php - libs/core/core.load_plugins.php - libs/core/core.load_resource_plugin.php - libs/core/core.parse_file_path.php - libs/core/core.process_cached_inserts.php - libs/core/core.read_cache_file.php - libs/core/core.rm_auto.php - libs/core/core.rmdir.php - libs/core/core.run_insert_handler.php - libs/core/core.smarty_include.php - libs/core/core.smarty_include_php.php - libs/core/core.write_cache_file.php - libs/core/core.write_compiled_template.php - libs/core/core.write_file.php - libs/plugins/core.assign_smarty_interface.php - libs/plugins/core.create_dir_structure.php - libs/plugins/core.display_debug_console.php - libs/plugins/core.fetch_template_info.php - libs/plugins/core.get_include_path.php - libs/plugins/core.get_microtime.php - libs/plugins/core.get_php_resource.php - libs/plugins/core.is_secure.php - libs/plugins/core.is_trusted.php - libs/plugins/core.load_plugins.php - libs/plugins/core.load_resource_plugin.php - libs/plugins/core.parse_file_path.php - libs/plugins/core.process_cached_inserts.php - libs/plugins/core.read_cache_file.php - libs/plugins/core.rm_auto.php - libs/plugins/core.rmdir.php - libs/plugins/core.run_insert_handler.php - libs/plugins/core.smarty_include.php - libs/plugins/core.smarty_include_php.php - libs/plugins/core.write_cache_file.php - libs/plugins/core.write_compiled_template.php - libs/plugins/core.write_file.php: - move core files into their own directory under SMARTY_DIR, - remove abstraction function _execute_core_function - - * libs/Smarty_Compiler.class.php: - fix newline handling for template for all template tags - -2003-06-11 Monte Ohrt - - * libs/plugins/compiler.config_load.php: - add compiler function to cvs repository - -2003-06-11 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - added config-option "request_use_auto_globals" to make auto-globals be - used as request vars instead of HTTP_*_VARS - -2003-06-11 Monte Ohrt - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/plugins/function.config_load.php: - make config vars compile statically - -2003-06-11 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - backed out newlines patch - - * NEWS - libs/Smarty_Compiler.class.php: - removed newlines in compiled templates after closing tags - -2003-06-10 Messju Mohr - - * docs/de/designers.sgml: - fixed german note on html_image and disk-access - -2003-06-10 Monte Ohrt - - * libs/plugins/core.parse_file_path.php: - fix bug with resource_type resolving - -2003-06-09 Monte Ohrt - - * docs/designers.sgml: - replace example with more practical one - -2003-06-08 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - added block-methods for registered objects - -2003-06-07 Messju Mohr - - * docs/programmers.sgml: - fixed bug in documentation for $smarty->default_modifiers - -2003-06-06 Monte Ohrt - - * libs/plugins/core.parse_file_path.php: - fix problem with new default_resource_type changes - - * NEWS: - update NEWS file info - - * NEWS - libs/Smarty.class.php - libs/plugins/core.parse_file_path.php: - add default_resource_type, ignore 1 char resource names - - * NEWS - libs/Config_File.class.php: - fix bug where config file starts with hidden section - -2003-06-04 Monte Ohrt - - * NEWS - libs/Smarty.class.php: - -** empty log message *** - -2003-06-03 Monte Ohrt - - * libs/plugins/function.html_image.php: - fix example in code comments - -2003-06-03 Messju Mohr - - * NEWS - libs/plugins/function.counter.php: - fixed behaviour of start=... for {counter} - -2003-06-02 Messju Mohr - - * NEWS - libs/plugins/function.counter.php: - fixed assign for {counter} - -2003-05-30 Monte Ohrt - - * libs/plugins/core.write_cache_file.php - libs/plugins/core.write_compiled_template.php: - add discrete error checking pertaining to $cache_dir - and $compile_dir, their existance and writability - -2003-05-28 Messju Mohr - - * NEWS - libs/plugins/function.html_table.php: - added params vdir, hdir and inner to html_table to allow looping over - the data in various directions - -2003-05-28 Monte Ohrt - - * libs/plugins/core.compile_template.php - libs/plugins/core.display_debug_console.php: - fix problem with security and debug.tpl file - -2003-05-23 Monte Ohrt - - * NEWS: - upd NEWS file - - * libs/Smarty_Compiler.class.php: - allow spaces in literal tags - -2003-05-22 Monte Ohrt - - * docs/fr/programmers.sgml: - fix special chars - -2003-05-19 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - speed up compiled templates, hardcode plugin filepaths instead of - recalculate at runtime - -2003-05-19 Messju Mohr - - * docs/designers.sgml: - fixed example of {html_image} - - * docs/designers.sgml: - fixed typo - -2003-05-12 Messju Mohr - - * libs/Smarty.class.php - libs/plugins/core.read_cache_file.php - libs/plugins/core.smarty_include.php - libs/plugins/function.config_load.php: - fixed multiple redundant occurrences for 'config' and 'template' in - $smarty->_cache_info - -2003-05-10 Messju Mohr - - * libs/plugins/core.create_dir_structure.php: - refurbished create_dir_structure to use '/' internally - - * libs/plugins/core.create_dir_structure.php: - fixed windows absolute-paths in smarty_core_create_dir_structure() - - * libs/plugins/core.create_dir_structure.php: - fixed error-message - -2003-05-09 Messju Mohr - - * libs/Smarty_Compiler.class.php: - fixed warning due to missing param to _execute_core_function() - - * libs/Smarty_Compiler.class.php: - fixed quoting in _compile_include_php - - * libs/Smarty_Compiler.class.php: - fixed quoting of "file"-parameter in _compile_include_tag() - -2003-05-08 Monte Ohrt - - * docs/programmers.sgml: - fix typo - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/plugins/core.compile_template.php - libs/plugins/core.create_dir_structure.php - libs/plugins/core.fetch_template_info.php - libs/plugins/core.get_include_path.php - libs/plugins/core.get_microtime.php - libs/plugins/core.get_php_resource.php - libs/plugins/core.is_secure.php - libs/plugins/core.is_trusted.php - libs/plugins/core.load_plugins.php - libs/plugins/core.load_resource_plugin.php - libs/plugins/core.parse_file_path.php - libs/plugins/core.process_cached_inserts.php - libs/plugins/core.read_cache_file.php - libs/plugins/core.rm_auto.php - libs/plugins/core.rmdir.php - libs/plugins/core.run_insert_handler.php - libs/plugins/core.smarty_include.php - libs/plugins/core.smarty_include_php.php - libs/plugins/core.write_cache_file.php - libs/plugins/core.write_compiled_template.php - libs/plugins/core.write_file.php - libs/plugins/function.config_load.php - libs/plugins/function.fetch.php - libs/plugins/function.html_image.php: - abstract more private functions to plugin directory - - * libs/Config_File.class.php: - only add DIRECTORY_SEPARATOR if it isn't already present - - * libs/Config_File.class.php: - fix directory separator code, use DIRECTORY_SEPARATOR - -2003-05-08 Messju Mohr - - * docs/designers.sgml: - fixed example of html_checkboxes - - * NEWS - libs/Smarty.class.php: - fixed bug in _create_dir_structure() when used with - open_basedir-restriction and relative paths - - * docs/designers.sgml: - fixed example for html_radios - -2003-05-07 Monte Ohrt - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php - libs/plugins/core.assign_smarty_interface.php - libs/plugins/core.display_debug_console.php - libs/plugins/function.display_debug_console.php: - abstracted display_debug_console and assign_smarty_interface to plugin dir - as a test - - * libs/Smarty.class.php - libs/plugins/function.display_debug_console.php: - correct misc varnames, abstract debug console display to plugin function - - * libs/plugins/modifier.escape.php: - fix typo - -2003-05-05 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - add % to math - - * libs/Smarty.class.php: - clean up comments, formatting - - * NEWS - libs/Smarty.class.php: - keep DIR_SEP for 3rd party compatability - - * NEWS - libs/Smarty.class.php: - remove DIR_SEP, use DIRECTORY_SEPARATOR exclusively - - * libs/Smarty_Compiler.class.php: - remove ++ and -- math operators on template vars - -2003-05-04 Messju Mohr - - * libs/Smarty_Compiler.class.php: - removed unused parameter $quote from Smarty_Compiler::_parse_attrs() - - * libs/plugins/function.html_image.php: - fixed DIR_SEP in html_image-plugin - -2003-05-04 Monte Ohrt - - * NEWS - libs/Smarty.class.php: - rename DIR_SEP to SMARTY_DIR_SEP to avoid varname collisions - -2003-05-04 Messju Mohr - - * NEWS - libs/plugins/function.html_image.php: - changed "link" to "href" in html_image. "link" is still working but - deprecated - html_image always renders an alt-tag now (default alt="") - cleaned up indentiation of function.html_image.php - -2003-05-03 Monte Ohrt - - * libs/debug.tpl: - fix typo - -2003-05-02 Messju Mohr - - * NEWS - libs/plugins/function.counter.php: - fixed assign attribute for multiple counters - -2003-05-02 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - allow math on negative number - - * NEWS - libs/Smarty_Compiler.class.php: - added simple math operators to variables - -2003-05-02 Messju Mohr - - * docs/designers.sgml: - fixed typos - -2003-04-30 Monte Ohrt - - * docs/fr/appendixes.sgml - docs/fr/common.dsl - docs/fr/designers.sgml - docs/fr/getting-started.sgml - docs/fr/html-common.dsl - docs/fr/html.dsl - docs/fr/manual.sgml - docs/fr/php.dsl - docs/fr/preface.sgml - docs/fr/programmers.sgml: - add frech docs to cvs repository - -2003-04-29 Messju Mohr - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - reverted patch for case-insensitive tag-names - -2003-04-28 Messju Mohr - - * docs/programmers.sgml: - reverted back to humerous redundancy in the docs :). although we all - know we are here to generate template-based output, and not to have - fun ;-) - - * docs/getting-started.sgml: - fixed default user and group for max os x installation - - * libs/Smarty.class.php: - made $function[2] and $function[3] options for register_resource - - * libs/Smarty.class.php: - fixed issue with object-callback when fetching a php-resource - - * NEWS - libs/Smarty.class.php: - enabled array(&$obj. 'source', 'timestamp', 'secure', 'trusted') as - callback for register_resource() - - enabled array(&$obj, 'method') as callback for - $default_template_handler_func - -2003-04-27 Messju Mohr - - * docs/designers.sgml - docs/programmers.sgml: - fixed some typos, thank to mehdi - - * libs/plugins/function.counter.php: - prevent assign from overruling print-attribute in function.counter.php - - * libs/plugins/function.counter.php: - fixed problem with counter and assign - - * libs/Smarty.class.php: - fixed notice in _load_plugins() - - * NEWS - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - made plugin-names case-insensitive. this affects - compiler/block/custom-functions and modifers. - -2003-04-26 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - remove unnecessary close/open tags from compiled templates - -2003-04-26 Messju Mohr - - * docs/designers.sgml: - added documentation for foreach.property.* - -2003-04-24 Messju Mohr - - * docs/designers.sgml: - fixed example table_attr and tr_attr in html_table-example - -2003-04-21 Greg Beaver - - * libs/Smarty.class.php: - fixed small bug in doc comments - -2003-04-21 Messju Mohr - - * NEWS - libs/plugins/function.html_image.php: - fixed errornous creation of '//' in image_path in html_image - -2003-04-21 Monte Ohrt - - * libs/plugins/modifier.debug_print_var.php: - fix htmlspecialchars() conflict - - * NEWS - libs/plugins/modifier.debug_print_var.php: - fix escapement of special chars in key values of debug console - - * NEWS - libs/plugins/function.config_load.php: - fixed debug timing logic for config_load - - * docs/designers.sgml: - fix example text - - -2003-04-20 Greg Beaver - * plugins/* - Smarty.class.php - Smarty_Compiler.class.php - Config_File.class.php: - updated all doc comments to phpDocumentor format (whew!) - -2003-04-06 Messju Mohr - - * libs/plugins/function.math.php: - allowed "_" in the name of variable-parameters to {math}-function - -2003-04-04 Monte Ohrt - - * NEWS - docs/designers.sgml - libs/Smarty_Compiler.class.php: - change backtic syntax from $`foo` to `$foo` - - * NEWS - libs/Smarty_Compiler.class.php: - recognize $foo[][] syntax in embedded quotes without backticks - -2003-04-03 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - name=123 is passed as an integer (not a string) to plugins now - -2003-04-01 Messju Mohr - - * libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - added CVS $Id$ - -2003-03-31 Messju Mohr - - * libs/Smarty.class.php: - added missing compile_id inside Smarty_Compiler - - * libs/Smarty_Compiler.class.php: - fixed flaw when generating an error for missing postfilter - -2003-03-31 Monte Ohrt - - * docs/getting-started.sgml - docs/programmers.sgml: - fix typos - -2003-03-27 Messju Mohr - - * NEWS - libs/plugins/modifier.debug_print_var.php: - $length is now propagated to sub-values in debug_print_var - -2003-03-26 Monte Ohrt - - * NEWS: - update header - - * RELEASE_NOTES: - commit changes to release notes - - * (Smarty_2_5_0_RC2) - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - committing RC2 - -2003-03-24 Messju Mohr - - * NEWS - libs/Smarty.class.php: - made clear_cache() ignore compile_id when clearing cache_groups - - * libs/plugins/function.popup.php: - made onmouseout XHTML-compatible in function.popup.php - -2003-03-21 Messju Mohr - - * NEWS - libs/Smarty.class.php: - applied new var-names to fetch() - - * NEWS - libs/Smarty.class.php: - renamed $localvars to $_localvars in cache-file-handling-functions, - added _get_auto_id()-function - -2003-03-21 Monte Ohrt - - * libs/plugins/function.mailto.php - libs/plugins/function.popup.php: - update functions for XHTML compatability - -2003-03-21 Messju Mohr - - * libs/Smarty.class.php: - fixed wrong $auto_id in _read_cache_file() - - * NEWS - libs/Smarty.class.php: - swapped compile_id and cache_id in read_cache_file and write_cache_file - - * libs/Smarty.class.php: - reverted patch for ignoring compile-id back to -r1.364, due to problems - - * NEWS - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_radios.php: - html_radios and html_checkboxes accept "selected" instead of "checked" - optionally now - - * NEWS - libs/Smarty.class.php: - swapped compile_id and cache_id for cache-file-handling again - -2003-03-20 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - fix notice when no parameter is passed to default - -2003-03-20 Messju Mohr - - * NEWS - libs/Smarty.class.php: - removed notice of undefined var in _rm_auto() - -2003-03-19 Monte Ohrt - - * libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_radios.php - libs/plugins/function.html_table.php: - fix a few error messages, follow consistancy format plugin_name: errormsg - - * libs/plugins/function.html_radios.php: - update error messages - - * NEWS - libs/plugins/function.html_radios.php: - add a warning when an array is passed as the 'checked' value of html_radios - -2003-03-19 Messju Mohr - - * NEWS - libs/Smarty_Compiler.class.php: - fixed errormessage in _compile_smarty_ref() - - * NEWS - docs/designers.sgml: - updated docs for html_image - -2003-03-18 Messju Mohr - - * NEWS - libs/Smarty.class.php: - cleaned up calls to readdir() - - * libs/plugins/function.html_options.php: - fixed label for optgroup in html_options - -2003-03-18 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - fix (newly introduced) bug with passing multiple modifiers to a parameter - -2003-03-18 Messju Mohr - - * NEWS - docs/designers.sgml: - updated docs for html_checkboxes, html_options and html_radios - - * libs/plugins/function.html_options.php: - fixed wrong default-"name" in function.html_options.php - - * NEWS - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_radios.php: - renamed "checkbox" and "radios" to "options" in {html_checkboxes} and - {html_radios} - - * libs/plugins/outputfilter.trimwhitespace.php: - tried to optimize re-replacement in outputfilter.trimwhitespace.php a - little - - * libs/plugins/outputfilter.trimwhitespace.php: - fixed greedy str_replace in outputfilter.trimwhitespace.php - - * NEWS - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_options.php - libs/plugins/function.html_radios.php: - html_options, html_checkboxes and html_radios now pass-thru all unknown - paramters - -2003-03-17 Messju Mohr - - * NEWS - libs/plugins/function.html_options.php: - html_options passthru all unknown paramters now - -2003-03-17 Monte Ohrt - - * NEWS - libs/plugins/function.html_image.php: - Fix link bug in html_image function, also make output XHTML compatible - - * libs/Smarty_Compiler.class.php: - fix issue of embedded var and escaped double quotes - -2003-03-15 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - back out "@" logic, apply only to default modifier special case - - * libs/Smarty_Compiler.class.php: - fix @ logic, only use upon an echo - - * NEWS - libs/Smarty_Compiler.class.php: - append "@" to template var echoes to supress possible notices - - * NEWS - libs/Smarty_Compiler.class.php: - append "@" to _run_mod_handler to supress warnings - -2003-03-14 Monte Ohrt - - * NEWS - libs/Smarty_Compiler.class.php: - fix problem with escaped double quotes - - * NEWS - libs/plugins/function.html_radios.php: - fixed html_options to not return an array - -2003-03-12 Messju Mohr - - * NEWS - libs/plugins/modifier.truncate.php: - fixed length in modifier.truncate.php - - * NEWS - libs/plugins/outputfilter.trimwhitespace.php: - fixed handling of '$'-signs in trimwhitespace outputfilter (messju) - -2003-03-12 Monte Ohrt - - * docs/programmers.sgml: - update technical explanation of assign_by_ref and append_by_ref - -2003-03-11 Monte Ohrt - - * NEWS - libs/Smarty.class.php: - fix config file recompiling code - -2003-03-07 Monte Ohrt - - * libs/plugins/function.html_image.php: - change E_USER_ERROR to E_USER_NOTICE - - * libs/plugins/function.html_image.php: - suppress warning in html_image - - * NEWS - libs/plugins/function.html_image.php: - update changes to html_image - -2003-03-06 Monte Ohrt - - * docs/designers.sgml - docs/de/appendixes.sgml - docs/de/common.dsl - docs/de/designers.sgml - docs/de/getting-started.sgml - docs/de/html-common.dsl - docs/de/html.dsl - docs/de/manual.sgml - docs/de/preface.sgml - docs/de/programmers.sgml: - add german docs to dist - - * NEWS: - update news file - - * libs/plugins/function.html_image.php: - fix width/height parameter index - - * NEWS - libs/Smarty.class.php: - get rid of unsetting name and script attributes to insert tags - -2003-03-05 Monte Ohrt - - * NEWS - RELEASE_NOTES: - update NEWS file - - * libs/plugins/modifier.string_format.php: - fix argument order, erroneously swapped a while back - - * (Smarty_2_5_0_RC1) - NEWS - README - RELEASE_NOTES - libs/Config_File.class.php - libs/Smarty.class.php - libs/Smarty_Compiler.class.php: - commit final changes for 2.5.0-RC1 - -2003-03-04 Monte Ohrt - - * docs/programmers.sgml: - remove $show_info_header and $show_info_include property vars from docs - -2003-03-03 Monte Ohrt - - * NEWS - libs/plugins/function.popup.php: - fixed PHP notice - -2003-02-28 Monte Ohrt - - * libs/Smarty_Compiler.class.php: - simplify smarty.const.foo and smarty.const.$foo logic - - * libs/Smarty_Compiler.class.php: - only allow $foo syntax in embedded quotes, unless escaped with backticks - then allow any dollar var - - * NEWS - libs/Smarty_Compiler.class.php: - fix "once" var compiling to work with new attr compiling methods for - include_php - - * FAQ - NEWS - README - docs/designers.sgml - docs/getting-started.sgml - libs/Smarty_Compiler.class.php - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_image.php - libs/plugins/function.html_options.php - libs/plugins/function.html_radios.php - libs/plugins/function.html_select_date.php - libs/plugins/function.html_select_time.php - libs/plugins/function.html_table.php: - fix $smarty.const.foo compiling, clean up double quoted strings, - allow full dollar var syntax in quotes again - -2003-02-27 Monte Ohrt - - * docs/designers.sgml - docs/programmers.sgml - libs/Smarty_Compiler.class.php: - update docs, fix smarty var compiling, allow any $smarty.*.$foo syntax, - add $`foobar` for embedded variables - - * libs/plugins/function.html_image.php: - update functionality - -2003-02-26 Monte Ohrt - - * NEWS - libs/plugins/modifier.nl2br.php: - add nl2br modifier - - * libs/plugins/function.html_image.php: - add link parameter - -2003-02-24 Monte Ohrt - - * libs/Smarty.class.php - libs/plugins/function.html_image.php: - fix rename problem in windows, unlink first - - * libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_image.php - libs/plugins/function.html_options.php - libs/plugins/function.html_radios.php - libs/plugins/shared.escape_special_chars.php: - update functions with separate escape_special_chars routine - - * NEWS - libs/plugins/function.html_checkboxes.php - libs/plugins/function.html_radios.php: - commit checkboxes, update radios - - * NEWS - libs/Smarty.class.php - libs/plugins/function.html_image.php: - fix bug with get_registered_object - - * NEWS - libs/plugins/modifier.cat.php: - added cat modifier to distribution - - * NEWS - libs/Smarty_Compiler.class.php: - added << >> <> support to IF statements - - * libs/plugins/function.html_radios.php: - apply patch to initial html_radios function - - * NEWS - libs/Smarty.class.php: - fix _assign_smarty_interface to not overwrite keys other than 'request' - - * NEWS - libs/plugins/function.html_radios.php: - added html_radios to distribution - - * NEWS - libs/plugins/modifier.string_format.php: - fixed arg order of string_format - - * NEWS - libs/Smarty.class.php: - use tmp file for file writes, avoid race condition - - * NEWS - libs/Smarty_Compiler.class.php: - add $smarty.config.foo var, handle embedded smarty var correctly - - * NEWS - libs/plugins/function.fetch.php: - silence warnings in fetch plugin - -2003-02-21 Monte Ohrt - - * INSTALL: - update wording - - * INSTALL: - update install instructions - - * AUTHORS - BUGS - CREDITS - QUICKSTART - README - RESOURCES - TESTIMONIALS: - remove some files already in docs or elsewhere - - * demo/index.php: - add templates_c to repository - - * index.php: - move demo files to demo directory - - * Config_File.class.php - Smarty.class.php - Smarty_Compiler.class.php - debug.tpl: - moved lib files under libs directory - -2003-02-20 Monte Ohrt - - * NEWS - Smarty.class.php: - add get_config_vars() method, update get_template_vars() functionality - - * NEWS - Smarty.class.php: - fix minor logic in _fetch_template_info() - - * NEWS - Smarty.class.php: - support merging appended vars - - * NEWS - Smarty.class.php: - fix cache groups behavior with compile_id set - -2003-02-19 Monte Ohrt - - * Smarty.class.php: - back out third parameter, extend functionality of append - - * NEWS - Smarty_Compiler.class.php: - update imbedded vars, allow special $smarty vars - - * plugins/function.html_table.php: - add plugin html_table - - * NEWS - Smarty.class.php: - support appending key=>val pairs - - * NEWS - Smarty_Compiler.class.php: - change embedded variable logic to only recognize $foo and $foo[0][bar] - syntax - - * NEWS - Smarty_Compiler.class.php: - allow null as function attribute value - -2003-02-18 Monte Ohrt - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - support foo->bar[index] syntax - - * Smarty_Compiler.class.php: - allow $foo->bar[0] syntax - -2003-02-17 Monte Ohrt - - * plugins/modifier.escape.php: - fix syntax error from previous commit - - * NEWS - Smarty.class.php: - add error msgs to get_registered_object - - * Smarty.class.php: - add function for getting reference to registered object - - * Smarty_Compiler.class.php: - back out patches for object and objref calls on $smarty var - - * NEWS - Smarty_Compiler.class.php: - treat unrecognized param attribute syntax as a string - - * NEWS - Smarty_Compiler.class.php: - support $smarty.const.$foo syntax - - * NEWS - debug.tpl - plugins/modifier.count_words.php - plugins/modifier.escape.php: - fix E_NOTICE messages - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - add @ and === to if tokens, few param cleanups - -2003-02-16 Greg Beaver - - * ChangeLog - Smarty.class.php - Smarty_Compiler.class.php: - many more phpdoc comment upgrades - -2003-02-15 Greg Beaver - * Smarty.class.php - Smarty_Compiler.class.php - continue cleaning of phpdoc comments. All that is needed is the - addition of @return tags and perhaps a bit more verbose comments - and they are finished. - -2003-02-14 Monte Ohrt - - * NEWS - Smarty.class.php: - enable config_load error messages - - * NEWS - plugins/function.html_options.php: - fix html_options to not escape already escaped entities - - * NEWS - Smarty.class.php: - send Last-Modified header on cache creation, misc tab/spacing cleanup - -2003-02-13 Monte Ohrt - - * Smarty_Compiler.class.php - docs/designers.sgml: - allow dash in plain text - - * NEWS - Smarty_Compiler.class.php: - check strict syntax of function attributes - -2003-02-12 Monte Ohrt - - * NEWS - Smarty_Compiler.class.php: - dropped support for modifiers on object parameters, - added support for objects as modifier parameters - - * NEWS - Smarty_Compiler.class.php - docs/designers.sgml: - fix bug with decimal numbers in if statements, misc doc updates - -2003-02-11 Monte Ohrt - - * (Smarty_2_4_2) - Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php: - update version numbers - -2003-02-10 Monte Ohrt - - * NEWS - Smarty_Compiler.class.php: - add support for $foo->$bar syntax - - * NEWS: - update NEWS file - - * NEWS - Smarty_Compiler.class.php: - support full var syntax in quoted text, fix problem with const var access, - clean up some more regex code, fix object problem with no properties - -2003-02-06 Monte Ohrt - - * (Smarty_2_4_1) - Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php: - committed 2.4.1 changes - - * NEWS - Smarty_Compiler.class.php: - ignore case in IF statements - -2003-02-05 Monte Ohrt - - * NEWS - Smarty_Compiler.class.php: - treat undefined constants as null - - * NEWS - Smarty.class.php: - fix problem with inserts and nested fetches - - * Smarty_Compiler.class.php: - fix "if" regex for math tokens - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - docs/getting-started.sgml: - added support for extracting params to include_php - -2003-02-04 Monte Ohrt - - * RELEASE_NOTES: - reformat text - -2003-02-03 Monte Ohrt - - * NEWS: - update news file - -2003-02-03 Greg Beaver - - * ChangeLog - Smarty.class.php: - begin fixing phpdoc comments in Smarty.class.php - - * ChangeLog - Config_File.class.php: - fixed phpdoc comments - -2003-02-03 Monte Ohrt - - * Smarty_Compiler.class.php: - allow $foo->bar[$x].foo syntax - - * Smarty_Compiler.class.php - index.php - configs/test.conf - templates/index.tpl: - fix accidental commit - - * index.php - configs/test.conf - templates/index.tpl: - allow $foo->bar[$j].blah type of syntax - -2003-02-02 Greg Beaver - - * Smarty.class.php - begin fixing of phpdoc comments - - * Config_File.class.php - fix phpdoc comments, add phpDocumentor docblock templates - -2003-02-02 Monte Ohrt - - * Smarty.class.php - docs/html.dsl - docs/php.dsl: - fix version number - - * (Smarty_2_4_0) - Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php - docs/appendixes.sgml - docs/designers.sgml - docs/programmers.sgml: - update Smarty version numbers - -2003-01-30 Monte Ohrt - - * NEWS - Smarty_Compiler.class.php - TODO: - fix order of php tag comparisons - - * NEWS - Smarty_Compiler.class.php: - fix known php tag handling problems - -2003-01-29 Monte Ohrt - - * Smarty.class.php - Smarty_Compiler.class.php: - change comments to phpdoc style - -2003-01-28 Monte Ohrt - - * Smarty.class.php - docs/programmers.sgml: - make separate var for compiler file - - * plugins/function.fetch.php: - fix error call - -2003-01-25 Monte Ohrt - - * Smarty.class.php - Smarty_Compiler.class.php: - add support for restriction to registered methods - - * plugins/outputfilter.trimwhitespace.php: - update with textarea support - -2003-01-24 Monte Ohrt - - * Smarty_Compiler.class.php: - fix compiling problem with {foreach} tags - - * Smarty.class.php - Smarty_Compiler.class.php: - put objects in own array, add object param format support, change - object syntax from foo.bar to foo->bar - -2003-01-23 Monte Ohrt - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - add support for object registration - -2003-01-22 Monte Ohrt - - * Smarty.class.php: - add file & line number of calling error to error message - -2003-01-21 Monte Ohrt - - * Smarty_Compiler.class.php: - put php style object syntax back in - -2003-01-20 Monte Ohrt - - * Smarty.class.php: - move security settings to fetch function for template_dir - - * NEWS - Smarty.class.php: - fix debug template and security, add template_dir to secure_dir at runtime - -2003-01-17 Monte Ohrt - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - added new object support without new template syntax - -2003-01-15 Monte Ohrt - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - fix if statement syntax for negative integers, fix issue with directories - named '0' - -2003-01-08 Monte Ohrt - - * Smarty.class.php - plugins/function.counter.php - plugins/function.cycle.php - plugins/function.debug.php - plugins/function.eval.php - plugins/function.fetch.php - plugins/function.html_options.php - plugins/function.html_select_date.php - plugins/function.html_select_time.php - plugins/function.mailto.php - plugins/function.math.php - plugins/function.popup.php - plugins/function.popup_init.php: - update plugins to return values instead of echo, fix config file cache - to include global config variables in cache file - - * Smarty_Compiler.class.php: - fix bug with >= tests in if statements, comment out full object support - -2003-01-06 Monte Ohrt - - * NEWS - docs/html.dsl - plugins/modifier.escape.php: - add javascript escape parameter to escape modifier - -2003-01-02 Monte Ohrt - - * templates/header.tpl: - move the title into head where it should be - -2002-12-24 Monte Ohrt - - * Smarty_Compiler.class.php: - added correct line numbers to smarty syntax error messages - - * docs/programmers.sgml: - update append documentation, make more clear on its function - - * Smarty_Compiler.class.php: - fix modifier matching regexp - -2002-12-23 Monte Ohrt - - * Smarty_Compiler.class.php: - support nested function calls in IF statements - -2002-12-20 Monte Ohrt - - * Smarty_Compiler.class.php: - few more fixes, spaces around function parameters - - * Smarty_Compiler.class.php: - fix misc syntax issues with {if} tags - -2002-12-20 Monte Ohrt - - * Smarty_Compiler.class.php: - fix misc syntax issues with {if} tags - -2002-12-19 Monte Ohrt - - * Smarty_Compiler.class.php: - commit updates, passes all smoke tests - - * NEWS: - update NEWS file - - * Smarty_Compiler.class.php: - fixed literal string not in quotes as parameters - - * NEWS - Smarty_Compiler.class.php: - fix misc syntax issues, add ability to pass modifiers to functions - -2002-12-18 Monte Ohrt - - * NEWS: - update NEWS - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - update compiler code, clean up regex, add new syntax features - -2002-12-16 Monte Ohrt - - * NEWS: - update NEWS file - - * Smarty_Compiler.class.php: - commit updates for objects - -2002-12-14 Monte Ohrt - - * Smarty.class.php - Smarty_Compiler.class.php: - fix bug with compiling config files with caching on - -2002-12-13 Monte Ohrt - - * Smarty_Compiler.class.php: - fix problem with matching single quoted strings - - * Smarty_Compiler.class.php: - update embedded variable logic, get rid of ."" at end of output - - * NEWS - docs/designers.sgml - plugins/function.html_select_date.php: - add day_value_format to html_select_date - -2002-12-12 Monte Ohrt - - * plugins/modifier.debug_print_var.php: - fix bug, double escaped values in display - - * Smarty.class.php: - move debug test back into fetch() - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - plugins/outputfilter.trimwhitespace.php: - assigned vars are no longer in global name space, few debug cleanups - -2002-12-11 Monte Ohrt - - * plugins/function.popup.php: - fix error in newline code - - * plugins/function.popup.php: - fix popup to allow newlines in text data - -2002-12-10 Monte Ohrt - - * Smarty.class.php: - fix plugin error logic - - * docs/designers.sgml - docs/programmers.sgml: - edit examples, make more verbose - - * NEWS - plugins/function.html_options.php: - escape html entities in the option values and output - - * NEWS - plugins/function.html_options.php: - fixed bug with label of html_options - -2002-12-09 Monte Ohrt - - * Smarty.class.php: - add support for var_export() - - * Config_File.class.php - Smarty.class.php: - clean up code, respect force_compile and compile_check flags - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - docs/designers.sgml - plugins/function.mailto.php: - add caching feature to config loading, document update, add mailto plugin - -2002-12-08 Monte Ohrt - - * plugins/function.fetch.php: - fix query part of URL - -2002-12-05 Monte Ohrt - - * docs/designers.sgml: - fix typos - -2002-11-22 Monte Ohrt - - * Smarty_Compiler.class.php: - patch for warning message - -2002-11-21 Monte Ohrt - - * RELEASE_NOTES - Smarty.class.php: - get rid of testing for a set value with assign function, just set to - whatever is passed into the template - - * docs/programmers.sgml: - fix typo - -2002-11-19 Monte Ohrt - - * Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php: - commit changes, ready for 2.3.1 release - -2002-11-01 Monte Ohrt - - * plugins/function.html_options.php: - added label attribute to all option outputs, cover w3c spec. - - * NEWS: update NEWS file - - * docs/designers.sgml: update docs for optgroup output - - * plugins/function.html_options.php: - make html_options work with optgroup, make func modular and recursive. - -2002-10-29 Monte Ohrt - - * NEWS - Smarty.class.php: set mtime on compile files so they match source files - -2002-10-18 Monte Ohrt - - * NEWS - Smarty.class.php: added proper support for open_basedir setting - - * docs/designers.sgml: clear up docs on index, iteration and rownum - -2002-10-16 Monte Ohrt - - * plugins/modifier.default.php: fix warning message in default modifier - -2002-09-25 Monte Ohrt - - * docs/designers.sgml - plugins/modifier.strip.php - NEWS: added strip variable modifier - -2002-09-24 Andrei Zmievski - - * NEWS: *** empty log message *** - - * Smarty_Compiler.class.php: - Fix to be able to use $smarty.x variables as arrays. - -2002-09-23 Monte Ohrt - - * Config_File.class.php: - add support for mac/dos formatted config files (fix newlines) - - * docs/programmers.sgml: add optional tags to clear_cache parameters - - * docs/designers.sgml: - fix error with include_php description, add $this to description - -2002-09-20 Monte Ohrt - - * NEWS - docs/getting-started.sgml: fixed errors with example setup docs - -2002-09-16 Monte Ohrt - - * plugins/block.textformat.php - docs/designers.sgml - NEWS: add textformat block function - -2002-09-10 Monte Ohrt - - * docs/designers.sgml: - add assign attribute to cycle function documentation - - * docs/designers.sgml - docs/programmers.sgml: fix typos - -2002-09-09 Monte Ohrt - - * plugins/function.debug.php - templates/header.tpl: - fix header in debug template, fix typo in header.tpl example - -2002-08-15 mohrt - - * docs/programmers.sgml: fix typos - -2002-08-08 mohrt - - * RELEASE_NOTES - Smarty.class.php: - supress warnings from unlink() and is_dir(), let error handler deal with it - -2002-08-07 mohrt - - * docs/appendixes.sgml - docs/designers.sgml - docs/programmers.sgml - Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php: update files with new version numbers - -2002-08-02 mohrt - - * NEWS: update NEWS file with credits - - * NEWS - Smarty.class.php: added assign_by_ref() and append_by_ref() functions - -2002-08-01 mohrt - - * TODO - NEWS - Smarty.class.php: - changed default warning type for plugin errors from E_USER_WARNING to E_USER_ERROR - -2002-07-29 mohrt - - * plugins/function.html_select_time.php - docs/designers.sgml - NEWS: added paramters to html_select_time plugin - -2002-07-25 Andrei Zmievski - - * TODO: *** empty log message *** - -2002-07-24 mohrt - - * QUICKSTART: update QUICKSTART guide - - * NEWS - debug.tpl - plugins/modifier.debug_print_var.php: - update debug console to show objects, fix warning in debug.tpl - -2002-07-23 mohrt - - * docs/programmers.sgml: fix load_filter examples - - * Config_File.class.php - NEWS: fix error when there are no sections in config file - -2002-07-19 mohrt - - * docs/getting-started.sgml: fix error in install guide - -2002-07-18 mohrt - - * Smarty_Compiler.class.php: - correct the expression match for smarty:nodefaults - -2002-07-17 mohrt - - * Smarty_Compiler.class.php: fix default modifier to work with config vars - - * Smarty_Compiler.class.php: got args to strstr backwards... - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - change default modifiers to array instead of string - - * Smarty_Compiler.class.php - docs/designers.sgml - Smarty.class.php: add default modifier logic, minor doc updates - - * NEWS - Smarty.class.php - plugins/function.popup_init.php: - make popup_init xhtml compliant, minor variable name changes for consistancy - -2002-07-16 mohrt - - * NEWS: update NEWS file - - * plugins/function.debug.php - Smarty.class.php - debug.tpl - NEWS: - fix problem with filenames on windows, add ability to supply expire time in seconds when clearing cache or compiled files - -2002-07-15 mohrt - - * Smarty.class.php: - fixed problem with insert tags when loading function from script attribute - and caching enabled (Monte) - -2002-07-14 mohrt - - * NEWS - Smarty.class.php: fix bug with debug_tpl file path for Windows - -2002-07-12 Monte Ohrt - - * Smarty.class.php: fix append function with array/string issue - -2002-07-11 Monte Ohrt - - * RELEASE_NOTES: update release notes - - * NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php - Config_File.class.php: update files to 2.2.0 tags, get ready for release - -2002-07-09 Monte Ohrt - - * NEWS - Smarty.class.php: make debug.tpl work with any delimiter - - * NEWS - Smarty.class.php: - change tests in append and assign to != '' instead of empty(), which is more accurate - -2002-07-08 Monte Ohrt - - * docs/designers.sgml: minor doc update - - * Smarty.class.php: - cast var as an array, simplify and get rid of PHP warning messages - -2002-07-03 Monte Ohrt - - * Smarty.class.php: one more N - - * Smarty.class.php: - prepend "N" to filenames to avoid possible OS issues with dir names starting with "-" - - * Smarty.class.php: only set $debug_tpl in constructor if empty - - * Smarty.class.php - docs/designers.sgml - docs/getting-started.sgml - docs/programmers.sgml: - make use_sub_dirs go back to crc32 for subdir separation - -2002-06-29 Monte Ohrt - - * plugins/function.eval.php: do nothing if $val is empty - - * TODO - plugins/function.eval.php - plugins/function.popup_init.php: - add zindex to popup init, fix error message for eval. - -2002-06-27 Monte Ohrt - - * Smarty.class.php: - only loop through relative paths for PHP include_path, remove $_relative variable - - * Smarty_Compiler.class.php: added {$smarty.version} variable - -2002-06-26 Monte Ohrt - - * docs/appendixes.sgml - docs/designers.sgml - docs/getting-started.sgml - docs/programmers.sgml - Smarty.class.php: - update plugin loading logic, look in SMARTY_DIR, then cwd. If all fail, then retry all with include_path - - * templates/header.tpl - Smarty.class.php: update get_include_path, get _path_array only once - - * Smarty.class.php: fix get_include_path function for windows - - * Smarty.class.php: update plugin search logic - - * Smarty.class.php: only search include_path if relative path - - * plugins/function.html_select_date.php - plugins/function.html_select_time.php - plugins/modifier.date_format.php - Smarty_Compiler.class.php - NEWS - Smarty.class.php: allow plugins_dir to be an array of directories - -2002-06-25 Monte Ohrt - - * docs/programmers.sgml - docs/getting-started.sgml: update installation docs - - * debug.tpl - docs/getting-started.sgml - templates/debug.tpl - NEWS - Smarty.class.php: move debug.tpl to SMARTY_DIR, add to constructor - -2002-06-24 Monte Ohrt - - * plugins/function.assign_debug_info.php - NEWS: fixed warning message in function.assign_debug_info - - * Smarty.class.php: update include_path fixes - - * NEWS: - fixed $template_dir, $compile_dir, $cache_dir, $config_dir to respect include_path - -2002-06-23 Monte Ohrt - - * plugins/shared.make_timestamp.php: - update timestamp plugin to work when passed a timestamp - -2002-06-19 Monte Ohrt - - * NEWS: update NEWS file - - * plugins/modifier.date_format.php - docs/designers.sgml: - update date_format, allow optional 2nd paramater as default date if passed date is empty. update docs. - - * plugins/modifier.date_format.php: - fix date_format modifier, return nothing if given empty string - -2002-06-18 Monte Ohrt - - * NEWS - plugins/function.cycle.php: - gave $reset a default value in cycle function - - * plugins/function.html_select_date.php - plugins/shared.make_timestamp.php - NEWS: - corrected warnings in html_select_time function, made make timestamp always return a timestamp - -2002-06-17 Monte Ohrt - - * Smarty.class.php: swapped around cache_id and compile_id order - -2002-06-14 Monte Ohrt - - * docs/programmers.sgml - plugins/function.popup_init.php - Smarty.class.php: - change directory delimiter to "^" for cache and compile files - -2002-06-13 Andrei Zmievski - - * TODO: done. - - * Smarty_Compiler.class.php: - Optimize the calculation of section 'total' property. - -2002-06-11 Monte Ohrt - - * NEWS - Smarty.class.php: - added support for subdir exclusion, deletion by full or partial cache_id and compile_id, change file format to urlencoded values instead of crc32 - -2002-06-07 Monte Ohrt - - * Smarty.class.php: fix bug with last_modified_check code - - * NEWS - Smarty.class.php: - updated $GLOBALS refererence for HTTP_IF_MODIFIED_SINCE - -2002-06-06 Monte Ohrt - - * docs/designers.sgml - overlib.js: - remove overlib.js file from distribution, update plugin and docs - -2002-06-05 Monte Ohrt - - * docs/designers.sgml - NEWS - Smarty.class.php: fix 304 Not Modified, don't send content - -2002-06-03 Monte Ohrt - - * plugins/function.cycle.php: update version number - - * plugins/function.cycle.php - NEWS: - fixed cycle function to respect delimiter setting after initial setting - - * Smarty.class.php - NEWS: - update $GLOBALS references to work properly with track_globals settings - - * plugins/function.math.php: fixed bug with call $assign - - * docs/appendixes.sgml - docs/designers.sgml - plugins/function.html_options.php - plugins/function.html_select_time.php - NEWS - Smarty.class.php - Smarty_Compiler.class.php: - optimized for loops with count() function calls - -2002-06-01 Andrei Zmievski - - * TODO: *** empty log message *** - -2002-05-21 Monte Ohrt - - * NEWS: update NEWS file - - * plugins/function.html_select_date.php - RESOURCES - docs/designers.sgml - Config_File.class.php: - update html_select_date with month_value_format attribute for controlling the format of the month values. - -2002-05-17 Andrei Zmievski - - * NEWS - Smarty_Compiler.class.php: - Made it possible to use simple variables inside [] for indexing. - -2002-05-16 Monte Ohrt - - * docs/designers.sgml - docs/getting-started.sgml - NEWS - Smarty.class.php - Smarty_Compiler.class.php - TESTIMONIALS: add "once" attribute to php_include, update docs - -2002-05-09 Andrei Zmievski - - * NEWS - TODO: *** empty log message *** - -2002-05-07 Monte Ohrt - - * plugins/function.cycle.php: remove \n from cycle function - - * docs/designers.sgml - plugins/function.cycle.php - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php - NEWS: - update cycle function to handle array as input, update files to 2.1.1 - -2002-05-06 Monte Ohrt - - * plugins/function.fetch.php: - update fetch function with more error checking - -2002-05-03 Monte Ohrt - - * docs/designers.sgml - plugins/function.counter.php: - update counter to use name instead of id (id still works though) - - * plugins/function.cycle.php - docs/designers.sgml: rename id to name for cycle function - - * plugins/function.cycle.php: - update cycle function to allow blank values parameter after initialized - - * plugins/function.cycle.php: fix syntax error - -2002-05-02 Monte Ohrt - - * plugins/function.cycle.php: ugh, another typo - - * plugins/function.cycle.php: update comments - - * docs/designers.sgml - plugins/function.cycle.php - NEWS: added function cycle - - * FAQ - Smarty.class.php: fix register_outputfilter function - -2002-05-01 Monte Ohrt - - * docs/designers.sgml - NEWS - Smarty.class.php: fixed bug with resource testing and include_path - -2002-04-30 Monte Ohrt - - * NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php: update files for 2.1.0 release - -2002-04-30 Andrei Zmievski - - * plugins/function.fetch.php - docs/programmers.sgml - Smarty.class.php: Fix. - -2002-04-29 Andrei Zmievski - - * docs/programmers.sgml - docs/designers.sgml: A whole bunch of docs. - -2002-04-26 Monte Ohrt - - * FAQ - QUICKSTART - docs/programmers.sgml: update FAQ, QUICKSTART, small doc syntax fix - -2002-04-24 Monte Ohrt - - * docs/programmers.sgml - templates/debug.tpl - Smarty.class.php: changed doc structure a bit - -2002-04-16 Andrei Zmievski - - * Smarty.class.php: Add register/unregister API for output filters. - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - TODO: - Changed the way filters are loaded, which now has to be done explicitly, - either through load_filter() API or by filling in $autoload_filters variable. - Also renamed internal variable to avoid namespace pollution. - -2002-04-15 Andrei Zmievski - - * Smarty.class.php: - Fixed _get_php_resource() to take include_path into account. - -2002-04-15 Monte Ohrt - - * docs/designers.sgml: - update docs, get modifiers and functions into index for easy access - - * docs/programmers.sgml - NEWS - Smarty.class.php: update caching documentation - -2002-04-15 Andrei Zmievski - - * NEWS: *** empty log message *** - - * Smarty.class.php: Only turn down error notices if $debugging is false. - -2002-04-15 Monte Ohrt - - * NEWS: update NEWS file - - * plugins/function.html_select_date.php: - fixed logic so this works right when field_separator = "/" - - * plugins/function.html_select_date.php: - fix regular expression for matching date - -2002-04-13 Monte Ohrt - - * docs/designers.sgml: updated html_select_date docs to reflect changes - - * NEWS - plugins/function.html_select_date.php: - added YYYY-MM-DD support to html_select_date - -2002-04-12 Andrei Zmievski - - * TESTIMONIALS: New entry. - -2002-04-12 Monte Ohrt - - * plugins/modifier.strip_tags.php: back out changes to strip_tags - - * docs/programmers.sgml: update docs regarding cache_lifetime - - * plugins/modifier.strip_tags.php - Smarty.class.php: - update cache_lifetime logic: -1 = never expire, 0 = always expire - -2002-04-11 Andrei Zmievski - - * BUGS - FAQ - INSTALL - NEWS - Smarty.class.php - Smarty_Compiler.class.php - docs/getting-started.sgml: - Fixed directory separtor issue. Requiring PHP 4.0.6 now. - - * NEWS - Smarty_Compiler.class.php: - Added ability to use simple variables for array indices or object properties. - - * TESTIMONIALS: Another one. - - * TESTIMONIALS: Adding one from Mark P. - -2002-04-05 Andrei Zmievski - - * Smarty_Compiler.class.php - NEWS - Smarty.class.php: Make it possible to unregister pre/postfilter plugins. - -2002-04-05 Monte Ohrt - - * INSTALL: Remove addons file from INSTALL instructions - -2002-04-04 Monte Ohrt - - * docs/designers.sgml: update doc error - - * docs/designers.sgml - plugins/modifier.escape.php - NEWS - Smarty.class.php: added htmlall attribute to escape modifier - -2002-04-03 Andrei Zmievski - - * Smarty_Compiler.class.php: Fixed undefined offset warning in {if} tag. - - * Smarty.class.php - NEWS: Added template_exists() API. - - * Smarty.class.php - Smarty_Compiler.class.php - NEWS: - - Added $smarty.template variable. - - Fixed {include_php} tag when dynamic values were used for 'file' attribute. - - * Config_File.class.php: Separator setting fix. - -2002-03-28 Monte Ohrt - - * FAQ - README: add digest address - - * FAQ - README - Smarty.class.php: update mailing list addresses - -2002-03-28 Andrei Zmievski - - * NEWS: *** empty log message *** - - * plugins/function.html_select_date.php - plugins/function.html_select_time.php - plugins/modifier.date_format.php: - Fix for when plugins directory is not the default one. - -2002-03-28 Andrei Zmievski - - * NEWS: *** empty log message *** - - * plugins/function.html_select_date.php - plugins/function.html_select_time.php - plugins/modifier.date_format.php: - Fix for when plugins directory is not the default one. - -2002-03-27 Monte Ohrt - - * FAQ: update FAQ page - -2002-03-26 Andrei Zmievski - - * CREDITS - NEWS - Smarty.class.php - Smarty_Compiler.class.php - TODO: Block functions changes. - - * Config_File.class.php: *** empty log message *** - -2002-03-25 Andrei Zmievski - - * Smarty.class.php - Smarty_Compiler.class.php: Initial implementation of block functions. - -2002-03-22 Monte Ohrt - - * docs/designers.sgml: fix documentation error in capture - -2002-03-22 Andrei Zmievski - - * Smarty.class.php: *** empty log message *** - - * Smarty.class.php: Turn off notices. - -2002-03-21 Andrei Zmievski - - * Smarty_Compiler.class.php: Make _current_file available to prefilters. - - * NEWS - Smarty.class.php: - Made is possible to assign variables in pre/postfilters. - -2002-03-20 Andrei Zmievski - - * plugins/function.html_select_date.php: Fixed +/- functionality. - - * NEWS: *** empty log message *** - -2002-03-20 Monte Ohrt - - * Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.class.php - Smarty_Compiler.class.php: update version numbers - - * plugins/function.html_select_date.php - plugins/function.html_select_time.php - plugins/modifier.date_format.php: - move .make_timestamp.php to shared.make_timestamp.php - - * NEWS - Smarty.class.php - docs/designers.sgml - plugins/function.fetch.php - plugins/function.html_select_date.php: - update file generation, replace crc32() '-' with 'N' - -2002-03-20 Andrei Zmievski - - * Smarty_Compiler.class.php: *** empty log message *** - -2002-03-19 Andrei Zmievski - - * NEWS: *** empty log message *** - - * Smarty.class.php - Smarty_Compiler.class.php: - Fix plugin behavior for inserts with script attribute. - - * NEWS: *** empty log message *** - - * Smarty_Compiler.class.php: Fix bug with $smarty.cookies. - - * TESTIMONIALS: *** empty log message *** - -2002-03-15 Monte Ohrt - - * NEWS - docs/designers.sgml: update Changelog - - * plugins/modifier.indent.php - plugins/modifier.wordwrap.php: add wordwrap and indent to repository - -2002-03-14 Monte Ohrt - - * Smarty.class.php: - remove show_info_include and show_info_header functions - -2002-03-13 Monte Ohrt - - * plugins/function.fetch.php: update fetch function - - * plugins/function.fetch.php: update fetch function with new parameters - -2002-03-12 Monte Ohrt - - * docs/designers.sgml: update doc tables - - * docs/designers.sgml: update docs columns - - * docs/getting-started.sgml - docs/appendixes.sgml: update docs - - * TESTIMONIALS - docs/appendixes.sgml: update syntax error in docs, add to testimonials - -2002-03-04 Monte Ohrt - - * FAQ - README: update FAQ, README with digest mode info - -2002-03-02 Monte Ohrt - - * QUICKSTART: update quickstart - - * Smarty.class.php: - change behavior so cache_lifetime = 0 never expires (instead of always regenerate) - -2002-03-01 Monte Ohrt - - * docs/designers.sgml: update doc example - -2002-03-01 Andrei Zmievski - - * CREDITS - RELEASE_NOTES - TODO - NEWS: *** empty log message *** - -2002-03-01 Monte Ohrt - - * docs/appendixes.sgml - docs/designers.sgml - docs/getting-started.sgml - docs/programmers.sgml: update document id tags - - * docs.sgml: remove docs.sgml - - * RESOURCES - Smarty.class.php: update resources - -2002-02-28 Andrei Zmievski - - * TESTIMONIALS - docs/appendixes.sgml - docs/designers.sgml - docs/programmers.sgml: *** empty log message *** - -2002-02-27 Andrei Zmievski - - * plugins/function.eval.php - docs/designers.sgml: *** empty log message *** - -2002-02-27 Monte Ohrt - - * plugins/function.eval.php: added eval function to plugin dir - -2002-02-27 Andrei Zmievski - - * NEWS: *** empty log message *** - -2002-02-27 Monte Ohrt - - * docs/designers.sgml: fix syntax error - - * docs/appendixes.sgml - docs/designers.sgml - docs/getting-started.sgml - docs/programmers.sgml: convert technical notes to docbook format - - * NEWS - docs/designers.sgml: added "eval" plugin docs - -2002-02-26 Andrei Zmievski - - * docs/programmers.sgml - docs/designers.sgml - docs/appendixes.sgml - docs/getting-started.sgml - docs/html-common.dsl - docs/.cvsignore: *** empty log message *** - - * docs/appendixes.sgml - docs/common.dsl - docs/designers.sgml - docs/getting-started.sgml - docs/html-common.dsl - docs/html.dsl - docs/manual.sgml - docs/preface.sgml - docs/programmers.sgml: Split up docs. - -2002-02-25 Andrei Zmievski - - * docs.sgml: *** empty log message *** - -2002-02-22 Monte Ohrt - - * docs.sgml: update docs - -2002-02-22 Andrei Zmievski - - * docs.sgml - AUTHORS - NEWS: *** empty log message *** - -2002-02-21 Monte Ohrt - - * Config_File.class.php - NEWS - Smarty.class.php - Smarty_Compiler.class.php - docs.sgml: update misc changes - -2002-02-21 Andrei Zmievski - - * docs.sgml: *** empty log message *** - -2002-02-20 Monte Ohrt - - * docs.sgml: misc updates - -2002-02-20 Andrei Zmievski - - * docs.sgml: *** empty log message *** - - * Smarty.class.php - plugins/function.assign.php - plugins/function.assign_debug_info.php - plugins/function.counter.php - plugins/function.fetch.php - plugins/function.math.php - plugins/function.popup.php - plugins/function.popup_init.php - plugins/modifier.escape.php: Fixup some naming. - -2002-02-20 Monte Ohrt - - * docs.sgml: update docs - -2002-02-20 Andrei Zmievski - - * docs.sgml: *** empty log message *** - -2002-02-20 Monte Ohrt - - * NEWS - docs.sgml - plugins/modifier.escape.php: - removed global vars from fetch function, added attrs to escape modifier - - * docs.sgml: add plugin chapter outline - -2002-02-19 Monte Ohrt - - * README - RELEASE_NOTES - RESOURCES - Smarty.class.php - docs.sgml - BUGS - FAQ - INSTALL - QUICKSTART: update docs - -2002-02-19 Andrei Zmievski - - * docs.sgml: Updated resources docs. - - * README: *** empty log message *** - - * docs.sgml: Updated description of {$smarty} variable. - - * BUGS - FAQ - INSTALL - QUICKSTART - RELEASE_NOTES - docs.sgml: Remove PEAR notes. - -2002-02-18 Andrei Zmievski - - * Config_File.class.php - NEWS: Removed dependency on PEAR. - -2002-02-18 Monte Ohrt - - * NEWS - docs.sgml - plugins/function.popup_init.php: add src attribute to popup_init - -2002-02-15 Andrei Zmievski - - * Smarty_Compiler.class.php - plugins/modifier.debug_print_var.php - NEWS - Smarty.class.php: Performance enhancements. - -2002-02-06 Andrei Zmievski - - * plugins/function.html_options.php: - Fix html_options output to be XHTML compatible. - -2002-02-05 Andrei Zmievski - - * Smarty.class.php - Smarty_Compiler.class.php: Fix up plugin inclusion. - - * Smarty.class.php - Smarty_Compiler.class.php - TODO - plugins/function.html_select_date.php - plugins/function.html_select_time.php - plugins/modifier.date_format.php: Fix plugin directory access. - -2002-02-04 Andrei Zmievski - - * .cvsignore - Smarty_Compiler.class.php: *** empty log message *** - -2002-01-31 Andrei Zmievski - - * NEWS: *** empty log message *** - - * Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php - TODO - plugins/function.assign.php - plugins/function.assign_debug_info.php - plugins/function.counter.php - plugins/function.fetch.php - plugins/function.html_options.php - plugins/function.html_select_date.php - plugins/function.html_select_time.php - plugins/function.math.php - plugins/function.popup.php - plugins/function.popup_init.php - plugins/modifier.capitalize.php - plugins/modifier.count_characters.php - plugins/modifier.count_paragraphs.php - plugins/modifier.count_sentences.php - plugins/modifier.count_words.php - plugins/modifier.date_format.php - plugins/modifier.debug_print_var.php - plugins/modifier.default.php - plugins/modifier.escape.php - plugins/modifier.lower.php - plugins/modifier.regex_replace.php - plugins/modifier.replace.php - plugins/modifier.spacify.php - plugins/modifier.string_format.php - plugins/modifier.strip_tags.php - plugins/modifier.truncate.php - plugins/modifier.upper.php - plugins/shared.make_timestamp.php - templates/index.tpl - AUTHORS - CREDITS - Config_File.class.php - README: Implemented plugin architecture. - - * NEWS: *** empty log message *** - -2002-01-30 Monte Ohrt - - * NEWS - Smarty.addons.php - Smarty.class.php - docs.sgml: added modifiers wordwrap and indent - -2002-01-28 Monte Ohrt - - * Smarty.class.php - docs.sgml: - add support for is-modified-since headers, adjust a doc example - -2002-01-24 Monte Ohrt - - * Smarty.class.php: cleanup formatting - - * NEWS - Smarty.class.php - docs.sgml: update ChangeLog, remove insert_tag_check parameter - -2002-01-24 Andrei Zmievski - - * plugins/standard.plugin.php: *** empty log message *** - -2002-01-24 Monte Ohrt - - * Smarty.class.php: fix syntax error - - * Smarty.class.php: removed unneccesary test from fetch() - -2002-01-23 Monte Ohrt - - * Smarty.addons.php: update overlib fixes - - * NEWS: update changelog - - * FAQ - NEWS - RESOURCES - Smarty.addons.php: updated overlib fixes - -2001-12-31 Andrei Zmievski - - * NEWS - Smarty.class.php: Fixed compile_id problem. - -2001-12-28 Monte Ohrt - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - fixed problem with using assigned var with include_php filepath - -2001-12-21 Monte Ohrt - - * RESOURCES: update RESOURCES - -2001-12-20 Monte Ohrt - - * FAQ - README: update FAQ - -2001-12-18 Monte Ohrt - - * Smarty_Compiler.class.php - docs.sgml - Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php: update version numbers - -2001-12-18 Andrei Zmievski - - * NEWS - Smarty.class.php: Fixed clear_cache(). - -2001-12-14 Monte Ohrt - - * NEWS - Smarty.addons.php: - fixed bug in smarty_make_timestamp introduced in PHP 4.1.0 - -2001-12-13 Monte Ohrt - - * NEWS - Smarty.class.php - docs.sgml: update default function args, fix cached insert debug timing - -2001-12-12 Monte Ohrt - - * docs.sgml: fix syntax error in documentation - - * Smarty.class.php: update default template handling functionality - -2001-12-11 Monte Ohrt - - * Smarty.class.php - Smarty_Compiler.class.php: update file fetching logic - -2001-12-11 Andrei Zmievski - - * NEWS - Smarty.class.php: Added 'script' attribute to {insert..}. - -2001-12-10 Monte Ohrt - - * NEWS - Smarty.class.php: added default template function handler - - * Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: update version numbers in files to 1.5.1 - -2001-12-10 Andrei Zmievski - - * NEWS - Smarty.class.php: Removed error message from the _read_file() method. - - * Smarty.class.php: Fix check for compile and cache IDs. - -2001-12-06 Monte Ohrt - - * QUICKSTART: fix spelling error in QUICKSTART - - * docs.sgml: fixed spelling errors in documenation - - * Smarty_Compiler.class.php - docs.sgml - Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php: commit 1.5.0 release - - * RESOURCES - docs.sgml: added RESOURCES file - -2001-12-05 Andrei Zmievski - - * Smarty_Compiler.class.php: Refactor. - -2001-12-05 Monte Ohrt - - * NEWS - Smarty_Compiler.class.php - docs.sgml: added assign to include and php_include - - * Smarty.class.php - Smarty_Compiler.class.php - docs.sgml: *** empty log message *** - -2001-12-04 Andrei Zmievski - - * NEWS - Smarty_Compiler.class.php: Formatting. - -2001-12-04 Monte Ohrt - - * Smarty_Compiler.class.php - NEWS - Smarty.class.php: update ChangeLog - -2001-12-04 Andrei Zmievski - - * NEWS - Smarty.class.php: Formatting. - -2001-12-04 Monte Ohrt - - * Smarty.class.php: removed SMARTY_DIR setting in constructor - - * Smarty.class.php: fix Smarty.class.php indention error - - * Smarty.class.php: update trusted logic - -2001-12-03 Monte Ohrt - - * Smarty.class.php: - fix up is_secure, is_trusted, make _parse_tpl_path function - - * Smarty.class.php: fix problem with testing SMARTY_DIR as empty - - * NEWS - docs.sgml: update documentation, change log - - * Smarty.class.php: - update constructor to check for SMARTY_DIR before assigning - -2001-12-03 Andrei Zmievski - - * NEWS - Smarty.class.php: *** empty log message *** - -2001-12-03 Monte Ohrt - - * FAQ - INSTALL - RELEASE_NOTES: update a few files - - * NEWS - QUICKSTART - Smarty.class.php - docs.sgml: added trusted_dir functionality, cleaned up secure_dir logic - -2001-12-03 Andrei Zmievski - - * NEWS: *** empty log message *** - - * NEWS - Smarty.class.php: - Introduced $compile_id class variable. - - Fixed a situation where if $cache_id and $compile_id were both null - they were passed to auto functions as empty string instead of null. - -2001-11-30 Monte Ohrt - - * NEWS - Smarty.class.php: - change variable names in fetch() fuction to smarty_* to avoid namespace conflicts - - * NEWS - Smarty.class.php: fixed bug in _rm_auto with catenated null values - -2001-11-29 Andrei Zmievski - - * NEWS - Smarty_Compiler.class.php: Added $smarty.section.* syntax. - - * Smarty_Compiler.class.php: Made 'name' attribute optional for {foreach}. - -2001-11-29 Monte Ohrt - - * Smarty.class.php - index.php: remove assign "now" in index.tpl - -2001-11-29 Andrei Zmievski - - * NEWS - Smarty.addons.php - Smarty.class.php: Fix formatting. - -2001-11-28 Monte Ohrt - - * NEWS - Smarty.class.php - docs.sgml: - removed return statements from _read_cache_file (how did they get in there?) - -2001-11-27 Monte Ohrt - - * docs.sgml - NEWS - Smarty.addons.php - Smarty.class.php: - fixed bugs and added assign attribute to several functions - -2001-11-27 Andrei Zmievski - - * NEWS: Some rewording. - - * Smarty_Compiler.class.php: Fix $smarty.capture access. - - * TODO: *** empty log message *** - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - Made {config_load ..} merge globals from each config file only once per scope. - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - Added {foreach ...}. - - Made certain $smarty.* references handled at compilation time. - -2001-11-26 Monte Ohrt - - * Config_File.class.php - NEWS - Smarty.class.php - Smarty_Compiler.class.php - docs.sgml: commit cache handler functionality - -2001-11-20 Andrei Zmievski - - * NEWS - Smarty.addons.php - Smarty_Compiler.class.php: Various fixes and additions. - - * NEWS - index.php: *** empty log message *** - -2001-11-05 Monte Ohrt - - * Smarty.class.php: changed _read_file parameter from $end to $lines - - * NEWS - Smarty.class.php: fixed is_cache, make cache reading more efficient - -2001-11-02 Monte Ohrt - - * FAQ - NEWS: update FAQ with mailing list Reply-To header FAQ - - * NEWS - Smarty.class.php - index.php: supress fopen errors, return false if cache file won't load - -2001-11-01 Monte Ohrt - - * QUICKSTART - docs.sgml - index.php: update QUICKSTART guide with index key example - - * Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php - docs.sgml: commit all updates for 1.4.6 - -2001-11-01 Andrei Zmievski - - * NEWS: *** empty log message *** - -2001-10-30 Monte Ohrt - - * Smarty.addons.php: fix assign function problem with empty value passed - - * NEWS - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php - templates/debug.tpl: - fixed bug in assign function when passing an empty value - -2001-10-26 Monte Ohrt - - * Smarty.addons.php - Smarty.class.php - index.php: fix minor typo in debug code - -2001-10-26 Andrei Zmievski - - * Smarty.class.php: Typo. - -2001-10-26 Monte Ohrt - - * Smarty.addons.php: - update debug console output, handle html encoding correctly - -2001-10-26 Andrei Zmievski - - * Smarty.addons.php - templates/debug.tpl: Debug formatting. - - * Smarty.class.php: Disable rmdir warning. - -2001-10-26 Monte Ohrt - - * Smarty.addons.php - Smarty.class.php - templates/debug.tpl: update debugging to expand array variables - - * Smarty.class.php - docs.sgml: - update docs for fetching only timestamp with custom template source functions - - * Smarty.addons.php: fix debug console error - -2001-10-26 Andrei Zmievski - - * docs.sgml: Typos. - - * Smarty.addons.php: Cleanup whitespace. - - * Smarty_Compiler.class.php: Clean up whitespace. - - * Smarty.class.php: Cleaning up code, formatting mostly. - - * NEWS: *** empty log message *** - -2001-10-25 Monte Ohrt - - * NEWS - docs.sgml: update documentation to current version - - * NEWS - Smarty.addons.php: - updated fetch to give proper warning when fetching unreadable or nonexistant files - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - fixed problem with newline at the end of compiled templates - - * NEWS - Smarty.class.php: recompile cache if config file gets modified too. - - * NEWS - Smarty.class.php: - added feature to regenerate cache if compile_check is enabled and an - involved template is modified - -2001-10-23 Monte Ohrt - - * Smarty.class.php: fix indent for insert tags in debug console - - * templates/debug.tpl: update debug.tpl file format - - * NEWS - Smarty.addons.php - Smarty.class.php - templates/debug.tpl: - update execution time debugging, move into include list - -2001-10-10 Monte Ohrt - - * NEWS - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: - fixed up execution time output in debug console - -2001-10-09 Andrei Zmievski - - * Config_File.class.php - NEWS - Smarty.class.php - TODO: Added support for hidden config vars. - -2001-10-04 Monte Ohrt - - * NEWS - Smarty.addons.php - Smarty.class.php - templates/debug.tpl: added execution times to debug console - -2001-10-02 Andrei Zmievski - - * Smarty_Compiler.class.php: Add space. - -2001-10-01 Andrei Zmievski - - * Smarty.class.php: Fix reference to compile_id. - -2001-09-28 Andrei Zmievski - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: Added postfilter functions. - -2001-09-26 Andrei Zmievski - - * NEWS - Smarty.class.php - docs.sgml: Rename to clear_compiled_tpl(). - -2001-09-25 Andrei Zmievski - - * NEWS - Smarty_Compiler.class.php: - Fixed line number reporting when removing comments. - -2001-09-20 Monte Ohrt - - * NEWS - RELEASE_NOTES - Smarty.addons.php: made html_options output xhtml compatible - -2001-09-19 Monte Ohrt - - * Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php - templates/debug.tpl: updated version numbers - -2001-09-16 Monte Ohrt - - * FAQ - NEWS - docs.sgml: fix doc error with insert function - -2001-09-06 Andrei Zmievski - - * NEWS: *** empty log message *** - -2001-08-31 Monte Ohrt - - * NEWS: update ChangeLog - - * overlib.js - Smarty.addons.php - Smarty.class.php - docs.sgml: - update overlib to 3.50, adjust addon code so that the overlib.js file isn't modified - -2001-08-31 Andrei Zmievski - - * Smarty.class.php: - compile_id changes - - * NEWS - Smarty.addons.php: - compile_id support - - new options for html_select_date - -2001-08-23 Andrei Zmievski - - * TODO: *** empty log message *** - -2001-08-10 Andrei Zmievski - - * NEWS - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: - Modified to pass Smarty object as second parameter to insert functions. - Also moved _smarty_mod_handler() and _smarty_insert_handler() into the class. - - * NEWS - Smarty_Compiler.class.php: - Passing Smarty as second parameter to prefilter functions. - -2001-08-09 Andrei Zmievski - - * NEWS: *** empty log message *** - -2001-08-09 Monte Ohrt - - * templates/index.tpl - Smarty.class.php: add smarty.now variable to template - -2001-08-06 Monte Ohrt - - * templates/index.tpl: change config_load section back to setup - -2001-08-06 Andrei Zmievski - - * Smarty.addons.php: Optimize a bit. - -2001-08-04 Monte Ohrt - - * docs.sgml: update capture documentation - -2001-08-03 Monte Ohrt - - * FAQ - NEWS - Smarty.class.php: - fix bug with URL controlled debugging, works now (Monte) - -2001-08-01 Andrei Zmievski - - * Config_File.class.php: *** empty log message *** - - * Smarty_Compiler.class.php - Smarty.class.php: - Fixed some E_NOTICE stuff in compiler. - - Generalized assign_smarty_interface() a bit. - -2001-07-24 Andrei Zmievski - - * NEWS - Smarty_Compiler.class.php - TODO: See ChangeLog for details. - -2001-07-20 Andrei Zmievski - - * Config_File.class.php: Booleanize case-insensitively. - -2001-07-17 Monte Ohrt - - * NEWS: update ChangeLog - - * Smarty.class.php - docs.sgml: put SMARTY_DIR on Config_File require - -2001-07-11 Monte Ohrt - - * docs.sgml - FAQ - NEWS - Smarty.class.php: - updated security to not include insecure docs, only warning - -2001-07-10 Andrei Zmievski - - * Smarty.class.php: Adding 'sizeof' as an allowed {if} function. - -2001-07-06 Andrei Zmievski - - * NEWS: *** empty log message *** - -2001-07-06 Monte Ohrt - - * Config_File.class.php - NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: update version number to 1.4.4 - - * NEWS - Smarty.addons.php - Smarty_Compiler.class.php - docs.sgml - templates/header.tpl - templates/index.tpl: update documenatation, template examples - -2001-07-03 Andrei Zmievski - - * NEWS - Smarty.class.php: Implemented access to request vars via $smarty var. - - * NEWS - Smarty_Compiler.class.php: - Fixed a bug with parsing function arguments in {if} tags. - -2001-06-30 Monte Ohrt - - * NEWS: update ChangeLog - -2001-06-29 Monte Ohrt - - * Smarty.addons.php - Smarty.class.php - docs.sgml - overlib.js: - moved overlib to separate file, added SMARTY_DIR, documented. added much documentation - -2001-06-29 Andrei Zmievski - - * NEWS - RELEASE_NOTES - TODO: *** empty log message *** - -2001-06-29 Monte Ohrt - - * NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - docs.sgml - index.php - templates/debug.tpl - templates/header.tpl - templates/index.tpl: update release notes - -2001-06-27 Andrei Zmievski - - * Smarty_Compiler.class.php: *** empty log message *** - - * NEWS - Smarty_Compiler.class.php: Implemented 'step' section attribute. - - * Smarty_Compiler.class.php: Negative values of 'max' will mean no max. - - * AUTHORS - NEWS: *** empty log message *** - -2001-06-26 Andrei Zmievski - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - index.php: Added 'max' and 'start' section attributes. - Added 'total' and 'iteration' section properties. - -2001-06-25 Andrei Zmievski - - * Config_File.class.php - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: Update version numbers. - -2001-06-23 Andrei Zmievski - - * TODO: *** empty log message *** - -2001-06-21 Andrei Zmievski - - * Config_File.class.php - NEWS: Fixed booleanization bug. - -2001-06-20 Monte Ohrt - - * docs.sgml: - update documents to reflect changes to cached content & debugging - -2001-06-20 Andrei Zmievski - - * Smarty.addons.php - Smarty.class.php: Remove debug output for cached and fetched cases. - -2001-06-20 Monte Ohrt - - * Smarty.class.php: update include_info to false - - * Smarty.class.php - docs.sgml - index.php - templates/footer.tpl: - moved debug logic into Smarty completely, created flags for it - -2001-06-19 Andrei Zmievski - - * Smarty.addons.php - Smarty.class.php - templates/debug.tpl: *** empty log message *** - - * NEWS - Smarty.class.php: Remove unneeded debug functions. - -2001-06-19 Monte Ohrt - - * NEWS - Smarty.addons.php - Smarty.class.php - docs.sgml - templates/debug.tpl - templates/footer.tpl: commit updates, add debug template - -2001-06-19 Andrei Zmievski - - * Smarty.class.php - Smarty_Compiler.class.php - TODO: - Moved config loading code inside main class, the compiled template now - simply calls that method. - -2001-06-15 Andrei Zmievski - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - templates/index.tpl: * moved config array into class itself - * added 'scope' attribute for config_load - - * Smarty_Compiler.class.php - Smarty.addons.php - Smarty.class.php: Finishing up secure mode. - -2001-06-15 Monte Ohrt - - * NEWS: update ChangeLog - - * Smarty_Compiler.class.php: cleaned up logic of if statement security - - * Smarty_Compiler.class.php: update if logic to cover more situations - - * Smarty_Compiler.class.php - docs.sgml: update if statement security feature - -2001-06-14 Andrei Zmievski - - * Smarty.addons.php - Smarty.class.php: *** empty log message *** - - * NEWS - Smarty_Compiler.class.php: - Fixed a bug with quoted strings inside if statements. - -2001-06-13 Monte Ohrt - - * Smarty.addons.php - Smarty.class.php: added secure_dir array for multiple secure directories - - * Smarty.addons.php: update fetch funtion to respect security setting - - * NEWS - Smarty.addons.php - Smarty.class.php - docs.sgml: update documentation, changelog - - * Smarty.addons.php - Smarty.class.php: moved _extract setting to assign functions - - * Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: - added assign/unassign custom functions, ability to re-extract tpl_vars - - * Smarty.class.php - Smarty_Compiler.class.php - docs.sgml - index.php: commit security features - -2001-06-11 Andrei Zmievski - - * Smarty.class.php: Version variable typo. - -2001-06-05 Andrei Zmievski - - * Smarty.class.php: - Create config object in fetch() or just set the config path if it already - exists. - -2001-06-04 Andrei Zmievski - - * Smarty.class.php: *** empty log message *** - - * NEWS - Smarty_Compiler.class.php: - Fixed a problem with $ inside strip tags. - -2001-05-31 Andrei Zmievski - - * NEWS: *** empty log message *** - - * Config_File.class.php: Allow empty config_path. - -2001-05-29 Monte Ohrt - - * Smarty_Compiler.class.php - docs.sgml - NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php: update version numbers - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - docs.sgml: moved version variable to internal variable - -2001-05-22 Andrei Zmievski - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php: - Moved $_smarty_sections and $_smarty_conf_obj into Smarty class. - -2001-05-18 Monte Ohrt - - * NEWS: update ChangeLog - - * FAQ - QUICKSTART: update FAQ, QUICKSTART for windows include_path setup - - * configs/test.conf: added configs directory to cvs - -2001-05-18 Andrei Zmievski - - * Smarty.class.php: Use compiler_class for including the file. - -2001-05-18 Monte Ohrt - - * docs.sgml: fix typo - -2001-05-16 Monte Ohrt - - * README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: update files to version 1.4.1 - - * NEWS: update ChangeLog - -2001-05-15 Andrei Zmievski - - * NEWS: *** empty log message *** - - * index.php: forget that! - - * NEWS - Smarty_Compiler.class.php - index.php: Fixed a few E_NOTICE warnings. - -2001-05-09 Monte Ohrt - - * NEWS - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - docs.sgml: update dates versions - -2001-05-09 Andrei Zmievski - - * NEWS: *** empty log message *** - - * Smarty.class.php: - Use absolute paths when requiring/including Smart components. - - * NEWS: *** empty log message *** - - * Smarty.class.php: Use write mode instead of append. - -2001-05-02 Andrei Zmievski - - * NEWS - Smarty_Compiler.class.php: Fix indexing by section properties. - -2001-05-02 Monte Ohrt - - * NEWS: update changelog - - * Smarty.class.php: remove period from syntax error - -2001-05-02 Andrei Zmievski - - * Smarty_Compiler.class.php: Double-quote the attribute values by default. - -2001-04-30 Monte Ohrt - - * Smarty_Compiler.class.php - NEWS: added simple {capture} logic - -2001-04-30 Andrei Zmievski - - * TODO: *** empty log message *** - - * Smarty_Compiler.class.php - Smarty.class.php: Fix passing config vars to included files. - - * Smarty.class.php - Smarty_Compiler.class.php: Fix inclusion again. - -2001-04-30 Monte Ohrt - - * FAQ - RELEASE_NOTES - Smarty.class.php - misc/fix_vars.php - NEWS: update paths for windows (c:) - -2001-04-28 Andrei Zmievski - - * Smarty.class.php - Smarty_Compiler.class.php: Fix passing variables to included files. - - * templates/index.tpl: *** empty log message *** - -2001-04-27 Andrei Zmievski - - * Smarty_Compiler.class.php: Fix includes. - -2001-04-26 Andrei Zmievski - - * Smarty_Compiler.class.php - docs.sgml - Smarty.class.php: Formatting mostly. - - * Smarty_Compiler.class.php - Config_File.class.php: *** empty log message *** - -2001-04-26 Monte Ohrt - - * Smarty_Compiler.class.php - docs.sgml - FAQ - NEWS - QUICKSTART - RELEASE_NOTES - Smarty.class.php: update docs with new changes - -2001-04-26 Andrei Zmievski - - * RELEASE_NOTES: *** empty log message *** - - * docs.sgml - templates/index.tpl - NEWS - Smarty_Compiler.class.php: Added ability to reference object properties. - -2001-04-25 Andrei Zmievski - - * README - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php - docs.sgml - AUTHORS - Config_File.class.php - CREDITS - RELEASE_NOTES - NEWS: *** empty log message *** - - * docs.sgml: Docs on new parameter to custom functions. - - * NEWS: *** empty log message *** - - * Smarty_Compiler.class.php: - Changing the way tpl vars are referenced and passing smarty object - to custom functions. - - * RELEASE_NOTES - docs.sgml: Fixing docs a bit. - -2001-04-24 Andrei Zmievski - - * docs.sgml: Docs for $compiler_class and compiler functions. - - * templates/index.tpl: *** empty log message *** - - * Smarty_Compiler.class.php: Remove debugging. - -2001-04-24 Monte Ohrt - - * docs.sgml: update compiler function docs - -2001-04-24 Andrei Zmievski - - * NEWS - Smarty.class.php - Smarty_Compiler.class.php - templates/index.tpl: Added compiler function support. - -2001-04-24 Monte Ohrt - - * RELEASE_NOTES - Smarty.class.php: - update notes, change show_info_header to false by default - - * Smarty.class.php - Smarty_Compiler.class.php - docs.sgml - CREDITS - FAQ - NEWS - README - RELEASE_NOTES: update documenation, bug fixes - -2001-04-24 Andrei Zmievski - - * misc/fix_vars.php: Hopefully fix for sure. - -2001-04-23 Monte Ohrt - - * misc/fix_vars.php: uncomment copy/unlink - -2001-04-23 Andrei Zmievski - - * misc/fix_vars.php: Do it more thoroughly. - - * misc/fix_vars.php: check for } - -2001-04-22 Andrei Zmievski - - * misc/fix_vars.php: Fix variable parsing. - -2001-04-20 Monte Ohrt - - * misc/fix_vars.php: fix problem with 4.0.5-dev and preg_replace_callback - -2001-04-19 Monte Ohrt - - * Smarty_Compiler.class.php - docs.sgml - misc/fix_vars.php - NEWS - RELEASE_NOTES - Smarty.class.php: update notes/documentation - - * NEWS - README - RELEASE_NOTES - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php - docs.sgml: update files for 1.4.0 release - -2001-04-16 Andrei Zmievski - - * misc/fix_vars.php: Added fix_vars.php script. - -2001-04-16 Monte Ohrt - - * QUICKSTART - RELEASE_NOTES - docs.sgml - templates/index.tpl: - update RELEASE_NOTES & scripts with new section var syntax - -2001-04-13 Andrei Zmievski - - * Smarty_Compiler.class.php: * Implement new variable format parser. - * Optimizing config load a bit. - -2001-04-13 Monte Ohrt - - * FAQ - NEWS - RELEASE_NOTES - Smarty.class.php: - added $check_cached_insert_tags to speed up cached pages if - {insert ...} is not used (Monte) - -2001-04-12 Andrei Zmievski - - * NEWS - Smarty.class.php - RELEASE_NOTES: *** empty log message *** - - * Smarty_Compiler.class.php: Remove redundant functions. - - * Smarty.class.php: Formatting. - -2001-04-12 Monte Ohrt - - * Smarty.class.php: update file: parsing - - * Smarty.class.php - docs.sgml: update documentation - -2001-04-12 Andrei Zmievski - - * Smarty.class.php - Smarty_Compiler.class.php - TODO: *** empty log message *** - -2001-04-11 Monte Ohrt - - * FAQ - QUICKSTART - RELEASE_NOTES: added RELEASE_NOTES file to cvs - - * NEWS - docs.sgml: update ChangeLog, update documentation - - * Smarty.class.php - Smarty_Compiler.class.php - templates/index.tpl: - update Smarty to compile at run-time. added ability to get files from - absolute paths, added work around for LOCK_EX and windows, changed a few - file permissions to be more secure. - -2001-03-29 Monte Ohrt - - * NEWS - Smarty.addons.php: - allow arbitrary date strings instead of just timestamps - -2001-03-28 Monte Ohrt - - * Smarty.class.php - Smarty_Compiler.class.php - docs.sgml - FAQ - NEWS - README - Smarty.addons.php: - update version in class, update docs for count_ and new vars - - * templates/index.tpl - docs.sgml: update docs, example template - -2001-03-28 Andrei Zmievski - - * Smarty_Compiler.class.php: Some variable renaming. - -2001-03-23 Andrei Zmievski - - * Smarty_Compiler.class.php - NEWS: Fixed nested include infinite repeat bug. - -2001-03-23 Monte Ohrt - - * Smarty.class.php: fix version number - - * Smarty.class.php - NEWS: added optional HTML header to output - -2001-03-22 Andrei Zmievski - - * Smarty_Compiler.class.php: Fixed inclusion of dynamic files. - -2001-03-16 Andrei Zmievski - - * Smarty_Compiler.class.php: Fixing the config_load scoping. - - * Smarty_Compiler.class.php: making config variables global for now. - -2001-03-15 Andrei Zmievski - - * NEWS: *** empty log message *** - - * Smarty_Compiler.class.php: - * Includes are now always done via generated function call to protect - namespace. - * config_load now always uses global config object to improve - performance. - -2001-03-13 Monte Ohrt - - * docs.sgml: update math documentation with format attribute - -2001-03-11 Monte Ohrt - - * docs.sgml - NEWS - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: update math function with format attribute - -2001-03-10 Andrei Zmievski - - * Smarty.addons.php: *** empty log message *** - - * NEWS - Smarty.addons.php - Smarty.class.php: Added html_select_time custom function. - -2001-03-08 Monte Ohrt - - * Smarty.class.php - Smarty_Compiler.class.php - NEWS - README - Smarty.addons.php: rename 1.3.1b to 1.3.1pl1 - - * NEWS - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php: update version numbers, changelog - - * Smarty.class.php - Smarty_Compiler.class.php: - moved _syntax_error to Smarty_Compiler.class.php - - * Smarty.class.php - docs.sgml: - missing _syntax_error function recovered. fixed minor syntax in docs - -2001-03-07 Monte Ohrt - - * QUICKSTART - README - Smarty.addons.php - Smarty.class.php - Smarty_Compiler.class.php - BUGS - INSTALL - NEWS: update everything to 1.3.1 - -2001-03-03 Monte Ohrt - - * Smarty_Compiler.class.php - Smarty.class.php: fixed bug with cached insert tags - -2001-03-02 Monte Ohrt - - * Smarty.class.php - Smarty_Compiler.class.php: - fix cache fuctions with separated compiled class - - * FAQ - NEWS - docs.sgml: update changelog - -2001-03-02 Andrei Zmievski - - * NEWS - Smarty_Compiler.class.php: Added 'first' and 'last' section properties. - -2001-03-02 Monte Ohrt - - * TODO: remove compiling separation TODO - - * Smarty_Compiler.class.php - Smarty.addons.php - Smarty.class.php: update function headers - - * templates/index.tpl - NEWS - Smarty.class.php - Smarty_Compiler.class.php - index.php: split out compiling code for faster execution - - * Smarty.class.php: fixed a few warning messages - - * Smarty.addons.php - Smarty.class.php - docs.sgml - NEWS: added fetch, unregister mod/fun, updated docs - -2001-03-01 Monte Ohrt - - * Smarty.addons.php: added "int" to available list - - * docs.sgml - FAQ - Smarty.class.php: update FAQ, add math functions & update documetation - - * index.php - Smarty.addons.php - Smarty.class.php - docs.sgml: fixed literal tags and other optional delimiters - -2001-02-26 Andrei Zmievski - - * NEWS - Smarty.class.php: - Added index_prev, index_next section properties and ability to - index by them. - - * NEWS - Smarty.addons.php - Smarty.class.php: Reverting the plugins patch - needs more thought. - - * Smarty.class.php: Fixing plugin loading. - -2001-02-23 Andrei Zmievski - - * Smarty.addons.php - Smarty.class.php - plugins/standard.plugin.php - NEWS: Added plugin functionality. - -2001-02-22 Monte Ohrt - - * docs.sgml - templates/index.tpl - NEWS - README - Smarty.class.php: fixed issue with php tags executed in literal blocks - -2001-02-21 Monte Ohrt - - * NEWS: update changelog for LGPL change - - * Smarty.class.php - docs.sgml - README - Smarty.addons.php: updated version numbers to 1.3.0 - - * NEWS - templates/index.tpl: update changelog, rearrange index.tpl file - -2001-02-21 Andrei Zmievski - - * NEWS - Smarty.class.php: *** empty log message *** - -2001-02-21 Monte Ohrt - - * docs.sgml: update parameters for is_cached and fetch - -2001-02-21 Andrei Zmievski - - * NEWS - Smarty.class.php: *** empty log message *** - -2001-02-21 Monte Ohrt - - * NEWS - Smarty.addons.php - docs.sgml: update docs, remove header function from addons - -2001-02-20 Monte Ohrt - - * FAQ - NEWS: update changelog - - * TODO: update todo - - * TODO: update todo list - - * Smarty.class.php: update php tag handling logic - -2001-02-19 Monte Ohrt - - * index.php - Config_File.class.php - FAQ - Smarty.class.php - docs.sgml: fixed - - * Smarty.addons.php: *** empty log message *** - -2001-02-13 Andrei Zmievski - - * TODO: *** empty log message *** - -2001-02-12 Andrei Zmievski - - * templates/index.tpl - Smarty.class.php: *** empty log message *** - -2001-02-10 Monte Ohrt - - * Smarty.class.php: remove unneeded preg_match - - * Smarty.class.php: remove comment - - * Smarty.class.php: updated php escape to handle -]]> - - - - Siehe auch: Escape Modifikator - - - diff --git a/trunk/docs/de/designers/language-basic-syntax/language-math.xml b/trunk/docs/de/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index ed4cf2c9..00000000 --- a/trunk/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/trunk/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 6157a661..00000000 --- a/trunk/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/trunk/docs/de/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/de/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index e2637a4e..00000000 --- a/trunk/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/trunk/docs/de/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/de/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 210e6c6b..00000000 --- a/trunk/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/trunk/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 28f1b6d9..00000000 --- a/trunk/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/trunk/docs/de/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/de/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index 343494c1..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions.xml b/trunk/docs/de/designers/language-builtin-functions.xml deleted file mode 100644 index c5f01a4c..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 99f366ca..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 76c675e3..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 761c9a8a..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index ac7f0839..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 6a9b7c56..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 23dc752d..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index cf433c53..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 28255a35..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 3e8fb583..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index aa0bb3bb..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 66e7d06a..00000000 --- a/trunk/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/trunk/docs/de/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/de/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 8c1bd21a..00000000 --- a/trunk/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/trunk/docs/de/designers/language-combining-modifiers.xml b/trunk/docs/de/designers/language-combining-modifiers.xml deleted file mode 100644 index 4db607e1..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions.xml b/trunk/docs/de/designers/language-custom-functions.xml deleted file mode 100644 index bfeee438..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/de/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 9e258620..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/de/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 3b8a19ef..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/de/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 05906dce..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/de/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 219d929d..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/de/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 96a329b7..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/de/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index ef10f319..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index e1f22415..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/de/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 8e60c2c1..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/de/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index eedb1dab..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/de/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index b0b00e27..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/de/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 43009aed..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/de/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 07ca48a4..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/de/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 6974bfe2..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/de/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 59b8171e..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-math.xml b/trunk/docs/de/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index b0abbe88..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/de/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index f5431ec9..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/de/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index af1c7a6a..00000000 --- a/trunk/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/trunk/docs/de/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/de/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 6fadeeb1..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers.xml b/trunk/docs/de/designers/language-modifiers.xml deleted file mode 100644 index 8afc176b..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 25b973ee..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 1a8543f9..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 05db32ab..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index e40474cd..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index b7fd99d5..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 8f6ce3ba..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 8941e54a..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 2703af2f..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index fba2cad2..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 8b418b04..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index b7b824ee..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 1840ed77..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index c304702e..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 734dba21..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index e25b09e4..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index b4a614dc..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index c9223d8b..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 0c54d73e..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index e4e75d6d..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 17409f17..00000000 --- a/trunk/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/trunk/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 3f0a8322..00000000 --- a/trunk/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/trunk/docs/de/designers/language-variables.xml b/trunk/docs/de/designers/language-variables.xml deleted file mode 100644 index 89ab6477..00000000 --- a/trunk/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/trunk/docs/de/designers/language-variables/language-assigned-variables.xml b/trunk/docs/de/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 29adf750..00000000 --- a/trunk/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/trunk/docs/de/designers/language-variables/language-config-variables.xml b/trunk/docs/de/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 4e0801e6..00000000 --- a/trunk/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/trunk/docs/de/designers/language-variables/language-variables-smarty.xml b/trunk/docs/de/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index a8f8f429..00000000 --- a/trunk/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/trunk/docs/de/getting-started.xml b/trunk/docs/de/getting-started.xml deleted file mode 100644 index d0a5463b..00000000 --- a/trunk/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/trunk/docs/de/language-defs.ent b/trunk/docs/de/language-defs.ent deleted file mode 100644 index 21451b72..00000000 --- a/trunk/docs/de/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/trunk/docs/de/language-snippets.ent b/trunk/docs/de/language-snippets.ent deleted file mode 100644 index 64825427..00000000 --- a/trunk/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/trunk/docs/de/livedocs.ent b/trunk/docs/de/livedocs.ent deleted file mode 100644 index a6204815..00000000 --- a/trunk/docs/de/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - -'> -'> - - diff --git a/trunk/docs/de/preface.xml b/trunk/docs/de/preface.xml deleted file mode 100644 index 3ed6902a..00000000 --- a/trunk/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/trunk/docs/de/programmers/advanced-features.xml b/trunk/docs/de/programmers/advanced-features.xml deleted file mode 100644 index 4366a3eb..00000000 --- a/trunk/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/trunk/docs/de/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/de/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 283a09f0..00000000 --- a/trunk/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/trunk/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 1138040b..00000000 --- a/trunk/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/trunk/docs/de/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/de/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 3e4d4c12..00000000 --- a/trunk/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/trunk/docs/de/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/de/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 2fd47e8b..00000000 --- a/trunk/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/trunk/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index 5a033ac0..00000000 --- a/trunk/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/trunk/docs/de/programmers/advanced-features/template-resources.xml b/trunk/docs/de/programmers/advanced-features/template-resources.xml deleted file mode 100644 index ad1d27fe..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions.xml b/trunk/docs/de/programmers/api-functions.xml deleted file mode 100644 index 92894552..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/de/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index ee11484d..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-append.xml b/trunk/docs/de/programmers/api-functions/api-append.xml deleted file mode 100644 index 3dd237d9..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/de/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 05790df3..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-assign.xml b/trunk/docs/de/programmers/api-functions/api-assign.xml deleted file mode 100644 index ebb26d39..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/de/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index 5ba769a5..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/de/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 8d6305e5..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-clear-assign.xml b/trunk/docs/de/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index 71fbaf5a..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-clear-cache.xml b/trunk/docs/de/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index f5645aaf..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 3f66c6d0..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-clear-config.xml b/trunk/docs/de/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 2c33899f..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-config-load.xml b/trunk/docs/de/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 23c102df..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-display.xml b/trunk/docs/de/programmers/api-functions/api-display.xml deleted file mode 100644 index b67258e7..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-fetch.xml b/trunk/docs/de/programmers/api-functions/api-fetch.xml deleted file mode 100644 index 8df4aa56..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/de/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 066e635e..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/de/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 2436759f..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/de/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index dbf96e3d..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-is-cached.xml b/trunk/docs/de/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index ce6255cd..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-load-filter.xml b/trunk/docs/de/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 54be01b4..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-block.xml b/trunk/docs/de/programmers/api-functions/api-register-block.xml deleted file mode 100644 index fccbc99d..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/de/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index c73176c1..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-function.xml b/trunk/docs/de/programmers/api-functions/api-register-function.xml deleted file mode 100644 index bc4eaad5..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-modifier.xml b/trunk/docs/de/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index 8d2e7f9a..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-object.xml b/trunk/docs/de/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 21485f37..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/de/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index bf4ade99..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/de/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 5622314b..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/de/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 2eeca3fe..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-register-resource.xml b/trunk/docs/de/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 4261f1ca..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-template-exists.xml b/trunk/docs/de/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 24d9e34c..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-trigger-error.xml b/trunk/docs/de/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index e5f08230..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-block.xml b/trunk/docs/de/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 273af855..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/de/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index def48478..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-function.xml b/trunk/docs/de/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 515f4bb0..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/de/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 67923e3f..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-object.xml b/trunk/docs/de/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 621c934f..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/de/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index ba8505e0..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/de/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 1316551b..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/de/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 73d7a9a5..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/de/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 65321d86..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables.xml b/trunk/docs/de/programmers/api-variables.xml deleted file mode 100644 index 836795f1..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/de/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 7b3068a4..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/de/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 37569492..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/de/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index fa7ea1a4..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/de/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index 26a22789..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/de/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 4d2e6cc4..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-caching.xml b/trunk/docs/de/programmers/api-variables/variable-caching.xml deleted file mode 100644 index 37bd5a34..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-compile-check.xml b/trunk/docs/de/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index ceab3831..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/de/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index 6230beb6..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-compile-id.xml b/trunk/docs/de/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 98f658f9..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/de/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index a0580855..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/de/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index 671eea8c..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-config-dir.xml b/trunk/docs/de/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index e8483d05..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/de/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index f67d5b58..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/de/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index c98121ea..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/de/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 3fc93dbf..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/de/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 9b56604b..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/de/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index f9527e0b..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-debugging.xml b/trunk/docs/de/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 61d1344b..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/de/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index c75a8592..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/de/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 2015e72e..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/de/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 2971689c..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/de/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index b78ea2bf..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-force-compile.xml b/trunk/docs/de/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 49b501e9..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/de/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 6bcd2505..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-php-handling.xml b/trunk/docs/de/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 95e3dea5..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/de/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 7e1c8d4f..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 72263e07..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/de/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index a18b107d..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/de/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 824be275..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/de/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 642cb871..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-security-settings.xml b/trunk/docs/de/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index 6d646189..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-security.xml b/trunk/docs/de/programmers/api-variables/variable-security.xml deleted file mode 100644 index 3852dd6e..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-template-dir.xml b/trunk/docs/de/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 17700ad9..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/de/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index e50a10c9..00000000 --- a/trunk/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/trunk/docs/de/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/de/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 1c6a8040..00000000 --- a/trunk/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/trunk/docs/de/programmers/caching.xml b/trunk/docs/de/programmers/caching.xml deleted file mode 100644 index dee2291f..00000000 --- a/trunk/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/trunk/docs/de/programmers/caching/caching-cacheable.xml b/trunk/docs/de/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 61fc327c..00000000 --- a/trunk/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/trunk/docs/de/programmers/caching/caching-groups.xml b/trunk/docs/de/programmers/caching/caching-groups.xml deleted file mode 100644 index 0f1653e1..00000000 --- a/trunk/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/trunk/docs/de/programmers/caching/caching-multiple-caches.xml b/trunk/docs/de/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index 3e88a006..00000000 --- a/trunk/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/trunk/docs/de/programmers/caching/caching-setting-up.xml b/trunk/docs/de/programmers/caching/caching-setting-up.xml deleted file mode 100644 index b0d6e162..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins.xml b/trunk/docs/de/programmers/plugins.xml deleted file mode 100644 index 5791a2c9..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-block-functions.xml b/trunk/docs/de/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index 8c274501..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/de/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index 3c99cc44..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-functions.xml b/trunk/docs/de/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 0837d5f1..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-howto.xml b/trunk/docs/de/programmers/plugins/plugins-howto.xml deleted file mode 100644 index e0bbe920..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-inserts.xml b/trunk/docs/de/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index c0ecccb1..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-modifiers.xml b/trunk/docs/de/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index a6a6bbfb..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/de/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index 90e8ef23..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/de/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 1e9069d0..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 54e36927..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-resources.xml b/trunk/docs/de/programmers/plugins/plugins-resources.xml deleted file mode 100644 index e71727a0..00000000 --- a/trunk/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/trunk/docs/de/programmers/plugins/plugins-writing.xml b/trunk/docs/de/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 039bbe75..00000000 --- a/trunk/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/trunk/docs/de/programmers/smarty-constants.xml b/trunk/docs/de/programmers/smarty-constants.xml deleted file mode 100644 index 8431d566..00000000 --- a/trunk/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/trunk/docs/dsssl/.cvsignore b/trunk/docs/dsssl/.cvsignore deleted file mode 100755 index 32b7bf7b..00000000 --- a/trunk/docs/dsssl/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -html-common.dsl diff --git a/trunk/docs/dsssl/common.dsl b/trunk/docs/dsssl/common.dsl deleted file mode 100644 index d8ce3c20..00000000 --- a/trunk/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/trunk/docs/dsssl/defaults/catalog b/trunk/docs/dsssl/defaults/catalog deleted file mode 100755 index 11bc0425..00000000 --- a/trunk/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/trunk/docs/dsssl/defaults/dsssl.dtd b/trunk/docs/dsssl/defaults/dsssl.dtd deleted file mode 100755 index 50f66baa..00000000 --- a/trunk/docs/dsssl/defaults/dsssl.dtd +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/defaults/fot.dtd b/trunk/docs/dsssl/defaults/fot.dtd deleted file mode 100755 index afe3576d..00000000 --- a/trunk/docs/dsssl/defaults/fot.dtd +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/defaults/style-sheet.dtd b/trunk/docs/dsssl/defaults/style-sheet.dtd deleted file mode 100755 index c6e04482..00000000 --- a/trunk/docs/dsssl/defaults/style-sheet.dtd +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/BUGS b/trunk/docs/dsssl/docbook/BUGS deleted file mode 100755 index 2400c964..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/PHPDOC-NOTE b/trunk/docs/dsssl/docbook/PHPDOC-NOTE deleted file mode 100755 index c3980900..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/README b/trunk/docs/dsssl/docbook/README deleted file mode 100755 index 46657433..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/VERSION b/trunk/docs/dsssl/docbook/VERSION deleted file mode 100755 index f23daf40..00000000 --- a/trunk/docs/dsssl/docbook/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.77 \ No newline at end of file diff --git a/trunk/docs/dsssl/docbook/catalog b/trunk/docs/dsssl/docbook/catalog deleted file mode 100755 index 1d599fe5..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/ChangeLog b/trunk/docs/dsssl/docbook/common/ChangeLog deleted file mode 100755 index b347a182..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/catalog b/trunk/docs/dsssl/docbook/common/catalog deleted file mode 100755 index 69fafdd6..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/cs-hack.pl b/trunk/docs/dsssl/docbook/common/cs-hack.pl deleted file mode 100755 index 7f1c1eeb..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbcommon.dsl b/trunk/docs/dsssl/docbook/common/dbcommon.dsl deleted file mode 100755 index ba5c3b95..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl10n.dsl b/trunk/docs/dsssl/docbook/common/dbl10n.dsl deleted file mode 100755 index 7edcd98b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl10n.ent b/trunk/docs/dsssl/docbook/common/dbl10n.ent deleted file mode 100755 index b482b097..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl10n.ent +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - diff --git a/trunk/docs/dsssl/docbook/common/dbl10n.pl b/trunk/docs/dsssl/docbook/common/dbl10n.pl deleted file mode 100755 index 86838413..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1af.dsl b/trunk/docs/dsssl/docbook/common/dbl1af.dsl deleted file mode 100755 index 12d49d1d..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1af.ent b/trunk/docs/dsssl/docbook/common/dbl1af.ent deleted file mode 100755 index 8aad4fb7..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1af.ent +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1ca.dsl b/trunk/docs/dsssl/docbook/common/dbl1ca.dsl deleted file mode 100755 index 8da7e4f9..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1ca.ent b/trunk/docs/dsssl/docbook/common/dbl1ca.ent deleted file mode 100755 index 1bcd3ca5..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1ca.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1cs.dsl b/trunk/docs/dsssl/docbook/common/dbl1cs.dsl deleted file mode 100755 index 3686dfdf..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1cs.ent b/trunk/docs/dsssl/docbook/common/dbl1cs.ent deleted file mode 100755 index bbb263be..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1cs.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1da.dsl b/trunk/docs/dsssl/docbook/common/dbl1da.dsl deleted file mode 100755 index b0a9edb9..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1da.ent b/trunk/docs/dsssl/docbook/common/dbl1da.ent deleted file mode 100755 index 49282005..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1da.ent +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1de.dsl b/trunk/docs/dsssl/docbook/common/dbl1de.dsl deleted file mode 100755 index 1696f3ab..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1de.ent b/trunk/docs/dsssl/docbook/common/dbl1de.ent deleted file mode 100755 index 54eb20f3..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1de.ent +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1el.dsl b/trunk/docs/dsssl/docbook/common/dbl1el.dsl deleted file mode 100755 index c9804af5..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1el.ent b/trunk/docs/dsssl/docbook/common/dbl1el.ent deleted file mode 100755 index 437d3352..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1el.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1en.dsl b/trunk/docs/dsssl/docbook/common/dbl1en.dsl deleted file mode 100755 index 8d6e1c65..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1en.ent b/trunk/docs/dsssl/docbook/common/dbl1en.ent deleted file mode 100755 index d78b9706..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1en.ent +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1es.dsl b/trunk/docs/dsssl/docbook/common/dbl1es.dsl deleted file mode 100755 index 43ffa454..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1es.ent b/trunk/docs/dsssl/docbook/common/dbl1es.ent deleted file mode 100755 index fd579378..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1es.ent +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1et.dsl b/trunk/docs/dsssl/docbook/common/dbl1et.dsl deleted file mode 100755 index 74956b8b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1et.ent b/trunk/docs/dsssl/docbook/common/dbl1et.ent deleted file mode 100755 index a8fed8bf..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1et.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1eu.dsl b/trunk/docs/dsssl/docbook/common/dbl1eu.dsl deleted file mode 100755 index 803888f0..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1eu.ent b/trunk/docs/dsssl/docbook/common/dbl1eu.ent deleted file mode 100755 index b45ad35b..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1eu.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1fi.dsl b/trunk/docs/dsssl/docbook/common/dbl1fi.dsl deleted file mode 100755 index e69031c6..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1fi.ent b/trunk/docs/dsssl/docbook/common/dbl1fi.ent deleted file mode 100755 index 69293ca0..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1fi.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1fr.dsl b/trunk/docs/dsssl/docbook/common/dbl1fr.dsl deleted file mode 100755 index de92c317..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1fr.ent b/trunk/docs/dsssl/docbook/common/dbl1fr.ent deleted file mode 100755 index fc1b74bb..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1fr.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1he.ent b/trunk/docs/dsssl/docbook/common/dbl1he.ent deleted file mode 100755 index 9e9cf2e9..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1he.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1hu.dsl b/trunk/docs/dsssl/docbook/common/dbl1hu.dsl deleted file mode 100755 index 180bdb3a..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1hu.ent b/trunk/docs/dsssl/docbook/common/dbl1hu.ent deleted file mode 100755 index 60cebc3d..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1hu.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1id.dsl b/trunk/docs/dsssl/docbook/common/dbl1id.dsl deleted file mode 100755 index 907f9dc0..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1id.ent b/trunk/docs/dsssl/docbook/common/dbl1id.ent deleted file mode 100755 index b062c29f..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1id.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1it.dsl b/trunk/docs/dsssl/docbook/common/dbl1it.dsl deleted file mode 100755 index cebfa1f5..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1it.ent b/trunk/docs/dsssl/docbook/common/dbl1it.ent deleted file mode 100755 index 3b34114d..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1it.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1ja.dsl b/trunk/docs/dsssl/docbook/common/dbl1ja.dsl deleted file mode 100755 index 68ee1c3b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1ja.ent b/trunk/docs/dsssl/docbook/common/dbl1ja.ent deleted file mode 100755 index 65ccfc53..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1ja.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1ko.dsl b/trunk/docs/dsssl/docbook/common/dbl1ko.dsl deleted file mode 100755 index cf809057..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1ko.ent b/trunk/docs/dsssl/docbook/common/dbl1ko.ent deleted file mode 100755 index 6ecccf61..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1ko.ent +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1nl.dsl b/trunk/docs/dsssl/docbook/common/dbl1nl.dsl deleted file mode 100755 index c10bc335..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1nl.ent b/trunk/docs/dsssl/docbook/common/dbl1nl.ent deleted file mode 100755 index 15b7c822..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1nl.ent +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1nn.dsl b/trunk/docs/dsssl/docbook/common/dbl1nn.dsl deleted file mode 100755 index 1d99b002..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1nn.ent b/trunk/docs/dsssl/docbook/common/dbl1nn.ent deleted file mode 100755 index 6a177309..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1nn.ent +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1no.dsl b/trunk/docs/dsssl/docbook/common/dbl1no.dsl deleted file mode 100755 index fb0b33c0..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1no.ent b/trunk/docs/dsssl/docbook/common/dbl1no.ent deleted file mode 100755 index 5a5d4c03..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1no.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1null.dsl b/trunk/docs/dsssl/docbook/common/dbl1null.dsl deleted file mode 100755 index d95bbb4a..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1null.dsl +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - -;; No definitions... - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1pl.dsl b/trunk/docs/dsssl/docbook/common/dbl1pl.dsl deleted file mode 100755 index 44682c86..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1pl.ent b/trunk/docs/dsssl/docbook/common/dbl1pl.ent deleted file mode 100755 index 01940eac..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1pl.ent +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1pt.dsl b/trunk/docs/dsssl/docbook/common/dbl1pt.dsl deleted file mode 100755 index 949eb72a..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1pt.ent b/trunk/docs/dsssl/docbook/common/dbl1pt.ent deleted file mode 100755 index 671ed9e1..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1pt.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1ptbr.dsl b/trunk/docs/dsssl/docbook/common/dbl1ptbr.dsl deleted file mode 100755 index 419ee3bc..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1ptbr.ent b/trunk/docs/dsssl/docbook/common/dbl1ptbr.ent deleted file mode 100755 index b0cf5443..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1ptbr.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1ro.dsl b/trunk/docs/dsssl/docbook/common/dbl1ro.dsl deleted file mode 100755 index 162b852e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1ro.ent b/trunk/docs/dsssl/docbook/common/dbl1ro.ent deleted file mode 100755 index 7b80900d..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1ro.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1ru.dsl b/trunk/docs/dsssl/docbook/common/dbl1ru.dsl deleted file mode 100755 index 3ffcaa07..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1ru.ent b/trunk/docs/dsssl/docbook/common/dbl1ru.ent deleted file mode 100755 index 6eaca52d..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1ru.ent +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1sk.dsl b/trunk/docs/dsssl/docbook/common/dbl1sk.dsl deleted file mode 100755 index b98d4db5..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1sk.ent b/trunk/docs/dsssl/docbook/common/dbl1sk.ent deleted file mode 100755 index 211f6d5a..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1sk.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1sl.dsl b/trunk/docs/dsssl/docbook/common/dbl1sl.dsl deleted file mode 100755 index b3ec3ae8..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1sl.ent b/trunk/docs/dsssl/docbook/common/dbl1sl.ent deleted file mode 100755 index c63bb3ce..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1sl.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1sr.dsl b/trunk/docs/dsssl/docbook/common/dbl1sr.dsl deleted file mode 100755 index 8e789c86..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1sr.ent b/trunk/docs/dsssl/docbook/common/dbl1sr.ent deleted file mode 100755 index 804004ee..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1sr.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1sv.dsl b/trunk/docs/dsssl/docbook/common/dbl1sv.dsl deleted file mode 100755 index e8301370..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1sv.ent b/trunk/docs/dsssl/docbook/common/dbl1sv.ent deleted file mode 100755 index 10b7ea40..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1sv.ent +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1th.ent b/trunk/docs/dsssl/docbook/common/dbl1th.ent deleted file mode 100755 index 2ddaf839..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1th.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1tr.dsl b/trunk/docs/dsssl/docbook/common/dbl1tr.dsl deleted file mode 100755 index 6d5d8358..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1tr.ent b/trunk/docs/dsssl/docbook/common/dbl1tr.ent deleted file mode 100755 index 3d88b650..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1tr.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1uk.dsl b/trunk/docs/dsssl/docbook/common/dbl1uk.dsl deleted file mode 100755 index ac2e5eaf..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1uk.ent b/trunk/docs/dsssl/docbook/common/dbl1uk.ent deleted file mode 100755 index b679a5f2..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1uk.ent +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1xh.dsl b/trunk/docs/dsssl/docbook/common/dbl1xh.dsl deleted file mode 100755 index ce31fba8..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1xh.ent b/trunk/docs/dsssl/docbook/common/dbl1xh.ent deleted file mode 100755 index 2266adf4..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1xh.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1zhcn.dsl b/trunk/docs/dsssl/docbook/common/dbl1zhcn.dsl deleted file mode 100755 index b7a849fa..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1zhcn.ent b/trunk/docs/dsssl/docbook/common/dbl1zhcn.ent deleted file mode 100755 index 3f752b42..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1zhcn.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1zhhk.dsl b/trunk/docs/dsssl/docbook/common/dbl1zhhk.dsl deleted file mode 100755 index 54db6872..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1zhhk.ent b/trunk/docs/dsssl/docbook/common/dbl1zhhk.ent deleted file mode 100755 index 8dc0846a..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1zhhk.ent +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbl1zhtw.dsl b/trunk/docs/dsssl/docbook/common/dbl1zhtw.dsl deleted file mode 100755 index 59306640..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/common/dbl1zhtw.ent b/trunk/docs/dsssl/docbook/common/dbl1zhtw.ent deleted file mode 100755 index 0923241a..00000000 --- a/trunk/docs/dsssl/docbook/common/dbl1zhtw.ent +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dsssl/docbook/common/dbtable.dsl b/trunk/docs/dsssl/docbook/common/dbtable.dsl deleted file mode 100755 index 7b8050ad..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/ChangeLog b/trunk/docs/dsssl/docbook/html/ChangeLog deleted file mode 100755 index a77e7b19..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/XREF b/trunk/docs/dsssl/docbook/html/XREF deleted file mode 100755 index 5dd16207..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/catalog b/trunk/docs/dsssl/docbook/html/catalog deleted file mode 100755 index f5ce23a1..00000000 --- a/trunk/docs/dsssl/docbook/html/catalog +++ /dev/null @@ -1,3 +0,0 @@ -CATALOG "../catalog" - - diff --git a/trunk/docs/dsssl/docbook/html/db31.dsl b/trunk/docs/dsssl/docbook/html/db31.dsl deleted file mode 100755 index 6738edf8..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbadmon.dsl b/trunk/docs/dsssl/docbook/html/dbadmon.dsl deleted file mode 100755 index 7aab7834..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbautoc.dsl b/trunk/docs/dsssl/docbook/html/dbautoc.dsl deleted file mode 100755 index 0a7cf539..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbbibl.dsl b/trunk/docs/dsssl/docbook/html/dbbibl.dsl deleted file mode 100755 index 0f0355a7..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbblock.dsl b/trunk/docs/dsssl/docbook/html/dbblock.dsl deleted file mode 100755 index e4990a6d..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbcallou.dsl b/trunk/docs/dsssl/docbook/html/dbcallou.dsl deleted file mode 100755 index 8f5d7f29..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbchunk.dsl b/trunk/docs/dsssl/docbook/html/dbchunk.dsl deleted file mode 100755 index 3d39b01f..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbcompon.dsl b/trunk/docs/dsssl/docbook/html/dbcompon.dsl deleted file mode 100755 index b311c51a..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbdivis.dsl b/trunk/docs/dsssl/docbook/html/dbdivis.dsl deleted file mode 100755 index a63c57f6..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbefsyn.dsl b/trunk/docs/dsssl/docbook/html/dbefsyn.dsl deleted file mode 100755 index cfbea6de..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbfootn.dsl b/trunk/docs/dsssl/docbook/html/dbfootn.dsl deleted file mode 100755 index 64b99e1e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbgloss.dsl b/trunk/docs/dsssl/docbook/html/dbgloss.dsl deleted file mode 100755 index ba1a0f3b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbgraph.dsl b/trunk/docs/dsssl/docbook/html/dbgraph.dsl deleted file mode 100755 index f87ba02a..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbhtml.dsl b/trunk/docs/dsssl/docbook/html/dbhtml.dsl deleted file mode 100755 index 6fd5d837..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbindex.dsl b/trunk/docs/dsssl/docbook/html/dbindex.dsl deleted file mode 100755 index 61515d0b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbinfo.dsl b/trunk/docs/dsssl/docbook/html/dbinfo.dsl deleted file mode 100755 index d6519a8e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbinline.dsl b/trunk/docs/dsssl/docbook/html/dbinline.dsl deleted file mode 100755 index 230211b3..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dblink.dsl b/trunk/docs/dsssl/docbook/html/dblink.dsl deleted file mode 100755 index 973c455b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dblists.dsl b/trunk/docs/dsssl/docbook/html/dblists.dsl deleted file mode 100755 index 59f39747..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dblot.dsl b/trunk/docs/dsssl/docbook/html/dblot.dsl deleted file mode 100755 index 8d3f4f31..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbmath.dsl b/trunk/docs/dsssl/docbook/html/dbmath.dsl deleted file mode 100755 index f8ef2863..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbmsgset.dsl b/trunk/docs/dsssl/docbook/html/dbmsgset.dsl deleted file mode 100755 index 72a5d0d5..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbnavig.dsl b/trunk/docs/dsssl/docbook/html/dbnavig.dsl deleted file mode 100755 index 67fd51da..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbparam.dsl b/trunk/docs/dsssl/docbook/html/dbparam.dsl deleted file mode 100755 index 083e0c8f..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbpi.dsl b/trunk/docs/dsssl/docbook/html/dbpi.dsl deleted file mode 100755 index 35a34070..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbprocdr.dsl b/trunk/docs/dsssl/docbook/html/dbprocdr.dsl deleted file mode 100755 index c5dac716..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbrfntry.dsl b/trunk/docs/dsssl/docbook/html/dbrfntry.dsl deleted file mode 100755 index b99b0aaf..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbsect.dsl b/trunk/docs/dsssl/docbook/html/dbsect.dsl deleted file mode 100755 index 5a166529..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbsynop.dsl b/trunk/docs/dsssl/docbook/html/dbsynop.dsl deleted file mode 100755 index bac2de8e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbtable.dsl b/trunk/docs/dsssl/docbook/html/dbtable.dsl deleted file mode 100755 index 476109f4..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbtitle.dsl b/trunk/docs/dsssl/docbook/html/dbtitle.dsl deleted file mode 100755 index 9a7edf11..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbttlpg.dsl b/trunk/docs/dsssl/docbook/html/dbttlpg.dsl deleted file mode 100755 index 5ae070c2..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/dbverb.dsl b/trunk/docs/dsssl/docbook/html/dbverb.dsl deleted file mode 100755 index bbf8e0e6..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/docbook.dsl b/trunk/docs/dsssl/docbook/html/docbook.dsl deleted file mode 100755 index c95032b1..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/html/version.dsl b/trunk/docs/dsssl/docbook/html/version.dsl deleted file mode 100755 index 46b2f1cd..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/lib/ChangeLog b/trunk/docs/dsssl/docbook/lib/ChangeLog deleted file mode 100755 index 725a5eab..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/lib/dblib.dsl b/trunk/docs/dsssl/docbook/lib/dblib.dsl deleted file mode 100755 index 3b45dd34..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/ChangeLog b/trunk/docs/dsssl/docbook/print/ChangeLog deleted file mode 100755 index 1eadd29e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/XREF b/trunk/docs/dsssl/docbook/print/XREF deleted file mode 100755 index 7c2c6633..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/catalog b/trunk/docs/dsssl/docbook/print/catalog deleted file mode 100755 index f5ce23a1..00000000 --- a/trunk/docs/dsssl/docbook/print/catalog +++ /dev/null @@ -1,3 +0,0 @@ -CATALOG "../catalog" - - diff --git a/trunk/docs/dsssl/docbook/print/db31.dsl b/trunk/docs/dsssl/docbook/print/db31.dsl deleted file mode 100755 index 1f5c206f..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbadmon.dsl b/trunk/docs/dsssl/docbook/print/dbadmon.dsl deleted file mode 100755 index c4a2def7..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbautoc.dsl b/trunk/docs/dsssl/docbook/print/dbautoc.dsl deleted file mode 100755 index 2937b813..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbbibl.dsl b/trunk/docs/dsssl/docbook/print/dbbibl.dsl deleted file mode 100755 index ed6b1d9b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbblock.dsl b/trunk/docs/dsssl/docbook/print/dbblock.dsl deleted file mode 100755 index a495663a..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbcallou.dsl b/trunk/docs/dsssl/docbook/print/dbcallou.dsl deleted file mode 100755 index 9dd7a405..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbcompon.dsl b/trunk/docs/dsssl/docbook/print/dbcompon.dsl deleted file mode 100755 index afccd54d..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbdivis.dsl b/trunk/docs/dsssl/docbook/print/dbdivis.dsl deleted file mode 100755 index 3c3ea860..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbdivis.dsl.orig b/trunk/docs/dsssl/docbook/print/dbdivis.dsl.orig deleted file mode 100755 index edf389fd..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbefsyn.dsl b/trunk/docs/dsssl/docbook/print/dbefsyn.dsl deleted file mode 100755 index 877fda76..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbgloss.dsl b/trunk/docs/dsssl/docbook/print/dbgloss.dsl deleted file mode 100755 index 66f3330f..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbgraph.dsl b/trunk/docs/dsssl/docbook/print/dbgraph.dsl deleted file mode 100755 index 85581eff..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbindex.dsl b/trunk/docs/dsssl/docbook/print/dbindex.dsl deleted file mode 100755 index ba594469..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbinfo.dsl b/trunk/docs/dsssl/docbook/print/dbinfo.dsl deleted file mode 100755 index 09e96209..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbinline.dsl b/trunk/docs/dsssl/docbook/print/dbinline.dsl deleted file mode 100755 index 8e01dbf4..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dblink.dsl b/trunk/docs/dsssl/docbook/print/dblink.dsl deleted file mode 100755 index a1d344f6..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dblists.dsl b/trunk/docs/dsssl/docbook/print/dblists.dsl deleted file mode 100755 index 3e99194e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dblot.dsl b/trunk/docs/dsssl/docbook/print/dblot.dsl deleted file mode 100755 index 8d3f4f31..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbmath.dsl b/trunk/docs/dsssl/docbook/print/dbmath.dsl deleted file mode 100755 index ec7efcbb..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbmsgset.dsl b/trunk/docs/dsssl/docbook/print/dbmsgset.dsl deleted file mode 100755 index 642100b0..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbparam.dsl b/trunk/docs/dsssl/docbook/print/dbparam.dsl deleted file mode 100755 index 9e87787e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbprint.dsl b/trunk/docs/dsssl/docbook/print/dbprint.dsl deleted file mode 100755 index 82188524..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbprocdr.dsl b/trunk/docs/dsssl/docbook/print/dbprocdr.dsl deleted file mode 100755 index ae93396a..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbrfntry.dsl b/trunk/docs/dsssl/docbook/print/dbrfntry.dsl deleted file mode 100755 index c53aca07..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbsect.dsl b/trunk/docs/dsssl/docbook/print/dbsect.dsl deleted file mode 100755 index 649c6ea2..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbsynop.dsl b/trunk/docs/dsssl/docbook/print/dbsynop.dsl deleted file mode 100755 index 0c34c91b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbtable.dsl b/trunk/docs/dsssl/docbook/print/dbtable.dsl deleted file mode 100755 index 337af874..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbtitle.dsl b/trunk/docs/dsssl/docbook/print/dbtitle.dsl deleted file mode 100755 index bec2b350..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbttlpg.dsl b/trunk/docs/dsssl/docbook/print/dbttlpg.dsl deleted file mode 100755 index 35e0236c..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbttlpg.dsl.orig b/trunk/docs/dsssl/docbook/print/dbttlpg.dsl.orig deleted file mode 100755 index 10de0b1f..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/dbverb.dsl b/trunk/docs/dsssl/docbook/print/dbverb.dsl deleted file mode 100755 index 14e11f9b..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/docbook.dsl b/trunk/docs/dsssl/docbook/print/docbook.dsl deleted file mode 100755 index e0be8c17..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/notoc.dsl b/trunk/docs/dsssl/docbook/print/notoc.dsl deleted file mode 100755 index 87137e2e..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/plain.dsl b/trunk/docs/dsssl/docbook/print/plain.dsl deleted file mode 100755 index 93abd8d1..00000000 --- a/trunk/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/trunk/docs/dsssl/docbook/print/version.dsl b/trunk/docs/dsssl/docbook/print/version.dsl deleted file mode 100755 index 2fd44739..00000000 --- a/trunk/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/trunk/docs/dsssl/html-common.dsl.in b/trunk/docs/dsssl/html-common.dsl.in deleted file mode 100644 index 2b06d18a..00000000 --- a/trunk/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/trunk/docs/dsssl/html.dsl b/trunk/docs/dsssl/html.dsl deleted file mode 100644 index 851c6758..00000000 --- a/trunk/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/trunk/docs/dsssl/php.dsl b/trunk/docs/dsssl/php.dsl deleted file mode 100644 index 94c76141..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/40chg.txt b/trunk/docs/dtds/dbxml-4.1.2/40chg.txt deleted file mode 100755 index f1c720a6..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/41chg.txt b/trunk/docs/dtds/dbxml-4.1.2/41chg.txt deleted file mode 100755 index 4bb6b914..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/ChangeLog b/trunk/docs/dtds/dbxml-4.1.2/ChangeLog deleted file mode 100755 index d527597e..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/calstblx.dtd b/trunk/docs/dtds/dbxml-4.1.2/calstblx.dtd deleted file mode 100755 index dfc4e7aa..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/calstblx.dtd +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/dbcentx.mod b/trunk/docs/dtds/dbxml-4.1.2/dbcentx.mod deleted file mode 100755 index 407828cb..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/dbgenent.mod b/trunk/docs/dtds/dbxml-4.1.2/dbgenent.mod deleted file mode 100755 index 5dc9a41e..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/dbgenent.mod +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/dbhierx.mod b/trunk/docs/dtds/dbxml-4.1.2/dbhierx.mod deleted file mode 100755 index 2b62c618..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/dbhierx.mod +++ /dev/null @@ -1,2074 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -%rdbhier; -]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -%rdbhier2; -]]> - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - -]]> - - - -]]> - - - - - -]]> - - - -]]> - - - - - -]]> - -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/dbnotnx.mod b/trunk/docs/dtds/dbxml-4.1.2/dbnotnx.mod deleted file mode 100755 index ef0d4378..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/dbnotnx.mod +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/dbpoolx.mod b/trunk/docs/dtds/dbxml-4.1.2/dbpoolx.mod deleted file mode 100755 index 50b3615d..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/dbpoolx.mod +++ /dev/null @@ -1,7516 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -%rdbpool; -]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - -]]> - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> - - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - - - -]]> - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - - - - - - - - - - - - - - - - - -]]> - - - - - - - - - - - - - - - - - - - - - - - - -]]> - -%tablemodel; - -]]> - - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - - - - - - -]]> - - - -]]> - - -]]> - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - - - -]]> - - - -]]> - ]]> - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - ]]> - - - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - -]]> - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - - -]]> - - - - - - - - - - -]]> -]]> - - - - - - - - -]]> - - - - -]]> - - - - -]]> - - - - -]]> - - - - -]]> - - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> -]]> -]]> - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/docbook.cat b/trunk/docs/dtds/dbxml-4.1.2/docbook.cat deleted file mode 100755 index c24e5df7..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/docbookx.dtd b/trunk/docs/dtds/dbxml-4.1.2/docbookx.dtd deleted file mode 100755 index 7ff277fc..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/docbookx.dtd +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - - - -%dbnotn; -]]> - - - - - - - -%dbcent; -]]> - - - - - - - - -%dbpool; -]]> - - - - - - -%rdbmods; -]]> - - - - - -%dbhier; -]]> - - - - - - -%dbgenent; -]]> - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/ChangeLog b/trunk/docs/dtds/dbxml-4.1.2/ent/ChangeLog deleted file mode 100755 index 74031333..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent deleted file mode 100755 index 1b64b468..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent deleted file mode 100755 index 38bd2e7e..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent deleted file mode 100755 index 8485fe38..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent deleted file mode 100755 index 7e9d5786..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amso.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amso.ent deleted file mode 100755 index 61f5c4da..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amso.ent +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent deleted file mode 100755 index 9ef9da0e..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-box.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-box.ent deleted file mode 100755 index 1f875305..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-box.ent +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent deleted file mode 100755 index 2516f8e0..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent deleted file mode 100755 index 3edbde0a..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-dia.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-dia.ent deleted file mode 100755 index 3a4b55c2..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-dia.ent +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent deleted file mode 100755 index b040985f..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent deleted file mode 100755 index 63de411c..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent deleted file mode 100755 index b59c53c4..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent deleted file mode 100755 index ace7c817..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent deleted file mode 100755 index 2ec16fff..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent deleted file mode 100755 index e94ec18d..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-num.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-num.ent deleted file mode 100755 index 7f4844c5..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-num.ent +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-pub.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-pub.ent deleted file mode 100755 index 56ede364..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-pub.ent +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-tech.ent b/trunk/docs/dtds/dbxml-4.1.2/ent/iso-tech.ent deleted file mode 100755 index 7264f6b8..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/ent/iso-tech.ent +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/phpdocxml.dcl b/trunk/docs/dtds/dbxml-4.1.2/phpdocxml.dcl deleted file mode 100755 index fed21030..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/readme.txt b/trunk/docs/dtds/dbxml-4.1.2/readme.txt deleted file mode 100755 index 383f7fed..00000000 --- a/trunk/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/trunk/docs/dtds/dbxml-4.1.2/soextblx.dtd b/trunk/docs/dtds/dbxml-4.1.2/soextblx.dtd deleted file mode 100755 index e4ea0eda..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/soextblx.dtd +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/dtds/dbxml-4.1.2/tblcals.xml b/trunk/docs/dtds/dbxml-4.1.2/tblcals.xml deleted file mode 100755 index 04a2b1aa..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/tblcals.xml +++ /dev/null @@ -1,26 +0,0 @@ - - -
Table Test - - - - - - - -foo -bar - - - - -bar - - -bar - - -
- -
- diff --git a/trunk/docs/dtds/dbxml-4.1.2/tblxchg.xml b/trunk/docs/dtds/dbxml-4.1.2/tblxchg.xml deleted file mode 100755 index 8b5205bd..00000000 --- a/trunk/docs/dtds/dbxml-4.1.2/tblxchg.xml +++ /dev/null @@ -1,26 +0,0 @@ - - -
Table Test - - - - - - - -foo -bar - - - - -bar - - -bar - - -
- -
- diff --git a/trunk/docs/en/appendixes/bugs.xml b/trunk/docs/en/appendixes/bugs.xml deleted file mode 100644 index 7623dcb1..00000000 --- a/trunk/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/trunk/docs/en/appendixes/resources.xml b/trunk/docs/en/appendixes/resources.xml deleted file mode 100644 index a1972111..00000000 --- a/trunk/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/trunk/docs/en/appendixes/tips.xml b/trunk/docs/en/appendixes/tips.xml deleted file mode 100644 index be61b7f6..00000000 --- a/trunk/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/trunk/docs/en/appendixes/troubleshooting.xml b/trunk/docs/en/appendixes/troubleshooting.xml deleted file mode 100644 index 535d1318..00000000 --- a/trunk/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/trunk/docs/en/bookinfo.xml b/trunk/docs/en/bookinfo.xml deleted file mode 100755 index 694575f6..00000000 --- a/trunk/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/trunk/docs/en/designers/chapter-debugging-console.xml b/trunk/docs/en/designers/chapter-debugging-console.xml deleted file mode 100644 index 469b0b5a..00000000 --- a/trunk/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/trunk/docs/en/designers/config-files.xml b/trunk/docs/en/designers/config-files.xml deleted file mode 100644 index 17884508..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax.xml b/trunk/docs/en/designers/language-basic-syntax.xml deleted file mode 100644 index 5ca67515..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/en/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index d4b6b7cd..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax/language-math.xml b/trunk/docs/en/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 553fdc86..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 8749ba31..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/en/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 36eafcaf..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/en/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 2faec2ca..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 0b32a134..00000000 --- a/trunk/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/trunk/docs/en/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/en/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index 1fe0d692..00000000 --- a/trunk/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/trunk/docs/en/designers/language-builtin-functions.xml b/trunk/docs/en/designers/language-builtin-functions.xml deleted file mode 100644 index 0ad9a489..00000000 --- a/trunk/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/trunk/docs/en/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 9813e947..00000000 --- a/trunk/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/trunk/docs/en/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index b699ff43..00000000 --- a/trunk/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/trunk/docs/en/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 383066f9..00000000 --- a/trunk/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/trunk/docs/en/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index fcdf3420..00000000 --- a/trunk/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/trunk/docs/en/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index b9865806..00000000 --- a/trunk/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/trunk/docs/en/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 05d859f5..00000000 --- a/trunk/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> -
      -{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} - {* body of template goes here *} - {$navbar} - {include file='footer.tpl'} - -]]> - - - - - Various {include} resource examples - - - - - - See also - {include_php}, - {insert}, - {php}, - template resources and - componentized templates. - - - - diff --git a/trunk/docs/en/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 5cdd5914..00000000 --- a/trunk/docs/en/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,165 +0,0 @@ - - - - {insert} - - {insert} tags work much like {include} tags, - except that {insert} tags are NOT cached when - template caching is enabled. They - will be executed on every invocation of the template. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - Yes - n/a - The name of the insert function (insert_name) - - - assign - string - No - n/a - The name of the template variable the output will - be assigned to - - - script - string - No - n/a - The name of the php script that is included before - the insert function is called - - - [var ...] - [var type] - No - n/a - variable to pass to insert function - - - - - - - - Let's say you have a template with a banner slot at the top of - the page. The banner can contain any mixture of HTML, images, - flash, etc. so we can't just use a static link here, and we - don't want this contents cached with the page. In comes the - {insert} tag: the template knows #banner_location_id# and - #site_id# values (gathered from a - config file), and needs to - call a function to get the banner contents. - - - function {insert} - -{* example of fetching a banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - - In this example, we are using the name getBanner and passing the - parameters #banner_location_id# and #site_id#. Smarty will look - for a function named insert_getBanner() in your PHP application, passing - the values of #banner_location_id# and #site_id# as the first argument - in an associative array. All {insert} function names in - your application must be prepended with "insert_" to remedy possible - function name-space conflicts. Your insert_getBanner() function should - do something with the passed values and return the results. These results - are then displayed in the template in place of the {insert} tag. - In this example, Smarty would call this function: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - and display the returned results in place of the {insert} tag. - - - - If you supply the assign attribute, - the output of the {insert} tag - will be assigned to this template variable instead of being output - to the template. - - - Assigning the output to a template variable isn't too useful with - caching enabled. - - - - - - If you supply the script attribute, - this php script will be - included (only once) before the {insert} function is executed. This - is the case where the insert function may not exist yet, and a php - script must be included first to make it work. - - - The path can be - either absolute, or relative to - $trusted_dir. When $security is enabled, the script - must reside in $trusted_dir. - - - - The Smarty object is passed as the second argument. This way you - can reference and modify information in the Smarty object from - within the {insert} function. - - - Technical Note - - It is possible to have portions of the template not - cached. If you have caching - turned on, {insert} tags will not be cached. They will run - dynamically every time the page is created, even within cached - pages. This works good for things like banners, polls, live - weather, search results, user feedback areas, etc. - - - - See also - {include} - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index b3be7af6..00000000 --- a/trunk/docs/en/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - {ldelim},{rdelim} - - {ldelim} and {rdelim} are used for - escaping - template delimiters, by default - { and }. - You can also use {literal}{/literal} - to escape blocks of text eg Javascript or CSS. - See also the complimentary {$smarty.ldelim}. - - - {ldelim}, {rdelim} - - - - - The above example will output: - - - - - Another example with some Javascript - - -function foo() {ldelim} - ... code ... -{rdelim} - -]]> - - - will output - - - -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 -]]> - - - - See also - {literal} - and escaping Smarty parsing. - - - - diff --git a/trunk/docs/en/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index d074c972..00000000 --- a/trunk/docs/en/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - {literal} - - {literal} tags allow a block of data to be taken literally. This is typically - used around Javascript or stylesheet blocks where {curly braces} would - interfere with the template - delimiter - syntax. Anything within - {literal}{/literal} tags is not interpreted, 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/trunk/docs/en/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 8f29ee36..00000000 --- a/trunk/docs/en/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - {php} - - The {php} tags allow PHP code to be embedded directly into the template. They - will not be escaped, regardless of the $php_handling setting. This - is for advanced users only, not normally needed and not recommended. - - -Technical Note - - To access PHP variables in {php} blocks you will need to use the PHP - global - keyword. - - - - - php code within {php} tags - - - - - - - - {php} tags with global and assigning a variable - -assign('varX','Toffee'); -{/php} -{* output the variable *} -{$varX} is my fav ice cream :-) -]]> - - - - - See also - $php_handling, - {include_php}, - {include}, - {insert} - and - componentized templates. - - - diff --git a/trunk/docs/en/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 92605361..00000000 --- a/trunk/docs/en/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,829 +0,0 @@ - - - - {section},{sectionelse} - - A {section} - is for looping over sequentially indexed arrays of data, - unlike {foreach} - which is used to loop over a - single associative array. - Every {section} tag must be paired with - a closing {/section} tag. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - Yes - n/a - The name of the section - - - loop - mixed - Yes - n/a - Value to determine the number of loop iterations - - - start - integer - No - 0 The index - position that the section will begin looping. If the - value is negative, the start position is calculated - from the end of the array. For example, if there are - seven values in the loop array and start is -2, the - start index is 5. Invalid values (values outside of the - length of the loop array) are automatically truncated - to the closest valid value. - - - step - integer - No - 1 - The step value that will be used to traverse the - loop array. For example, step=2 will loop on index - 0,2,4, etc. If step is negative, it will step through - the array backwards. - - - max - integer - No - n/a - Sets the maximum number of times the section - will loop. - - - show - boolean - No - &true; - Determines whether or not to show this section - - - - - - - - Required attributes are name and loop. - - - - The name of the {section} can be - anything you like, made up of letters, numbers and underscores, like - PHP variables. - - - - {section}'s can be nested, and the nested - {section} names must be unique from each other. - - - - The loop attribute, - usually an array of values, determines the number of times the - {section} will loop. You can also pass an integer - as the loop value. - - - When printing a variable within a {section}, the - {section} name must be given next - to variable name within [brackets]. - - - - {sectionelse} is - executed when there are no values in the loop variable. - - - - A {section} also has its own variables that handle - {section} properties. - These properties are accessible as: - {$smarty.section.name.property} - where name is the attribute name. - - - - {section} properties are - index, - index_prev, - index_next, - iteration, - first, - last, - rownum, - loop, - show, - total. - - - - - Looping a simple array with {section} - -assign() an array to Smarty - - -assign('custid',$data); -?> -]]> - -The template that outputs the array - - -{/section} -
      -{* print out all the values of the $custid array reversed *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}
      -{/section} -]]> -
      - - The above example will output: - - - -id: 1001
      -id: 1002
      -
      -id: 1002
      -id: 1001
      -id: 1000
      -]]> -
      -
      - - - - {section} without an assigned array - - -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - - - The above example will output: - - - -20 18 16 14 12 10 -]]> - - - - - - Naming a {section} - The name of the {section} can be anything - you like, see PHP variables. - It is used to reference the data within the {section}. - - - - - - - - Looping an associative array with {section} - This is an example of printing an associative array - of data with a {section}. Following is the php script to assign the - $contacts array to 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); -?> -]]> - - -The template to output $contacts - - - name: {$contacts[customer].name}
      - home: {$contacts[customer].home}
      - cell: {$contacts[customer].cell}
      - e-mail: {$contacts[customer].email} -

      -{/section} -]]> -
      - - The above example will output: - - - - 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} demonstrating the <varname>loop</varname> variable - This example assumes that $custid, $name - and $address are all - arrays containing the same number of values. First the php script that assign's the - arrays to 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); - -?> -]]> - -The loop variable only determines the number of times to loop. - You can access ANY variable from the template within the {section} - - - id: {$custid[customer]}
      - name: {$name[customer]}
      - address: {$address[customer]} -

      -{/section} -]]> -
      - - The above example will output: - - - - 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 -

      -]]> -
      -
      - - - - - Nested {section}'s - - {section}'s can be nested as deep as you like. With nested {section}'s, - you can access complex data structures, such as multi-dimensional - arrays. This is an example .php script thats assign's the arrays. - - -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); - -?> - ]]> - -In this template, $contact_type[customer] is an array of - contact types for the current 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} -]]> -
      - - The above example will output: - - - - 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
      -]]> -
      -
      - - - -Database example with a {sectionelse} - Results of a database search (eg ADODB or PEAR) are assigned to Smarty - - assign('contacts', $db->getAll($sql)); -?> -]]> - -The template to output the database result in a HTML table - - - 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 contains the current array index, starting with zero - or the start attribute if given. It increments by one or by - the step attribute if given. - - - Technical Note - - If the step and start - properties are not - modified, then this works the same as the iteration - property, except it starts at zero instead of one. - - - -{section} <varname>index</varname> property - -FYI -$custid[customer.index] and -$custid[customer] are identical. - - - - -{/section} -]]> - - - The above example will output: - - - -1 id: 1001
      -2 id: 1002
      -]]> -
      -
      -
      - - - - .index_prev - - index_prev is the previous loop index. - On the first loop, this is set to -1. - - - - - .index_next - - index_next is the next loop index. On the last - loop, this is still one more than the current index, respecting the - setting of the step attribute, if given. - - - -<varname>index</varname>, <varname>index_next</varname> - and <varname>index_prev</varname> properties - -assign('rows',$data); -?> -]]> - -Template to output the above array in a table - - - - 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} - -]]> - - - The above example will output a table containing the following: - - - - - - - - - - .iteration - - iteration contains the current loop iteration and starts at one. - - - - This is not affected by the {section} properties - start, step and max, - unlike the index - property. iteration also starts with one instead of zero - unlike index. rownum is an alias to - iteration, they are identical. - - - -A section's <varname>iteration</varname> property - -assign('arr',$id); -?> -]]> - -Template to output every other element of the $arr -array as step=2 - - -{/section} -]]> - - - The above example will output: - - - -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
      -]]> -
      - - Another example that uses the iteration property to - output a table header block every five rows. - Uses the {if} - function with the mod operator. - - - -{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 is set to &true; if the current - {section} iteration is the initial one. - - - - - - .last - - last is set to &true; - if the current section iteration is the final one. - - - {section} property <varname>first</varname> and <varname>last</varname> - - This example loops the $customers array, - outputs a header block on the first iteration and - on the last outputs the footer block. Also uses the - total property. - - - - idcustomer - {/if} - - - {$customers[customer].id}} - {$customers[customer].name} - - - {if $smarty.section.customer.last} - {$smarty.section.customer.total} customers - - {/if} -{/section} -]]> - - - - - - - .rownum - - rownum contains the current loop iteration, - starting with one. It is an alias to iteration, - they work identically. - - - - - .loop - - loop contains the last index number - that this {section} - looped. This can be used inside or after the {section}. - - - {section} property <varname>loop</varname> - - -{/section} -There are {$smarty.section.customer.loop} customers shown above. -]]> - - - The above example will output: - - - -1 id: 1001
      -2 id: 1002
      -There are 3 customers shown above. -]]> -
      -
      -
      - - - .show - - show is used as a parameter to section and is - a boolean value. If - &false;, the section will not be displayed. If there is a - {sectionelse} present, that will be alternately displayed. - - - <varname>show</varname> property - Boolean $show_customer_info has been passed from the PHP - application, to regulate whether or not this section shows. - - -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - - - The above example will output: - - - -2 id: 1001
      -3 id: 1002
      - -the section was shown. -]]> -
      -
      -
      - - - .total - - total contains the number of iterations that this - {section} will loop. This can be used inside or after a - {section}. - - - <varname>total</varname> property example - - -{/section} - There are {$smarty.section.customer.total} customers shown above. -]]> - - - - See also {foreach} - and - $smarty.section. - - -
      - - diff --git a/trunk/docs/en/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/en/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index b59e26d5..00000000 --- a/trunk/docs/en/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - {strip} - - Many times web designers run into the issue where white space and - carriage returns affect the output of the rendered HTML (browser - "features"), so you must run all your tags together in the template - to get the desired results. This usually ends up in unreadable or - unmanageable templates. - - - Anything within {strip}{/strip} tags are stripped of the - extra spaces or carriage returns at the beginnings and ends of the - lines before they are displayed. This way you can keep your - templates readable, and not worry about extra white space causing - problems. - - - - {strip}{/strip} does not affect the contents of template variables, - see the strip modifier instead. - - - - {strip} tags - - - - - - This is a test - - - - -{/strip} -]]> - - - The above example will output: - - -strip modifier. - - - - - diff --git a/trunk/docs/en/designers/language-combining-modifiers.xml b/trunk/docs/en/designers/language-combining-modifiers.xml deleted file mode 100644 index 29ebc233..00000000 --- a/trunk/docs/en/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - Combining Modifiers - - You can apply any number of modifiers to a variable. They will be - applied in the order they are combined, from left to right. They must - be separated with a | (pipe) character. - - - combining modifiers - -assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); - -?> -]]> - - -where template is: - - - - - - The above example will output: - - - - - - - - diff --git a/trunk/docs/en/designers/language-custom-functions.xml b/trunk/docs/en/designers/language-custom-functions.xml deleted file mode 100644 index 0a6430e0..00000000 --- a/trunk/docs/en/designers/language-custom-functions.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - Custom Functions - - Smarty comes with several custom functions that you can - use in the 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; - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/en/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 09beb7fc..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - {assign} - - {assign} is used for assigning template variables - during the execution of a template. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - var - string - Yes - n/a - The name of the variable being assigned - - - value - string - Yes - n/a - The value being assigned - - - - - - - {assign} - - - - - The above example will output: - - - - - - - - {assign} with some maths -This complex example must have the variables in `backticks` - - - - - - - - Accessing {assign} variables from a PHP script - - To access {assign} variables from a php script use - - get_template_vars(). - Here's the template that creates the variable $foo. - - - - -The template variables are only available after/during template -execution as in the following script. - - -get_template_vars('foo'); - -// fetch the template to a variable -$whole_page = $smarty->fetch('index.tpl'); - -// this will output 'smarty' as the template has been executed -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// this will output 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - - - - - - The following functions can also optionally assign - template variables. - - - - {capture}, - {include}, - {include_php}, - {insert}, - {counter}, - {cycle}, - {eval}, - {fetch}, - {math}, - {textformat} - - - - See also assign() - and - get_template_vars(). - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/en/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index cb11dbd2..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - {counter} - - {counter} is used to print out a count. - {counter} will remember the - count on each iteration. You can adjust the number, the interval - and the direction of the count, as well as determine whether or not - to print the value. You can run multiple counters concurrently by - supplying a unique name for each one. If you do not supply a name, - the name default will be used. - - - If you supply the assign attribute, the output of the - {counter} function will be assigned to this template - variable instead of being output to the template. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - No - default - The name of the counter - - - start - number - No - 1 - The initial number to start counting from - - - skip - number - No - 1 - The interval to count by - - - direction - string - No - up - The direction to count (up/down) - - - print - boolean - No - &true; - Whether or not to print the value - - - assign - string - No - n/a - the template variable the output will be assigned to - - - - - - - {counter} - - -{counter}
      -{counter}
      -{counter}
      -]]> -
      - - this will output: - - - -2
      -4
      -6
      -]]> -
      -
      -
      - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/en/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 6e784eaf..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - {cycle} - - {cycle} is used to alternate a set of values. - This makes it easy to for example, alternate between two or more colors - in a table, or cycle through an array of values. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - No - default - The name of the cycle - - - values - mixed - Yes - N/A - The values to cycle through, either a comma - delimited list (see delimiter attribute), or an array - of values - - - print - boolean - No - &true; - Whether to print the value or not - - - advance - boolean - No - &true; - Whether or not to advance to the next value - - - delimiter - string - No - , - The delimiter to use in the values attribute - - - assign - string - No - n/a - The template variable the output will be assigned - to - - - reset - boolean - No - &false; - The cycle will be set to the first value and not advanced - - - - - - - - You can {cycle} through more than one set of values in - a template by supplying a name attribute. - Give each {cycle} an unique name. - - - You can force the current value not to print with the - print attribute set to &false;. This would be useful - for silently skipping a value. - - - The advance attribute is used to repeat a value. - When set to &false;, the next call to {cycle} will print - the same value. - - - If you supply the assign attribute, the output of the - {cycle} function will be assigned to a template variable - instead of being output to the template. - - - - - {cycle} - - - {$data[rows]} - -{/section} -]]> - - The above template would output: - - - 1 - - - 2 - - - 3 - -]]> - - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/en/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 3e30d4a7..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - {debug} - - {debug} dumps the debug console to the page. This works - regardless of the debug - settings in the php script. Since this gets executed at runtime, this is - only able to show the assigned - variables; not the templates that - are in use. However, you can see all the currently available variables - within the scope of a template. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - output - string - No - javascript - output type, html or javascript - - - - - - - See also the - debugging console page. - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/en/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index bf969a6f..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - {eval} - - {eval} is used to evaluate a variable as a template. - This can be used for things like embedding template tags/variables into - variables or tags/variables into config file variables. - - - If you supply the assign attribute, the output of the - {eval} function will be assigned to this template - variable instead of being output to the template. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - var - mixed - Yes - n/a - Variable (or string) to evaluate - - - assign - string - No - n/a - The template variable the output will be assigned - to - - - - - - - Technical Note - - - - Evaluated variables are treated the same as templates. They follow - the same escapement and security features just as if they were - templates. - - - - Evaluated variables are compiled on every invocation, the compiled - versions are not saved! However if you have - caching enabled, the - output will be cached with the rest of the template. - - - - - - - {eval} -The contents of the config file, 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#}. -]]> - - - Where the template is: - - - - - - The above template will output: - - -city. -You must supply a state. -]]> - - - - - Another {eval} example - This outputs the server name (in uppercase) and IP. The assigned - variable $str could be from a database query. - - assign('foo',$str); -?> - ]]> - - - Where the template is: - - - - - - - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/en/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 807bdf1e..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - {fetch} - - {fetch} is used to retrieve files from the - local file system, http, or ftp and display the contents. - - - - - If the file name begins with - http://, the web site page will be fetched and displayed. - - - This will not support http redirects, be sure to - include a trailing slash on your web page fetches where necessary. - - - - - - If the file name begins with ftp://, the file will - be downloaded from the ftp server and displayed. - - - - For local files, either a full system file path - must be given, or a path relative to the executed php script. - - - If template - $security - is enabled and you are - fetching a file from the local file system, {fetch} - will only allow files from within one of the defined - secure directories. - - - - - - If the assign attribute is set, the output of the - {fetch} function will be assigned to this template - variable instead of being output to the template. - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - file - string - Yes - n/a - The file, http or ftp site to fetch - - - assign - string - No - n/a - The template variable the output will be assigned - to - - - - - - - - {fetch} examples - -{$weather} -{/if} -]]> - - - - See also - {capture}, - {eval}, - {assign} - and - fetch(). - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index f781b775..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,229 +0,0 @@ - - - - {html_checkboxes} - - {html_checkboxes} is a - custom function - that creates an html checkbox - group with provided data. It takes care of which item(s) are - selected by default as well. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - No - checkbox - Name of checkbox list - - - values - array - Yes, unless using options attribute - n/a - An array of values for checkbox buttons - - - output - array - Yes, unless using options attribute - n/a - An array of output for checkbox buttons - - - selected - string/array - No - empty - The selected checkbox element(s) - - - options - associative array - Yes, unless using values and output - n/a - An associative array of values and output - - - separator - string - No - empty - String of text to separate each checkbox item - - - assign - string - No - empty - Assign checkbox tags to an array instead of output - - - labels - boolean - No - &true; - Add <label>-tags to the output - - - - - - - - Required attributes are values and - output, unless you use options - instead. - - - - All output is XHTML compliant. - - - - All parameters that are not in the list above are printed as - name/value-pairs inside each of the created <input>-tags. - - - - - {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); - -?> -]]> - - -where template is - - -'} -]]> - - - or where PHP code is: - - -assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - and the template is - - -'} -]]> - - - both examples will output: - - -Joe Schmoe
      - -
      -
      -
      -]]> -
      -
      - - - Database example (eg PEAR or 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)); - -?> -]]> - - The results of the database queries above would be output with. - -'} -]]> - - - - See also - {html_radios} - and - {html_options} - -
      - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/en/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index e6264870..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - {html_image} - - {html_image} is a - custom function - that generates an HTML <img> tag. - The height and width - are automatically calculated from the image file if they are not supplied. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - file - string - Yes - n/a - name/path to image - - - height - string - No - actual image height - Height to display image - - - width - string - No - actual image width - Width to display image - - - basedir - string - no - web server doc root - Directory to base relative paths from - - - alt - string - no - - Alternative description of the image - - - href - string - no - n/a - href value to link the image to - - - path_prefix - string - no - n/a - Prefix for output path - - - - - - - - basedir is the base directory that relative image - paths are based from. If not given, the web server's document root - $_ENV['DOCUMENT_ROOT'] is used as the base. - If $security - is enabled, the path to the image must be within a - secure directory. - - - - href is the href value to link the image to. - If link is supplied, an <a href="LINKVALUE"><a> - tag is placed around the image tag. - - - - path_prefix is an optional prefix string you can give - the output path. - This is useful if you want to supply a different server name for the image. - - - - All parameters that are not in the list above are printed as - name/value-pairs inside the created <img> tag. - - - - - Technical Note - - {html_image} requires a hit to the disk to read the - image and calculate the height and width. If you don't use template - caching, - it is generally better to avoid {html_image} and leave - image tags static for optimal performance. - - - - - {html_image} example - - - - - Example output of the above template would be: - - - - - -]]> - - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/en/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 1de1787b..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,280 +0,0 @@ - - - - {html_options} - - {html_options} is a - custom function - that creates the html <select><option> group - with the assigned data. It takes care of which item(s) are selected by - default as well. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - values - array - Yes, unless using options attribute - n/a - An array of values for dropdown - - - output - array - Yes, unless using options attribute - n/a - An array of output for dropdown - - - selected - string/array - No - empty - The selected option element(s) - - - options - associative array - Yes, unless using values and output - n/a - An associative array of values and output - - - name - string - No - empty - Name of select group - - - - - - - - Required attributes are - values and output, - unless you use the combined options instead. - - - - - If the optional name attribute is given, the - <select></select> tags are created, - otherwise ONLY the <option> list is generated. - - - - If a given value is an array, it will treat it as an html - <optgroup>, and display the groups. - Recursion is supported with <optgroup>. - - - - All parameters that are not in the list above are printed as name/value-pairs - inside the <select> tag. They are ignored if - the optional name is not given. - - - - All output is XHTML compliant. - - - - - - Associative array with the <varname>options</varname> attribute - -assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown') - ); -$smarty->assign('mySelect', 9904); -?> -]]> - - - The following template will generate a drop-down list. - Note the presence of the name attribute - which creates the <select> tags. - - - - - - - Output of the above example would be: - - - - - - - -]]> - - - - -Dropdown with seperate arrays for <varname>values</varname> and -<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); -?> -]]> - - - The above arrays would be output with the following template - (note the use of the php - count() function as a modifier - to set the select size). - - - - {html_options values=$cust_ids output=$cust_names selected=$customer_id} - -]]> - - - The above example would output: - - - - - - - - -]]> - - - - Database example (eg ADODB or 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)); - -?> -]]> - - -Where a template could be as follows. Note the use of the -truncate -modifier. - - - - - {html_options options=$contact_types|truncate:20 selected=$contact.type_id} - -]]> - - - - - Dropdown's with <optgroup> - - 'Golf', 9 => 'Cricket',7 => 'Swim'); -$arr['Rest'] = array(3 => 'Sauna',1 => 'Massage'); -$smarty->assign('lookups', $arr); -$smarty->assign('fav', 7); -?> -]]> - - The script above and the following template - - - - - - - would output: - - - - - - - - - - - - - -]]> - - - - - See also - {html_checkboxes} - and - {html_radios} - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/en/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 17cb0986..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - {html_radios} - - {html_radios} is a - custom function - that creates a HTML radio button group. - It also takes care of which item is selected by default as well. - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - No - radio - Name of radio list - - - values - array - Yes, unless using options attribute - n/a - An array of values for radio buttons - - - output - array - Yes, unless using options attribute - n/a - An array of output for radio buttons - - - selected - string - No - empty - The selected radio element - - - options - associative array - Yes, unless using values and output - n/a - An associative array of values and output - - - separator - string - No - empty - String of text to separate each radio item - - - assign - string - No - empty - Assign radio tags to an array instead of output - - - - - - - - Required attributes are values and - output, unless you use options - instead. - - - - All output is XHTML compliant. - - - - All parameters that are not in the list above are output as - name/value-pairs inside each of the created - <input>-tags. - - - - {html_radios} first example - -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); - -?> -]]> - - - Where template is: - - -'} - ]]> - - - - {html_radios} second example - -assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Where template is: - - -'} -]]> - - - Both examples will output: - - - -Joe Schmoe
      -
      -
      -
      -]]> -
      -
      - - {html_radios} - Database example (eg PEAR or 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)); - -?> -]]> - - - The variable assigned from the database above - would be output with the template: - - -'} -]]> - - - - See also {html_checkboxes} - and {html_options} - -
      - - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/en/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 78bf7a3d..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,347 +0,0 @@ - - - - {html_select_date} - - {html_select_date} is a - custom function - that creates date dropdowns. - It can display any or all of year, month, and day. - All parameters that are not in the list below are printed as - name/value-pairs inside the <select> tags - of day, month and year. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - prefix - string - No - Date_ - What to prefix the var name with - - - time - timestamp/ YYYY-MM-DD - No - current time in unix timestamp or YYYY-MM-DD format - What date/time to use - - - start_year - string - No - current year - The first year in the dropdown, either - year number, or relative to current year (+/- N) - - - end_year - string - No - same as start_year - The last year in the dropdown, either - year number, or relative to current year (+/- N) - - - display_days - boolean - No - &true; - Whether to display days or not - - - display_months - boolean - No - &true; - Whether to display months or not - - - display_years - boolean - No - &true; - Whether to display years or not - - - month_format - string - No - %B - What format the month should be in (strftime) - - - day_format - string - No - %02d - What format the day output should be in (sprintf) - - - day_value_format - string - No - %d - What format the day value should be in (sprintf) - - - year_as_text - boolean - No - &false; - Whether or not to display the year as text - - - reverse_years - boolean - No - &false; - Display years in reverse order - - - field_array - string - No - null - - If a name is given, the select boxes will be drawn - such that the results will be returned to PHP in the - form of name[Day], name[Year], name[Month]. - - - - day_size - string - No - null - Adds size attribute to select tag if given - - - month_size - string - No - null - Adds size attribute to select tag if given - - - year_size - string - No - null - Adds size attribute to select tag if given - - - all_extra - string - No - null - Adds extra attributes to all select/input tags if given - - - day_extra - string - No - null - Adds extra attributes to select/input tags if given - - - month_extra - string - No - null - Adds extra attributes to select/input tags if given - - - year_extra - string - No - null - Adds extra attributes to select/input tags if given - - - field_order - string - No - MDY - The order in which to display the fields - - - field_separator - string - No - \n - String printed between different fields - - - month_value_format - string - No - %m - strftime() format of the month values, default is - %m for month numbers. - - - year_empty - string - No - null - If supplied then the first element of the year's select-box has this - value as it's label and as it's value. This is useful to make the - select-box read Please select a year for example. - Note that you can use values like -MM-DD as time-attribute to indicate - an unselected year. - - - month_empty - string - No - null - If supplied then the first element of the month's select-box has this - value as it's label and as it's value. . - Note that you can use values like YYYY--DD as time-attribute to indicate - an unselected month. - - - day_empty - string - No - null - If supplied then the first element of the day's select-box has this - value as it's label and as it's value. - Note that you can use values like YYYY-MM- as - time-attribute to indicate an unselected day. - - - - - - - - There is an useful php function on the - date tips page for converting - {html_select_date} form values to a timestamp. - - - - - {html_select_date} - Template code - - - - - This will output: - - - - - - - ..... snipped ..... - - - - - - -]]> - - - - - {html_select_date} second example - - - - - With 2000 as the current year the output: - - - - - -.... snipped .... - - - - -]]> - - - - See also - {html_select_time}, - date_format, - $smarty.now - and the date tips page. - - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/en/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 8aeed629..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,226 +0,0 @@ - - - - {html_select_time} - - {html_select_time} is a - custom function - that creates time dropdowns for you. - It can display any or all of hour, minute, second and meridian. - - - The time attribute can have different formats. - It can be a unique timestamp, a string of the format - YYYYMMDDHHMMSS or a string that is parseable by PHP's - strtotime(). - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - prefix - string - No - Time_ - What to prefix the var name with - - - time - timestamp - No - current time - What date/time to use - - - display_hours - boolean - No - &true; - Whether or not to display hours - - - display_minutes - boolean - No - &true; - Whether or not to display minutes - - - display_seconds - boolean - No - &true; - Whether or not to display seconds - - - display_meridian - boolean - No - &true; - Whether or not to display meridian (am/pm) - - - use_24_hours - boolean - No - &true; - Whether or not to use 24 hour clock - - - minute_interval - integer - No - 1 - Number interval in minute dropdown - - - second_interval - integer - No - 1 - Number interval in second dropdown - - - field_array - string - No - n/a - Outputs values to array of this name - - - all_extra - string - No - null - Adds extra attributes to select/input tags if given - - - hour_extra - string - No - null - Adds extra attributes to select/input tags if - given - - - minute_extra - string - No - null - Adds extra attributes to select/input tags if - given - - - second_extra - string - No - null - Adds extra attributes to select/input tags if - given - - - meridian_extra - string - No - null - Adds extra attributes to select/input tags if - given - - - - - - - {html_select_time} - - - - - At 9:20 and 23 seconds in the morning the template above would output: - - - - - -... snipped .... - - - -... snipped .... - - - - - - -]]> - - - - See also - $smarty.now, - {html_select_date} - and the date tips page. - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/en/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 33428583..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,250 +0,0 @@ - - - - {html_table} - - {html_table} is a - custom function - that dumps an array of data into an HTML <table>. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - loop - array - Yes - n/a - Array of data to loop through - - - cols - mixed - No - 3 - - Number of columns in the table or a comma-separated list of column heading - names or an array of column heading names.if the cols-attribute is empty, - but rows are given, then the number of cols is computed by the number - of rows and the number of elements to display to be just enough cols to - display all elements. If both, rows and cols, are omitted cols defaults - to 3. if given as a list or array, the number of columns is computed from - the number of elements in the list or array. - - - - rows - integer - No - empty - - Number of rows in the table. if the rows-attribute is empty, but - cols are given, then the number of rows is computed by the number of - cols and the number of elements to display to be just enough rows to - display all elements. - - - - inner - string - No - cols - - Direction of consecutive elements in the loop-array to be - rendered. cols means elements are displayed - col-by-col. rows means elements are displayed - row-by-row. - - - - caption - string - No - empty - Text to be used for the <caption> - element of the table - - - table_attr - string - No - border="1" - Attributes for <table> tag - - - th_attr - string - No - empty - Attributes for <th> tag - (arrays are cycled) - - - tr_attr - string - No - empty - attributes for <tr> tag - (arrays are cycled) - - - td_attr - string - No - empty - Attributes for <td> tag - (arrays are cycled) - - - trailpad - string - No - &nbsp; - Value to pad the trailing cells on last row with (if any) - - - hdir - string - No - right - - Direction of each row to be rendered. possible values: - right (left-to-right), and - left (right-to-left) - - - - vdir - string - No - down - - Direction of each column to be rendered. possible values: - down (top-to-bottom), up - (bottom-to-top) - - - - - - - - - The cols attribute determines how many - columns will be in the table. - - - - The table_attr, tr_attr - and td_attr values determine the attributes given - to the <table>, <tr> - and <td> tags. - - - - If tr_attr or td_attr are - arrays, they will be cycled through. - - - - trailpad is the value put into the trailing cells - on the last table row if there are any present. - - - - - {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'); -?> -]]> - - The variables assigned from php could be displayed as these three - examples demonstrate. Each example shows the template followed by output. - - - - -123 -456 -789 - - - - -{**** Example Two ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - - - - - - - -
      1234
      5678
      9   
      - - -{**** Example Three ****} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} - - - - - - - - - - - - -
      firstsecondthirdfourth
      1234
      5678
      9   
      -]]> -
      - -
      -
      - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/en/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 10a11e8f..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - {mailto} - - {mailto} automates the creation of a mailto: - anchor links and optionally encodes them. Encoding emails makes it more - difficult for web spiders to lift email addresses off of a site. - - Technical Note - - Javascript is probably the most thorough form of - encoding, although you can use hex encoding too. - - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - address - string - Yes - n/a - The e-mail address - - - text - string - No - n/a - The text to display, default is the e-mail address - - - encode - string - No - none - How to encode the e-mail. Can be one of none, - hex, javascript - or javascript_charcode. - - - cc - string - No - n/a - Email addresses to carbon copy, separate entries by a comma. - - - - bcc - string - No - n/a - Email addresses to blind carbon copy, - separate entries by a comma - - - subject - string - No - n/a - Email subject - - - newsgroups - string - No - n/a - Newsgroups to post to, separate entries by a comma. - - - followupto - string - No - n/a - Addresses to follow up to, separate entries by a comma. - - - extra - string - No - n/a - Any extra information you want passed to the link, such - as style sheet classes - - - - - - - - {mailto} example lines followed by the result - -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"} - -]]> - - - - See also - escape, - {textformat} - and - obfuscating email addresses. - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-math.xml b/trunk/docs/en/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index 6983b180..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,203 +0,0 @@ - - - - {math} - - {math} allows the template designer to do math equations - in the template. - - - - Any numeric template variables may be used in the - equations, and the result is printed in place of the tag. - - - - The variables used in the equation are passed as parameters, - which can be template variables or static values. - - - +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, - pi, pow, rand, round, sin, sqrt, srans and tan are all valid operators. - Check the PHP documentation for further information on these - math functions. - - - - If you supply the assign attribute, the output of the - {math} function will be assigned to this template - variable instead of being output to the template. - - - - - Technical Note - - {math} is an expensive function in performance due to - its use of the php - eval() function. Doing the math in PHP is much - more efficient, so whenever possible do the math calculations in the script - and assign() - the results to the template. Definitely avoid repetitive - {math} function calls, eg within - - {section} loops. - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - equation - string - Yes - n/a - The equation to execute - - - format - string - No - n/a - The format of the result (sprintf) - - - var - numeric - Yes - n/a - Equation variable value - - - assign - string - No - n/a - Template variable the output will be assigned to - - - [var ...] - numeric - Yes - n/a - Equation variable value - - - - - - - - {math} - - Example a: - - - - - - The above example will output: - - - - - - Example b: - - - - - - The above example will output: - - - - - - Example c: - - - - - - The above example will output: - - - - - - Example d: - - - - - - The above example will output: - - - - - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/en/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index f5349015..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - {popup_init} - - {popup} - is an integration of - overLib, a library used for popup - windows. These are used for context sensitive information, such as - help windows or tooltips. - - - - - {popup_init} must be called only once, - preferably within the <head> tag - within any page you plan on using the - {popup} function. - - - - The path is relative to the executing script or a fully qualified domain - path, ie not the relative to the template. - - - - overLib is written and maintained by - Erik Bosrup, and the homepage/download is at - &url.overLib;. - - - - - {popup_init} - - -{* popup_init must be called once at the top of the page *} -{popup_init src='javascripts/overlib/overlib.js'} - -{* fully qualified url example *} -{popup_init src='http://myserver.org/my_js_libs/overlib/overlib.js'} - - -// the first example will output - - - - -]]> - - - - -XHTML validation -The {popup_init} does not validate with -strict and you will get the error -document type does not allow element "div" here; -(ie a <div> tag in the <head>). - -This means you will need to include the <script> and -<div> tags manually. - - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/en/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index 9a6c4ce1..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,450 +0,0 @@ - - - - {popup} - - {popup} is used to create Javascript popup layer/windows. - - {popup_init} MUST be called first for this to work. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - text - string - Yes - n/a - the text/html to display in the popup window - - - trigger - string - No - onMouseOver - what is used to trigger the popup window. Can be - one of onMouseOver or onClick - - - sticky - boolean - No - &false; - makes the popup stick around until closed - - - caption - string - No - n/a - sets the caption to title - - - fgcolor - string - No - n/a - color of the inside of the popup box - - - bgcolor - string - No - n/a - color of the border of the popup box - - - textcolor - string - No - n/a - sets the color of the text inside the box - - - capcolor - string - No - n/a - sets color of the box's caption - - - closecolor - string - No - n/a - sets the color of the close text - - - textfont - string - No - n/a - sets the font to be used by the main text - - - captionfont - string - No - n/a - sets the font of the caption - - - closefont - string - No - n/a - sets the font for the Close text - - - textsize - string - No - n/a - sets the size of the main text's font - - - captionsize - string - No - n/a - sets the size of the caption's font - - - closesize - string - No - n/a - sets the size of the Close text's font - - - width - integer - No - n/a - sets the width of the box - - - height - integer - No - n/a - sets the height of the box - - - left - boolean - No - &false; - makes the popups go to the left of the mouse - - - right - boolean - No - &false; - makes the popups go to the right of the mouse - - - center - boolean - No - &false; - makes the popups go to the center of the mouse - - - above - boolean - No - &false; - makes the popups go above the mouse. NOTE: only - possible when height has been set - - - below - boolean - No - &false; - makes the popups go below the mouse - - - border - integer - No - n/a - makes the border of the popups thicker or thinner - - - offsetx - integer - No - n/a - how far away from the pointer the popup will show - up, horizontally - - - offsety - integer - No - n/a - how far away from the pointer the popup will show - up, vertically - - - fgbackground - url to image - No - n/a - defines a picture to use instead of color for the - inside of the popup. - - - bgbackground - url to image - No - n/a - defines a picture to use instead of color for the - border of the popup. NOTE: You will want to set bgcolor - to or the color will show as well. NOTE: When having - a Close link, Netscape will re-render the table cells, - making things look incorrect - - - closetext - string - No - n/a - sets the Close text to something else - - - noclose - boolean - No - n/a - does not display the Close text on stickies - with a caption - - - status - string - No - n/a - sets the text in the browsers status bar - - - autostatus - boolean - No - n/a - sets the status bar's text to the popup's text. - NOTE: overrides status setting - - - autostatuscap - string - No - n/a - sets the status bar's text to the caption's text. - NOTE: overrides status and autostatus settings - - - inarray - integer - No - n/a - tells overLib to read text from this index in - the ol_text array, located in overlib.js. This - parameter can be used instead of text - - - caparray - integer - No - n/a - tells overLib to read the caption from this index - in the ol_caps array - - - capicon - url - No - n/a - displays the image given before the popup caption - - - snapx - integer - No - n/a - snaps the popup to an even position in a - horizontal grid - - - snapy - integer - No - n/a - snaps the popup to an even position in a - vertical grid - - - fixx - integer - No - n/a - locks the popups horizontal position Note: - overrides all other horizontal placement - - - fixy - integer - No - n/a - locks the popups vertical position Note: - overrides all other vertical placement - - - background - url - No - n/a - sets image to be used instead of table box - background - - - padx - integer,integer - No - n/a - pads the background image with horizontal - whitespace for text placement. Note: this is a two - parameter command - - - pady - integer,integer - No - n/a - pads the background image with vertical - whitespace for text placement. Note: this is a two - parameter command - - - fullhtml - boolean - No - n/a - allows you to control the html over a background - picture completely. The html code is expected in the text - attribute - - - frame - string - No - n/a - controls popups in a different frame. See the - overlib page for more info on this function - - - function - string - No - n/a - calls the specified javascript function and takes - the return value as the text that should be displayed in - the popup window - - - delay - integer - No - n/a - makes that popup behave like a tooltip. It will - popup only after this delay in milliseconds - - - hauto - boolean - No - n/a - automatically determine if the popup should be to - the left or right of the mouse. - - - vauto - boolean - No - n/a - automatically determine if the popup should be - above or below the mouse. - - - - - - - {popup} - -mypage - -{* you can use html, links, etc in your popup text *} -mypage - -{* a popup over a table cell *} -{$part_number} -]]> - - - There is another good example on the - {capture} - page. - - See also - {popup_init} - and the - overLib homepage. - - - - diff --git a/trunk/docs/en/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/en/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index b5b0f9cb..00000000 --- a/trunk/docs/en/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,295 +0,0 @@ - - - - {textformat} - - {textformat} is a - block function - used to format text. It basically cleans up spaces and special characters, - and formats paragraphs by wrapping at a boundary and indenting lines. - - - You can set the parameters explicitly, or use a preset style. - Currently email is the only available style. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - style - string - No - n/a - Preset style - - - indent - number - No - 0 - The number of chars to indent every line - - - indent_first - number - No - 0 - The number of chars to indent the first line - - - indent_char - string - No - (single space) - The character (or string of chars) to indent with - - - wrap - number - No - 80 - How many characters to wrap each line to - - - wrap_char - string - No - \n - The character (or string of chars) to break each line with - - - wrap_cut - boolean - No - &false; - If &true;, wrap will break the line at the exact - character instead of at a word boundary - - - assign - string - No - n/a - The template variable the output will be assigned to - - - - - - - {textformat} - - - - - The above example will output: - - - - - - - - - The above example will output: - - - - - - - - - The above example will output: - - - - - - - - - The above example will output: - - - - - - - See also - {strip} - and - wordwrap. - - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-modifiers.xml b/trunk/docs/en/designers/language-modifiers.xml deleted file mode 100644 index 9359d6c4..00000000 --- a/trunk/docs/en/designers/language-modifiers.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - Variable Modifiers - - Variable modifiers can be applied to - variables, - custom functions or strings. - To apply a modifier, specify the value followed by a | - (pipe) and the modifier name. A modifier may accept additional parameters - that affect its behavior. These parameters follow the modifer name and are - separated by a : (colon). Also, - all php-functions can be used as modifiers implicitly - (more below) and modifiers can be - combined. - . - - - Modifier examples - - -{html_options output=$myArray|upper|truncate:20} - -]]> - - - - - - If you apply a modifier to an array variable instead of a single value variable, - the modifier will be applied to every value in that array. If you really want - the modifier to work on an entire array as a value, you must prepend the - modifier name with a @ symbol. - - Example - {$articleTitle|@count} - will print out the number of - elements in the $articleTitle array using the php - count() - function as a modifier. - - - - - Modifiers are autoloaded from the $plugins_dir - or can be registered explicitly with the register_modifier() - function. The later is useful for sharing a function between - php scripts and smarty templates. - - - - All php-functions can be used as modifiers implicitly, as demonstrated in the - example above. - However, using php-functions as modifiers has two little pitfalls: - - First - sometimes the order of the function-parameters is - not the desirable one. Formatting $foo with - {"%2.f"|sprintf:$foo} actually - works, but asks for the more intuitive, like - {$foo|string_format:"%2.f"} that is provided by - the Smarty distribution. - - - Secondly - if - $security is enabled, all php-functions that - are to be used as modifiers have to be declared trusted in the - MODIFIER_FUNCS element of the - - $security_settings array. - - - - - - - See also - register_modifier(), - combining modifiers. - and - extending smarty with 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; - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index a3f11909..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - capitalize - - This is used to capitalize the first letter of all words in a variable. - This is similar to the PHP - ucwords() function. - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - boolean - No - &false; - This determines whether or not words with - digits will be uppercased - - - - - - capitalize - -assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - - - Where the template is: - - - - - - Will output: - - - - - - See also - lower - and - upper - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index a6742008..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - cat - - This value is concatenated to the given variable. - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - string - No - empty - This value to catenate to the given variable. - - - - - - - cat - -assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 25844e6f..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - count_characters - - This is used to count the number of characters in a variable. - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - boolean - No - &false; - This determines whether or not to include - whitespace characters in the count. - - - - - - - count_characters - -assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - count_words, - count_sentences and - count_paragraphs. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index b80332c4..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - count_paragraphs - - This is used to count the number of paragraphs in a 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." - ); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - count_characters, - count_sentences - and - count_words. - - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index ab3aa9e8..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - count_sentences - - This is used to count the number of sentences in a variable. - - - count_sentences - -assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - count_characters, - count_paragraphs - and - count_words. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index bdd50e3b..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - count_words - - This is used to count the number of words in a variable. - - - count_words - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - - - Where template is: - - - - - - This will output: - - - - - - - See also - count_characters, - count_paragraphs - and - count_sentences. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index c9f8503a..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,289 +0,0 @@ - - - - date_format - - This formats a date and time into the given - strftime() format. - Dates can be passed to Smarty as unix - timestamps, mysql timestamps - or any string made up of month day year, parsable by php's - strtotime(). - Designers can then use date_format to have complete control of the - formatting of the date. If the date passed to - date_format is empty and a second parameter is passed, - that will be used as the date to format. - - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - string - No - %b %e, %Y - This is the format for the outputted date. - - - 2 - string - No - n/a - This is the default date if the input is empty. - - - - - - - - - Since Smarty-2.6.10 numeric values passed to date_format are - always (except for mysql timestamps, see - below) interpreted as a unix timestamp. - - - Before Smarty-2.6.10 numeric strings that where also parsable by - strtotime() in php (like YYYYMMDD) - where sometimes (depending on the underlying implementation of - strtotime()) interpreted as - date strings and NOT as timestamps. - - - The only exception are mysql timestamps: They are also numeric - only and 14 characters long (YYYYMMDDHHMMSS), - mysql timestamps have precedence over unix timestamps. - - - - Programmers note - - date_format is essentially a wrapper to PHP's - strftime() function. - You may have more or less conversion specifiers available depending - on your system's strftime() - function where PHP was compiled. Check your - system's manpage for a full list of valid specifiers. However, a few of - the specifiers are emulated on Windows. These are: %D, %e, %h, %l, %n, - %r, %R, %t, %T. - - - - - date_format - -assign('config', $config); -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - - - This template uses - $smarty.now to get the current time: - - - - - - This above will output: - - - - - - - - date_format conversion specifiers: - - - %a - abbreviated weekday name according to the current locale - - - %A - full weekday name according to the current locale - - - %b - abbreviated month name according to the current locale - - - %B - full month name according to the current locale - - - %c - preferred date and time representation for the current locale - - - %C - century number (the year divided by 100 and truncated to an integer, range 00 to 99) - - - %d - day of the month as a decimal number (range 01 to 31) - - - %D - same as %m/%d/%y - - - %e - day of the month as a decimal number, a single digit is preceded by a space (range 1 - to 31) - - - %g - Week-based year within century [00,99] - - - %G - Week-based year, including the century [0000,9999] - - - %h - same as %b - - - %H - hour as a decimal number using a 24-hour clock (range 00 to 23) - - - %I - hour as a decimal number using a 12-hour clock (range 01 to 12) - - - %j - day of the year as a decimal number (range 001 to 366) - - - %k - Hour (24-hour clock) single digits are preceded by a blank. (range 0 to 23) - - - %l - hour as a decimal number using a 12-hour clock, single digits preceeded by a space - (range 1 to 12) - - - %m - month as a decimal number (range 01 to 12) - - - %M - minute as a decimal number - - - %n - newline character - - - %p - either `am' or `pm' according to the given time value, or the corresponding strings - for the - current locale - - - %r - time in a.m. and p.m. notation - - - %R - time in 24 hour notation - - - %S - second as a decimal number - - - %t - tab character - - - %T - current time, equal to %H:%M:%S - - - %u - weekday as a decimal number [1,7], with 1 representing Monday - - - %U - week number of the current year as a decimal number, starting with the first Sunday - as the first - day of the first week - - - %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to - 53, where week - 1 is the first week that has at least 4 days in the current - year, and with Monday as the first day of the week. - - - %w - day of the week as a decimal, Sunday being 0 - - - %W - week number of the current year as a decimal number, starting with the first Monday - as the first - day of the first week - - - %x - preferred date representation for the current locale without the time - - - %X - preferred time representation for the current locale without the date - - - %y - year as a decimal number without a century (range 00 to 99) - - - %Y - year as a decimal number including the century - - - %Z - time zone or name or abbreviation - - - %% - a literal `%' character - - - - - - See also $smarty.now, - strftime(), - {html_select_date} - and the date tips page. - - - - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index a9553a78..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - default - - This is used to set a default value for a variable. If the variable - is unset or an empty string, the given default value is printed instead. - Default takes the one argument. - - - - - With - error_reporting(E_ALL), - undeclared variables will always throw an error within the template. - This function is useful for replacing null or zero length strings. - - - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - string - No - empty - This is the default value to output if the - variable is empty. - - - - - - - default - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->assign('email', ''); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also the - default variable handling - and the - blank variable handling pages. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 24e79786..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - escape - - escape is used to encode or escape a variable to for example html, - url, single quotes, - hex, hexentity, - javascript and mail. - By default its html. - - - - - - - - - - - - - Parameter Position - Type - Required - Possible Values - Default - Description - - - - - 1 - string - No - html, htmlall, - url, - urlpathinfo, quotes, - hex, hexentity, - javascript, mail - - html - This is the escape format to use. - - - 2 - string - No - ISO-8859-1, UTF-8, - and any character set supported by - - htmlentities() - - ISO-8859-1 - The character set encoding passed to htmlentities() et. al. - - - - - - - escape - -assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); - -?> -]]> - - - These are example escape template lines followed by the output - - - *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'htmlall'} {* escapes ALL html entities *} -'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 -]]> - - - - - Other examples - PHP functions can be used as modifiers, - - $security permitting. - - -click here -]]> - - This snippet is useful for emails, but see also - - {mailto} - -{$EmailAddress|escape:'mail'} -]]> - - - - - See also - escaping smarty parsing, - {mailto} - and the - obfuscating email addresses page. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 649a2b00..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - indent - - This indents a string on each line, default is 4. As - an optional parameter, you can specify the number of characters to - indent. As an optional second parameter, you can specify the - character to use to indent with eg use "\t" for a tab. - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - integer - No - 4 - This determines how many characters to indent - to. - - - 2 - string - No - (one space) - This is the character used to indent with. - - - - - - - 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.' - ); -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - strip, - wordwrap - and - spacify. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 14c92d7b..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - lower - - This is used to lowercase a variable. This is equivalent to the PHP - - strtolower() function. - - - lower - -assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - - - Where template is: - - - - - - This will output: - - - - - - - See also - upper - and - capitalize. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 324217c3..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - nl2br - - All "\n" line breaks will be converted to html - <br /> tags in the given variable. - This is equivalent to the PHP's - nl2br() function. - - - nl2br - -assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - - - Where the template is: - - - - - - Will output: - - -today, dark tonight -]]> - - - - See also - word_wrap, - count_paragraphs - and - count_sentences. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index ec28f839..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - regex_replace - - A regular expression search and replace on a variable. Use the - - preg_replace() syntax from the PHP manual. - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - string - Yes - n/a - This is the regular expression to be replaced. - - - 2 - string - Yes - n/a - This is the string of text to replace with. - - - - - - - regex_replace - -assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - replace - and - escape. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index eeb20d42..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - replace - - A simple search and replace on a variable. This is equivalent to the PHP's - - str_replace() function. - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - string - Yes - n/a - This is the string of text to be replaced. - - - 2 - string - Yes - n/a - This is the string of text to replace with. - - - - - - - replace - -assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - regex_replace - and - escape. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index f3e70dbc..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,98 +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. - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - string - No - one space - This what gets inserted between each character of - the variable. - - - - - - - spacify - -assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - wordwrap - and - nl2br. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 9253a924..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - string_format - - This is a way to format strings, such as decimal numbers and such. - Use the syntax for - sprintf() - for the formatting. - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - string - Yes - n/a - This is what format to use. (sprintf) - - - - - - - string_format - -assign('number', 23.5787446); - -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - - See also - date_format. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 10763be7..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - strip_tags - - This strips out markup tags, basically anything between - < and >. - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - bool - No - &true; - This determines whether the tags are replaced by ' ' or '' - - - - - - - strip_tags - -assign('articleTitle', - "Blind Woman Gets New -Kidney from Dad she Hasn't Seen in years." - ); - -?> -]]> - - - Where template is: - - - - - - Will output: - - -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. -]]> - - - - See also - replace - and - regex_replace. - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 0daf3fe6..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - strip - - This replaces all repeated spaces, newlines and tabs with a single - space, or with the supplied string. - - - Note - - If you want to strip blocks of template text, use the built-in {strip} function. - - - - strip - -assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - - See also - {strip} - and - truncate. - - - \ No newline at end of file diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index e94694f0..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - truncate - - This truncates a variable to a character length, the default is 80. - As an optional second parameter, you can specify a string of text - to display at the end if the variable was truncated. The - characters in the string are included with the original truncation length. - By default, truncate will attempt to cut off at a - word boundary. If you want to cut off at the exact character length, - pass the optional third parameter of &true;. - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - integer - No - 80 - This determines how many characters to truncate - to. - - - 2 - string - No - ... - This is a text string that replaces the truncated text. Its length - is included in the truncation length setting. - - - 3 - boolean - No - &false; - This determines whether or not to truncate at a - word boundary with &false;, or at the exact character with &true;. - - - 4 - boolean - No - &false; - This determines whether the truncation happens at the end of the - string with &false;, or in the middle of the string with &true;. - Note that if this setting is &true;, then word boundaries are ignored. - - - - - - - - truncate - -assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -?> -]]> - - - where template is: - - - - - - This will output: - - - - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index d229b7d6..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - upper - - This is used to uppercase a variable. This is equivalent to the PHP - - strtoupper() function. - - - upper - -assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -?> -]]> - - - Where template is: - - - - - - Will output: - - - - - - - See also - lower - and - capitalize. - - - - diff --git a/trunk/docs/en/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/en/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 7c87e645..00000000 --- a/trunk/docs/en/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - wordwrap - - Wraps a string to a column width, - the default is 80. As an optional second parameter, - you can specify a string of text - to wrap the text to the next line, the default is a carriage return - "\n". - By default, wordwrap will attempt to wrap at a word - boundary. If you want to cut off at the exact character length, pass - the optional third parameter as &true;. This is equivalent to the PHP - wordwrap() - function. - - - - - - - - - - - - Parameter Position - Type - Required - Default - Description - - - - - 1 - integer - No - 80 - This determines how many columns to wrap - to. - - - 2 - string - No - \n - This is the string used to wrap words with. - - - 3 - boolean - No - &false; - This determines whether or not to wrap at a - word boundary (&false;), or at the exact character (&true;). - - - - - - - wordwrap - -assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); - -?> -]]> - - - Where template is - - -\n"} - -{$articleTitle|wordwrap:26:"\n":true} -]]> - - - Will output: - - - -from dad she hasn't seen in
      -years. - -Blind woman gets new kidn -ey from dad she hasn't se -en in years. -]]> -
      -
      - - See also - nl2br - and - {textformat}. - -
      - - - diff --git a/trunk/docs/en/designers/language-variables.xml b/trunk/docs/en/designers/language-variables.xml deleted file mode 100644 index 4a72724b..00000000 --- a/trunk/docs/en/designers/language-variables.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - Variables - - Smarty has several different types of variables. The type of the variable - depends on what symbol it is prefixed or enclosed within. - - - Variables in Smarty can be either displayed directly or used as arguments - for functions, - attributes and - modifiers, inside conditional expressions, - etc. To print a variable, simply enclose it in the - delimiters so that it - is the only thing contained between them. - -Example variables - -{$product.description} - -{$Contacts[row].Phone} - - -]]> - - - -Top Tip -An easy way to examine Smarty variables is with the -debugging console. - - - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - - diff --git a/trunk/docs/en/designers/language-variables/language-assigned-variables.xml b/trunk/docs/en/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 4f86f439..00000000 --- a/trunk/docs/en/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - Variables assigned from PHP - - Variables that are - assigned from PHP are referenced by - preceding them with a dollar sign $ (like php). - Variables assigned from within a template with the - {assign} - function are also displayed this way. - - - - Assigned variables - php script - -assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - - - where the content of index.tpl is: - - - -{* this will not work as $variables are case sensitive *} -This weeks meeting is in {$meetingplace}. -{* this will work *} -This weeks meeting is in {$meetingPlace}. -]]> - - - - This above would output: - - - -This weeks meeting is in . -This weeks meeting is in New York. -]]> - - - - - - Associative arrays - - You can also reference associative array variables that are - assigned from PHP by specifying the key after the '.' (period) - symbol. - - - Accessing associative array variables - -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'); -?> -]]> - - - where the content of index.tpl is: - - - -{$Contacts.email}
      -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}
      -{$Contacts.phone.cell}
      -]]> -
      - - this will output: - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - - - Array indexes - - You can reference arrays by their index, much like native PHP syntax. - - - Accessing arrays by index - -assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - - - where index.tpl is: - - - -{$Contacts[1]}
      -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}
      -{$Contacts[2][1]}
      -]]> -
      - - This will output: - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - - - Objects - - Properties of objects - assigned from PHP can be referenced by specifying the property - name after the -> symbol. - - - Accessing object properties - -name}
      -email: {$person->email}
      -]]> -
      - - this will output: - - - -email: zaphod@slartibartfast.example.com
      -]]> -
      -
      -
      -
      - - diff --git a/trunk/docs/en/designers/language-variables/language-config-variables.xml b/trunk/docs/en/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 2c57366a..00000000 --- a/trunk/docs/en/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - Variables loaded from config files - - Variables that are loaded from the - config files - are referenced by enclosing them within #hash marks#, - or with the smarty variable - - $smarty.config. - The later syntax is useful for embedding into quoted attribute values. - - - config variables - - Example config file - foo.conf: - - - - - - A template demonstrating the #hash# method: - - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - A template demonstrating the - - $smarty.config method: - - - -{$smarty.config.pageTitle} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - Both examples would output: - - - -This is mine - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Config file variables cannot be used until - after they are loaded in from a config file. This procedure is - explained later in this document under - - {config_load}. - - - See also variables and - $smarty reserved - variables - -
      - diff --git a/trunk/docs/en/designers/language-variables/language-variables-smarty.xml b/trunk/docs/en/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 46923c8b..00000000 --- a/trunk/docs/en/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,224 +0,0 @@ - - - - {$smarty} reserved variable - - The PHP reserved {$smarty} variable can be used to - access several enviroment and request variables. - The full list of them follows. - - - - Request variables - - The request variables - such as $_GET, $_POST, - $_COOKIE, $_SERVER, - $_ENV and $_SESSION - (see - $request_vars_order - and - $request_use_auto_globals) - can be accessed as demonstrated in the examples below: - - - Displaying request variables - - - - - - - For historical reasons {$SCRIPT_NAME} can be accessed - directly, although {$smarty.server.SCRIPT_NAME} is the - proposed way to access this value. - - -click me -click me -]]> - - - - - - {$smarty.now} - - The current timestamp - can be accessed with {$smarty.now}. - The value reflects the number of - seconds passed since the so-called Epoch on January 1, 1970, - and can be passed directly to the - date_format - modifier for display. Note that - time() - is called on each invocation; eg a script that takes three seconds to execute - with a call to $smarty.now at start and end - will show the three second difference. - - - - - - - - - - {$smarty.const} - - You can access PHP constant values directly. See also smarty constants. - - - - -]]> - - -Output the constant in a template with - - - - - - - - - {$smarty.capture} - - Template output captured via the built-in - - {capture}..{/capture} function can be accessed - using the {$smarty.capture} variable. - See the - {capture} page for more information. - - - - - {$smarty.config} - - {$smarty.config} variable can be used to refer - to loaded config variables. - {$smarty.config.foo} is a synonym for - {#foo#}. See the - {config_load} page - for more info. - - - - - {$smarty.section}, {$smarty.foreach} - - The {$smarty.section} and - {$smarty.foreach} variables can be used to refer to - {section} - and - {foreach} - loop properties respectfully. These have some very useful values such as - .first, .index, etc. - - - - - {$smarty.template} - - Returns the name of the current template being processed. - The following example shows the container.tpl and the - included banner.tpl with - {$smarty.template} within both. - - -Main container is {$smarty.template} -{include file='banner.tpl'} -]]> - - - will output - - -Main page is container.tpl -banner.tpl -]]> - - - - - {$smarty.version} - - Returns the version of Smarty the template was compiled with. - - -Powered by Smarty {$smarty.version} -]]> - - - - - {$smarty.ldelim}, {$smarty.rdelim} - - These variables are used for printing the left-delimiter and right-delimiter - value literally, the same as - {ldelim},{rdelim}. - - - See also - assigned variables and - config variables - - - - diff --git a/trunk/docs/en/getting-started.xml b/trunk/docs/en/getting-started.xml deleted file mode 100644 index 6f5464d6..00000000 --- a/trunk/docs/en/getting-started.xml +++ /dev/null @@ -1,682 +0,0 @@ - - - - Getting Started - - - What is Smarty? - - Smarty is a template engine for PHP. More specifically, it facilitates a - manageable way to separate application logic and content from its - presentation. This is best described in a situation where the application - programmer and the template designer play different roles, or in most - cases are not the same person. - - - - For example, let's say you are creating a web page that is displaying a - newspaper article. - - - - The article $headline, $tagline, - $author and $body are - content elements, they contain no information about how they will be - presented. They are passed into Smarty - by the application. - - - Then the - template designer edits the templates and uses a combination of - HTML tags and template tags - to format the presentation of these - variables with elements - such as tables, div's, background colors, font sizes, style sheets, svg etc. - - - One day - the programmer needs to change the way the article content is retrieved, ie a - change in application logic. This change does not affect the template - designer, the content will still arrive in the template exactly the same. - - - - Likewise, if the template designer wants to completely redesign the - templates, this would require no change to the application logic. - - - Therefore, - the programmer can make changes to the application logic without the need - to restructure templates, and the template designer can make changes to - templates without breaking application logic. - - - - - One design goal of Smarty is the separation of business logic and - presentation logic. - - - - - This means templates can certainly contain logic under - the condition that it is for presentation only. Things such as - including - other templates, - alternating table row colors, - upper-casing a variable, - looping - over an array of data and displaying it - are examples of presentation logic. - - - This does not mean however that Smarty forces a separation of - business and presentation logic. Smarty has no knowledge of which is which, - so placing business logic in the template is your own doing. - - Also, if you - desire no logic in your templates you certainly can - do so by boiling the content down to text and variables only. - - - - - One of the unique aspects about Smarty is the template compiling. This - means Smarty reads the template files and creates PHP scripts from them. - Once they are created, they are executed from then on. Therefore there is - no costly template file parsing for each request. Each template can - take full advantage of PHP compiler and cache solutions such as - eAccelerator, - ionCube - mmCache - or Zend Accelerator - to name a few. - - - Some of Smarty's features: - - - - - It is extremely fast. - - - - - It is efficient since the PHP parser does the dirty work. - - - - - No template parsing overhead, only compiles once. - - - - - It is smart about recompiling - only the template files that have changed. - - - - - You can easily create your own custom functions - and variable modifiers, so the - template language is extremely extensible. - - - - - Configurable template - {delimiter} tag - syntax, so you can use - {$foo}, {{$foo}}, - <!--{$foo}-->, etc. - - - - - The - {if}..{elseif}..{else}..{/if} - constructs are passed to the - PHP parser, so the {if...} expression syntax can be as - simple or as complex an evaluation as you like. - - - - - Allows unlimited nesting of - sections, if's etc. - - - - - It is possible to - embed PHP code - right in your template files, although - this may not be needed (nor recommended) since the engine is so - customizable. - - - - - Built-in caching support - - - - - Arbitrary template sources - - - - - Custom cache handling - functions - - - - - Plugin architecture - - - - - - - - - - - Installation - - - Requirements - - Smarty requires a web server running PHP 4.0.6 or greater. - - - - - Basic Installation - - - Install the Smarty library files which are in the - /libs/ sub directory of - the distribution. These are .php files that you - SHOULD NOT edit. They are shared among all applications and only get - changed when you upgrade to a new version of Smarty. - - In the examples below the Smarty tarball has been unpacked to: - - - /usr/local/lib/Smarty-v.e.r/ for *nix - machines - and - c:\webroot\libs\Smarty-v.e.r\ for the - windows enviroment. - - - - - Required Smarty library files - - - - - - - Smarty uses a PHP constant - named SMARTY_DIR - which is the full system file path - to the Smarty libs/ directory. - Basically, if your application can find the - Smarty.class.php file, you do not need to set the - SMARTY_DIR - as Smarty will figure it out on its own. - Therefore, if - Smarty.class.php is not in your - include_path, - or you do not supply an absolute path to it in your application, - then you must define SMARTY_DIR manually. - SMARTY_DIR must include a - trailing slash/. - - - - - - Here's how you create an instance of Smarty in your PHP scripts: - - - -]]> - - - - - Try running the above script. If you get an error saying the - Smarty.class.php file could not be found, you need to - do one of the following: - - - - Set SMARTY_DIR constant manually - - -]]> - - - - - Supply absolute path to library file - - -]]> - - - - - Add the library path to the <filename>php.ini</filename> file - - - - - - - Appending the include path in a php script with - <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> - - -]]> - - - - - Now that the library files are in place, it's time to setup the Smarty - directories for your application: - - - - Smarty requires four directories which - are by default named templates/, - templates_c/, configs/ and cache/ - - - Each of these are definable by the - Smarty class properties - - $template_dir, - - $compile_dir, - - $config_dir, and - - $cache_dir respectively - - - - 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/trunk/docs/en/language-defs.ent b/trunk/docs/en/language-defs.ent deleted file mode 100644 index 4ce1da18..00000000 --- a/trunk/docs/en/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/trunk/docs/en/language-snippets.ent b/trunk/docs/en/language-snippets.ent deleted file mode 100644 index f5b0cebd..00000000 --- a/trunk/docs/en/language-snippets.ent +++ /dev/null @@ -1,65 +0,0 @@ - - - - Technical Note - - The merge parameter respects array keys, so if - you merge two numerically indexed arrays, they may overwrite each other - or result in non-sequential keys. This is unlike the PHP - - array_merge() function - which wipes out numerical keys and renumbers them. - -'> - - - Technical Note - - If the chosen function callback is of the form - array(&$object, $method), only one instance of the - same class and with the same $method can be registered. The - latest registered function callback will be used in - such a scenario. - -'> - - - As an optional third parameter, you can pass a - $compile_id. - This is in the event that you want to compile different versions of - the same template, such as having separate templates compiled - for different languages. Another use for - $compile_id is when you use more than one - $template_dir - but only one - $compile_dir. - Set a separate $compile_id for each - $template_dir, - otherwise templates of the same name will overwrite each other. You can - also set the - $compile_id variable once instead of passing - this to each call to this function. -'> - - - The php-function callback function can be either: - - - A string containing the function name - - - - An array of the form array(&$object, $method) with - &$object being a reference to an - object and $method being a string - containing the method-name - - - - An array of the form - array($class, $method) with - $class being the class name and - $method being a method of the class. - - - '> \ No newline at end of file diff --git a/trunk/docs/en/livedocs.ent b/trunk/docs/en/livedocs.ent deleted file mode 100644 index 0951f160..00000000 --- a/trunk/docs/en/livedocs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - -'> -'> - - diff --git a/trunk/docs/en/make_chm_index.html b/trunk/docs/en/make_chm_index.html deleted file mode 100755 index 3d53d826..00000000 --- a/trunk/docs/en/make_chm_index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - Smarty Manual - - - - - - - -

      - -

      -
      -

      Smarty Manual

      -
      Monte Ohrt
      -
      Andrei Zmievski
      -
      -

      This file was generated: [GENTIME]
      -Go to http://smarty.php.net/download-docs.php -to get the actual version.

      - -
      - -
      - diff --git a/trunk/docs/en/preface.xml b/trunk/docs/en/preface.xml deleted file mode 100644 index e5439517..00000000 --- a/trunk/docs/en/preface.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - Preface - - It is undoubtedly one of the most asked questions on the PHP mailing - lists: how do I make my PHP scripts independent of the layout? While - PHP is billed as "HTML embedded scripting language", after writing a - couple of projects that mixed PHP and HTML freely one comes up with the - idea that separation of form and content is a Good Thing [TM]. In - addition, in many companies the roles of layout designer and programmer - are separate. Consequently, the search for a templating solution - ensues. - - - In our company for example, the development of an application goes on - as follows: After the requirements docs are done, the interface - designer makes mockups of the interface and gives them to the - programmer. The programmer implements business logic in PHP and uses - interface mockups to create skeleton templates. The project is then - handed off to the HTML designer/web page layout person who brings the - templates up to their full glory. The project may go back and forth - between programming/HTML a couple of times. Thus, it's important to - have good template support because programmers don't want anything to - do with HTML and don't want HTML designers mucking around with PHP - code. Designers need support for config files, dynamic blocks and - other interface issues, but they don't want to have to deal with - intricacies of the PHP programming language. - - - Looking at many templating solutions available for PHP today, most of - them provide a rudimentary way of substituting variables into templates - and do a limited form of dynamic block functionality. But our needs - required a bit more than that. We didn't want programmers to be dealing - with HTML layout at ALL, but this was almost inevitable. For instance, - if a designer wanted background colors to alternate on dynamic blocks, - this had to be worked out with the programmer in advance. We also - needed designers to be able to use their own configuration files, and - pull variables from them into the templates. The list goes on. - - - We started out writing out a spec for a template engine back in late - 1999. After finishing the spec, we began to work on a template engine - written in C that would hopefully be accepted for inclusion with PHP. - Not only did we run into many complicated technical barriers, but there - was also much heated debate about exactly what a template engine should - and should not do. From this experience, we decided that the template - engine should be written in PHP as a class, for anyone to use as they - see fit. So we wrote an engine that did just that and - SmartTemplate came into existence (note: this - class was never submitted to the public). It was a class that did - almost everything we wanted: regular variable substitution, supported - including other templates, integration with config files, embedding PHP - code, limited 'if' statement functionality and much more robust dynamic - blocks which could be multiply nested. It did all this with regular - expressions and the code turned out to be rather, shall we say, - impenetrable. It was also noticably slow in large applications from all - the parsing and regular expression work it had to do on each - invocation. The biggest problem from a programmer's point of view was - all the necessary work in the PHP script to setup and process templates - and dynamic blocks. How do we make this easier? - - - Then came the vision of what ultimately became Smarty. We know how fast - PHP code is without the overhead of template parsing. We also know how - meticulous and overbearing the PHP language may look to the average - designer, and this could be masked with a much simpler templating - syntax. So what if we combined the two strengths? Thus, Smarty was - born... :-) - - - - diff --git a/trunk/docs/en/programmers/advanced-features.xml b/trunk/docs/en/programmers/advanced-features.xml deleted file mode 100644 index f9090b24..00000000 --- a/trunk/docs/en/programmers/advanced-features.xml +++ /dev/null @@ -1,35 +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/trunk/docs/en/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/en/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index f2906267..00000000 --- a/trunk/docs/en/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - Objects - - Smarty allows access to PHP - objects through the templates. - There are two ways to access them. - - - - - One way is to register objects to - the template, then use access them via syntax similar to - custom functions. - - - The other way is to assign() - objects to the templates and access them much like any other - assigned variable. - - - - - The first method has a much nicer template syntax. It - is also more secure, as a registered object can be restricted to certain - methods or properties. However, - a registered object cannot be looped over - or assigned in arrays of objects, etc. The method you choose will be - determined by your needs, but use the first method whenever possible to - keep template syntax to a minimum. - - - If $security - is enabled, no private methods or functions can be accessed - (begininning with '_'). If a method and property of the same name exist, - the method will be used. - - - You can restrict the methods and properties that can be accessed by - listing them in an array as the third registration parameter. - - - By default, parameters passed to objects through the templates are passed - the same way - custom functions get them. - An associative array is passed - as the first parameter, and the smarty object as the second. If you want - the parameters passed one at a time for each argument like traditional - object parameter passing, set the fourth registration parameter to &false;. - - - The optional fifth parameter has only effect with - format being &true; - and contains a list of methods that should be treated as - blocks. That means these methods have a closing tag in the - template - ({foobar->meth2}...{/foobar->meth2}) and - the parameters to the methods have the same synopsis as the - parameters for - - block-function-plugins: - They get the four parameters - $params, - $content, - &$smarty and - &$repeat and they also behave like - block-function-plugins. - - - Using a registered or assigned object - -register_object('foobar',$myobj); - -// if we want to restrict access to certain methods or properties, list them -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); - -// if you want to use the traditional object parameter format, pass a boolean of false -$smarty->register_object('foobar',$myobj,null,false); - -// We can also assign objects. assign_by_ref when possible. -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> -]]> - - - And here's how to access your objects in index.tpl: - - -meth1 p1='foo' p2=$bar} - -{* you can also assign the output *} -{foobar->meth1 p1='foo' p2=$bar assign='output'} -the output was {$output} - -{* access our assigned object *} -{$myobj->meth1('foo',$bar)} -]]> - - - - See also register_object() - and - assign(). - - - diff --git a/trunk/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 8f880b67..00000000 --- a/trunk/docs/en/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - Output Filters - - When the template is invoked via - display() or - fetch(), its output can - be sent through one or more output filters. This differs from - - postfilters - because postfilters operate on compiled templates before they are saved to - the disk, whereas output filters operate on the template output when it is - executed. - - - - Output filters can be either - registered or loaded - from the - plugins directory by using the - load_filter() - method or by setting the - $autoload_filters variable. - Smarty will pass the template output as the first argument, - and expect the function to return the result of the processing. - - - Using a template outputfilter - -register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// now any occurrence of an email address in the template output will have -// a simple protection against spambots -?> -]]> - - - - See also - register_outputfilter(), - load_filter(), - $autoload_filters, - postfilters and - $plugins_dir. - - - diff --git a/trunk/docs/en/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/en/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 8e4ab861..00000000 --- a/trunk/docs/en/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - Postfilters - - Template postfilters are PHP functions that your templates are ran through - after they are compiled. Postfilters can be either - registered or loaded - from the plugins directory - by using the - load_filter() - function or by setting the - $autoload_filters variable. - Smarty will pass the compiled template code as the first - argument, and expect the function to return the result of the - processing. - - - Using a template postfilter - -\n\"; ?>\n".$tpl_source; -} - -// register the postfilter -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - - - The postfilter above will make the compiled Smarty template - index.tpl look like: - - - -{* rest of template content... *} -]]> - - - - See also - register_postfilter(), - prefilters, - outputfilters, - and - load_filter(). - - - diff --git a/trunk/docs/en/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/en/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 1c9baa53..00000000 --- a/trunk/docs/en/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - Prefilters - - Template prefilters are PHP functions that your templates are ran through - before they are compiled. This is good for preprocessing - your templates to remove unwanted comments, keeping an eye on what people are - putting in their templates, etc. - - - Prefilters can be either registered or loaded from - the plugins directory - by using load_filter() function or - by setting the - $autoload_filters variable. - - - Smarty will pass the template source code as the first argument, and - expect the function to return the resulting template source code. - - - Using a template prefilter - - This will remove all the html comments in the template source. - - -/U",'',$tpl_source); -} - -// register the prefilter -$smarty->register_prefilter('remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - - - - See also - register_prefilter(), - postfilters - and - load_filter(). - - - diff --git a/trunk/docs/en/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/en/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index 298f597c..00000000 --- a/trunk/docs/en/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,187 +0,0 @@ - - - - Cache Handler Function - - As an alternative to using the default file-based caching mechanism, you - can specify a custom cache handling function that will be used to - read, write and - clear cached files. - - - Create a function in your application that Smarty will use as a - cache handler. Set the name of it in the - - $cache_handler_func - class variable. Smarty will now use this to handle cached data. - - - - - The first argument is the action, which will be one of - read, write and - clear. - - - - The second parameter is the Smarty object. - - - The third parameter - is the cached content. Upon a write, Smarty passes the - cached content in these parameters. Upon a read, - Smarty expects your function to accept this parameter by reference and - populate it with the cached data. Upon a clear, pass a - dummy variable here since it is not used. - - - - The fourth parameter is the name of the template - file, needed for read/write. - - - - The fifth parameter is the optional $cache_id. - - - - The sixth is the optional - $compile_id. - - - - The seventh and last parameter $exp_time - was added in Smarty-2.6.0. - - - - - - Example using MySQL as a cache source - -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; - - // create unique cache 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': - // read cache from 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': - // 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; - -} - -?> -]]> - - - - diff --git a/trunk/docs/en/programmers/advanced-features/template-resources.xml b/trunk/docs/en/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 2dc6cb62..00000000 --- a/trunk/docs/en/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,246 +0,0 @@ - - - - Resources - - The templates may come from a variety of sources. When you - display() or - fetch() - a template, or when you include a template from within another template, - you supply a resource type, followed by the appropriate path and template - name. If a resource is not explicitly given the value of - $default_resource_type is assumed. - - - - Templates from $template_dir - - Templates from the - $template_dir do not require a template - resource, although you can use the file: resource - for consistancy. Just supply the path to the template you want to use - relative to the - $template_dir root directory. - - - Using templates from the $template_dir - -display('index.tpl'); -$smarty->display('admin/menu.tpl'); -$smarty->display('file:admin/menu.tpl'); // same as one above -?> -]]> - -From within a Smarty template - - - - - - - Templates from any directory - - Templates outside of the - $template_dir - require the file: template resource type, followed by - the absolute path to the template. - - - Using templates from any directory - -display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - - - And from within a Smarty template: - - - - - - - - Windows Filepaths - - If you are using a Windows machine, filepaths usually include a - drive letter (C:) at the beginning of the pathname. Be sure to use - file: in the path to avoid namespace conflicts and - get the desired results. - - - Using templates from windows file paths - -display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - - - And from within Smarty template: - - - - - - - - - - Templates from other sources - - You can retrieve templates using whatever possible source you can - access with PHP: databases, sockets, LDAP, and so on. You do this - by writing resource plugin functions and registering them with - Smarty. - - - - See resource plugins - section for more information on the functions you are supposed - to provide. - - - - - Note that you cannot override the built-in - 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. - - - - Using custom resources - -register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// using resource from php script -$smarty->display("db:index.tpl"); -?> -]]> - - - And from within Smarty template: - - - - - - - - - Default template handler function - - You can specify a function that is used to retrieve template - contents in the event the template cannot be retrieved from its - resource. One use of this is to create templates that do not exist - on-the-fly. - - - Using the default template handler function - -$smarty_obj->template_dir . DIRECTORY_SEPARATOR . $resource_name, 'contents'=>$template_source ), $smarty_obj ); - return true; - } - } else { - // not a file - return false; - } -} - -// set the default handler -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - - diff --git a/trunk/docs/en/programmers/api-functions.xml b/trunk/docs/en/programmers/api-functions.xml deleted file mode 100644 index 4dd3a956..00000000 --- a/trunk/docs/en/programmers/api-functions.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - Smarty Class 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/trunk/docs/en/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/en/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index 2ed92e0d..00000000 --- a/trunk/docs/en/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - append_by_ref() - append values by reference - - - Description - - voidappend_by_ref - stringvarname - mixedvar - boolmerge - - - This is used to - append() values - to the templates by reference. - If you append a variable by reference then change its - value, the appended value sees the change as well. For - objects, - append_by_ref() also avoids an in-memory copy of the - appended object. - See the PHP manual on variable referencing for an in-depth - explanation. If you pass the optional third parameter of &true;, - the value will be merged with the current array instead of appended. - - ¬e.parameter.merge; - - append_by_ref - -append_by_ref('Name', $myname); -$smarty->append_by_ref('Address', $address); -?> -]]> - - - - See also - append(), - assign() - and - get_template_vars(). - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-append.xml b/trunk/docs/en/programmers/api-functions/api-append.xml deleted file mode 100644 index 2589b366..00000000 --- a/trunk/docs/en/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - append() - append an element to an assigned array - - - Description - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - -If you append - to a string value, it is converted to an array value and then - appended to. You can explicitly pass name/value pairs, or associative - arrays containing the name/value pairs. If you pass the optional third - parameter of &true;, the value will be merged with the current array - instead of appended. - - ¬e.parameter.merge; - - append - -append('foo', 'Fred'); -// After this line, foo will now be seen as an array in the 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); - -// passing an associative array -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - - - See also - append_by_ref(), - assign() - and - get_template_vars() - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/en/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 682df38e..00000000 --- a/trunk/docs/en/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - assign_by_ref() - assign values by reference - - - Description - - voidassign_by_ref - stringvarname - mixedvar - - - This is used to assign() - values to the templates by reference instead of - making a copy. See the PHP manual on variable referencing for an explanation. - - - Technical Note - - This is used to assign values to the templates by reference. - If you assign a variable by reference then change its - value, the assigned value sees the change as well. For - objects, - assign_by_ref() also avoids an in-memory copy of the - assigned object. - See the PHP manual on variable referencing for an in-depth - explanation. - - - - 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/trunk/docs/en/programmers/api-functions/api-assign.xml b/trunk/docs/en/programmers/api-functions/api-assign.xml deleted file mode 100644 index 0efc491d..00000000 --- a/trunk/docs/en/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - assign() - assign values to the templates - - - Description - - voidassign - mixedvar - - - voidassign - stringvarname - mixedvar - - - You can explicitly pass name/value pairs, or associative arrays - containing the name/value pairs. - - - assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// passing an associative array -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// passing an array -$myArray = array('no' => 10, 'label' => 'Peanuts'); -$smarty->assign('foo',$myArray); - -// passing a row from a database (eg adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - - - These are accessed in the template with - - - - - - - To access more complex array assignments see - {foreach} - and - {section} - - - - See also - assign_by_ref(), - get_template_vars(), - clear_assign(), - append() - and - {assign} - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/en/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index dbdc144f..00000000 --- a/trunk/docs/en/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - clear_all_assign() - clears the values of all assigned variables - - - Description - - voidclear_all_assign - - - - clear_all_assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// will output above -print_r( $smarty->get_template_vars() ); - -// clear all assigned variables -$smarty->clear_all_assign(); - -// will output nothing -print_r( $smarty->get_template_vars() ); - -?> -]]> - - - - See also - clear_assign(), - clear_config(), - get_template_vars(), - assign() - and append() - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/en/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 57e1e2a8..00000000 --- a/trunk/docs/en/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - clear_all_cache() - clears the entire template cache - - - Description - - voidclear_all_cache - intexpire_time - - - As an optional - parameter, you can supply a minimum age in seconds the cache - files must be before they will get cleared. - - - clear_all_cache - -clear_all_cache(); - -// clears all files over one hour old -$smarty->clear_all_cache(3600); -?> -]]> - - - - See also - clear_cache(), - is_cached() - and the - caching page. - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-clear-assign.xml b/trunk/docs/en/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index fca04f00..00000000 --- a/trunk/docs/en/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - clear_assign() - clears the value of an assigned variable - - - Description - - voidclear_assign - mixedvar - - -This can be a single value, or an array of values. - - - clear_assign() - -clear_assign('Name'); - -// clears multiple variables -$smarty->clear_assign(array('Name', 'Address', 'Zip')); -?> -]]> - - - - See also - clear_all_assign(), - clear_config(), - get_template_vars(), - assign() - and append() - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-clear-cache.xml b/trunk/docs/en/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 200b1e4c..00000000 --- a/trunk/docs/en/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - clear_cache() - clears the cache for a specific template - - - 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/trunk/docs/en/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/en/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 3d55ce0e..00000000 --- a/trunk/docs/en/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - clear_compiled_tpl() - clears the compiled version of the specified template resource - - - Description - - voidclear_compiled_tpl - stringtpl_file - stringcompile_id - - intexp_time - - - This clears the compiled version of the specified template - resource, or all compiled template files if one is not specified. - If you pass a - $compile_id - only the compiled template for this specific - $compile_id - is cleared. If you pass an exp_time, then only - compiled templates older than exp_time seconds are - cleared, by default all compiled templates are cleared regardless of their age. - This function is for advanced use only, not normally needed. - - - clear_compiled_tpl() - -clear_compiled_tpl('index.tpl'); - -// clear entire compile directory -$smarty->clear_compiled_tpl(); -?> -]]> - - - See also - clear_cache(). - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-clear-config.xml b/trunk/docs/en/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index b4655e03..00000000 --- a/trunk/docs/en/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - clear_config() - clears assigned config variables - - - Description - - voidclear_config - stringvar - - - This clears all assigned - config variables. - If a variable name is - supplied, only that variable is cleared. - - - clear_config() - -clear_config(); - -// clear one variable -$smarty->clear_config('foobar'); -?> -]]> - - - - See also - get_config_vars(), - config variables, - config files, - {config_load}, - config_load() - and - clear_assign(). - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-config-load.xml b/trunk/docs/en/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 226f86dc..00000000 --- a/trunk/docs/en/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - config_load() - loads config file data and assigns it to the template - - - Description - - voidconfig_load - stringfile - stringsection - - - This loads - config file - data and assigns it to - the template. This works identically to the template - - {config_load} function. - - - Technical Note - - As of Smarty 2.4.0, assigned template variables are kept across - invocations of - fetch() - and display(). - Config vars loaded from - config_load() are always global in scope. - Config files are also compiled for faster execution, and respect the - - $force_compile and - - $compile_check settings. - - - - config_load() - -config_load('my.conf'); - -// load a section -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - - - - See also - {config_load}, - get_config_vars(), - clear_config(), - and - config variables - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-display.xml b/trunk/docs/en/programmers/api-functions/api-display.xml deleted file mode 100644 index 9260431a..00000000 --- a/trunk/docs/en/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - display() - displays the template - - - Description - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - - This displays the template unlike - fetch(). - Supply a valid template resource - type and path. As an optional second parameter, you can pass a - $cache id, see the - caching section for more information. - - ¶meter.compileid; - - display() - -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('data', $db_data); - -} - -// display the output -$smarty->display('index.tpl'); -?> -]]> - - - - - Other display() template resource examples - - Use the syntax for template resources to - display files outside of the - - $template_dir directory. - - -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'); -?> -]]> - - - - See also fetch() and - template_exists(). - - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-fetch.xml b/trunk/docs/en/programmers/api-functions/api-fetch.xml deleted file mode 100644 index 80b0d065..00000000 --- a/trunk/docs/en/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - - fetch() - returns the template output - - - Description - - stringfetch - stringtemplate - stringcache_id - string$compile_id - - - - This returns the template output instead of - displaying it. - Supply a valid template resource - type and path. As an optional second parameter, you can pass a - $cache id, see the caching - section for more information. - - ¶meter.compileid; - - - - fetch() - -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; -?> -]]> - - - - - - - Using fetch() to send an email - - The email_body.tpl template - - - - - - The email_disclaimer.tpl template which uses the - - {textformat} modifier. - - - - - - The php script using the PHP - - mail() function - - -getRow($sql); -$smarty->assign('contact', $contact); - -mail($contact['email'], 'Subject', $smarty->fetch('email_body.tpl')); - -?> -]]> - - - - - - See also - {fetch} - display(), - {eval}, - and - template_exists(). - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/en/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 790acd26..00000000 --- a/trunk/docs/en/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - get_config_vars() - returns the given loaded config variable value - - - Description - - arrayget_config_vars - stringvarname - - - If no parameter is given, an array of all loaded - config variables - is returned. - - - get_config_vars() - -get_config_vars('foo'); - -// get all loaded config template vars -$all_config_vars = $smarty->get_config_vars(); - -// take a look at them -print_r($all_config_vars); -?> -]]> - - - - See also - clear_config(), - {config_load}, - config_load() - and - get_template_vars(). - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/en/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 786a82a9..00000000 --- a/trunk/docs/en/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - get_registered_object() - returns a reference to a registered object - - - Description - - arrayget_registered_object - stringobject_name - - - This is useful - from within a custom function when you need direct access to a - registered object. See the - objects page for more info. - - - get_registered_object() - -get_registered_object($params['object']); - // use $obj_ref is now a reference to the object - } -} -?> -]]> - - - - See also - register_object(), - unregister_object() - and - objects page - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/en/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 1c878d0a..00000000 --- a/trunk/docs/en/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - get_template_vars() - returns assigned variable value(s) - - - Description - - arrayget_template_vars - stringvarname - - - If no parameter - is given, an array of all assigned - variables are returned. - - - get_template_vars - -get_template_vars('foo'); - -// get all assigned template vars -$all_tpl_vars = $smarty->get_template_vars(); - -// take a look at them -print_r($all_tpl_vars); -?> -]]> - - - - See also assign(), - {assign}, - append(), - clear_assign(), - clear_all_assign() - and - get_config_vars() - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-is-cached.xml b/trunk/docs/en/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 6757c0b0..00000000 --- a/trunk/docs/en/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - is_cached() - returns true if there is a valid cache for this template - - - Description - - boolis_cached - stringtemplate - stringcache_id - stringcompile_id - - - - - - This only works if - $caching is set to &true;, see the - caching section for more info. - - - - You can also pass a $cache_id as an optional second - parameter in case you want - multiple caches - for the given template. - - - - You can supply a - $compile id - as an optional third parameter. If you omit that parameter the persistent - - $compile_id is used if its set. - - - - If you do not want to pass a $cache_id but want to - pass a - $compile_id you have to pass - &null; as a $cache_id. - - - - - Technical Note - - If is_cached() returns &true; it actually loads the - cached output and stores it internally. Any subsequent call to - display() or - fetch() - will return this internally stored output and does not try to reload - the cache file. This prevents a race condition that may occur when a - second process clears the cache between the calls to - is_cached() and to - display() - in the example above. This also means calls to - clear_cache() - and other changes of the cache-settings may have no effect after - is_cached() returned &true;. - - - - - is_cached() - -caching = true; - -if(!$smarty->is_cached('index.tpl')) { -// do database calls, assign vars here -} - -$smarty->display('index.tpl'); -?> -]]> - - - - - is_cached() with multiple-cache template - -caching = true; - -if(!$smarty->is_cached('index.tpl', 'FrontPage')) { - // do database calls, assign vars here -} - -$smarty->display('index.tpl', 'FrontPage'); -?> -]]> - - - - - - See also - clear_cache(), - clear_all_cache(), - and - caching section. - - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-load-filter.xml b/trunk/docs/en/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 6d7041d4..00000000 --- a/trunk/docs/en/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - load_filter() - load a filter plugin - - - Description - - voidload_filter - stringtype - stringname - - - The first argument specifies the type of the filter to load and can be one - of the following: pre, post or - output. - The second argument specifies the name of the - filter plugin. - - - Loading filter plugins - -load_filter('pre', 'trim'); - -// load another prefilter named 'datefooter' -$smarty->load_filter('pre', 'datefooter'); - -// load output filter named 'compress' -$smarty->load_filter('output', 'compress'); - -?> -]]> - - - - See also - register_prefilter(), - register_postfilter(), - register_outputfilter(), - $autoload_filters - and - advanced features. - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-block.xml b/trunk/docs/en/programmers/api-functions/api-register-block.xml deleted file mode 100644 index c24df30a..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - register_block() - dynamically register block functions plugins - - - Description - - voidregister_block - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - - Use this to dynamically register - block function plugins. - Pass in the block function name, followed by the PHP - function's name that implements it. - - &api.register.snippet; - - - cacheable and cache_attrs - can be omitted in most cases. See controlling cacheability of plugins' output - section on how to implement them properly. - - - register_block() - -register_block('translate', 'do_translation'); -?> -]]> - - - Where the template is: - - - - - - - - See also - unregister_block() - and the - plugin block functions page. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/en/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 7d73008d..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - register_compiler_function() - dynamically register a compiler function plugin - - - Description - - boolregister_compiler_function - stringname - mixedimpl - boolcacheable - - - Pass in the - compiler function name, - followed by the PHP function that implements it. - - &api.register.snippet; - - - cacheable can be omitted in - most cases. See controlling - cacheability of plugin output on how to use it properly. - - - -See also - -unregister_compiler_function() -and the -plugin compiler functions section. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-function.xml b/trunk/docs/en/programmers/api-functions/api-register-function.xml deleted file mode 100644 index 80464ccd..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - register_function() - dynamically register template function plugins - - - Description - - voidregister_function - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - - Pass in the template function - name, followed by the PHP function name that implements it. - - &api.register.snippet; - - - - cacheable and cache_attrs can be - omitted in most cases. See controlling cacheability of plugins output - on how to use them properly. - - - 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()); -} -?> -]]> - - - And in the template - - - - - - - -See also -unregister_function() -and the -plugin functions section. - - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-modifier.xml b/trunk/docs/en/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index 078c257b..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - register_modifier() - dynamically register modifier plugin - - - Description - - voidregister_modifier - stringname - mixedimpl - - - Pass in the template modifier name, followed by the PHP function that it - implements it. - - &api.register.snippet; - - - - register_modifier() - -register_modifier('ss', 'stripslashes'); - -?> -]]> - -In the template, use ss to strip slashes. - - -]]> - - - - - See also - unregister_modifier(), - register_function(), - modifiers section, - extending Smarty with plugins - and - creating plugin modifiers, - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-object.xml b/trunk/docs/en/programmers/api-functions/api-register-object.xml deleted file mode 100644 index d4f0aceb..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - register_object() - register an object for use in the templates - - - Description - - voidregister_object - stringobject_name - objectobject - arrayallowed_methods_properties - - booleanformat - arrayblock_methods - - - See the - objects section - for more information. - - - See also - get_registered_object(), - and - unregister_object(). - - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/en/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index d0060eb5..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - register_outputfilter() - dynamically register outputfilters - - - Description - - voidregister_outputfilter - mixedfunction - - - Use this to dynamically register - outputfilters to operate on - a template's output before it is - displayed. See - template output - filters - for more information on how to set up an output filter function. - - &api.register.snippet; - ¬e.parameter.function; - -See also -unregister_outputfilter(), - -load_filter(), -$autoload_filters -and the -template output filters -section. - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/en/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index a669559b..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - register_postfilter() - dynamically register postfilters - - - Description - - voidregister_postfilter - mixedfunction - - - Use this to dynamically register - postfilters to run templates - through after they are compiled. See template postfilters for - more information on how to setup a postfiltering function. - - &api.register.snippet; - ¬e.parameter.function; - - See also - - unregister_postfilter(), - - register_prefilter(), - load_filter(), - - $autoload_filters - and the - template output filters - section. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/en/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index ab51dfbe..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - register_prefilter() - dynamically register prefilters - - - Description - - voidregister_prefilter - mixedfunction - - - Use this to dynamically register - prefilters - to run templates through before they are compiled. See template prefilters for - more information on how to setup a prefiltering function. - - &api.register.snippet; - ¬e.parameter.function; - - - - See also - unregister_prefilter(), - register_postfilter(), - register_ouputfilter(), - load_filter(), - $autoload_filters - and - template output filters - section. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-register-resource.xml b/trunk/docs/en/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 89b7de79..00000000 --- a/trunk/docs/en/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - register_resource() - dynamically register resources - - - Description - - voidregister_resource - stringname - arrayresource_funcs - - - Use this to dynamically register a - resource plugin - with Smarty. - Pass in the name of the resource and the array of - PHP functions implementing it. See - template resources - for more information on how to setup a function for fetching templates. - - Technical Note - - A resource name must be at least two characters in length. One - character resource names will be ignored and used as part of the file - path, such as $smarty->display('c:/path/to/index.tpl'); - - - - - - - - The php-function-array resource_funcs - must have 4 or 5 elements. - - - With 4 elements the elements are - the functions-callbacks for the respective source, - timestamp, secure and - trusted functions of the resource. - - - With 5 elements the first element has to be an - object reference or a class name of the object or class - implementing the resource and the 4 following elements have - to be the method names implementing source, - timestamp, secure - and trusted. - - - - register_resource() - -register_resource('db', array( - 'db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted') - ); -?> -]]> - - - - - See also - unregister_resource() - and the - template resources section. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-template-exists.xml b/trunk/docs/en/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 7c2428a6..00000000 --- a/trunk/docs/en/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - template_exists() - checks whether the specified template exists - - - Description - - booltemplate_exists - stringtemplate - - - It can accept either a path to the template on the filesystem or a - resource string specifying the template. - - - - template_exists() - - This example uses $_GET['page'] to - {include} - a content template. If the template does not exist then an error page - is displayed instead. First the page_container.tpl - - - -{$title} - -{include file='page_top.tpl'} - -{* include middle content page *} -{include file=$content_template} - -{include file='page_footer.tpl'} - -]]> - - - And the php script - - -template_exists($mid_template) ){ - $mid_template = 'page_not_found.tpl'; -} -$smarty->assign('content_template', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - - - - - See also - display(), - fetch(), - {include} - and - {insert} - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-trigger-error.xml b/trunk/docs/en/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 006c9809..00000000 --- a/trunk/docs/en/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - trigger_error() - output an error message - - - Description - - voidtrigger_error - stringerror_msg - intlevel - - - This function can be used to output an error message using Smarty. - level parameter can be one of the values - used for the PHP - trigger_error() function, eg: - E_USER_NOTICE, E_USER_WARNING, etc. - By default it's E_USER_WARNING. - - - See also - - $error_reporting, - debugging - and - troubleshooting. - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-block.xml b/trunk/docs/en/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 17888aeb..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - unregister_block() - dynamically unregister block function plugins - - - Description - - voidunregister_block - stringname - - - Use this to dynamically unregister - block function plugin. - Pass in the block function name. - - - - See also - register_block() - and - block functions plugins. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/en/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 57d05e64..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - unregister_compiler_function() - dynamically unregister a compiler function - - - Description - - voidunregister_compiler_function - stringname - - - Pass in - the name of the compiler function. - - - - See also - - register_compiler_function() - and - plugin compiler functions. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-function.xml b/trunk/docs/en/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index b32049c5..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - unregister_function - dynamically unregister template function plugin - - - Description - - voidunregister_function - stringname - - - Pass in the template function name. - - - unregister_function - -unregister_function('fetch'); - -?> -]]> - - - - - See also - register_function(). - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/en/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 2d63a63d..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - unregister_modifier() - dynamically unregister modifier plugin - - - Description - - voidunregister_modifier - stringname - - - Pass in the template modifier name. - - - unregister_modifier() - -unregister_modifier('strip_tags'); - -?> -]]> - - - - See also - register_modifier() - and - plugin modifiers, - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-object.xml b/trunk/docs/en/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 4f391d55..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - unregister_object() - dynamically unregister an object - - - Description - - voidunregister_object - stringobject_name - - - - See also - register_object() - and - objects section - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/en/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 91313a5a..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - unregister_outputfilter() - dynamically unregister an output filter - - - Description - - voidunregister_outputfilter - stringfunction_name - - - Use this to dynamically unregister an output filter. - - - - See also - - register_outputfilter() - and - template output filters. - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/en/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 276a284a..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - unregister_postfilter() - dynamically unregister a postfilter - - - Description - - voidunregister_postfilter - stringfunction_name - - - - See also - - register_postfilter() - and - template post filters. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/en/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index ff23e901..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - unregister_prefilter() - dynamically unregister a prefilter - - - Description - - voidunregister_prefilter - stringfunction_name - - - - See also - - register_prefilter() - and - pre filters. - - - - - diff --git a/trunk/docs/en/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/en/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index c65f8368..00000000 --- a/trunk/docs/en/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - unregister_resource() - dynamically unregister a resource plugin - - - Description - - voidunregister_resource - stringname - - - Pass in the name of the resource. - - - unregister_resource() - -unregister_resource('db'); - -?> -]]> - - - - - See also - - register_resource() - and - template resources - - - - - diff --git a/trunk/docs/en/programmers/api-variables.xml b/trunk/docs/en/programmers/api-variables.xml deleted file mode 100644 index 0cd4da2f..00000000 --- a/trunk/docs/en/programmers/api-variables.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - Smarty Class 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/trunk/docs/en/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/en/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 81389500..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - $autoload_filters - - If there are some filters that you wish to load on every template - invocation, you can specify them using this variable and Smarty will - automatically load them for you. The variable is an associative array - where keys are filter types and values are arrays of the filter - names. For example: - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - - - - - - See also - register_outputfilter(), - register_prefilter(), - register_postfilter() - and - load_filter() - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/en/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index e9d76939..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - $cache_dir - - This is the name of the directory where template caches are - stored. By default this is - ./cache, meaning that - Smarty will look for the cache/ directory - in the same directory as the executing php script. - This directory must - be writeable by the web server, - see install for more info. - - - You can also use your own - - custom cache handler - function to control cache files, which will ignore this - setting. - See also - $use_sub_dirs. - - - Technical Note - - This setting must be either a relative or - absolute path. include_path is not used for writing files. - - - - Technical Note - - It is not recommended to put this directory under - the web server document root. - - - - - See also - $caching, - $use_sub_dirs, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check - and the - caching section. - - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/en/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index b95faa36..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $cache_handler_func - - You can supply a custom function to handle cache files instead - of using the built-in method using the - $cache_dir. - See the custom cache - handler function section for more details. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/en/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index d7b7ad5f..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - $cache_lifetime - - This is the length of time in seconds that a template cache is valid. - Once this time has expired, the cache will be regenerated. - - - - - $caching must be turned on (either 1 or 2) for - $cache_lifetime to have any purpose. - - - - A $cache_lifetime value of -1 will force the cache to never expire. - - - A value of 0 will cause - the cache to always regenerate (good for testing only, to disable caching - a more efficient method is to set $caching = 0). - - - - If you want to give certain templates their own cache lifetime, you could - do this by setting - $caching = 2, - then set $cache_lifetime to a unique value just - before calling display() - or fetch(). - - - - - If - $force_compile is - enabled, the cache files will be regenerated every time, effectively - disabling caching. You can clear all the cache files with the clear_all_cache() - function, or individual cache files (or groups) with the clear_cache() function. - - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/en/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index bda15577..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - -$cache_modified_check - - If set to &true;, Smarty will respect the If-Modified-Since - header sent from the client. If the cached file timestamp has - not changed since the last visit, then a '304: Not Modified' - header will be sent instead of the content. This works only on - cached content without - {insert} - tags. - - - - See also - $caching, - $cache_lifetime, - $cache_handler_func, - and the - caching section. - - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-caching.xml b/trunk/docs/en/programmers/api-variables/variable-caching.xml deleted file mode 100644 index 25474c1b..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - $caching - - This tells Smarty whether or not to cache the output of the templates - to the - $cache_dir. - By default this is set to 0 ie disabled. If your templates generate - redundant content, it is advisable to turn on - $caching, as this will result in significant - performance gains. - - - - You can also have - multiple - caches for the same template. - - - - - A value of 1 or 2 enables caching. - - - - A value of 1 tells Smarty to use the current - $cache_lifetime - variable to determine if the cache has expired. - - A value of 2 tells Smarty to use the - $cache_lifetime - value at the time the cache was generated. This way you can set the - $cache_lifetime - just before fetching - the template to have granular control over when that particular cache expires. - See also is_cached(). - - - - If $compile_check - is enabled, the cached content will be regenerated if - any of the templates or config files that are part of this cache are - changed. - - - If - $force_compile is enabled, the cached - content will always be regenerated. - - - - See also - $cache_dir, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check, - is_cached() -and the -caching section. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-compile-check.xml b/trunk/docs/en/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 8aff8b64..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - $compile_check - - Upon each invocation of the PHP application, Smarty tests to see if the - current template has changed (different time stamp) since the last time - it was compiled. If it has changed, it recompiles that template. If the - template has not been compiled, it will compile regardless of this - setting. By default this variable is set to &true;. - - Once an application is - put into production (ie the templates won't be changing), - the compile check step is no longer needed. Be sure to set - $compile_check to &false; for - maximal performance. Note that if you change this to &false; and a - template file is changed, you will *not* see the change since the - template will not get recompiled. If - $caching - is enabled and $compile_check is enabled, then - the cache files will get regenerated if - an involved template file or config file was updated. See - $force_compile and clear_compiled_tpl() - . - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/en/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index e84c3300..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - $compile_dir - - This is the name of the directory where compiled templates are - located. By default this is - ./templates_c, meaning that Smarty - will look for the templates_c/ - directory in the same directory as - the executing php script. This directory must - be writeable by the web server, - see install for more info. - - - - Technical Note - - This setting must be either a relative or - absolute path. include_path is not used for writing files. - - - - Technical Note - - It is not recommended to put this directory under - the web server document root. - - - - See also $compile_id - and - $use_sub_dirs. - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-compile-id.xml b/trunk/docs/en/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index f8c1d708..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - $compile_id - - Persistant compile identifier. As an alternative to passing the same - $compile_id to each and every function call, you can set this - $compile_id and it will be used implicitly thereafter. - - - With a $compile_id you can work around the limitation - that you cannot use the same - $compile_dir - for different - $template_dirs. If you set a distinct - $compile_id for each - $template_dir - then Smarty can tell the compiled templates apart by their - $compile_id. - - - If you have for example a - prefilter - that localizes your templates - (that is: translates language dependend parts) at compile time, then - you could use the current language as $compile_id and - you will get a set of compiled templates for each language you use. - - - Another application would be to use the same compile directory across - multiple domains / multiple virtual hosts. - - - $compile_id in a virtual host enviroment - -compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/path/to/shared_compile_dir'; - -?> -]]> - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/en/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 17b17259..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $compiler_class - - Specifies the name of the compiler class that Smarty will use - to compile the templates. The default is 'Smarty_Compiler'. For - advanced users only. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/en/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index 041fe58e..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $config_booleanize - - If set to &true;, config files - values of on/true/yes - and off/false/no get - converted to boolean values automatically. This way you can use the - values in the template like so: - {if #foobar#}...{/if}. If foobar was - on, true or yes, - the {if} statement will execute. - Defaults to &true;. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-config-dir.xml b/trunk/docs/en/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 30bb1578..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - $config_dir - - This is the directory used to store - config files - used in the - templates. Default is - ./configs, meaning that - Smarty will look for the configs/ - directory in the same directory as the executing php script. - - - Technical Note - - It is not recommended to put this directory under - the web server document root. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/en/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index d42b4661..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - $config_fix_newlines - - If set to &true;, mac and dos newlines ie '\r' and - '\r\n' in config files are - converted to '\n' when they are parsed. - Default is &true;. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/en/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 4b5dfd5f..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - $config_overwrite - - If set to &true;, the default then variables read in from - config files will overwrite each - other. Otherwise, the variables will be pushed onto an array. This is - helpful if you want to store arrays of data in config files, just list - each element multiple times. - - - - Array of config #variables# - - This examples uses - {cycle} - to output a table with alternating red/green/blue row colors - with $config_overwrite = &false;. - - The config file. - - - - - The template with a - {section} loop. - - - - {section name=r loop=$rows} - - ....etc.... - - {/section} - -]]> - - - - See also - {config_load}, - get_config_vars(), - clear_config(), - config_load() - and the config files section. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/en/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index a5765828..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $config_read_hidden - - If set to &true;, hidden sections ie section names beginning with a .period - in config files - can be read from templates. Typically you would leave - this &false;, that way you can store sensitive data in the config files - such as database parameters and not worry about the template loading - them. &false; by default. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/en/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 56d19dd4..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - $debug_tpl - - This is the name of the template file used for the debugging console. By - default, it is named debug.tpl and is - located in the SMARTY_DIR. - - - See also - $debugging - and the - debugging console section. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/en/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index bddd1134..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - $debugging_ctrl - - This allows alternate ways to enable debugging. NONE - means no alternate methods are allowed. URL - means when the keyword SMARTY_DEBUG is found in the - QUERY_STRING, debugging is enabled for that - invocation of the script. If - $debugging is &true;, this value is ignored. - - - $debugging_ctrl on localhost - - -debugging = false; // the default -$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE'; -?> -]]> - - - - - See also debugging console - section and - $debugging. - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-debugging.xml b/trunk/docs/en/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 97aec139..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - $debugging - - This enables the debugging console. - The console is a javascript popup window that informs you of the - included - templates, variables assigned - from php and - config file variables - for the current script. It does not show variables - assigned within a template with the - {assign} - function. - - The console can also be enabled from the url with - - $debugging_ctrl. - - - See also - {debug}, - $debug_tpl, - and $debugging_ctrl. - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/en/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index 5d2a276a..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - $default_modifiers - - This is an array of modifiers to implicitly apply to every variable in a - template. For example, to HTML-escape every variable by default, use - array('escape:"htmlall"'). - To make a variable exempt from default - modifiers, pass the special smarty modifier with a - parameter value of - nodefaults modifier to it, such as - {$var|smarty:nodefaults}. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/en/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 73e50d80..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $default_resource_type - - This tells smarty what resource type to use implicitly. The default value - is file, meaning that - $smarty->display('index.tpl') and - $smarty->display('file:index.tpl') are identical in - meaning. See the resource - chapter for more details. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/en/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index c18394f7..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $default_template_handler_func - - This function is called when a template cannot be obtained from - its resource. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/en/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index 233a1e03..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - $error_reporting - - When this value is set to a non-null-value it's value is used as php's - error_reporting - level inside of display() - and fetch(). When debugging - is enabled this value is ignored and the error-level is left untouched. - - - See also - trigger_error(), - debugging - and - troubleshooting. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-force-compile.xml b/trunk/docs/en/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 98b93902..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - $force_compile - - This forces Smarty to (re)compile templates on every - invocation. This setting overrides - - $compile_check. - By default - this is &false;. This is handy for development and - debugging. - It should never be used in a production environment. If - $caching - is enabled, the cache file(s) will be regenerated every time. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/en/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 6b3af626..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $left_delimiter - - This is the left delimiter used by the template language. - Default is {. - - - See also $right_delimiter - and - escaping smarty parsing - . - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-php-handling.xml b/trunk/docs/en/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 3c44bde2..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - $php_handling - - This tells Smarty how to handle PHP code embedded in the - templates. There are four possible settings, the default being - SMARTY_PHP_PASSTHRU. Note that this does NOT affect - php code within - {php}{/php} tags in the template. - - - - - - SMARTY_PHP_PASSTHRU - Smarty echos tags as-is. - - - - SMARTY_PHP_QUOTE - Smarty quotes the tags as - html entities. - - - - SMARTY_PHP_REMOVE - Smarty removes the tags from - the templates. - - - SMARTY_PHP_ALLOW - Smarty will execute the tags - as PHP code. - - - - - Embedding PHP code into templates is highly discouraged. - Use custom functions or - modifiers instead. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/en/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index c5f77a53..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - $plugins_dir - - This is the directory or directories where Smarty will look for the - plugins that it needs. Default is - plugins/ under the - SMARTY_DIR. - If you supply a relative path, Smarty will first look under the - SMARTY_DIR, then - relative to the current working directory, then relative to the PHP - include_path. If $plugins_dir - is an array of directories, Smarty will - search for your plugin in each plugin directory - in the order they are given. - - - Technical Note - - For best performance, do not setup your $plugins_dir - to have to use the PHP include path. Use an absolute pathname, - or a path relative to SMARTY_DIR or the current - working directory. - - - - - Appending a local plugin dir - -plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - - - - Multiple $plugins_dir - -plugins_dir = array( - 'plugins', // the default under SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/en/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index c60f9f03..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - $request_use_auto_globals - - Specifies if Smarty should use PHP's $HTTP_*_VARS[] - when &false; or $_*[] when - &true; which is the default value. This affects templates that make use of - - {$smarty.request.*}, {$smarty.get.*} etc. - - - Caution - - If you set $request_use_auto_globals to true, - - $request_vars_order has no effect but - PHP's configuration value gpc_order is used. - - - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/en/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 452efef6..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - $request_vars_order - - The order in which request variables are registered, similar to - variables_order in php.ini - - - See also - $smarty.request - and - $request_use_auto_globals. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/en/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index c9fc20bb..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - $right_delimiter - - This is the right delimiter used by the template language. - Default is }. - - - See also $left_delimiter - and - escaping smarty parsing. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/en/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index ff96c093..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - $secure_dir - - This is an array of all local files and directories that are considered - secure. - {include} - and {fetch} - use this when - $security is enabled. - - - - -$secure_dir example - -secure_dir = $secure_dirs; -?> -]]> - - - - - See also - $security_settings - and $trusted_dir. - - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-security-settings.xml b/trunk/docs/en/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index dafc02a2..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - $security_settings - - These are used to override or specify the security settings when -$security is enabled. -These are the possible settings: - - - - - PHP_HANDLING - boolean. If set to &true;, the - $php_handling - setting is not checked for security. - - - - - IF_FUNCS - array. The names of permitted PHP functions in - {if} statements. - - - - - INCLUDE_ANY - boolean. If set to &true;, any - template can be included - from the file system, regardless of the - $secure_dir list. - - - - - PHP_TAGS - boolean. If set to &true;, - {php}{/php} - tags are permitted in the templates. - - - - - MODIFIER_FUNCS - array. The names of permitted - PHP functions that can be used as variable modifiers. - - - - - ALLOW_CONSTANTS - boolean. If set to &true;, constants via - {$smarty.const.FOO} - are allowed in the templates. - - - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-security.xml b/trunk/docs/en/programmers/api-variables/variable-security.xml deleted file mode 100644 index 0435fc6d..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - $security - - $security can be &true; or &false;, - defaults to &false;. Security is good for - situations when you have untrusted parties editing the templates - eg via ftp, and you want to reduce the risk of system - security compromises through the template language. Turning on - security enforces the following rules to the template language, - unless specifially overridden with - $security_settings: - - - -If $php_handling -is set to SMARTY_PHP_ALLOW, this is -implicitly changed to SMARTY_PHP_PASSTHRU - - - -PHP functions are not allowed in {if} statements, -except those specified in the -$security_settings - - -Templates can only be included from directories -listed in the -$secure_dir array - - -Local files can only be fetched from directories listed in the -$secure_dir -array using {fetch} - - -{php}{/php} tags are not allowed - - -PHP functions are not allowed as modifiers, except those specified in the -$security_settings - - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-template-dir.xml b/trunk/docs/en/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 41645285..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - $template_dir - - This is the name of the default template directory. If you do - not supply a resource type when including files, they will be - found here. By default this is - ./templates, - meaning that Smarty - will look for the - templates/ directory in - the same directory as the executing php script. - - - Technical Note - - It is not recommended to put this directory under - the web server document root. - - - - diff --git a/trunk/docs/en/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/en/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index caf8b500..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $trusted_dir - - $trusted_dir is only for use when - $security is enabled. - This is an array of all directories that are considered trusted. - Trusted directories are where you keep php scripts that are executed - directly from the templates - with {include_php}. - - - \ No newline at end of file diff --git a/trunk/docs/en/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/en/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index dbd681b0..00000000 --- a/trunk/docs/en/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - $use_sub_dirs - -Smarty will create subdirectories under the -compiled templates and -cache -directories if $use_sub_dirs is set to &true;, - default is &false;. -In an environment where there are potentially tens of thousands of files created, -this may help the filesystem speed. -On the other hand, some environments do not allow PHP processes to -create directories, so this must be disabled which is the default. - - -Sub directories are more efficient, so use them if you can. -Theoretically you get much better perfomance on a filesystem with 10 -directories each having 100 files, than with 1 directory having 1000 -files. This was certainly the case with Solaris 7 (UFS)... with newer -filesystems such as ext3 and especially reiserfs, the difference is almost -nothing. - - - -Technical Note - - - $use_sub_dirs=true doesn't work with - safe_mode=On, - that's why it's switchable and why it's off by default. - - - - $use_sub_dirs=true on Windows can cause problems. - - - Safe_mode is being deprecated in PHP6. - - - - - - See also - $compile_id, - $cache_dir, - and - $compile_dir. - - - - diff --git a/trunk/docs/en/programmers/caching.xml b/trunk/docs/en/programmers/caching.xml deleted file mode 100644 index d057d9c1..00000000 --- a/trunk/docs/en/programmers/caching.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - Caching - - Caching is used to speed up a call to display() or fetch() by saving its output - to a file. If a - cached version of the call is available, that is displayed instead of - regenerating the output. Caching can speed things up tremendously, - especially templates with longer computation times. Since the output of - display() or - fetch() is cached, - one cache file could conceivably be made up - of several template files, config files, etc. - - - Since templates are dynamic, it is important to be careful what you are - caching and for how long. For instance, if you are displaying the front page - of your website that does not change its content very often, it might work - well to cache this page for an hour or more. On the other hand, if you are - displaying a page with a timetable containing new information by the - minute, it would not make sense to cache this page. - -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; - - diff --git a/trunk/docs/en/programmers/caching/caching-cacheable.xml b/trunk/docs/en/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 2fecee1a..00000000 --- a/trunk/docs/en/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - Controlling Cacheability of Plugins' Output - - Since Smarty-2.6.0 plugins the cacheability of plugins can be - declared when registering them. The third parameter to - register_block(), - - register_compiler_function() and register_function() - is called $cacheable and defaults to &true; which - is also the behaviour of plugins in Smarty versions before 2.6.0 - - - When registering a plugin with $cacheable=false the plugin - is called everytime the page is displayed, even if the page comes - from the cache. The plugin function behaves a little like an - {insert} function. - - - In contrast to {insert} - - the attributes to the plugins are not cached by default. They can be - declared to be cached with the fourth parameter - $cache_attrs. $cache_attrs - is an array of attribute-names that should be cached, so the - plugin-function get value as it was the time the page was written - to cache everytime it is fetched from the cache. - - - - Preventing a plugin's output from being cached - -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'); -?> -]]> - - - where index.tpl is: - - -endtime} -]]> - - - The number of seconds till the endtime of $obj is reached - changes on each display of the page, even if the page is cached. Since the - endtime attribute is cached the object only has to be pulled from the - database when page is written to the cache but not on subsequent requests - of the page. - - - - - Preventing a whole passage of a template from being cached - -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: - - - - - - - - When reloading the page you will notice that both dates differ. One - is dynamic one is static. You can do everything - between {dynamic}...{/dynamic} and be sure it will not - be cached like the rest of the page. - - - - - diff --git a/trunk/docs/en/programmers/caching/caching-groups.xml b/trunk/docs/en/programmers/caching/caching-groups.xml deleted file mode 100644 index 26a3ecde..00000000 --- a/trunk/docs/en/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - Cache Groups - - You can do more elaborate grouping by setting up - $cache_id groups. This is - accomplished by separating each sub-group with a vertical bar - | in the $cache_id value. - You can have as many sub-groups as you like. - - - - - You can think of cache groups like a directory hierarchy. For instance, a - cache group of 'a|b|c' could be thought of as the - directory structure '/a/b/c/'. - - - - clear_cache(null,'a|b|c') - would be like removing the files - '/a/b/c/*'. clear_cache(null,'a|b') - would be like removing the files '/a/b/*'. - - - - If you specify a - $compile_id - such as clear_cache(null,'a|b','foo') it is treated as - an appended cache group '/a/b/c/foo/'. - - - - If you specify a template name such as - clear_cache('foo.tpl','a|b|c') then Smarty will attempt - to remove '/a/b/c/foo.tpl'. - - - - You CANNOT remove a specified template name under - multiple cache groups such as '/a/b/*/foo.tpl', the - cache grouping works - left-to-right ONLY. You will need to group your templates under a single - cache group heirarchy to be able to clear them as a group. - - - - - Cache grouping should not be confused with your template directory - heirarchy, the cache grouping has no knowledge of how your templates are - structured. So for example, if you have a template structure like - themes/blue/index.tpl and you want to be able to - clear all the cache files for the blue theme, you will need - to create a cache group - structure that mimics your template file structure, such as - display('themes/blue/index.tpl','themes|blue'), then - clear them with - clear_cache(null,'themes|blue'). - - - $cache_id groups - -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'); - -// clear the foo.tpl cache file with "sports|basketball" as the cache_id -$smarty->clear_cache('foo.tpl','sports|basketball'); - - -$smarty->display('index.tpl','sports|basketball'); -?> -]]> - - - - - - diff --git a/trunk/docs/en/programmers/caching/caching-multiple-caches.xml b/trunk/docs/en/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index f1722d34..00000000 --- a/trunk/docs/en/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - Multiple Caches Per Page - - You can have multiple cache files for a single call to - display() - or fetch(). - Let's say that a call to display('index.tpl') may have - several different output contents depending on some condition, and you want - separate caches for each one. You can do this by passing a - $cache_id as the second parameter to the - function call. - - - Passing a $cache_id to display() - -caching = 1; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl', $my_cache_id); -?> -]]> - - - - Above, we are passing the variable $my_cache_id to - display() - as the $cache_id. For each unique value of - $my_cache_id, a separate cache will be - generated for index.tpl. In this example, - article_id was passed in the - URL and is used as the $cache_id. - - - Technical Note - - Be very cautious when passing values from a client (web browser) into - Smarty or any PHP application. Although the above example of using the - article_id from the URL looks handy, it could have bad consequences. The - $cache_id is used to create a directory on the file - system, so if the user - decided to pass an extremely large value for article_id, or write a script - that sends random article_id's at a rapid pace, this could possibly cause - problems at the server level. Be sure to sanitize any data passed in before - using it. In this instance, maybe you know the article_id has a length of - ten characters and is made up of alpha-numerics only, and must be a valid - article_id in the database. Check for this! - - - - Be sure to pass the same $cache_id as the - second parameter to - is_cached() and - clear_cache(). - - - Passing a cache_id to is_cached() - -caching = 1; - -$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); -?> -]]> - - - - You can clear all caches for a particular $cache_id - by passing &null; as the - first parameter to - clear_cache(). - - - Clearing all caches for a particular $cache_id - -caching = 1; - -// clear all caches with "sports" as the $cache_id -$smarty->clear_cache(null,'sports'); - -$smarty->display('index.tpl','sports'); -?> -]]> - - - - In this manner, you can group your caches together by giving - them the same $cache_id. - - - - - diff --git a/trunk/docs/en/programmers/caching/caching-setting-up.xml b/trunk/docs/en/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 8ebdd327..00000000 --- a/trunk/docs/en/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,214 +0,0 @@ - - - - Setting Up Caching - - The first thing to do is enable caching by setting - $caching = 1 (or 2). - - - Enabling caching - -caching = 1; - -$smarty->display('index.tpl'); -?> -]]> - - - - With caching enabled, the function call to - display('index.tpl') will render - the template as usual, but also saves a copy of its output to a file (a - cached copy) in the - $cache_dir. - On the next call to display('index.tpl'), the cached copy - will be used instead of rendering the template again. - - - Technical Note - - The files in the - $cache_dir - are named similar to the template name. - Although they end in the .php extention, they are not - intended to be directly executable. Do not edit these files! - - - - Each cached page has a limited lifetime determined by $cache_lifetime. - The default value is 3600 seconds ie an hour. After that time expires, the - cache is regenerated. It is possible to give individual caches their own - expiration time by setting - $caching=2. - See $cache_lifetime - for more details. - - - Setting $cache_lifetime per cache - -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'); -?> -]]> - - - - If - $compile_check is enabled, - every template file and config file that is involved with the cache file is - checked for modification. If any of the files have been modified since the - cache was generated, the cache is immediately regenerated. This is a slight - overhead so for optimum performance, set - $compile_check - to &false;. - - - Enabling $compile_check - -caching = 1; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - If - $force_compile is enabled, - the cache files will always be regenerated. This effectively turns off - caching. - $force_compile - is usually for - debugging - purposes only, a more efficient way of disabling caching is to set $caching - = 0. - - - The is_cached() - function - can be used to test if a template has a valid cache or not. If you have a - cached template that requires something like a database fetch, you can use - this to skip that process. - - - Using is_cached() - -caching = 1; - -if(!$smarty->is_cached('index.tpl')) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - - - - You can keep parts of a page dynamic with the {insert} - template function. Let's - say the whole page can be cached except for a banner that is displayed down - the side of the page. By using the - {insert} - function for the banner, you - can keep this element dynamic within the cached content. See the - documentation on - {insert} - for more details and examples. - - - You can clear all the cache files with the clear_all_cache() - function, or - individual cache files - and groups - with the clear_cache() function. - - - Clearing the cache - -caching = 1; - -// clear only cache for index.tpl -$smarty->clear_cache('index.tpl'); - -// clear out all cache files -$smarty->clear_all_cache(); - -$smarty->display('index.tpl'); -?> -]]> - - - - - - diff --git a/trunk/docs/en/programmers/plugins.xml b/trunk/docs/en/programmers/plugins.xml deleted file mode 100644 index 35b08a85..00000000 --- a/trunk/docs/en/programmers/plugins.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - Extending Smarty With Plugins - - Version 2.0 introduced the plugin architecture that is used - for almost all the customizable functionality of Smarty. This includes: - - functions - modifiers - block functions - compiler functions - prefilters - postfilters - outputfilters - resources - inserts - - With the exception of resources, backwards compatibility with the old - way of registering handler functions via register_* API is preserved. If - you did not use the API but instead modified the class variables - $custom_funcs, $custom_mods, and - other ones directly, then you will need to adjust your scripts to either - use the API or convert your custom functionality into 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/trunk/docs/en/programmers/plugins/plugins-block-functions.xml b/trunk/docs/en/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index abbf2e0a..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - Block Functions - - - void smarty_block_name - array $params - mixed $content - object &$smarty - boolean &$repeat - - - - Block functions are functions of the form: - {func} .. {/func}. In other words, they enclose a - template block and operate on the contents of - this block. Block functions take precedence over - custom functions of - the same name, that is, you cannot have both custom function - {func} and block function - {func}..{/func}. - - - - - By default your function implementation is called twice by - Smarty: once for the opening tag, and once for the closing tag. - (See $repeat below on how to change this.) - - - Only the opening tag of the block function may have - attributes. All - attributes passed to template functions from the template are contained - in the $params variable as an associative array. - The opening tag attributes are also accessible to your function - when processing the closing tag. - - - The value of the $content variable depends on - whether your function is called for the opening or closing tag. In case - of the opening tag, it will be &null;, and in case of - the closing tag it will be the contents of the template block. - Note that the template block will have already been processed by - Smarty, so all you will receive is the template output, not the - template source. - - - - The parameter $repeat is passed by - reference to the function implementation and provides a - possibility for it to control how many times the block is - displayed. By default $repeat is - &true; at the first call of the block-function (the opening tag) - and &false; on all subsequent calls to the block function - (the block's closing tag). - Each time the function implementation returns with - $repeat being &true;, the contents between - {func}...{/func} are evaluated and the function - implementation is called again with the new block contents in the parameter - $content. - - - - - If you have nested block functions, it's possible to find out what the - parent block function is by accessing - $smarty->_tag_stack variable. Just do a - var_dump() - on it and the structure should be apparent. - - - - block function - - -]]> - - - - - See also: - register_block(), - unregister_block(). - - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/en/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index e997ad10..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - Compiler Functions - - Compiler functions are called only during compilation of the template. - They are useful for injecting PHP code or time-sensitive static - content into the template. If there is both a compiler function and a - custom function registered - under the same name, the compiler function has precedence. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - The compiler function is passed two parameters: the tag argument - string - basically, everything from the function name until the ending - delimiter, and the Smarty object. It's supposed to return the PHP code - to be injected into the compiled template. - - - - A simple compiler function - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - - This function can be called from the template as: - - - - - - The resulting PHP code in the compiled template would be something like this: - - - -]]> - - - - - See also - - register_compiler_function(), - - unregister_compiler_function(). - - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-functions.xml b/trunk/docs/en/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 6c6622e0..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - Template Functions - - - void smarty_function_name - array $params - object &$smarty - - - - All attributes passed to - template functions from the template are contained in the - $params as an associative array. - - - The output (return value) of the function will be substituted in place of - the function tag in the template, eg the - {fetch} - function. Alternatively, the function can simply perform some other - task without any output, eg the - {assign} function. - - - If the function needs to assign some variables to the template or use - some other Smarty-provided functionality, it can use the supplied - $smarty object to do so eg - $smarty->foo(). - - - - - function plugin with output - - -]]> - - - - - which can be used in the template as: - - -Question: Will we ever have time travel? -Answer: {eightball}. - - - - function plugin without 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']); -} -?> -]]> - - - - - See also: - register_function(), - unregister_function(). - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-howto.xml b/trunk/docs/en/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 31740b4a..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - How Plugins Work - - Plugins are always loaded on demand. Only the specific modifiers, - functions, resources, etc invoked in the templates scripts will be - loaded. Moreover, each plugin is loaded only once, even if you have - several different instances of Smarty running within the same request. - - - Pre/postfilters and output filters are a bit of a special case. Since - they are not mentioned in the templates, they must be registered or - loaded explicitly via API functions before the template is processed. - The order in which multiple filters of the same type are executed - depends on the order in which they are registered or loaded. - - - The plugins directory - can be a string containing a path or an array containing multiple - paths. To install a plugin, simply place it in one of the - directories and Smarty will use it automatically. - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-inserts.xml b/trunk/docs/en/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 2f760a26..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - Inserts - - Insert plugins are used to implement functions that are invoked by - {insert} - tags in the template. - - - - string smarty_insert_name - array $params - object &$smarty - - - - The first parameter to the function is an associative array of - attributes passed to the insert. - - - The insert function is supposed to return the result which will be - substituted in place of the {insert} tag in the - template. - - - insert plugin - -trigger_error("insert time: missing 'format' parameter"); - return; - } - return strftime($params['format']); -} -?> -]]> - - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-modifiers.xml b/trunk/docs/en/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 0e92fac8..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - Modifiers - - Modifiers are little functions - that are applied to a variable in the template before it is displayed or - used in some other context. Modifiers can be chained together. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - The first parameter to the modifier plugin is the value on which - the modifier is to operate. The rest of the parameters are optional, - depending on what kind of operation is to be performed. - - - The modifier has to return - the result of its processing. - - - - A simple modifier plugin - - This plugin basically aliases one of the built-in PHP functions. It - does not have any additional parameters. - - - -]]> - - - - - More complex modifier 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; -} -?> -]]> - - - - See also - register_modifier(), - unregister_modifier(). - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/en/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index 65a8e40b..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - Naming Conventions - - Plugin files and functions must follow a very specific naming - convention in order to be located by Smarty. - - - plugin files must be named as follows: -
      - - - type.name.php - - -
      -
      - - - - Where type is one of these plugin types: - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - - - And name should be a valid identifier; letters, - numbers, and underscores only, see - php variables. - - - - Some examples: function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - - - - - plugin functions inside the PHP files must be named as follows: -
      - - smarty_type_name - -
      -
      - - - - The meanings of type and name are - the same as above. - - - An example modifier name foo would be function smarty_modifier_foo(). - - - - Smarty will output appropriate error messages if the plugin file it - needs is not found, or if the file or the plugin function are named - improperly. - -
      - - diff --git a/trunk/docs/en/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/en/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 16039e52..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - Output Filters - - Output filter plugins operate on a template's output, after the - template is loaded and executed, but before the output is displayed. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - The first parameter to the output filter function is the template - output that needs to be processed, and the second parameter is the - instance of Smarty invoking the plugin. The plugin is supposed to do - the processing and return the results. - - - An output filter plugin - - -]]> - - - - See also - - register_outputfilter(), - - unregister_outputfilter(). - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/en/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 3fa76e80..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - Prefilters/Postfilters - - Prefilter and postfilter plugins are very similar in concept; where - they differ is in the execution -- more precisely the time of their - execution. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Prefilters are used to process the source of the template immediately - before compilation. The first parameter to the prefilter function is - the template source, possibly modified by some other prefilters. The - plugin is supposed to return the modified source. Note that this - source is not saved anywhere, it is only used for compilation. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Postfilters are used to process the compiled output of the template - (the PHP code) immediately after the compilation is done but before the - compiled template is saved to the filesystem. The first parameter to - the postfilter function is the compiled template code, possibly - modified by other postfilters. The plugin is supposed to return the - modified version of this code. - - - prefilter plugin - -]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - - - - - postfilter plugin - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - See also - - register_prefilter(), - - unregister_prefilter() - - register_postfilter(), - - unregister_postfilter(). - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-resources.xml b/trunk/docs/en/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 653ae78b..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - Resources - - Resource plugins are meant as a generic way of providing template - sources or PHP script components to Smarty. Some examples of resources: - databases, LDAP, shared memory, sockets, and so on. - - - - There are a total of four functions that need to be registered for each - type of resource. Every function will receive the requested resource as - the first parameter and the Smarty object as the last parameter. The - rest of parameters depend on the function. - - - - - 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 - - - - - - The first function, 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. - - - - The second function, 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. - - - - The third function, 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. - - - - The fourth function, trusted() is supposed to return - &true; or &false;, depending on whether the requested resource - is trusted or not. This function is used for only for PHP script - components requested by - {include_php} tag or - {insert} - tag with the src attribute. However, it should still - be defined even for template resources. - - - - - - resource plugin - - -]]> - - - - - See also - register_resource(), - unregister_resource(). - - - - - diff --git a/trunk/docs/en/programmers/plugins/plugins-writing.xml b/trunk/docs/en/programmers/plugins/plugins-writing.xml deleted file mode 100644 index c1590331..00000000 --- a/trunk/docs/en/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - Writing Plugins - - Plugins can be either loaded by Smarty automatically from the - filesystem or they can be registered at runtime via one of the - register_* API functions. They can also be unregistered by using - unregister_* API functions. - - - For the plugins that are registered at runtime, the name of the plugin - function(s) does not have to follow the naming convention. - - - If a plugin depends on some functionality provided by another plugin - (as is the case with some plugins bundled with Smarty), then the proper - way to load the needed plugin is this: - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - As a general rule, Smarty object is always passed to the plugins - as the last parameter with two exceptions: - - - - modifiers do not get passed the Smarty object at all - - - blocks get passed - $repeat after the Smarty object to keep - backwards compatibility to older versions of Smarty. - - - - - - diff --git a/trunk/docs/en/programmers/smarty-constants.xml b/trunk/docs/en/programmers/smarty-constants.xml deleted file mode 100644 index 2052bffd..00000000 --- a/trunk/docs/en/programmers/smarty-constants.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - -Constants - - - SMARTY_DIR - - This is the full system path - to the location of the Smarty - class files. If this is not defined in your script, then Smarty will attempt to - determine the appropriate value automatically. If defined, the path - must end with a trailing slash/. - - - SMARTY_DIR - - -]]> - - - - See also - $smarty.const - and - $php_handling constants - - - - - SMARTY_CORE_DIR - - This is the full system path to the location of the Smarty core - files. If not defined, Smarty will default this constant to the - internals/ sub-directory below - SMARTY_DIR. - If defined, the path must end with a slash/. - Use this constant when manually including any of the core.* files. - - - SMARTY_CORE_DIR - - -]]> - - - - - See also - $smarty.const - - - - diff --git a/trunk/docs/entities/.cvsignore b/trunk/docs/entities/.cvsignore deleted file mode 100755 index a398a16b..00000000 --- a/trunk/docs/entities/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -version.ent -file-entities.ent diff --git a/trunk/docs/entities/ISO/ISOamsa b/trunk/docs/entities/ISO/ISOamsa deleted file mode 100755 index b77154cb..00000000 --- a/trunk/docs/entities/ISO/ISOamsa +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOamsb b/trunk/docs/entities/ISO/ISOamsb deleted file mode 100755 index 43944a73..00000000 --- a/trunk/docs/entities/ISO/ISOamsb +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOamsc b/trunk/docs/entities/ISO/ISOamsc deleted file mode 100755 index 06222d58..00000000 --- a/trunk/docs/entities/ISO/ISOamsc +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOamsn b/trunk/docs/entities/ISO/ISOamsn deleted file mode 100755 index 0c8327a3..00000000 --- a/trunk/docs/entities/ISO/ISOamsn +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOamso b/trunk/docs/entities/ISO/ISOamso deleted file mode 100755 index ad9b329e..00000000 --- a/trunk/docs/entities/ISO/ISOamso +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOamsr b/trunk/docs/entities/ISO/ISOamsr deleted file mode 100755 index 3f26c345..00000000 --- a/trunk/docs/entities/ISO/ISOamsr +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISObox b/trunk/docs/entities/ISO/ISObox deleted file mode 100755 index 643e926e..00000000 --- a/trunk/docs/entities/ISO/ISObox +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOcyr1 b/trunk/docs/entities/ISO/ISOcyr1 deleted file mode 100755 index 97b961b1..00000000 --- a/trunk/docs/entities/ISO/ISOcyr1 +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOcyr2 b/trunk/docs/entities/ISO/ISOcyr2 deleted file mode 100755 index 480b01c1..00000000 --- a/trunk/docs/entities/ISO/ISOcyr2 +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOdia b/trunk/docs/entities/ISO/ISOdia deleted file mode 100755 index 3b6f98d6..00000000 --- a/trunk/docs/entities/ISO/ISOdia +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOgrk1 b/trunk/docs/entities/ISO/ISOgrk1 deleted file mode 100755 index dea16bf8..00000000 --- a/trunk/docs/entities/ISO/ISOgrk1 +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOgrk2 b/trunk/docs/entities/ISO/ISOgrk2 deleted file mode 100755 index 657bb999..00000000 --- a/trunk/docs/entities/ISO/ISOgrk2 +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOgrk3 b/trunk/docs/entities/ISO/ISOgrk3 deleted file mode 100755 index f76c3a08..00000000 --- a/trunk/docs/entities/ISO/ISOgrk3 +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOgrk4 b/trunk/docs/entities/ISO/ISOgrk4 deleted file mode 100755 index e4427a0c..00000000 --- a/trunk/docs/entities/ISO/ISOgrk4 +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOlat1 b/trunk/docs/entities/ISO/ISOlat1 deleted file mode 100755 index 0d7d0a7d..00000000 --- a/trunk/docs/entities/ISO/ISOlat1 +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOlat2 b/trunk/docs/entities/ISO/ISOlat2 deleted file mode 100755 index 4bcb3378..00000000 --- a/trunk/docs/entities/ISO/ISOlat2 +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOnum b/trunk/docs/entities/ISO/ISOnum deleted file mode 100755 index d7b41c33..00000000 --- a/trunk/docs/entities/ISO/ISOnum +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOpub b/trunk/docs/entities/ISO/ISOpub deleted file mode 100755 index c184973c..00000000 --- a/trunk/docs/entities/ISO/ISOpub +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/ISOtech b/trunk/docs/entities/ISO/ISOtech deleted file mode 100755 index cbda3448..00000000 --- a/trunk/docs/entities/ISO/ISOtech +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/entities/ISO/catalog b/trunk/docs/entities/ISO/catalog deleted file mode 100755 index 75096d78..00000000 --- a/trunk/docs/entities/ISO/catalog +++ /dev/null @@ -1,19 +0,0 @@ -PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "ISOdia" -PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "ISOnum" -PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "ISOpub" -PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "ISOtech" -PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "ISOlat1" -PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "ISOlat2" -PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "ISOgrk1" -PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "ISOgrk2" -PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "ISOgrk3" -PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "ISOgrk4" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "ISOamsa" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "ISOamsb" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "ISOamsc" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "ISOamsn" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "ISOamso" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "ISOamsr" -PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "ISObox" -PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "ISOcyr1" -PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "ISOcyr2" diff --git a/trunk/docs/entities/global.ent b/trunk/docs/entities/global.ent deleted file mode 100644 index 022988f2..00000000 --- a/trunk/docs/entities/global.ent +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -TRUE'> -FALSE'> -NULL'> - diff --git a/trunk/docs/entities/version.ent.in b/trunk/docs/entities/version.ent.in deleted file mode 100755 index 11904387..00000000 --- a/trunk/docs/entities/version.ent.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/trunk/docs/es/appendixes/bugs.xml b/trunk/docs/es/appendixes/bugs.xml deleted file mode 100644 index 957de3cb..00000000 --- a/trunk/docs/es/appendixes/bugs.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - ERRORES - - Revise el archivo de BUGS que viene con - la ultima distribución del Smarty, o Revise el website. - - - diff --git a/trunk/docs/es/appendixes/resources.xml b/trunk/docs/es/appendixes/resources.xml deleted file mode 100644 index 3cb1b2ff..00000000 --- a/trunk/docs/es/appendixes/resources.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - Fuentes - - La pagina principal del Smarty está localizada en - &url.smarty;. - Usted puede ingresar a la lista de email enviando un e-mail a - &ml.general.sub;. El archivo de la lista de e-mail puede ser - visto en &url.ml.archive;. - - - diff --git a/trunk/docs/es/appendixes/tips.xml b/trunk/docs/es/appendixes/tips.xml deleted file mode 100644 index f87a6f09..00000000 --- a/trunk/docs/es/appendixes/tips.xml +++ /dev/null @@ -1,433 +0,0 @@ - - - - Consejos y Trucos - - - - Manipulación de Variables Vacias - - Cuando usted en algunas ocaciones quiere imprimir un valor que - usted defíne a una variable vacia en vez de imprimir nada, tal - como imprimir "&nbsp;" a fin de que el plano del fondo de - la tabla funcione correctamente. Muchos usarian una sentencia - {if} para manejar esto, - mas existe otra forma con Smarty, usando el modificador de la variable - default. - - - Imprimiendo &nbsp; cuando una variable esta vacia - - - - - - Ver tambien default - y Default Variable Handling. - - - - - Manipulación del valor default de una variable - - Si una variable es usada frecuentemente en sus templates, - aplicando el modificador default toda vez que este es - mencionado puede evitar un bit desagradable. Usted puede - remediar esto con la atribución de un valor por default a - la variable con la función - {assign}. - - - Atribuyendo el valor por default a una variable en el template - - - - - - Vea tambiéen default y - Blank Variable Handling. - - - - - Pasando la variable titulo a la cabecera del template - - Cuando la mayoria de sus templates usan los mismo encabezados y - los mismos pies de pagina, es común dividirlos uno en cada template - y entonces incluirlos {include}. - Que pasara si el encabezado necesita tener un titulo diferente, - dependiendo de que pagina estas viniendo? usted puede pasar el - titulo en el encabezado cuando este es incluido. - - - Pasando la variable titulo al encabezado del template - - mainpage.tpl - - - - - - archives.tpl - - - - - - header.tpl - - - - -{$title|default:"BC News"} - - -]]> - - - footer.tpl - - - - -]]> - - - - Cuando la pagina principal es mostrada, el titulo de la "Página - Principal" es pasado al template header.tpl, - y será posteriormente usado como el titulo. Cuando la pagina de archivo - es mostrada, el titulo sera "Archivos". Observelo en el ejemplo de archivo, - nosotros estamos usando una variable del archivo - archives_page.conf en vez de una variable codificada - rigida. Tambien note que "BC news" es mostrada si la variable $titulo no - esta definida, usando el modificador de la variable - default. - - - - Fechas - - Como una regla basica, siempre pase fechas al Smarty como timestamps. - Esto permite al diseñador de template utilizar - date_format - para el control completo sobre el formato de fechas, y también - facilita la comparación de fechas si es necesario. - - - - En el Smarty 1.4.0, usted puede parsar fechas al Smarty como - timestamps unix,mysql, o cualquier otra fecha interpretable - por strtotime(). - - - - Usando date_format - - - - - Esta es la salida: - - - - - - - - - Esta es la Salida: - - - - - - - - - - Cuando usa {html_select_date} - en un template, el programador normalmente va a querer convertir - la salida de un formulario de vuelta al formato timestamp. Aquí - esta una función para ayudar con esto. - - - Convirtiendo elementos en forma de fecha de vuelta a un timestamp - - -]]> - - - - Vea también - {html_select_date}, - {html_select_time}, - date_format - y $smarty.now, - - - - - WAP/WML - - Los templates WAP/WML requieren de un encabezado de - Content-Type de - PHP para ser pasado junto con el template. La forma mas fácil de - hacer esto seria escribir una función de manera habitual que imprima - el encabezado. Si usted esta usando el sistema de - cache, este no funcionara, entonces - nosotros haremos esto usando una etiqueta de - {insert} (recuerde que - las etiquetas insert no son "cacheadas!"). Asegurarse que no exista - ninguna salida al navegador antes del template, de otro modo el encabezado fallara. - - - Usando insert para escribir un encabezado WML Content-Type - - -]]> - - - Su template de Smarty debe comenzar con la etiqueta - insert, como en el ejemplo: - - - - - - - - - - - - -

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

      -
      - - -

      -Pretty easy isn't it? -

      -
      -
      -]]> -
      -
      -
      - - Templates con Componetes - - Tradicionalmente, programar templates en sus aplicaciones es de - la siguiente forma: Primero, usted acumula sus variables dentro de su - aplicación PHP, (talvez como requisiciones de una base de datos). - Entonces, usted instancia su objeto Smarty - assign(), atribuye valores a - las variables y muestra el template - display(). Por ejemplo nosotros - tenemos un registrador de existencias en nuestro template. Nosotros - recolectaremos los datos de las existencias en nuestra aplicación, - entonces damos valor a estas variables en el template y lo mostramos. - Ahora esto seria genial si usted adicionara este registrador de - almacenamiento (stock ticker) a cualquier aplicación simplemente - incluyendolo en el template, y no preocuparse hacerca de como ir - a traer los datos al frente? - - - Usted puede escribir este plugin haciendo que traiga un - contenido y asignarlo a la variable del template. - - - Templates con Componetes - - function.load_ticker.php - - deja el archivo en - $plugins directory - - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - index.tpl - - - - - - - Vea también {include_php}, - {include} y - {php}. - - - - - Ofuscando direcciones de E-mail - - Usted desea saber como su direccion de E-mail consigue entrar en - tantas listas de e-mail de spam? Una direccion unica spammers - recolecta direcciones de E-mail y de paginas web. Para ayudar a - combatir este problema, usted puede hacer que su direccion de - E-mail aparesca en javascript mostrado en el codigo HTML, este - mismo aparecera y funcionara correctamente en el navegador. - Esto se puede hacer con el plugin - {mailto}. - - - Ejemplo de ofuscamiento de una direccion de E-mail - - - - - - Nota Técnica - - Este metodo no es 100% a pueba de fallas. Un spammer podría crear - un programa para recolectar el e-mail y para decodificar estos - valores, mas no es muy común. - - - - Vea también escape - y {mailto}. - - -
      - diff --git a/trunk/docs/es/appendixes/troubleshooting.xml b/trunk/docs/es/appendixes/troubleshooting.xml deleted file mode 100644 index 9399c85b..00000000 --- a/trunk/docs/es/appendixes/troubleshooting.xml +++ /dev/null @@ -1,179 +0,0 @@ - - - - Localización de Errores - - - Errores Smarty/PHP - - El Smarty puede obtener muchos errores tales como, atributos de - etiquetas perdidos o nombres de variables mal formadas. Si este - ocurre, Usted vera un error similar al siguiente: - - - Errores de Smarty - - - - - - Smarty te mostra el nombre del template, el número de la linea y - el error. Después de esto, el error consiste en el número de la - linea de la clase Smarty donde ocurrio el error. - - - - Existen ciertos errores que el Smarty no puede entender, - tales como un etiqueta de cierre errado. Estos tipos de - erros normalmente termina en una interpretacion de error - del tiempo de compilacion de PHP. - - - - Errores de analisis gramatical de PHP - - - - - - - Cuando usted encuentra un error de analisis de PHP, el número de la - linea de error corresponde al script PHP compilado, no al template - en si. Normalmente usted puede en el template localizar el error de - sinxis. Algunas cosas que usted puede buscar: falta de cierre de - etiquetas para {if}{/if}} - o {section}{/section}, o - sintaxis de la lógica dentro de una etiqueta {if}. Si usted no encuentra - el error, usted tendra que abrir el archivo PHP compilado y dirigirse al - número de linea mostrado, donde el correspondiente error esta en el template. - - - Otros errores comunes - - - - - - - - - - - El $template_dir - no existe o es incorrecto, o - el archivo index.tpl no esta en la carpeta - templates/ - - - - - La función {config_load} - esta dentro del template (o config_load() - habia sido llamado) y cualquira de los dos - $config_dir - es incorrecto, no exista o - site.conf no existe en el directorio. - - - - - - - - - - - Cualquiera de las dos el - $compile_dir - es asignado incorrectamente, el directorio no existe, - o templates_c es un archivo y no un directorio. - - - - - - - El $compile_dir - no puede ser reescrito por el servidor web. Vea a fondo la pagina de permisos del - instalación de smarty. - - - - - - - - Esto significa que - $caching es habilitado y - cualquiera de los dos; el - $cache_dir - es asignado incorrectamente, o el directorio no existe, - o cache es un archivo y no un directorio. - - - - - - - - - Esto significa que - $caching es habilitado y el - $cache_dir - no puede ser rescrito por el web server. Ver ampliamente la pagina de permisos de - la instalacion de smarty. - - - - - - - Vea también - debugging, - $error_reporting - y trigger_error(). - - - - diff --git a/trunk/docs/es/bookinfo.xml b/trunk/docs/es/bookinfo.xml deleted file mode 100755 index 1690e5f8..00000000 --- a/trunk/docs/es/bookinfo.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Smarty - El motor compilador de Plantillas para PHP - - - MonteOhrt <monte at ohrt dot com> - - - AndreiZmievski <andrei@php.net> - - - - - MarioRamírez - <mario_ramirez@fjcorona.com.mx> - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - - diff --git a/trunk/docs/es/designers/chapter-debugging-console.xml b/trunk/docs/es/designers/chapter-debugging-console.xml deleted file mode 100644 index f3d5e22e..00000000 --- a/trunk/docs/es/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - Debugging Console - - Incluso en Smarty existe una consola para debug. La consola informa - a usted de todos los templates incluidos, las variables definidas y - las variables de archivos de configuración de la llamada actual del - template. Incluso un template llamado "debug.tpl" viene con la - distribución de Smarty el cual controla el formateo de la consola. - Defina $debugging en true en - el Smarty, y si es necesario defina - $debug_tpl para la ruta - del recurso debug.tpl (Esto es SMARTY_DIR por - default). Cuando usted carga una pagina, una consola en javascript - abrira una ventana popup y dara a usted el nombre de todos los templates - incluidos y las variables definidas en la pagina actual. Para ver las - variables disponibles para un template en particular, vea la función - {debug}. Para desabilitar - la consola del debug, defina $debugging en false. Usted puede activar - temporalmente la consola del debug colocando SMARTY_DEBUG en la URL si - usted activo esta opción con - $debugging_ctrl. - - - Nota Técnica - - La consola de debug no funciona cuando usted usa la API fetch(), solo cuando estuviera usando - display(). - Es un conjunto de comandos javascript - adicionados al final del template generado. Si a usted no le gusta el - javascript, usted puede editar el template debug.tpl para formatear la - salida como usted quiera. Los datos del debug no son guardados en cache - y los datos del debug.tpl no son incluidos en la consola debug. - - - - - Los tiempos de carga de cada template y de archivos de configuración - son en segundos, o en fracciones de segundo. - - - - Vea también - troubleshooting, - $error_reporting - y trigger_error(). - - - - - diff --git a/trunk/docs/es/designers/config-files.xml b/trunk/docs/es/designers/config-files.xml deleted file mode 100644 index 8e801948..00000000 --- a/trunk/docs/es/designers/config-files.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - Config Files - - Los archivos de configuración son utiles para diseñar y administrar - variables globales para los templates a partir de un archivo. - Un ejemplo son los colores del template. Normalmente si usted quiere - cambiar el esquema de colores de una aplicación, usted debe ir a cada - uno de los archivos del template y cambiar los colores. - Con un archivo de configuración, los colores pueden estar mantenidos - en un lugar y solo necesita actualizar este para cambiar los colores. - - - Ejemplo de sintaxis de un archivo de configuración - - - - - - Los valores de las variables pueden estar entre comillas, mas no es - necesario. Usted puede usar comillas simples o dobles. Si usted - tuviera un valor que ocupe mas de una linea, coloque todo el valor - entre tres comillas ("""). Usted puede colocar comentarios en un - archivo de configuración con cualquier sintaxis que no sea valida - en un archivo de configuración. Nosotros recomendamos usar un - # en el princio de cada linea. - - - Este archivo de configuración tiene dos secciones. Los nombres de - secciones debe estar entre corchetes []. Los nombres de sección - pueden ser cadenas arbitrarias que no contengan los simbolos - [ or ]. Las cuatro variables - en la cabecera son variables globales, o no son variables de sección. - Estas variables son siempre cargadas del archivo de configuración. Si - una sección en particular fuera cargada, entonces las variables - globales y las variables de esta sección son cargadas. Si una variable - existe como global y dentro de una sección, la variable de sección - será utilizada. Si usted tuviera dos variables en la misma sección con - el mismo nombre, la ultima será utilizada. - - - Los archivos de configuración son cargados en el template con una - función incrustada - {config_load}. - (Ver También config_load() ). - - - - Usted puede ocultar variables o secciones enteras colocando un punto - antes del nombre de la variable. Esto es útil si su aplicación lee los - archivos de configuración y los datos sensibles a partir de ellos que - la herramienta del template no lo necesita. Si usted tiene a otras - personas realizando la edición de templates, usted tendra la certesa - que ellos no leeran datos sensibles del archivo de configuración - cargando estos en el template. - - - Ver También {config_load}, $config_overwrite, get_config_vars(), clear_config() y config_load() - - - - diff --git a/trunk/docs/es/designers/language-basic-syntax.xml b/trunk/docs/es/designers/language-basic-syntax.xml deleted file mode 100644 index e38885a5..00000000 --- a/trunk/docs/es/designers/language-basic-syntax.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - Basic Syntax - - Todas las etiquetas del template deben estar marcadas por delimitadores. - Por default , estos delimitadores son { - y }, sino estos pueden - cambiar. - - - Para estos ejemplos, nosotros asumiremos que usted está usando los - delimitadores por default. En Smarty, todo el contenido fuera de los - delimitadores es mostrado como contenido estatico, o igual(sin cambios). - Cuando Smarty encuentra etiquetas en el template, trata de interpretarlos, - e intenta mostrar la salida apropiada en su lugar. - - - &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/trunk/docs/es/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/es/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 1ce536ea..00000000 --- a/trunk/docs/es/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - Escaping Smarty Parsing - - En algunas ocaciones es deseable o hasta necesario que Smarty tenga que - ingonar sections o algun otro tipo analisis de sintaxis. Un ejemplo clasico - es con el codigo JavaScript o CSS incrustado en el template. El problema se - origina cuando aquellos lenguajes que utilizan los caracteres { y } los - cuales son también los delimitadores por default para Smarty. - - - - Esta puede ser una simple situación separando enteramente su codigo JavaScript - y CSS dentro de un archivo personal y utilizar el metodo standar del HTML para - el acceso. - - - - Es posible usar literal incluyendo el contenido del bloque {literal} .. {/literal}. - Similar a usar entidades HTML, usted puede usar {ldelim},{rdelim} o {$smarty.ldelim} - para mostrar los delimitadores actuales. - - - - Esto a menudo es conveniente para cambios simples a Smarty's $left_delimiter y - $right_delimiter. - - - Ejemplo cambiando delimitadores - -left_delimiter = ''; -$smarty->assign('foo', 'bar'); -$smarty->display('example.tpl'); - -?> -]]> - - - Donde example.tpl es: - - - -var foo = ; -function dosomething() { - alert("foo is " + foo); -} -dosomething(); - -]]> - - - - Ver También escape modifier - - - diff --git a/trunk/docs/es/designers/language-basic-syntax/language-math.xml b/trunk/docs/es/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index f4a07172..00000000 --- a/trunk/docs/es/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - Matemáticas - - Las matemáticas pueden ser aplicadas directamente al los valores de - las variables. - - - Ejemplos de matemáticas - -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`"} -]]> - - - - - Ver también la función{math}. - - - - diff --git a/trunk/docs/es/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/es/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 191e45c2..00000000 --- a/trunk/docs/es/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - Atributos - - La mayoria de las funciones - llevan atributos que especifican o - cambian su funcionamiento. Los atributos para las funciones de - Smarty son muy parecidos a los atributos de HTML. Los valores - estaticos no necesitan estar entre comillas, pero si es recomendado - para cadenas y literales. Las variables también pueden ser usadas - y no precisamente estando entre comillas. - - - Algunos atributos requieren valores boleanos(true o false). - Estos pueden ser especificados como cualquier otro valor sin comillas - true, on, y - yes, o false, - off, y no. - - - Sintaxis de atributos de Funciones - - - {html_options options=$choices selected=$selected} - -]]> - - - - diff --git a/trunk/docs/es/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/es/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 7488390c..00000000 --- a/trunk/docs/es/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - Comentarios - - Los comentarios en los templates son cercados por asteriscos, y por - los delimitadores, así: {* este es un comentario *}. - Los comentarios en Smarty no son mostrados en la salida final del - template. - semejantes a <!-- HTML comments --> - Estos son usados para hacer notas internas dentro del template. - - - Comentarios - - -{* this multiline - comment is - not sent to browser -*} - -{* include the header file here *} -{include file="header.tpl"} - - -{* Dev note: $includeFile is assigned foo.php script *} - -{include file=$includeFile} - -{include file=#includeFile#} - -{* display dropdown lists *} - - -]]> - - - - diff --git a/trunk/docs/es/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/es/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index f9a37a27..00000000 --- a/trunk/docs/es/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - Funciones - - Cada etiqueta Smarty muestra una - variable o utiliza algún - tipo de función. Las funciones son procesadas y mostradas colocando - los atributos de - la función entre delimitadores, así: - {funcname attr1="val" attr2="val"}. - - - Sintaxis de Funciones - -{$name}! -{else} - Welcome, {$name}! -{/if} - -{include file="footer.tpl"} -]]> - - - - Las funciones internas y las funciones habituales, ambas deben tener - la misma sintaxis dentro del template. Las funciones internas que - funcionan en Smarty, son: - {if}, - {section} y - {strip}. - Estas no pueden ser modificadas. - Las funciones habituales son - funciones adicionales implementadas - por plugins. Estas si pueden - ser modificadas como usted quiera, o usted también puede - adicionar nuevas. - {html_options} y - {popup} - son ejemplos de funciones habituales. - - - diff --git a/trunk/docs/es/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/es/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index a665b405..00000000 --- a/trunk/docs/es/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - Colocando variables entre comillas dobles - - Smarty puede reconocer variables - asignadas entre comillas aunque estas - solo tengan números, letras, guiones bajos y corchetes[]. - Con cualquier otro carácter(puntos, referencia de objetos, etc.) las - variables deben estar entre apostrofos. - Usted no puede incrustar modificadores, - Estos deben ser siempre aplicados fuera de las comillas. - - - - Sintaxis entre comillas - - - - - - Ver también escape. - - - - diff --git a/trunk/docs/es/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/es/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100755 index 5b5be92d..00000000 --- a/trunk/docs/es/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Variables - - Las variable de Template que comiencen con signo de pesos. - Pueden contener números, letras y guiones bajos, muy parecido a - las variables de PHP. - Usted también puede hacer referencia a arreglos que puden ser numericos o - no-numericos. También puede hacer referencia a métodos y propiedades de objetos. - Config file variables es una - excepción de la sintaxis del signo de pesos. - También puede ser referenciado entre #signos de numeros#, o con la - variable especial $smarty.config. - - - 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 -]]> - - - - Vea también $smarty reserved variables - y Config Variables. - - - diff --git a/trunk/docs/es/designers/language-builtin-functions.xml b/trunk/docs/es/designers/language-builtin-functions.xml deleted file mode 100644 index 217390e4..00000000 --- a/trunk/docs/es/designers/language-builtin-functions.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - Funciones Integradas - - Smarty cuenta con varias funciones integradas. Las funciones Integradas - forman parte del lenguaje del template. Usted no puede crear funciones - personalizadas con el mismo nombre, ni puede modificar las funciones - integradas. - - - &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/trunk/docs/es/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 3eb02890..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - capture - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - name - string - no - default - El nombre del bloque capturado - - - assign - string - No - n/a - El nombre de la variable para dar valor a la salida - capturada - - - - - - {capture} es usado para recolectar toda la salida del template en una - variable en lugar de mostrarla. - Cualquier contenido entre {capture name="foo"} y {/capture} es - recoletado en una variable especificada y el atributo name. El - contenido capturado puede ser usado en el template a partir de la - variable especial - $smarty.capture.foo - en donde foo es el valor - pasado para el atributo name. Si usted no pasa un atributo name, - entonces será usado "default". Todos lo comandos {capture} deben - estar entre {/capture}. Usted puede anidar(colocar uno dentro de - otro) comandos capture. - - - Nota Tecnica - - Smarty 1.4.0 - 1.4.4 coloca el contenido capturado dentro de la - variable llamada $return. A partir de 1.4.5, este funcionamento fue - cambiado para usar el atributo name, entonces en consecuencia actualice - sus templates. - - - - - Tenga cuidado cuando capture la salida del comando - {insert}. - Si tuviera activo el cache y tuviera - comandos {insert} y - usted espera que funcione con contenido de cache, no se capturara este contenido. - - - - - capturando contenido de template - - - - {$smarty.capture.banner} - - -{/if} -]]> - - - - - Ver También - $smarty.capture, - {eval}, - {fetch}, - fetch() - y {assign}. - - - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index f264b29f..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,176 +0,0 @@ - - - - config_load - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - file - string - Si - n/a - El nombre del archivo de configuración a incluir - - - section - string - No - n/a - El nombre de la sección a cargar - - - scope - string - no - local - - Como el scope carga las variables debe ser tratado de - manera local, como padre y no como global. local indica - que las variables son cargadas en el contexto del template - local. parent indica que las variables son cargadas en el - contexto actual y en el template que llamo. global indica - que las variables estan disponibles para todos los templates. - - - - global - boolean - No - No - - Cuando las variables no son vistas en el template - padre (al que llamo este), lo mismo que scope=parent. - NOTA: este atributo esta obsoleto pero el atributo scope, - puede dar el soporte. Si scope es el indicado, este valor - es ignorado. - - - - - - - Esta función es usada para cargar las #variables# - de un archivo de configuración dentro de un template. - Vea Config Files para mayor - información. - - - Función {config_load} - - ejemplo.conf - - - - - y el template - - - {#pageTitle#|default:"No title"} - - - - - - - -
      FirstLastAddress
      - - - ]]> -
      -
      - - Los archivos de configuración - pueden contener secciones también. Usted puede cargar variables de - una sección adicionando el atributo 'section'. - - - - Config file sections es la función integrada - de template {section} - no tiene nada que ver uno con el otro, ellos justamente por casualidad - tiene en común el convensionalismo del nombre. - - - - Función config_load con section - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Vea también Config files, - Config variables, - $config_dir, - get_config_vars() - y config_load(). - -
      - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 3c2e72f0..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,247 +0,0 @@ - - - - {foreach},{foreachelse} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - from - array - Si - n/a - El nombre de la matriz a la que usted estara pegando los elementos - - - item - string - Si - n/a - El nombre de la variable que es el elemento - actual - - - key - string - No - n/a - El nombre de la variable que es la llave actual - - - name - string - No - n/a - El nombre del ciclo foreach para acessar a las propiedades del foreach - - - - - - Los ciclos(loop) foreach son una alternativa para loop - {section}. - foreach es usado para pegar cada elemento de una - matriz asociativa simple. - La sintaxis para foreach es mucho mas simple que - section, pero tiene una desventaja de que solo puede ser - usada en una única matriz. - La etiqueta foreach debe tener su par - /foreach. - Los parámetros requeridos son from e - item. El nombre del ciclo(loop) foreach puede ser - cualquier cosa que usted quiera, hecho de letras, números y subrayados. - Los ciclos(loop) foreach pueden ser anidados, - y el nombre de los ciclos(loop) anidados debe ser diferente uno de - otro. La variable from (normalmente una matriz de valores) - determina el número de veces del ciclo(loop) foreach. - foreachelse y ejecutando cuando no hubieren mas valores - en la variable from. - - -foreach - - assign('custid', $arr); - ?> - ]]> - - - - -{/foreach} -]]> - - - Esta es la salida del ejemplo de arriba: - - - -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 key=key item=item from=$contact} - {$key}: {$item}
      - {/foreach} -{/foreach} -]]> -
      - - Esta es la salida del ejemplo de arriba: - - - - phone: 1
      - fax: 2
      - cell: 3
      -
      - phone: 555-4444
      - fax: 555-3333
      - cell: 760-1234
      -]]> -
      -
      - - Ejemplo de {foreach} - con base de datos (eg PEAR o ADODB) - -assign("contacts", $db->getAssoc($sql)); -?> -]]> - - -{$con.name} - {$con.nick}
      -{/foreach} -]]> -
      -
      - - - El ciclo(Loop) foreach también tiene sus propias variables para - manipular las propiedades del foreach. - Estas son indicadas así: - {$smarty.foreach.foreachname.varname} - con foreachname siendo el nombre especificado del atributo - name del foreach. - - Ver {section} - para ejemplos ide las propiedades bajo las cuales son identicos. - - - - iteration - - iteration es usado para mostrar la interación actual del ciclo(loop). - iteration siempre comienza en 1 incrementado en uno cada interación. - - - - - first - - first Toma el valor true si la interación actual del - foreach es la primera. - - - - - last - - last Toma el valor de true si la interación actual - del foreach es la ultima. - - - - - show - - show Es usado como parámetro para el foreach. - show Es un valor booleano, true o false. - Si es false, el foreach no será mostrado. Si tuviera un - foreachelse presente, este será alternativamente mostrado. - - - - - total - - total Es usado para mostrar el número de interaciones - del foreach. Este puede ser usado dentro o después de el. - - - Ver tambien {section} y - $smarty.foreach. - - - -
      - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index e1d6f7d6..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,231 +0,0 @@ - - - - if,elseif,else - - Los comandos {if} del Smarty tiene mucho de la - flexibilidad del comando - if de php, - con algunas adiciones para la herramienta de template. - Todo {if} debe tener su {/if}. - {else} y {elseif} también son - permitidos. - Toda las condicionales de PHP son reconcidas, tal como - ||, or, - &&, and, etc. - - - - La siguiente es una lista de calificadores reconocidos, los cuales - deberan estar separados los dos elementos por espacios. - Nota loas articulos pueden listarse [entre corchetes] es opcional. - Equivalentes al lugar donde se apliquen en PHP. - - - - - - - - - - - - Calificador - Alternativa - Ejemplo de Sintaxis - Significado - Equivalente en PHP - - - - - == - eq - $a eq $b - Iguales - == - - - != - ne, neq - $a neq $b - Diferentes - != - - - > - gt - $a gt $b - Mayor que - > - - - < - lt - $a lt $b - menor que - < - - - >= - gte, ge - $a ge $b - mayor que o igual - >= - - - <= - lte, le - $a le $b - menor que o igual - <= - - - === - - $a === 0 - Igual e indentico - === - - - ! - not - not $a - negación (unary) - ! - - - % - mod - $a mod $b - modulo - % - - - is [not] div by - - $a is not div by 4 - divisible por - $a % $b == 0 - - - is [not] even - - $a is not even - [not] es numero par (unary) - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - agrupar niveles pares [not] - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - [not] el numero es impar (unary) - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - [not] agrupa los niveles impares - ($a / $b) % 2 != 0 - - - - - -sentencia if - - 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* Usted también puede colocar funciones de PHP *} -{if count($var) gt 0} - ... -{/if} - -{* checa si el valor es par o impar *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* checa si la variable var es divisible por 4 *} -{if $var is div by 4} - ... -{/if} - -{* Checa si la variable var es igual, agrupandola por dos. 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} -]]> - - - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 83bd9ac5..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - {include_php} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - file - string - Si - n/a - El nombre del archivo php a incluir - - - once - boolean - No - true - Cuando incluir o no el archivo php mas de una vez, - ser incluido varias veces - - - assign - string - No - n/a - El nombre de la variable que recibirá la - salida del archivo php - - - - - - Nota técnica - - {include_php} es muy desaprovechado desde Smarty, usted puede - lograr la misma funcionalidad por medio de las funciones de - costumbre del template. - La unica razón para usar {include_php} es si usted en realidad tiene - la necesidad de poner en cuarentena la funcion de php fuera del - directorio de plugins y - su codigo de la aplicación. - Vea un ejemplo - de templates componentizados para detalles. - - - - Las etiquetas {include_php} son usadas para incluir un script PHP - dentro de su template. - Si la seguridad estuviera activada, entonces - el script PHP debe estar localizado en la ruta $trusted_dir. - La etiqueta include_php debe tener el atributo "file", el cual - contiene la ruta del archivo PHP a ser incluido, o el relativo - al $trusted_dir, o - una ruta absoluta. - - - Por default, los archivos son incluidos solo una vez a un cuando son - incluidos varias veces en el template. Usted puede especificar que este - sea incluido todas la veces con un atributo once. - Definindo como false incluira el script php cada vez que este sea - incluido en el template. - - - Usted puede opcionalmente pasar el atributo assign, - el cual especificara una variable del template la cual contendra toda la - salida del {include_php} en vez de mostrarla. - - - El objeto smarty esta disponible como $this dentro del script php que usted - incluyo. - - - funcion {include_php} - load_nav.php - -query("select * from site_nav_sections order by name",SQL_ALL); -$this->assign('sections',$sql->record); - -?> -]]> - - - Donde index.tpl es: - - -{$curr_section.name}
      -{/foreach} -]]> -
      -
      - - Ver también {include}, - {php}, {capture}, Template Resources y Componentized Templates - - -
      - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 67cc958a..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,183 +0,0 @@ - - - - include - - - - - - - - - - Nombre del Atributo - Tipo - requerido - Default - Descripción - - - - - file - string - Si - n/a - El nombre del archivo de template a Incluir. - - - assign - string - No - n/a - El nombre de una variable que contendra toda la - salida del template. - - - [var ...] - [var type] - No - n/a - Variable para pasar localmente a el template - - - - - - Las etiquetas {include} son usadas para incluir otros templates en - el template actual. Cualquier variable disponible en el template - actual, también esta disponible dentro del template incluido. - La etiqueta {include} debe tener el atributo "file", el cual contiene - la ruta del archivo a incluir. - - - Usted puede opcionalmente pasar el atributo 'assign', - el cual especificara el nombre de una variable de template para el cual - contendra toda la salida de {include} en vez de mostrarla. - - - funcion {include} - - - - {$title} - - -{include file="page_header.tpl"} - -{* el cuerpo del template va aqui *} -{include file="/$tpl_name.tpl"} <-- will replace $tpl_name with value - -{include file="page_footer.tpl"} - - -]]> - - - - Usted también puede pasar variables al template incluidas como - atributos. Cualquier variable pasada al template incluidas como - atributos estan disponibles solamente dentro el espacio del template. - Las variables pasadas como atributos sobreescriben a las variables - del template actual, en el caso en el que estas tengan el mismo nombre. - - -Función {include} pasando variables - - - - Donde header.tpl puede ser - - - -

      {$title}

      - - -]]> -
      -
      - - - {include} y asignacion de variables - En este ejemplo asignan el contenido de nav.tpl en la variable $navbar, - entonces la salida hasta arriba y hasta abajo de pagina. - - - -{include file="nav.tpl" assign="navbar"} -{include file="header.tpl" title="Main Menu" table_bgcolor="#c0c0c0"} -{$navbar} - -{* el cuerpo del template va aqui *} - -{include file="footer.tpl" logo="http://my.example.com/logo.gif"} -{$navbar} - -]]> - - - - - - - Use la sintaxis de template resources - para incluir archivos fuera del directorio - $template_dir. - - -Ejemplos de recursos para la función include - - - - - ver también - {include_php}, - {php}, - Template Resources y - Componentized Templates. - - - -
      - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 57e8b5a9..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - insert - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - name - string - Si - n/a - El nombre de la función insert(insert_name) - - - assign - string - No - n/a - El nombre de la variable del template que recibirá la - salida - - - script - string - No - n/a - El nombre de un php que será incluido antes que la - función insert sea llamada - - - [var ...] - [var type] - No - n/a - Variable para pasar a la función insert - - - - - - La etiqueta funciona parecido a las etiquetas {include}, excepto - que las etiquetas insert no van para el cache cuando - caching esta activado. - Esta sera executada a cada invocación del template. - - - Digamos que usted tiene un template con un banner en la parte de arriba - de la pagina. El banner puede contener cualquier mezcla de HTML, imagenes, - flash, etc. Así nosotros no podemos usar una liga(link) estatica aquí, - y nosotros no queremos que este el contenido oculto con la pagina. - Aquí vemos la etiqueta {insert}: el template conoce los valores - #banner_location_id# y #site_id# (obtenidos de un archivo de configuración), - y necesita llamar una función para obtener el contenido del banner. - - - función {insert} - -{* ejemplo de traer un banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - - En este ejemplo, nosotros estamos usando el nombre "getBanner" - y pasando los parámetros #banner_location_id# y #site_id#. - El Smarty lo buscara en la función llamada insert_getBanner() - en su aplicación PHP, pasando los valores de #banner_location_id# - y #site_id# como primer argumento en una matriz asociativa. - Todos los nombres de las funciones insert en su aplicación deben - ser precedidas por "insert_" para prevenir posibles problemas con - nombres de funciones repetidos. Su función insert_getBanner() debe - hacer algo con los valores pasados y retornar los resultados. - Estos resultados son mostrados en el template en lugar de la - etiqueta insert. En este ejemplo, el Smarty llamara esta función: - insert_getBanner(array("lid" => "12345","sid" => "67890")); y - mostrara el resultado retornado en el lugar de la etiqueta insert. - - - Si usted proporciona el atributo "assign", la salida de la etiqueta - {insert} será dada a esta variable en vez de ser una salida en el template. - Nota: definir la salida a una variable no es util cuando el cache esta habilitado. - - - Si usted proporciona el atributo "script", este script php será - incluido (solo una vez) antes de la ejecución de la función {insert}. - Este es el caso donde la función insert no exista todavia, y el - script php debe ser incluido antes para que pueda funcionar. - La ruta puede ser absuluta o relativa a $trusted_dir. - Cuando la seguridad esta activada, - el script debe estar en $trusted_dir. - - - El objeto Smarty es pasado como segundo argumento. De este modo - puede referenciar y modificar información del objeto Smarty dentro - de la función. - - - Nota Tecnica - - Es posible tener partes del template fuera de la cache. - Si usted tuviera caching - activado, la etiqueta insert no podra heredar por la cache. - Esta sera ejecutada dinámicamente cada vez que la pagina - sea creada, igual con paginas en cache. Esto funciona bien - para cosas como banners, encuestas, clima, busqueda de - resultados, areas de opinión de usuario, etc. - - - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index b95f5fb0..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - {ldelim},{rdelim} - - {ldelim} y {rdelim} son usados para - escapar delimitadores en el template, - en nuestro caso "{" or "}". Usted puede usar solo - {literal}{/literal} para - escapar bloques de texto. - Vea tambien {$smarty.ldelim}. - - - {ldelim}, {rdelim} - - - - - La salida del ejemplo de arriba: - - - - - Otros ejemplos con algunos javascript - - -function foo() {ldelim} - ... code ... -{rdelim} - -]]> - - - esta es la salida - - - -function foo() { - .... code ... -} - -]]> - - - - Vea también Escaping Smarty Parsing - - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index a423ee16..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - literal - - Las etiquetas literal permiten que un block de datos sea tomado literalmente, - no siendo interpretado por el smarty. Esto es generalmente utilizado alrededor - de bloques javascript o stylesheet, en donde pueden haber sintaxis - delimitadoras que puedan - interferir con el template. - - Cualquer cosa dentro de las etiquetas {literal}{/literal} no es - interpretado, si no desplegado tal como esta. Si usted necesita en su - template etiquetas incrustadas en su bloque de literal, considere usar - {ldelim}{rdelim} para - escapar delimitadores individuales en lugar de eso. - - - Etiqueta literal - - - - - - -{/literal} -]]> - - - - Ver también Escaping Smarty Parsing. - - - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 370f178d..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - {php} - - Las etiquetas {php} permiten a suetdd incrustar código php directamente - en el template. No será escapado, no importando la definición de - $php_handling. - Esto es solo para usuario avanzados y normalmente no es necesario. - - - Etiqueta {php} - - - - - -Nota técnica - - Para poder tener acceso a las variables de PHP puede ser necesario usar la palabra clave - global de PHP. - - - - ver También - $php_handling, - {include_php}, - {include} y - Componentized Templates. - - - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 3cbb2edd..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,794 +0,0 @@ - - - - section,sectionelse - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - name - string - Si - n/a - El nombre de la section - - - loop - mixed - Si - n/a - El nombre de la variable para determinar el número de iteracciones - - - start - integer - No - 0 - La posición del índice de la section donde va a comenzar. - Si el valor es negativo, la posición del inicio se calculara - a partir del final de la matriz. Por ejemplo, si hubieran 7 valores - en la matriz y comienza por -2, el índice inicial es 5. - Valores inválidos (valores fuera del tamaño de la matriz) son - automáticamente truncados para el valor valido mas próximo. - - - - step - integer - No - 1 - El valor del step que sera usado para el loop de la matriz. - Por ejemplo, step=2 realizara el loop con los índices 0,2,4, etc. - Si step es negativo, este avanzara en la matriz de atras para adelante. - - - - max - integer - No - n/a - Defíne el número máximo de ciclos(loops) para la section. - - - show - boolean - No - true - Determina cuando mostrar o no esta sección - - - - - - Las section del template son usada para realizar un ciclo(loop) de - un arreglo de datos. - (al agiual que un {foreach}). - Todas las etiquetas section - deben tener su par /section. Los parámetros - requeridos son name y loop. - El nombre de la section puede ser el que usted quiera, formado por - letras, números y subrayados. Las sections pueden ser anidadas, y los - nombres de la section anidadas deben ser diferentes unos de otros. - Las variables del loop (normalmente una matriz de valores) determina - el número de veces del loop de la section. Cuando estuviera mostrando - una variable dentro de una section, el nombre de la section debe estar - al lado de la variable dentro de corchetes []. - sectionelse es ejecutado cuando no hubiera valores - para la variable del loop(ciclo). - - -section - -assign('custid',$data); - -?> -]]> - - - -{/section} -
      -{* print out all the values of the $custid array reversed *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}
      -{/section} -]]> -
      - - The above example will output: - - - -id: 1001
      -id: 1002
      -
      -id: 1002
      -id: 1001
      -id: 1000
      -]]> -
      - - Otro par de ejemplos sin un arreglo asignado. - - - -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - - - Esta es la salida del ejemplo de arriba: - - - -20 18 16 14 12 10 -]]> - -
      - - -loop(ciclo) de la variable 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); - -?> -]]> - - - - - - La salida del ajemplo de arriba: - - - - 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 -

      -]]> -
      -
      - - -Nombres de section - - - id: {$custid[anything]}
      - name: {$name[anything]}
      - address: {$address[anything]} -

      -{/section} -]]> -
      -
      - -sections anidadas - -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} -]]> -
      - - la salida del ejemplo de arriba: - - - - 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 y matrices asociativas - - '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} -]]> -
      - - Esta es la salida del ejemplo de arriba: - - - - 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 -

      -]]> -
      - Ejemplo usando una base de datos(eg usando Pear o 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} -]]> - - - - Las sections también tiene sus propias variables que manipulan las - propiedades de section. Estas son indicadas asi: - {$smarty.section.sectionname.varname} - - - - NOTA: a partir de Smarty 1.5.0, la sintaxis de las variables de las - propiedades de section ha sido cambiadas de {%sectionname.varname%} a - {$smarty.section.sectionname.varname}. La sintaxis antigua es aun - soportada, pero usted puede ver la referencia de la sintaxis nueva - en los ejemplos del manual. - - - - index - - index es usado para mostrar el índice actual del cliclo(loop), comenzando - en cero (o comienza con el atributo dado), e incrementando por uno (o por - un atributo de paso dado). - - - Nota Tecnica - - Si las propiedades de paso y comienzo del section son modificadas, - entonces estas funcionan igual a las propiedades de - iteration de la - section, exepto que comienzan en 0 en vez de 1. - - - - {section} propiedades del index - - -{/section} -]]> - - - salida del ejemplo de arriba: - - - -1 id: 1001
      -2 id: 1002
      -]]> -
      -
      -
      - - - index_prev - - El index_prev es usado para mostrar el índice anterior del loop(ciclo). - del primer loop(ciclo) esto es definido como -1. - - - - - index_next - - El index_next es usado para mostrar el próximo indice del loop. - del último loop, esto es uno mas que el índice actual( respetando - la definición del atributo step que se a dado.) - - -{section} propiedades del index_next y 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} - -]]> - - - la salida del ejemplo de arriba esta contenido en la siguiente tabla: - - - - - - - - - iteration - - iteration es usado para mostrar la iteración actual del loop(ciclo). - - - - Esto no es afectado por las propiedades del section start, step y max, - distinto de las propriedades del index. - Iteration también comineza con 1 en vez de 0 como index. - rownum es un alias de iteration, - estas funcionan de manera identica. - - - - {section} propiedades de iteration - -assign('custid',$id); - -?> -]]> - - - -{/section} -]]> - - - salida del ejemplo de arriba: - - - -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
      -]]> -
      - - Este ejemplo utiliza la propiedad iteration para salida a una tabla - bloqueando el encabezado para cada 5 renglones - (utilice {if} con el operador 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 es definido como true se la - iteración - actual de la section es la primera. - - - - - last - - last es definido como true si la - iteración - actual del section es la ultima. - - - {section} propiedades first y last - - En este ciclo de ejemplo el arreglo $customer, en la salida es bloqueado - el encabezado en la primera iteracion y en la ultima la salida es bloqueda - para el pie de pagina. - (Utilice la propiedad section total) - - - - idcustomer - {/if} - - - {$customers[customer].id}} - {$customers[customer].name} - - - {if $smarty.section.customer.last} - {$smarty.section.customer.total} customers - - {/if} -{/section} -]]> - - - - - - rownum - - rownum es usado para mostrar la interación actual del loop(ciclo), - comenzando con 1. Es un alias para - iteration, estas - funcionan de modo identico. - - - - - loop - - loop es usado para mostrar el ultimo número del índice del - loop(ciclo) de esta section. Esto puede ser usado dentro o fuera del section. - - - {section} propiedades de index - - -{/section} - -There were {$smarty.section.customer.loop} customers shown above. -]]> - - - La salida del ejemplo de arriba: - - - -1 id: 1001
      -2 id: 1002
      - -There were 3 customers shown above. -]]> -
      -
      -
      - - - show - - showEs usado como parámetro para section. - show Es un valor booleano, true o false. - Si es false, la section no será mostrada. Si existiera un - sectionelse presente, este será alternativamente mostrado. - - - section atributos de show - - -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - - - La salida del ejemplo de arriba: - - - -2 id: 1001
      -3 id: 1002
      - -the section was shown. -]]> -
      -
      -
      - - - total - - total es usado para mostrar el número de iteraciones que está - section tendra. Este puede ser usado dentro o fuera del section. - - - {section} propiedades de total - - -{/section} - - There were {$smarty.section.customer.total} customers shown above. -]]> - - - The above example will output: - - - -2 id: 1002
      -4 id: 1004
      - -There were 3 customers shown above. -]]> -
      -
      - - Ver también {foreach} - y $smarty.section. - -
      -
      - - diff --git a/trunk/docs/es/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/es/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index b2c38f82..00000000 --- a/trunk/docs/es/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - {strip} - - Muchas veces el diseñador de web tiene problemas con los espacios en - blanco y retornos de carro que afectan la salida del HTML - (browser "features"), si usted tiene que colocar todas sus etiquetas - juntas para tener los resultados deseados. Esto normalmente termina - en un template ilegible o que no se puede leer. - - - A cualquier cosa dentro de las etiquetas{strip}{/strip} en Smarty le - son retirados los espacios en blanco y retornos de carro al inicio y - al final de las lineas antes que sean mostrados. - De este modo usted puede manter su template legible, y no se peocupara - de que los espacios en blanco extras le causen problemas. - - - Nota Técnica - - {strip}{/strip} no afeta el contenido de las variables del template. - Vea la función strip modifier. - - - - {strip} tags - - - - - - This is a test - - - - -{/strip} -]]> - - - salida del ejemplo de arriba: - - -strip modifier - - - - diff --git a/trunk/docs/es/designers/language-combining-modifiers.xml b/trunk/docs/es/designers/language-combining-modifiers.xml deleted file mode 100644 index abe6715a..00000000 --- a/trunk/docs/es/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - Combinando Modificadores - - Usted puede aplicar cualquier cantidad de modificadores para una variable. - Estos seran aplicados en el orden en el que fueron combinados, de izquierda - a derecha. Estos deben ser separados con el carácter |(pipe). - - - Combinando Modificadores - -assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); - -?> -]]> - - -Donde el template es: - - - - - - La salida del ejemplode arriba: - - - - - - - - diff --git a/trunk/docs/es/designers/language-custom-functions.xml b/trunk/docs/es/designers/language-custom-functions.xml deleted file mode 100644 index 65c115f5..00000000 --- a/trunk/docs/es/designers/language-custom-functions.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - Custom Functions - - Smarty viene con varias funciones personalizadas que usted - puede usar en sus 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; - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/es/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index e8c70162..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - {assign} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - var - string - Si - n/a - El nombre de la variable que esta ganando el valor - - - value - string - Si - n/a - El valor que esta siendo dado - - - - - - {assign} es usado para definir valores a las variables de template - durante la ejecución del template. - - - {assign} - - - - - Salida del ejemplo de arriba: - - - - - - - - Accesando variables desde un script de PHP. {assign} - - Puedes accesar {assign} variables desde php usando - get_template_vars(). - sin embargo, las variables solo estan disponibles despues/durante - la ejecución del template como en el siguiente ejemplo - - - - - -get_template_vars('foo'); - -// fetch the template to a dead variable -$dead = $smarty->fetch('index.tpl'); - -// this will output 'smarty' as the template has been executed -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// this will output 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - - - - - La siguiente función optionally también puede asignar variables al template. - - - - {capture}, - {include}, - {include_php}, - {insert}, - {counter}, - {cycle}, - {eval}, - {fetch}, - {math}, - {textformat} - - - - Ver también assign() - y get_template_vars(). - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/es/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 9d9006d8..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - {counter} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - name - string - No - default - El nombre del contador - - - start - number - No - 1 - El número inicial para contar a partir de - - - skip - number - No - 1 - El intervalo para contar - - - direction - string - No - up - La dirección para contar (up/down) - - - print - boolean - No - true - Cuando mostrar o no el valor - - - assign - string - No - n/a - La variable del template que va a recibir la salida - - - - - - {counter} es usada para mostrar un conteo. {counter} va a depender del - conteo en cada iteración. Usted puede ajustar el número, el intervalo - y la dirección del conteo, asi como determinar cuando mostrar o no el - conteo. Usted puede tener varios contadores al mismo tiempo, dando un - nombre único para cada uno. Si usted no da un nombre, sera usado - 'default' como nombre. - - - Si usted indica el atributo especial "assign", la salida de la función - counter se ira para esa variable del template en vez de ser mostrada en - el template. - - - counter - - -{counter}
      -{counter}
      -{counter}
      -]]> -
      - - Esta es la salida: - - - -2
      -4
      -6
      -]]> -
      -
      -
      - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/es/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 15b644d4..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - cycle - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - name - string - No - default - El nombre del ciclo - - - values - mixed - Si - N/A - Los valores del ciclo, o una lista delimitada por - coma (vea el atributo delimiter), o una matriz de valores. - - - - print - boolean - No - true - Cuando mostrar o no el valor - - - advance - boolean - No - true - Cuando avanzar o no hacia el siguiente valor - - - delimiter - string - No - , - El delimitador para usar el valor del atributo. - - - assign - string - No - n/a - La variable del template que recibirá la salida - - - reset - boolean - No - false - Este coloca al ciclo en el primer valor y no le permite avanzar - - - - - - {Cycle} es usado para hacer un ciclo a través de un conjunto - de valores. Esto hace mas fácil alternar entre dos o mas colores - en una tabla, o ciclos a travéz de una matriz de valores. - - - Usted puede usar el {cycle} en mas de un conjunto de valores en su - template supliendo el atributo name. De cada uno de los conjuntos - de valores. - - - Usted puede forzar que el valor actual no sea mostrado definiendo - el atributo print en false. Esto es útil para saltarse un valor. - - - El atributo advance es usado para repetir un valor. cuando se - definido en false, la próxima llamada para cycle mostrara el - mismo valor. - - - Si usted indica el atributo especial "assign", la saida de la - función cycle ira a la variable del template en vez de ser mostrado - ditectamente en el template. - - - cycle - - - {$data[rows]} - -{/section} -]]> - - - - 1 - - - 2 - - - 3 - -]]> - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/es/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index f4b36958..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - {debug} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - output - string - No - javascript - Tipo de salida, html o javascript - - - - - - {debug} Muestra el debug de la consola en la pagina. - Esto funciona independente de la definición de - debug. - Ya que este es ejecutado en tiempo de ejecución, este solo - puede mostrar las variables definidas, no en el template, es - decir en uso. Usted puede ver todas las variables disponibles - del template con scope. - - - Ver también Debugging console - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/es/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index cec80eca..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - {eval} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - var - mixed - Si - n/a - variable (o cadena) para evaluar - - - assign - string - No - n/a - La variable del template que recibirá la salida - - - - - - {eval} es usado para evaluar una variable como de template. Esto puede - ser usado para cosas como incrustar tags(etiquetas)/variables del - template dentro de las variables o tags(etiquetas)/variables dentro - de las variables de un archivo de configuración. - - - Si usted indica el atributo especial "assign", la salida de la - función eval se ira para esta variable de template en vez de - aparecer en el template. - - - Nota Técnica - - Al evaluar las variables son tratas igual que el template. - Ellas sigen el mismo funcionamiento para escape y seguridad tal - como si ellas fueran templates. - - - - Nota Técnica - - Las variables evaluadas son compiladas en cada invocación, las - vesiones compiladas no son salvas. Sin embargo, si usted tiene - activado el cache, la salida se va a fijar en la - cache junto con el resto del 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#}. -]]> - - - Where index.tpl is: - - - - - - La salida del ejemplo de arriba: - - -city. - You must supply a state. - -]]> - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/es/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 8ccbb179..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - {fetch} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - file - string - Si - n/a - El archivo, sitio http o ftp para mandar llamar - - - assign - string - No - n/a - La variable del template que va a recibir la salida - - - - - - {fetch} es usado para obtener archivos de sistema local, http o ftp, y - mostrar el contenido. Si el nombre del archivo comienza con "http://", - la página del web site sera traida y mostrada. Si el nombre del archivo - comienza con "ftp://", el archivo será obtenido del servidor ftp y - mostrado. Para archivos locales, debe ser dada la ruta completa del - sistema de archivos, o una ruta relativa de el script php a ejecutar. - - - Si usted indica el atributo especial "assign", la salida de la función - {fetch} se ira a una variable de template en vez de ser mostrada en el - template. (nuevo en Smarty 1.5.0) - - - Nota Técnica - - Esto no soporta redirecionamento http, tenga la certeza de incluirlo - en la barra el seguimiento para ir a buscar donde sea necesario. - - - - Nota Técnica - - Si tiene activada la seguridad en su template y usted estuviera - recibiendo un archivo del sistema de archivos local, esto permitira - que solo archivos de uno de los directorios estuviera definido como - seguro. ($secure_dir) - - - - fetch - -{$weather} -{/if} -]]> - - - - Ver también {capture}, - {eval} - y fetch(). - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/es/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index 4ccfc586..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - {html_checkboxes} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - name - string - No - checkbox - Nombre de la lista checkbox - - - values - array - Si, a menos que se este utilizando el atributo options - n/a - Una matriz de valores para los botones checkbox - - - output - array - Si, a menos que estuviera usando el atributo options - n/a - una matriz de salida para los botones checkbox - - - selected - string/array - No - empty - El(s) elemento(s) checkbox marcado(s) - - - options - arreglo asociativo - Si, a menos que este usando values y output - n/a - Una matriz asociativa de valores y salida - - - separator - string - No - empty - Cadena de texto para separar cada checkbox - - - labels - boolean - No - true - Adicionar la etiqueta <label> para la salida - - - - - - {html_checkboxes} es una - función personalizada - que crea un grupo de checkbox con datos privistos. Este cuida cuales items(s) - estan selecionados por default. Los atributos requeridos son - values y output, a menos que usted use options. - Toda la salida es compatible con XHTML. - - - Todos los parámetros que no esten en la lista de arriba - son mostrados como nombre/valor dentro de cada etiqueta - <input> creada. - - - {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); - -?> -]]> - - -donde el template es - - -"} -]]> - - - o donde el codigo es: - - -assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - y el template es - - -"} -]]> - - - salida de ambos ejemplos: - - -Joe Schmoe
      - -
      -
      -
      -]]> -
      -
      - - - ejemplo de base de datos (eg PEAR o ADODB): - - -assign('types',$db->getAssoc($sql)); - -$sql = 'select * from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - -"} -]]> - - - - Vea también - {html_radios} - y {html_options} - -
      - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/es/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index e11bfcf3..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - {html_image} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - file - string - Si - n/a - nombre/ruta de la imagen - - - height - string - No - Altura actual de la imagen - altura con la cual la imagen debe ser mostrada - - - width - string - No - Largo actual de la imagen - largo con el cual la imagen debe ser mostrada - - - basedir - string - no - document root del servidor web - ruta relativa para la base del directorio - - - alt - string - no - "" - descripción alternativa de la imagen - - - href - string - no - n/a - valor href a donde la imagen será ligada - - - - - - {html_image} es una - función habitual - que genera una etiqueta HTML para una imagen. La altura y lo largo - son automáticamente calculadas a partir del archivo de la imagen si - ningún valor suplido. - - - basedir es el directorio base en el cual las rutas relativas de las - imagenes estan basados. Si no lo proporciona, el document root del - servidor (env variable - de ambiente DOCUMENT_ROOT) es usada como el - directorio base. Si la $security - esta habilitada, la ruta para la imagen debe estar dentro de un directorio seguro. - - - href es el valor href a donde la imagen - sera ligada. Si un link es proporcionado, una etiqueta <a - href="LINKVALUE"><a> es puesta alrededor de la imagen. - - - Todos los parametros que no esten dentro de la lista de arriba - son mostrados como pares de nombre/valor dentro de la etiqueta - creada <img>. - - - Nota Técnica - - {html_image} requiere un acceso a disco para leer la imagen y - calcular la altura y el largo. Si usted no usa cache en el template, - generalmente es mejor evitar {html_image} y utilizar - las etiquetas de imagen estáticas para un optimo funcionamiento. - - - - html_image example - - - - - la posible saldida puede ser: - - - - - -]]> - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/es/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 6b911910..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,210 +0,0 @@ - - - - {html_options} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - values - array - Si, a menos que use el atributo options - n/a - una matriz de valores para el menu dropdown - - - output - array - Si, a menos que use el atributo options - n/a - una matriz de salida para el menu dropdown - - - selected - string/array - No - empty - los elemento(s) de la option selecionado(s) - - - options - arreglo asociativo - Si, a menos que utilize valores y salida - n/a - una matriz asociativa de valores y salida - - - name - string - No - empty - nombre del grupo seleccionado - - - - - - {html_options} es una - función customizada - que crea un grupo html <select><option> con los datos proporcionados. - Este se encarga de cuidar cuales datos han sido selecionado por default. - Los atributos son valores y salidas, a menos que usted utilice - options en lugar de eso. - - - Si un valor es una matriz, este será tratado como un <optgroup> html, - y mostrara los grupos. La recursión es soportada por <optgroup>. - Todas las salidas son compatibles con XHTML. - - - Si el atributo opcional name es dado, las - etiquetas <select name="groupname"></select> - encapsularan la lista de opciones. - De otra manera solo es generada la lista de opciones. - - - Todos los parámetros que no estan en la lista de arriba son - exibidos como name/value-pairs dentro de las etiquetas <select>. - Estas son ignoradas si la opcion name no es dada. - - - {html_options} - - Ejemplo 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); - -?> -]]> - - - donde el template es: - - - - {html_options values=$cust_ids output=$cust_names selected=$customer_id} - -]]> - - - Ejemplo 2: - - -assign('cust_options', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - -donde el template es: - - - - {html_options options=$cust_options selected=$customer_id} - -]]> - - - Salida de ambos ejemplos de arriba: - - - - - - - - - -]]> - - - - {html_options} - Ejemplo con base de datos (eg PEAR o 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)); - -?> -]]> - - -Donde el template es: - - - - - {html_options name="type" options=$types selected=$contact.type_id} - -]]> - - - - vea también - {html_checkboxes} - y {html_radios} - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/es/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 988fef17..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - {html_radios} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - name - string - No - radio - Nombre de la lista del radio - - - values - array - Si, a menos que utilice el atributo options - n/a - una matriz de valores para radio buttons - - - output - array - Si, a menos que utilice el atributo options - n/a - una matriz de salida para radio buttons - - - selected - string - No - empty - El elemento del radio selccionado - - - options - arreglo asociativo - Si, a menos qie utilice valores y salida - n/a - una matriz asociativa de valores y salida - - - separator - string - No - empty - cadena de texto para separar cada objeto de radio - - - - - - {html_radios} es una - función customizada - que crea grupos de botones de radio html con los datos proporcionados. - Este esta atento para saber cual objeto esta selccionado por default. - Los atributos requeridos son valores y salidas, a menos que usted - use option en lugar de eso. Toda salida es compatible con XHTML. - - - Todos los parámetros que no estan en la lista de arriba son impresos - como pares de name/value dentro de cada etiqueta <input> creada. - - - - {html_radios} : Ejemplo 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); - -?> -]]> - - - Donde el template es: - - -"} - ]]> - - - - {html_radios} : Ejemplo 2 - -assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Donde index.tpl es: - - -"} -]]> - - - Salida de ambos ejemplos: - - - -Joe -Schmoe
      -
      -
      -
      -]]> -
      -
      - - {html_radios}- Ejemplo con base de Datos (eg PEAR o 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)); - -?> -]]> - - -y el template: - - -"} -]]> - - - - ver también - {html_checkboxes} - y {html_options} - -
      - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/es/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 60c62186..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,362 +0,0 @@ - - - - {html_select_date} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - prefix - string - No - Date_ - Con el prefijo el nombre de la variable - - - time - timestamp/YYYY-MM-DD - No - Tiempo actual en el timestamp de unix o el - formato YYYY-MM-DD - Cual date/time a usar - - - start_year - string - No - Año actual - El primer año primero en el menu dropdown, o - el número de año, o el relativo al año actual (+/- N) - - - - end_year - string - No - de la misma forma que start_year - El ultimo año en el menu dropdown, o el - número de año, o el relativo al año actual (+/- N) - - - - display_days - boolean - No - true - Muestra los dias o no - - - display_months - boolean - No - true - Muestra los meses o no - - - display_years - boolean - No - true - Muestra los años o no - - - month_format - string - No - %B - Cual debe ser el formato de salida del mes - dentro de (strftime) - - - day_format - string - No - %02d - Cual debe ser el formato de salida del dia dentro de (sprintf) - - - day_value_format - string - No - %d - Cual debe ser el formato de salida del valor - del dia dentro de (sprintf) - - - year_as_text - boolean - No - false - Se mostrara o no el año como texto - - - reverse_years - boolean - No - false - Muestra los años en orden inverso - - - field_array - string - No - null - - si un nombre es dado, las cajas de seleción - seran exibidas semejantes a los resultados - que estaran retornando al PHP en la forma. - name[Day], name[Year], name[Month]. - - - - day_size - string - No - null - adiciona el tamaño al atributo para la - etiqueta select si fue dada - - - month_size - string - No - null - adiciona el tamaño del atributo para la - etiqueta select si fue dada - - - year_size - string - No - null - adiciona el tamaño del atributo para la - etiqueta select si fue dada - - - all_extra - string - No - null - adiciona atributos extras para todas las - etiquetas select/input si fueron dadas - - - day_extra - string - No - null - adiciona atributos extras para todas las - etiquetas select/input si fueron dadas - - - month_extra - string - No - null - adiciona atributos extras para todas las - etiquetas select/input si fueron dadas - - - year_extra - string - No - null - adiciona atributos extras para todas las - etiquetas select/input si fueron dadas - - - field_order - string - No - MDY - El orden para ser mostrados los campos - - - field_separator - string - No - \n - Cadena a mostrar entre los diferentes campos - - - month_value_format - string - No - %m - formato strftime de los valores del mes, - el default es %m para el número del mes. - - - - year_empty - string - No - null - Si es proporcionado entonces el primer elemento - es el año select-box tiene este valor como etiqueta y - "" como valor. - Esto es util para hacer una lectura en el select-box - por ejemplo "por favor seccione el año". - Note que este puede usar valores como "-MM-DD" como - atributos de time indicando que el año sea desmarcado. - - - - month_empty - string - No - null - Si es proporcinado entonces el mes es el primer - elemento select-box tiene este valor como etiqueta y - "" como valor. - Note que usted puede usar valores como "YYYY--DD" como - atributos de time indicando que el mes sea desmarcado. - - - - day_empty - string - No - null - Si es proporcinado entonces es dias es el - primer elemento select-box tiene este valor como - etiqueta y "" como valor. - Note que usted puede usar valores como "YYYY-MM--" - como atributos de time indicando que el dia sea - desmarcado. - - - - - - - {html_select_date} es una - función customizada - que crea menus dropdowns de fechas para usted. Este puede mostrar - algunos o todos por año, mes y dia. - - - {html_select_date} - Codigo del Template - - - - - Esta es la salida: - - - - - - - ..... snipped ..... - - - - - - -]]> - - - - {html_select_date} - - - - - esta es la salida: (el año actual es 2000) - - - - - - - - - - - - - - - - - -]]> - - - - Ver también {html_select_time}, - date_format, - $smarty.now - y date tips. - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/es/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 51a90062..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,343 +0,0 @@ - - - - {html_select_time} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - prefix - string - No - Time_ - con el prefijo el nombre de la variable - - - time - timestamp - No - current time - cual date/time va a usar - - - display_hours - boolean - No - true - Mostrar o no las horas - - - display_minutes - boolean - No - true - Mostrar o no los minutos - - - display_seconds - boolean - No - true - Mostrar o no los segundos - - - display_meridian - boolean - No - true - Mostrar o no el meridiano (am/pm) - - - use_24_hours - boolean - No - true - Usar o no reloj de 24 horas - - - minute_interval - integer - No - 1 - número de los intervalos de los minutos del menu dropdown - - - second_interval - integer - No - 1 - número de los intervalos de los segundos del menu dropdown - - - field_array - string - No - n/a - muestra los valores del arreglo con este nombre - - - all_extra - string - No - null - adiciona atributos extras a las etiquetas select/input - si fueron proporcionados - - - hour_extra - string - No - null - adiciona atributos extras a las etiquetas select/input - si fueron proporcionados - - - minute_extra - string - No - null - adiciona atributos extras a las etiquetas select/input - si fueron proporcionados - - - second_extra - string - No - null - adiciona atributos extras a las etiquetas select/input - si fueron proporcionados - - - meridian_extra - string - No - null - adiciona atributos extras a las etiquetas select/input - si fueron proporcionados - - - - - - {html_select_time} es una - función customizada - que crea menus dropdowns de tiempo para usted. Esta puede mostrar - algunos valores, o todo en hora, minuto, segundo y am/pm. - - - Los atributos de time pueden tener diferentes formatos. Este puede ser - un unico timestamp o una cadena conteniendo YYYYMMDDHHMMSS o una cadena - parseda por php's strtotime(). - - - {html_select_time} - - - - - Esta es la salida: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - Ver también - $smarty.now, - {html_select_date} - y date tips. - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/es/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 2466c95b..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,196 +0,0 @@ - - - - {html_table} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - loop - array - Si - n/a - matriz de datos para el ciclo(loop) - - - cols - integer - No - 3 - Número de columnas para la tabla. Si el atributo cols esta vacio, - los renglones seran determinados, entonces el numero de columnas - sera calculado por el numero de renglones y el numero de elementos a - mostrar para ser ajustado a las columnas de todos los elementos que seran - mostrados, si ambos, renglones y columnas, son omitidos las columnas por - default son 3. - - - - rows - integer - No - empty - Número de renglones en la tabla. Si el atributo rows es vacio, - las columnas seran determinadas, entonces el numero de renglones sera - calculado por el numero de columnas y el numero de elementos a mostrar - para ser ajustado el numero de renglones al total de elementos a ser mostrados. - - - - inner - string - No - cols - Dirección consecutiva de los elementos en el arreglo para ser representados. - cols manera en que los elementos son mostrados columna - por columna. rows manera en que los elementos son mostrados - renglon por renglon. - - - - table_attr - string - No - border="1" - atributos para la etiqueta table - - - tr_attr - string - No - empty - atributos para la etiqueta tr (arreglos del ciclo) - - - td_attr - string - No - empty - atributos para la etiqueta td (arreglos del ciclo) - - - trailpad - string - No - &nbsp; - valor de relleno de las celdas para el ultimo - renglon con (si hay alguno) - - - - hdir - string - No - right - dirección de una linea para ser representada. posibles valores: - left (left-to-right), right (right-to-left) - - - - vdir - string - No - down - Dirección de las columnas para ser representadas. posibles valores: - down (top-to-bottom), up (bottom-to-top) - - - - - - - {html_table} Es una - función customizada - que transforma un arreglo de datos en una tabla HTML. El atributo - cols determina el número de columnas que tendra la tabla. - Los valores table_attr, tr_attr y - td_attr determinan los atributos dados para las etiquetas - tabla, tr y td. Si tr_attr o td_attr - son arreglos, ellos entraran en un ciclo. trailpad y el - valor depositado dentro de trailing cells en la ultima linea de la tabla si existe - alguna 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'); -?> -]]> - - - - - - La salida de ambos ejemplos: - - - -123 -456 -789 - - - - - -
      1234
      5678
      9   
      - - - - -
      1234
      5678
      9   
      -]]> -
      -
      -
      - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/es/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 4f709525..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,175 +0,0 @@ - - - - {mailto} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - address - string - Yes - n/a - La dirección de correo electronico(e-mail) - - - text - string - No - n/a - El texto para mostrar, el default es la dirección de correo (e-mail) - - - encode - string - No - none - Como codificar el e-mail. Puede ser - none, hex, - javascript o javascript_charcode. - - - - cc - string - No - n/a - La dirección de correo(e-mail) para mandar una - copia el carbon(cc). Separados por una coma. - - - - bcc - string - No - n/a - Dirección de correo electronico(e-mail) para mandar - una copia al carbon ofuscada(bcc). Separando las direcciones por comas. - - - - subject - string - No - n/a - Asunto del correo electronico(e-mail). - - - newsgroups - string - No - n/a - newsgroup para enviar. separando las direcciones por comas. - - - - followupto - string - No - n/a - Direcciones para acompañar. Separe las direcciones con comas. - - - - extra - string - No - n/a - Cualquier otra información que usted quiera pasar - por el link, tal como plantillas de estilo - - - - - - - {mailto} automatiza el proceso de creación de links de correo - electronico(e-mail) y opcionalmente los codifica. - Codificar el correo electronico(e-mail) hace mas difícil que - las web spiders tomen las direciones de nuestro sitio. - - - Nota Técnica - - javascript es probablemente el codificador mas utilizado, aunque - usted puede utilizar también codificación hexadecimal. - - - - {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"} - -]]> - - - - ver también - escape, - Obfuscating E-mail Addresses - y {textformat} - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-math.xml b/trunk/docs/es/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index c5b8ee55..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,186 +0,0 @@ - - - - math - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - equation - string - Si - n/a - La ecuación a ejecutar - - - format - string - No - n/a - El formato del resultado (sprintf) - - - var - numeric - Si - n/a - Valor de la variable de la ecuación - - - assign - string - No - n/a - Variable de template cuya salida sera asignada - - - [var ...] - numeric - Si - n/a - Valor de la variable de la ecuación - - - - - - {math} permite diseñar ecuaciones matemáticas dentro del template. - Cualquier variable numérica del template puede ser usada en - ecuaciones, y el resultado es mostrado en lugar de la etiqueta. - Las variables usadas en ecuaciones son pasadas como parámetros, - que pueden ser variables de template o valores estáticos. - +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, - pi, pow, rand, round, sin, sqrt, srans y tan son todos los - operadores validos. Verifique la documentación de PHP para mas - información acerca de estas funciones matemáticas. - - - Si usted proporciona el atributo especial "assign", la salida de la - función matemática será atribuido a esta variable de template en - vez de ser mostrada en el template. - - - Nota Técnica - - {math} es una función de muy alto rendimiento debido a que se puede - usar con la función eval() - de PHP. Hacer las matemáticas en PHP es mucho mas eficiente, asi en - cualquier momento es posible hacer calculos matemáticos en PHP asignarlos - a una variable y lanzar los resultados al template. Defínitivamente evite - llamadas repetitivas de funciones matemáticas, dentro de los ciclos - {section}. - - - - {math} - - Ejemplo a: - - - - - - Salida del ejemplo de arriba: - - - - - - Ejemplo b: - - - - - - Salida del ejemplo de arriba: - - - - - - Ejemplo c: - - - - - - Salida del ejemplo de arriba: - - - - - - Ejemplo d: - - - - - - Salida del ejemplo de arriba: - - - - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/es/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index 5c9324ba..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - {popup_init} - - {popup} es una integración - de overLib, una biblioteca usada para - ventanas popup. Esta es usada como contexto de infomación sensitiva, como - ventanas de ayuda o herramientas. {popup_init} debe ser usada una vez hasta - arriba de cada pagina donde usted planea usar la función - popup. - overLib fue escrita por Erik Bosrup, y la - pagina esta localizada en &url.overLib;. - - - A partir da versión 2.1.2 de Smarty, overLib NO viene con la - distribución. Descargar el overLib, coloque el archivo overlib.js - dentro de su document root e indique la ruta relativa en el parámetro - "src" de {popup_init}. - - - popup_init - - -{* popup_init debe ser llamado una sola vez hasta arriba de la pagina *} -{popup_init src="/javascripts/overlib.js"} - -]]> - - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/es/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index eb2f36fe..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,442 +0,0 @@ - - - - popup - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - text - string - Si - n/a - El text/html para mostrar en la ventana popup - - - trigger - string - No - onMouseOver - El que va a ser usado para que aparezca la - ventana. Puede ser onMouseOver u onClick - - - sticky - boolean - No - false - Hace que el poppup se quede cerca hasta que se cierre - - - caption - string - No - n/a - Defíne el texto para el título - - - fgcolor - string - No - n/a - El color que va a ser usado dentro de la caja popup - - - bgcolor - string - No - n/a - El color del borde de la caja popup - - - textcolor - string - No - n/a - Defíne el color del texto dentro de la caja popup - - - capcolor - string - No - n/a - Defíne el color del título de la caja - - - closecolor - string - No - n/a - Defíne el color del texto para cerrar - - - textfont - string - No - n/a - Defíne el color del texto para ser usado en el texto principal - - - captionfont - string - No - n/a - Defíne el tipo de letra para ser usado en el Título - - - closefont - string - No - n/a - Defíne el tipo de letra para el texto "Close" - - - textsize - string - No - n/a - Defíne el tipo de letra del texto principal - - - captionsize - string - No - n/a - Defíne el tamaño del tipo de letra del título - - - closesize - string - No - n/a - Defíne el tamaño del tipo de letra del texto "Close" - - - width - integer - No - n/a - Defíne el ancho de la caja - - - height - integer - No - n/a - Defíne la altura de la caja - - - left - boolean - No - false - Hace que el popups vaya para la izquierda del ratón - - - right - boolean - No - false - Hace que el popups vaya para la derecha del ratón - - - center - boolean - No - false - Hace que el popups vaya al centro del ratón - - - above - boolean - No - false - Hace que el popups vaya por encima del - rató. NOTA:solamente es posible si el height fue definido - - - - below - boolean - No - false - Hace que el popups vaya por abajo del ratón - - - border - integer - No - n/a - Torna en gruesos o finos los bordes del popups - - - offsetx - integer - No - n/a - A que distancia del ratón aparecera el popup, horizontalmente - - - - offsety - integer - No - n/a - A que distancia del ratón aparecera el popup, verticalmente - - - - fgbackground - url to image - No - n/a - Defíne una imagen para usar en vez del color del popup. - - - - bgbackground - url to image - No - n/a - defíne una imagen para ser usada como borde en - vez de un color para el popup. - NOTA:Usted debe definir bgcolor como "" o el color aparecera también. - NOTA: Cuando tuviera un link "Close", el Netscape rediseñara las - celdas de la tabla, haciendo que las cosas aparezcan incorrectamente - - - - closetext - string - No - n/a - Defíne el texto "Close" a otra cosa - - - noclose - boolean - No - n/a - No muestra el texto "Close" pegado con el título - - - status - string - No - n/a - Defíne el texto en la barra de estado del navegador - - - autostatus - boolean - No - n/a - Defíne el texto en la barra de estado para el texto del popup. - NOTA: sobreescribe la definición del status. - - - autostatuscap - string - No - n/a - Defíne el texto de la barra de estado como el texto del título - NOTA: sobreescribe el status y autostatus - - - - inarray - integer - No - n/a - Indica al overLib desde que índice de la - matriz ol_text debe leer el texto, localizada en overlib.js. - Este parámetro puede ser usado en vez del texto - - - - caparray - integer - No - n/a - Indica al overLib a partir de que índice de la - matriz ol_caps leer el título - - - capicon - url - No - n/a - Muestra la imagen antes del título - - - snapx - integer - No - n/a - Instantanea el popup a una posición - constante en una cuadricula horizontal - - - snapy - integer - No - n/a - Instantanea el popup a una posición - constante en una cuadricula vertical - - - fixx - integer - No - n/a - Cierra el popups en una posición horizontal - Nota: pasa por encima de otros colocados horizontal - - - fixy - integer - No - n/a - Cierra popups en posición vertical - Note: pasa por encima de otros colocados vertical - - - background - url - No - n/a - Defíne una imagen para ser usada como fondo en - vez de la tabla - - - padx - integer,integer - No - n/a - Rellena el fondo de la imagen con espacios en blanco - horizontal para colocar el texto. - Nota: este es un comando de dos parámetros - - - pady - integer,integer - No - n/a - Rellena el fondo de la imagen con espacios en blanco - vertical para colocar el texto. - Nota: este es un comando de dos parámetros - - - fullhtml - boolean - No - n/a - Permite a usted controlar completamente el html sobre - la figura de fondo. - El código HTML es esperado en el atributo "text" - - - frame - string - No - n/a - Controla popups en frames diferentes. Para mayores informes - sobre esta función vea la pagina de overlib - - - timeout - string - No - n/a - LLama especificamente a una función javascript - y toma el valor que retorna, como el texto que se - va a mostrar en la ventana popup - - - delay - integer - No - n/a - Hace que el popup funcione como un tooltip. - Este aparecera solo con un retraso en milesimas de segundo - - - hauto - boolean - No - n/a - Determina automáticamente si el popup debe - aparecer a la izquierda o a la derecha del ratón. - - - vauto - boolean - No - n/a - Determina automáticamente si el popup debe - aparecer abajo o arriba del ratón. - - - - - - {popup} es usado para crear ventanas popup con javascript. - {popup_init} DEBE ser - llamado primero para poder trabajar. - - -popup - -mypage - -{* usted puede usar html, links, etc en el texto del popup *} -mypage -]]> - - - - Ver también {popup_init} - y overLib. - - - diff --git a/trunk/docs/es/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/es/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index a6bc1a61..00000000 --- a/trunk/docs/es/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,292 +0,0 @@ - - - - {textformat} - - - - - - - - - - Nombre del Atributo - Tipo - Requerido - Default - Descripción - - - - - style - string - No - n/a - estilo pre-definido - - - indent - number - No - 0 - Número de caracteres para endentar cada linea. - - - indent_first - number - No - 0 - Número de caracteres para endentar la primera linea - - - indent_char - string - No - (single space) - El carácter (o cadena de caracteres) para endentar - - - wrap - number - No - 80 - Cuantos caracteres tendra cada linea - - - wrap_char - string - No - \n - Caracter (o cadena de caracteres) a usar para saltar cada linea - - - - wrap_cut - boolean - No - false - Si es true, wrap saltara la linea en el carácter exacto - en vez de saltar al final de la palabra. - - - assign - string - No - n/a - La variable del template que recibirá la salida - - - - - - {textformat} es una función de bloque - usada para formatear texto. Básicamente limpa espacios y caracteres especiales, y - formatea los párrafos cortando el texto al final de la palabra y endentando lineas. - - - Usted puede definir los parámetros explícitamente, o usar un estilo pre-definido. - Actualmente el único estilo disponible es "email". - - - {textformat} - - - - - Salida del ajemplo de arriba: - - - - - - - - - Salida del ejemplo de arriba: - - - - - - - - - Salida del ejemplo de arriba: - - - - - - - - - Salida del ejemplo de arriba: - - - - - - - Ver también - {strip} - y {wordwrap}. - - - - diff --git a/trunk/docs/es/designers/language-modifiers.xml b/trunk/docs/es/designers/language-modifiers.xml deleted file mode 100644 index 2e5ecdfe..00000000 --- a/trunk/docs/es/designers/language-modifiers.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - Modificadores de variables - - Los modificadores de variables pueden ser aplicados a variables, - funciones habituales o cadenas. Para aplicar un modificador, especifique - el valor seguido por |(pipe) y el nombre del modificador. - Un modificador necesita parámetros adicionales que afetan en su funcionamento. - Estos parámetros siguen al nombre del modificador y son separados por - : (dos puntos). - - - Ejemplo de modificador - - - - - - Si usted aplica un modificador a una matriz en lugar del valor de - una variable, el modificador va a ser aplicado en cada uno de los - valores de la matriz. Si usted realmente quisiera que el modificador - funcionara en una matriz entera, debe colocar el simbolo - @ antes del nombre del modificador, así como: - {$articleTitle|@count} (esto mostrara el número de - elementos de la matriz $articleTitle.) - - - Los modificadores pueden ser cargados automáticamente a partir de su - $plugins_dir (vea también: - Naming Conventions) - o pueden ser registrados explicitamente (vea: - register_modifier). - Adicionalmente, todas las funciones de php pueden ser - utilizadas como modificadores implicitamente. - (El ejemplo @count de arriba usa actualmente la - función count de php y no un modificador de Smarty). - Usar funciones de php como modificadores tiene dos pequeños problemas: - Primero, algunas veces al ordenar los parámetros de una función - esto no es aconsejable ({"%2.f"|sprintf:$float} - actualmente funciona, pero existe algo mas intuitivo - Por ejemplo: {$float|string_format:"%2.f"} - que es proporcionado con la distribución de Smarty). - Segundo: con $security activado, - todas las funciones de php que sean utilizadas como modificadores deben - ser declaradas como variables de una matriz - $security_settings['MODIFIER_FUNCS'] - . - - - Ver también - register_modifier(), - register_function(), - Extending Smarty with plugins - y modifiers, - - - - &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/trunk/docs/es/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 502cf9ff..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - capitalize - - - - - - - - - - Posicion del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - boolean - No - false - Este determina que palabra con digitos no debe ser convertida - - - - - - Este es usado para convertir a mayuscula la primera letra de todas la - palabras de una variable. - - - - capitalize - -assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - - - Donde el template es: - - - - - - Esta es la salida: - - - - - - Ver también lower - upper - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 8048f613..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - cat - - - - - - - - - - Posiscion del Parametro - Tipo - Requerido - cat - Descripción - - - - - 1 - string - No - empty - Este es el valor para concatenar con la variable dada. - - - - - - Este valor es concatenado con la variable dada. - - - cat - -assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - - - Donde el template es: - - - - - - Esta es la salida: - - - - - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 85fdbad9..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - count_characters - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - boolean - No - false - Este determina cuando incluir o no los espacios - en blanco al contar. - - - - - - Este es usado para contar el número de carácteres en una variable. - - - count_characters - -assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - - - Donde el template es: - - - - - - esta es la salida: - - - - - - - ver también - count_words, - count_sentences y - count_paragraphs. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index be0ce6d5..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - count_paragraphs - - Este es usado para contar el número de parrafos en la 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." - ); - -?> -]]> - - - Donde el template es: - - - - - - Esta es la salida: - - - - - - - ver también count_characters, - count_sentences y - count_words. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 466dfb40..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - count_sentences - - Este es usado para contar el número de frases en la variable. - - - count_sentences - -assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - - - Donde el template es: - - - - - - esta es la salida: - - - - - - - ver también count_characters, - count_paragraphs y - count_words. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 1b44c2ee..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - count_words - - Este es usado para contar el número de palabras en la variable. - - - count_words - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - - - Donde el template es: - - - - - - esta es la salida: - - - - - - - ver también count_characters, - count_paragraphs y - count_sentences. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 411a85db..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,252 +0,0 @@ - - - - date_format - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - string - No - %b %e, %Y - Este es el formato para la fecha mostrada. - - - 2 - string - No - n/a - Este es el default de la fecha si el valor de entrada - es vacio. - - - - - - Estos formatos de fecha y hora estan dentro del formato determinado - strftime(). - Las fechas pueden ser pasadas a Smarty como timestamps - unix, timestamps mysql, o como cualquier cadena compuesta de mes dia - año (pasada por strtotime()). - El diseñador puede usar entonces date_format para tener un control completo - del formateo de la fecha. Si la fecha pasada para - date_format estuviera vacia y un segundo parámetro fuera - pasado, este será usado como la fecha a formatear. - - - date_format - -assign('yesterday', strtotime('-1 day')); - -?> -]]> - - - Where template is (uses $smarty.now): - - - - - - This will output: - - - - - - - date_format especificadores de conversión: - - - %a - nombre del día de la semana abreviado de acuerdo al local actual - - - %A - nombre del día de la semana anterior de acuerdo al local actual - - - %b - nombre del mes abreviado de acuerdo al local actual - - - %B - nombre del mes anterior de acuerdo al local actual - - - %c - Representación preferencial de la fecha y hora local actual - - - %C - año con dos dígitos (o año dividido por 100 y truncadopara un entero, intervalo de 00 a 99) - - - %d - día del mes como un número decimal (intervalo de 00 a 31) - - - %D - Lo mismo que %m/%d/%y - - - %e - Día del mes como un número decimal, un único dígito y precedido por un - espacio (intervalo de 1 a 31) - - - %g - Año basado en la semana, sin el siglo [00,99] - - - %G - Año basado en la semana, incluyendo el siglo [0000,9999] - - - %h - Lo mismo que %b - - - %H - Hora como un número decimal usando un relój de 24 horas (intervalo de 00 a 23) - - - %I - Hora como un número decimal usando un relój de 12 horas (intervalo de 01 a 12) - - - %j - Día del año como um número decimal (intervalo de 001 a 366) - - - %k - Hora (relój de 24 horas) digítos únicos que son precedidos por un - espacio en blanco (intervalo de 0 a 23) - - - %l - Hora como un número decimal usando un relój de 12 horas, digítos - únicos son precedidos por un espacio en blanco (intervalo de 1 a 12) - - - %m - Mes como número decimal (intervalo de 01 a 12) - - - %M - Minuto como un número decimal - - - %n - Caracter de nueva linea - - - %p - Cualquiera `am' o `pm' de acuerdo con el valor de la hora dado, - o la cadena correspondiente a la local actual - - - %r - Hora con notación a.m. y p.m. - - - %R - Hora con notación de 24 horas - - - %S - Segundo como número decimal - - - %t - Caracter tab - - - %T - Hora actual, igual a %H:%M:%S - - - %u - Día de la semana como un número decimal [1,7], representando con 1 el lunes - - - %U - Número de la semana del año actual como un número decimal, - comenzando con el primer domingo como primer dia de la primera semana - - - %V - Número de la semana del año actual como número decimal de acuerdo - con el ISO 8601:1988, intervalo de 01 a 53, en donde 1 es la primera - semana que tenga por lo menos cuatro dias en el año actual, siendo - domingo el primer dia de la semana. - - - %w - Día de la semana como decimal, siendo domingo 0 - - - %W - Número de la semana del año actual como número decimal, - comenzando con el primer lunes como primer dia de la primera semana - - - %x - Representación preferida para la fecha local actual sin la hora - - - %X - Representación preferida de la hora local actual sin la fecha - - - %y - Año como número decimal sin el siglo(intervalo de 00 a 99) - - - %Y - Año como número decimal incluyendo el siglo - - - %Z - Zona horaria, o nombre, o abreviación - - - %% - Un carácter `%' - - - - NOTA PARA PROGRAMADORES: - - date_format es escencialmente una envoltura para la - función strftime() de PHP. - Usted debera tener mas o menos especificadores de conversiones disponibles - de acuerdo con la función strftime() - del sistema operacional en donde PHP fue compilado. Cheque en la pagina - del manual de su sistema una lista completa de especificadores validos. - - - - - Ver también $smarty.now, - php function strftime(), - {html_select_date} - y date tips. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index a8047ad6..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - default - - - - - - - - - - Pocisión del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - string - No - empty - Este es el valor por defecto para mostrar una variable - que estuviera vacia. - - - - - - Este es usado para definir un valor por defecto para una variable. - Si esta variable estuviera vacia o no estuviera definida, el valor por - defecto es mostrado. El valor por defecto es usado como argumento. - - - default - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - - - Donde el template es: - - - - - - Esta es la salida: - - - - - - - Ver también Default Variable Handling - y Blank Variable Handling. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 1309a93e..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - escape - - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Posibles Valores - Default - Description - - - - - 1 - string - No - html,htmlall,url,quotes,hex,hexentity,javascript - html - Este es el formato de escape a utilizar. - - - - - - Este es usado para escapar html, url, comillas simples para escapar una - variable que no este escapada, escapar hex, hexentity o javascript. - Por default, la variable html es escapada. - - - escape - -assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); - -?> -]]> - - - Donde el template es: - - - *} -{$articleTitle|escape:"htmlall"} {* escapes ALL html entities *} -{$articleTitle|escape:"url"} -{$articleTitle|escape:"quotes"} -{$EmailAddress|escape:"hexentity"} -]]> - - - esta es la salida: - - -bob..snip..et -]]> - - - - Ver también Escaping Smarty Parsing - y Obfuscating E-mail Addresses. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 7875afbe..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - indent - - - - - - - - - - Posición del Parametro - Tipo - requerido - Default - Descripción - - - - - 1 - integer - No - 4 - Este defíne con cuantos carácteres endentar. - - - 2 - string - No - (un espacio) - Este defíne cual carácter va a ser usado para endentar. - - - - - - Esta endenta una cadena en cada linea, el default es 4. - Como parámetro opcional, usted puede especificar el número de - carácteres para endentar. Como segundo parámetro opcional, - usted puede especificar el carácter que desea usar para endentar. - (Use "\t" para tabs.) - - - 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.' - ); - - -?> -]]> - - - Donde el template es: - - - - - - esta es la salida: - - - - - - - ver también strip - y spacify. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 0b8c82e6..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - lower - - Esta es usada para convertir a minúsculas una variable. - - - lower - -assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - - - Donde el template es: - - - - - - esta es la salida: - - - - - - - ver también upper y - Capitalize. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index c265ba8a..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - nl2br - - Todos los saltos de linea seran convertidos a etiquetas <br /> - como datos de la variable. Esto equivale a la función - nl2br() de PHP. - - - nl2br - -assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - - - Donde el template es: - - - - - - esta debe ser la salida: - - -today, dark tonight -]]> - - - - Ver también word_wrap, - count_paragraphs - y count_sentences. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index 938e5b36..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - regex_replace - - - - - - - - - - Posición del Parametro - Tipo - requerido - Default - Descripción - - - - - 1 - string - Si - n/a - Esta es la expresión regular a ser substituida. - - - 2 - string - Si - n/a - Esta es la cadena que sustituira a la expresión regular. - - - - - - Localiza una expresión regular y la remplaza en la variable. Use la sintaxis para - preg_replace() del manual de PHP. - - - regex_replace - -assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la salida: - - - - - - - Vea también replace - y escape. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 8d41beba..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - replace - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - string - Si - n/a - Esta es la cadena a ser substituida. - - - 2 - string - Si - n/a - Esta es la cadena que ira a substituir. - - - - - - Una simple busqueda y substituir en la variable. Esta es equivalente a la - función str_replace() de PHP. - - - replace - -assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la Salida: - - - - - - - ver también regex_replace - y escape. - - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 3454c6c7..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - spacify - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - string - No - one space - Este se inserta entre cada carácter de la variable. - - - - - - Inserta un espacio entre cada carácter de una variable. Usted puede - opcionalmente pasar un carácter (o una cadena) diferente para insertar. - - - spacify - -assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la Salida: - - - - - - - Ver también wordwrap - y nl2br. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 99abeef0..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - string_format - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - string - Si - n/a - Este es el formato que debera usar. (sprintf) - - - - - - Esta es una manera de formatear cadenas, como números decimales y otros. - Use la sintaxis de sprintf para formatearlo. - - - string_format - -assign('number', 23.5787446); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la Salida: - - - - - - - Ver también date_format. - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 234009de..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - strip_tags - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - descripción - - - - - 1 - bool - No - true - Este determina cuando las etiquetas seran remplazadas por ' ' o por '' - - - - - - Este retira las etiquetas de marcación, basicamente todo entre < y >. - - - strip_tags - -assign('articleTitle', "Blind Woman Gets New -Kidney from Dad she Hasn't Seen in years."); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la Salida: - - -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/trunk/docs/es/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 941b0d4e..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - strip - - Este substituye todos los espacios repetidos, nuevas lineas y tabs - por un unico espacio u otra cadena indicada. - - - Nota - - Si usted quiere substituir bloques de texto de un template use la - función {strip}. - - - - strip - -assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la Salida: - - - - - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 8743cf71..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - truncate - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - Desdcripción - - - - - 1 - integer - No - 80 - Este determina para cuantos carácteres truncar. - - - 2 - string - No - ... - Este es el texto para adicionar si el truncamiento ocurre. La - longitud NO se incluye para la logitud del truncamiento - - - 3 - boolean - No - false - Este determina cuando truncar o no o al final de una - palabra(false), o un carácter exacto(true). - - - - 3 - boolean - No - false - Este determina cuando ocurre el truncamiento al final de la cadena(false), - o en el centro de la cadena(true). Nota cuando este es true, - entonces la palabra limite es ignorada. - - - - - - Este trunca la variable en una cantidad de cacarteres, el default es 80. - Como segundo parámetro opcional, usted puede especificar una cadena - para mostrar al final si la variable fue truncada. Los carácteres en la - cadena son incluidos tamando el original para el truncamiento. - Por default, truncate intentara cortar al final de una palabra. - Se usted quisiera cortar una cantidad exacta de carácteres, pase el - tercer parámetro, que es opcional, como true. - - - truncate - -assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la Salida: - - - - - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 3a6ee9ba..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - upper - - Este es usado para convertir a mayusculas una variable. - - - upper - -assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); - -?> -]]> - - - Donde index.tpl es: - - - - - - Esta es la Salida: - - - - - - - Ver también lower y - capitalize. - - - - diff --git a/trunk/docs/es/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/es/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 5b4e8116..00000000 --- a/trunk/docs/es/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - wordwrap - - - - - - - - - - Posición del Parametro - Tipo - Requerido - Default - Descripción - - - - - 1 - integer - No - 80 - Este determina en cuantas columnas cortar. - - - 2 - string - No - \n - Esta es la cadena usada para cortar. - - - 3 - boolean - No - false - Este determina cuando cortar o no, o al final de una - palabra(false), o en un carácter exacto(true). - - - - - - - Este wordwrap corta una cadena para un ancho de columna, - el default es 80. Como segundo parámetro opcional, usted puede especificar - la cadena que será usada para cortar el texto para la próxima linea (el default - es un retorno de carro \n). Por default, (wordwrap) intentara cortar al final - de una palabra. Si usted quisiera cortar un tamaño exacto de cacarteres, - pase al tercer parámetro, que es opcional, como true. - Este es equivalente a la función wordwrap() de PHP. - - - wordwrap - -assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years."); - -?> -]]> - - - Donde index.tpl es: - - -\n"} - -{$articleTitle|wordwrap:30:"\n":true} -]]> - - - Esta es la Salida: - - - -from dad she hasn't seen in
      -years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. -]]> -
      -
      - - Ver También nl2br - y {textformat}. - -
      - diff --git a/trunk/docs/es/designers/language-variables.xml b/trunk/docs/es/designers/language-variables.xml deleted file mode 100644 index 3aa5e5fd..00000000 --- a/trunk/docs/es/designers/language-variables.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - Variables - - Smarty tiene varios tipos diferentes de variables. El tipo de variable - depende de cual simbolo este prefijado(incluido dentro). - - - Las variables de Smarty no pueden ser mostradas directamente - o usadas como argumentos para - atributos, - funciones y - modificadores, dentro - de expresiones condicionales, etc. Para mostrar una variable, - simplesmente coloque esta entre delimitadores siendo esta la única - cosa entre ellos. Ejemplos: - - -]]> - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - - diff --git a/trunk/docs/es/designers/language-variables/language-assigned-variables.xml b/trunk/docs/es/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 3c9a8d12..00000000 --- a/trunk/docs/es/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,198 +0,0 @@ - - - - Variables definidas desde PHP - - Las variables que son asignadas desde PHP - son referenciadas precedidas estas con una señal de cifrado $. - Las variables definidas dentro del template como una función - assign también son - mostradas de esta manera. - - - - variables definidas - php script - -assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - - - Donde el contenido de index.tpl es: - - - -{* this will not work as $vars are case sensitive *} -This weeks meeting is in {$meetingplace}. -{* this will work *} -This weeks meeting is in {$meetingPlace}. -]]> - - - - esta es la salida: - - - -This weeks meeting is in . -This weeks meeting is in New York. -]]> - - - - Arreglos asociativos - - Usted también puede referenciar matrices asociativas en variables - que son definidas desde PHP especificando la clave después del - simbolo '.'(punto). - - - Accesando variables de matriz asociativa - -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'); -?> -]]> - - - Donde el contenido de index.tpl es: - - - -{$Contacts.email}
      -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}
      -{$Contacts.phone.cell}
      -]]> -
      - - esta es la salida: - - - -zaphod@slartibartfast.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - Índices de Matrices - - Usted podra referencia matrizes por su índice, muy semejantes a la - sintaxis de PHP. - - - Accesando matrices por sus índices - -assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - - - Donde index.tpl es: - - - -{$Contacts[1]}
      -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}
      -{$Contacts[2][1]}
      -]]> -
      - - esta es la salida: - - - -zaphod@slartibartfast.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - Objects - - Las propiedades de los objetos - definidos desde PHP pueden ser referenciados especificando el nombre de la propiedad - después del simbolo '->'. - - - Accesando propiedades de los Objetos - -name}
      -email: {$person->email}
      -]]> -
      - - esta es la salida: - - - -email: zaphod@slartibartfast.com
      -]]> -
      -
      -
      -
      - - diff --git a/trunk/docs/es/designers/language-variables/language-config-variables.xml b/trunk/docs/es/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 8d75b0e6..00000000 --- a/trunk/docs/es/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - Variables cargadas desde archivos de configuración - - Las variables que son cargadas de - archivos de configuración son - referenciadas incluyendo entre ellas el signo(#), o como variables - de Smarty - $smarty.config. - La segunda sintaxis es util para incrustar valores de un atributo - dentro de comillas. - - - Variables de configuración - - foo.conf: - - - - - - index.tpl: - - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - index.tpl: (sintaxis alternativa) - - - -{$smarty.config.pageTitle} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - esta es la salida de ambos ejemplos: - - - -This is mine - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Las variables de un archivo de configuración no pueden ser - usadas hasta después de que son cargadas por los archivos de - configuración. - Este procedimento es explicado posteriormente en este documento en - {config_load}. - - - Ver también Variables y - $smarty reserved variables - - -
      - diff --git a/trunk/docs/es/designers/language-variables/language-variables-smarty.xml b/trunk/docs/es/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 613654d8..00000000 --- a/trunk/docs/es/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,168 +0,0 @@ - - - - La variable reservada {$smarty} - - La variable reservada {$smarty} puede ser utilizada para accesar a - variables especiales del template. A continuación una lista completa. - - - - Solicitud de Variables - - La solicitud de variables - como $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV y $_SESSION - (Ver $request_vars_order - y $request_use_auto_globals) - pueden ser accesadas como se muestra en los ejemplos de abajo: - - - Mostrando solicitud de variables - - - - - - - Por historicas razones {$SCRIPT_NAME} puede ser accesado directamente - sin embargo {$smarty.server.SCRIPT_NAME} es el sugerido para accesar - este valor. - - - - - - {$smarty.now} - - El timestamp - actual puede ser accesado con {$smarty.now}. El número refleja el - número de segundos pasados desde la llamada Epoca (1 de Enero de 1970) - y puede ser pasado directamente para el modificador - date_format para - mostrar la fecha. - - - Usando {$smarty.now} - - - - - - - {$smarty.const} - - Usted puede accesar al valor de constantes PHP directamente. - Ver también smarty constants - - - - Usando {$smarty.const} - - - - - - - - {$smarty.capture} - - La salida capturada via - {capture}..{/capture} - puede ser accesada usando la variable {$smarty}. - vea la sección {capture} - para un ejemplo. - - - - - {$smarty.config} - - La variable {$smarty} puede ser usada para referir - variables de configuración - cargadas. {$smarty.config.foo} es un sinónimo para {#foo#}. vea la sección - sobre {config_load} - para un ejemplo. - - - - - {$smarty.section}, {$smarty.foreach} - - La variable {$smarty} puede ser usada para hacer referencia a las - propiedades 'section' y 'foreach' del loop. Ver la documentación - sobre section y - foreach. - - - - - {$smarty.template} - - Esta variable contiene el nombre actual del template que esta siendo - procesado. - - - - {$smarty.version} - - Esta variable contiene la versión Smarty con que es compilado el template. - - - - {$smarty.ldelim}, {$smarty.rdelim} - - Esta variable es usada para imprimir literalmente el valor left-delimiter y right-delimiter. - Ver tambien {ldelim},{rdelim}. - - - Ver también Variables - y Config Variables - - - - diff --git a/trunk/docs/es/getting-started.xml b/trunk/docs/es/getting-started.xml deleted file mode 100644 index dbe80bd2..00000000 --- a/trunk/docs/es/getting-started.xml +++ /dev/null @@ -1,581 +0,0 @@ - - - - Iniciando - - - Que es Smarty? - - Smarty es un motor de plantillas para PHP. Mas especificamente, esta - herramienta facilita la manera de separar la aplicación lógica y el - contenido en la presentación. - La mejor descripción esta en una situación donde la aplicación - del programador y la plantilla del diseñador juegan diferentes roles, - o en la mayoria de los casos no la misma persona. - - - Por ejemplo: - Digamos que usted crea una pagina web, es decir, despliega el articulo - de un diario. El encabezado del articulo, el rotulo, el autor y el - cuerpo son elementos del contenido, estos no contiene información de - como quieren ser presentados. Estos son pasados por la aplicación - Smarty, donde el diseñador edita la plantilla, y usa una combinación de - etiquetas HTML y etiquetas de plantilla para formatear la presentación - de estos elementos (HTML, tablas, color de fondo, tamaño de letras, - hojas de estilo, etc...). - Un día el programador necesita cambiar la manera de recuperar el - contenido del articulo(un cambio en la aplicación lógica.). Este - cambio no afectara al diseñador de la plantilla, el contenido llegara a - la plantilla exactamente igual. De la misma manera, si el diseñador de - la plantilla quiere rediseñarla en su totalidad, estos cambios no - afectaran la aplicación lógica. - Por lo tanto, el programador puede hacer cambios en la aplicación lógica - sin que sea necesario restructurar la plantilla. Y el diseñador de la - plantilla puede hacer cambios sin que haya rompimiento con la aplicación - lógica. - - - One design goal of Smarty is the separation of business logic and - presentation logic. This means templates can certainly contain logic under - the condition that it is for presentation only. Things such as including - other templates, altering table row colors, upper-casing a variable, - looping over an array of data and displaying it, etc. are all examples of - presentation logic. This does not mean that Smarty forces a separation of - business and presentation logic. Smarty has no knowledge of which is which, - so placing business logic in the template is your own doing. Also, if you - desire no logic in your templates you certainly can - do so by boiling the content down to text and variables only. - - - Ahora un pequeño resumen sobre que no hace Smarty. Smarty no intenta - separar completamente la lógica de la plantilla. No hay problema entre la - lógica y su plantilla bajo la condición que esta lógica sea - estrictamente para presentación. - Un consejo: mantener la aplicación lógica fuera de la plantilla, y la - presentación fuera de la aplicación lógica. - Esto tiene como finalidad tener un objeto mas manipulable y escalable para - un futuro proximo. - - - Un único aspecto acerca de Smarty es la compilación de la plantilla. - De esta manera Smarty lee la plantilla y crea los scripts de PHP. Una vez - creados, son executados sobre él. - Por consiguiente no existe ningún costo por analizar gramaticalmente - cada archivo de template por cada requisición, y cada template puede llevar - toda la ventaja del compilador de cache de PHP tal como Zend Accelerator - (&url.zend;) o PHP Accelerator - (&url.ion-accel;). - - - Algunas de las características de Smarty: - - - - - Es extremamente rápido. - - - - - Es eficiente ya que puede interpretar el trabajo mas sucio. - - - - - No analiza gramaticalmente desde arriba el template, solo compila una vez. - - - - - El esta atento para solo recompilar los archivos de plantilla que fueron - cambiados. - - - - - Usted puede crear - funciones habituales - y modificadores de variables - customizados, de modo que el lenguaje de la platilla es altamente extensible. - - - - - Sintaxis de etiquetas delimitadoras para configuración de la plantilla, - así lo puede usar {}, {{}}, <!--{}-->, etc. - - - - - Los construtoress if/elseif/else/endif son pasados por el interpretador - de PHP, así la sintaxis de la expresión {if ...} puede ser compleja o - simple de la forma que usted quiera. - - - - - Permite un anidamiento ilimitado de sections, ifs, etc. - - - - - Es posible incrustar directamente codigo PHP en los archivos de plantilla, - aunque esto puede no ser necesario(no recomendado) dado que la herramienta - se puede ajustar. - - - - - Soporte de caching incrustado - - - - - Fuentes de Plantilla absoluto - - - - - Funciones habituales de manipulación de cache - - - - - Arquitectura de Plugin - - - - - - Instalación - - - Requerimentos - - Smarty Requiere un servidor web corriendo PHP 4.0.6 o posterior. - - - - - Instalación Básica - - Instale los archivos de la libreria de Smarty que estan en el directorio - de distribución /libs/. - Estos son los archivos PHP que usted NO EDITARA. Estos archivos son toda - las aplicaciones comunes y ellos son actualizados cuando usted actualiza - a una nueva versión de Smarty. - - - Archivos de la libreria Smarty - - - - - - Smarty utiliza una constante de PHP llamada SMARTY_DIR que es la ruta para - el directorio de la biblioteca de Smarty 'libs/'. Basicamente, si su - aplicación puede encontrar el archivo Smarty.class.php - , usted no necesita definir SMARTY_DIR, - Smarty lo encontrará. Por consiguiente si, Smarty.class.php - no esta incluido en el path, y no es abastecido por - una ruta absoluta para encontrar su aplicación, entonces usted - debe definir SMARTY_DIR manualmente. SMARTY_DIR debe - incluir una barra de seguimento. - - - Aquí esta un ejemplo de como se crea una instancia de Smarty en sus - scripts PHP: - - - - Creando una instancia Smarty de Smarty - - -]]> - - - - - Intente correr el script de arriba. Si usted obtiene un error diciendo que - el archivo Smarty.class.php - no fue encontrado, puedes usar una de las siguientes opciones: - - - - Reemplazar por la ruta absulta de la libreria del archivo - - -]]> - - - - - Adicionar el directorio de la libreria para incluirlo en el - include_path de PHP - - -]]> - - - - - Defina la constante SMARTY_DIR manualmente - - -]]> - - - - - Ahora que la libreria de archivos esta en su sitio, es tiempo - de configurar los directorios de Smarty para su aplicación. - - - Smarty require cuatro directorios (por defaul) llamados - 'templates/', - 'templates_c/', - 'configs/' y - 'cache/'. - - - Cada uno de estos son para definir las propiedades de las clases de Smarty. - - $template_dir, - - $compile_dir, - - $config_dir, y - - $cache_dir respectivamente. - Es altamente recomendado que usted configure un grupo - separado de estos directorios para cada aplicación que utilice de Smarty. - - - Asegurece que usted sabe la ubicación del document root de su servidor - web. En nuestro ejemplo, el document root esta en - /web/www.example.com/docs/. - Los directorios de Smarty solo son - accesados por la libreria de Smarty y nunca son accesados directamente - por el navegador. Por consiguiente para evitar cualquier preocupación - con la seguridad, es recomendado colocar estos directorios - fuera del document root. - - - Para nuestro ejemplo de instalación, configuraremos el ambiente de Smarty - para una aplicación de libro de visitas. Escojemos una aplicación solo - con el proposito de crear un directorio de nombre convencional. - Usted puede usar el mismo ambiente para cualquier aplicación, solamente - sustituya "guestbook" con el nombre de su aplicación. - Nosotros colocaremos nuestros directorios de Smarty dentro de - /web/www.example.com/smarty/guestbook/. - - - Usted necesita tener por lo menos un archivo dentro de su document root, - y que sea accesado por el navegador. Nosotros llamamos el script de - 'index.php', y lo colocamos en un subdirectorio dentro del - document root llamado /guestbook/. - - - - Nota Técnica: - - Es conveniente configurar el servidor de forma que "index.php" pueda - ser identificado como el índice del directório padre, de esta manera - si usted accesa http://www.example.com/guestbook/, el script - index.php será ejecutado sin "index.php" ni la URL. - En Apache usted puede definir el sitio adicionando "index.php" en el - final de su configuración del directorio DirectoryIndex - (separando cada uno con espacios.) como en el ejemplo de httpd.conf. - - - DirectoryIndex - index.htm index.html index.php index.php3 default.html index.cgi - - - - - - Veamos nuestra estructura de archivos hasta hora: - - - - Ejemplo de estrutura de archivo - - - - - - - Smarty necesitara permisos de escritura - (usuarios de windows ingnorar) para - $compile_dir y - $cache_dir, - esto garantiza que el usuario del servidor pueda escribir en ellos. - Este es generalmente el usuarios "nobody" y el grupo "nobody". - Para usuarios con X sistema operativo, el default es "www" y el grupo "www". - Si usted esta usando Apache, puede ver en su archivo httpd.conf - (normalmente en "/usr/local/apache/conf/") cual es el usuario y - grupo que estan siendo usados. - - - - Configurando permisos de archivos - - - - - - - Nota Técnica: - - chmod 770 puede ser una seguridad bastante fuerte, solo le permite al - usuario "nobody" y al grupo "nobody" acesso de lectura/escritura a los - directorios. Si usted quiere abrir permiso de lectura a cualquiera - (en la mayoria de las veces para su propia conveniencia de querer ver - estos archivos), usted puede usar el 775 en lugar del 770. - - - - - Nosotros necesitamos crear el archivo index.tpl, para que Smarty lo - pueda cargar. Este estara localizado en su - $template_dir. - - - - Editando /web/www.example.com/smarty/guestbook/templates/index.tpl - - - - - - - Nota Técnica: - - {* Smarty *} Esto es un comentario - en el template. Este no es obligatorio, pero si una buena practica - iniciar todos sus archivos de plantilla con estos comentarios. - Esto hace facilmente reconocibles a los archivos a pesar la extención - del archivo. Por ejemplo, editores de texto pueden reconocer el archivo - y habilitar un realce de sintaxis especial. - - - - - Ahora vamos a editar el index.php. crearemos una instancia de Smarty, - daremos valor a las variables del template y mostraremos el archivo - index.tpl. - En el ambiente de nuestro ejemplo, "/usr/local/lib/php/Smarty" esta - dentro de include_path. Asegurese que exista el mismo, o utilice la - ruta absoluta. - - - - 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 Técnica: - - En nuestro ejemplo, estamos configurando rutas absolutas para todos - los directorios de Smarty. - Si /web/www.example.com/smarty/guestbook/ - está dentro de su include_path de PHP, entonces estas - declaraciones no son necesarias. Sin embargo, esto es mas eficiente y - (por experiencia) tiene menos tendencia a errores en relación a - determinar las rutas absolutas. Esto garantiza que Smarty esta recibiendo - los archivos del directorio que usted desea. - - - - - Ahora carge el archivo index.php desde su navegador web. - Usted debera ver "Hello, Ned!" - - - Usted a completado la configuracion basica para el Smarty! - - - - Expandiendo la configuración - - - Esta es una continuación de la - instalación básica, por favor lea esta primero! - - - Una forma un poco mas flexible de configurar el Smarty, expandir las - clases e iniciar su ambiente de Smarty. Es, en vez de configurar rutas - de directorios repetidamente, asigne esas mismas a variables, etc., - nosotros podemos facilitar eso. Vamos a crear un nuevo directorio en - "/php/includes/guestbook/" y llamemos al nuevo archivo setup.php - . En nuestro ejemplo, "/php/includes" está en nuestro include_path. - Verifique que usted también lo definio, o utilice rutas absolutas de - los archivos. - - - - 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'); - } - -} -?> -]]> - - - - - Ahora vamos a modificar el archivo index.php para usar el setup.php: - - - - Editando /web/www.example.com/docs/guestbook/index.php - -assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - Ahora usted vera que es completamente simple crear una instancia de - Smarty, solo use Smarty_GuestBook, que automáticamente inicializa todo - para nuestra aplicación. - - - - - - - - diff --git a/trunk/docs/es/language-defs.ent b/trunk/docs/es/language-defs.ent deleted file mode 100644 index 4ce1da18..00000000 --- a/trunk/docs/es/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/trunk/docs/es/language-snippets.ent b/trunk/docs/es/language-snippets.ent deleted file mode 100644 index ecc96438..00000000 --- a/trunk/docs/es/language-snippets.ent +++ /dev/null @@ -1,23 +0,0 @@ - - - - - Nota Tecnica - - El parametro merge es la llave respectiva del arreglo, asi si - usted asocia dos arreglos indexados numericamente, estos se sobre escriben uno al otro o - tener como resultado llaves no-secuenciales. Este es diferente a la funcion array_merge() de PHP - la cual limpia las llaves numericas y las vuelve a renumerar. - -'> - - - Como tercer parametro opcional, usted puede pasar compile_id. - Este en el caso que usted quira compilar diferentes versiones del mismo Tempalte, - tal como tener separadas varios Templates compilados de diferentes lenguajes. - Otro uso para compile_id es cuando usted usa mas de un $template_dir pero solo un $compile_dir. - Ponga separado compile_id por cada $template_dir, de otra manera - los tempate con el mismo nombre se sobre escibiran uno sobre otro. - Uste puede poner también la variable $compile_id - una vez en lugar de pasar esta por cada llamada a la función. -'> diff --git a/trunk/docs/es/livedocs.ent b/trunk/docs/es/livedocs.ent deleted file mode 100755 index d30f4dca..00000000 --- a/trunk/docs/es/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - -'> -'> - - diff --git a/trunk/docs/es/make_chm_index.html b/trunk/docs/es/make_chm_index.html deleted file mode 100755 index ff3344fc..00000000 --- a/trunk/docs/es/make_chm_index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - Manual de Smarty - - - - - - - -

      - -

      -
      -

      Smarty Manual

      -
      Monte Ohrt
      -
      Andrei Zmievski
      -
      -

      This file was generated: [GENTIME]
      -Ir a http://smarty.php.net/download-docs.php - para obtener la version actual.

      - -
      - -
      - - diff --git a/trunk/docs/es/preface.xml b/trunk/docs/es/preface.xml deleted file mode 100644 index 8a98c3c1..00000000 --- a/trunk/docs/es/preface.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - Prólogo - - Esta es indudablemente una de las preguntas que mas se hacen en las listas - de correo de PHP: Como hacer mis scripts de PHP independientes del diseño?. - Mientras PHP se encarga de como "incrustar scripts en lenguaje HTML", - después de escribir los proyectos que mezclan PHP y HTML libremente, - esto trae como consecuencia la idea de separar la forma y el contenido, - muy buena idea[TM]. En adición, en muchas compañias la - interpretación de esquema es diseñador y programador por separado. - Por consiguiente, la busqueda trae como solución una plantilla(template). - - - Por ejemplo en nuestra compañia, el desarrollo de una aplicación es - como sigue: Después de tener la documentación necesaria, el - diseñador de web diseña el prototipo de la interfaz y la entrega al - programador. El programador implementa las reglas de negocio en PHP y usa el - prototipo para crear el "esqueleto" de la plantilla. - El proyeto esta en manos de la persona responsable del HTML designer/web page - que produzca la plantilla para su gloria completa. El proyecto debe ir y regresar - entre programación/HTML varias veces. De esa manera, es importante para - tener un buen suporte de templates porque los programadores no quieren hacer nada - con HTML ni quieren diseño HTML al rededor del codigo PHP. - Los diseñadores precisan de soporte para archivos de configuración, bloques - dinámicos y otras interfaces usadas, mas ellos no quieren ocuparse con las - compejidades del lenguaje de programación PHP. - - - Buscando, actualmente existen muchas soluciones de templates disponibles para - PHP, la mayor parte de ellos les provee de una forma rudimentaria de - sustitución de variables dentro del template y hace una forma limitada - de la funcionalidad dinámica del bloque. - Pero nuestras necesidades requieren mas que eso. - Porque no queremos programadores que no quieran tener trato con HTML del todo, - pero esto puede ser casi inevitable. - Por ejemplo, si un diseñador quiere alternar colores de fondo sobre bloques - dinámicos, esto tuvo que trabajarse con el programador anticipadamente. - Nosotros necesitamos también que los diseñadores esten capacitados para - usar archivos de configuración, y colocar variables de ellos dentro de - los templates. La lista continua. - - - Nosotros empezamos escribiendo por fuera una especulación para un - motor de plantillas(templates) atrasado de 1999. - Después de terminar la especulación, comenzamos a trabajar - un motor de plantillas escrito en C que esperanzadoramente fue aceptado - para ser incorporado con PHP. - No solamente nos encontramos con algunas complicadas barreras tecnicas, - si no también hubo acalorados debates sobre lo que exactamente - debia de hacer o no un motor de plantillas. - De esta experiencia, decidimos que un motor de platillas devería - ser escrito en PHP como una clase, para que cualquiera lo use de la misma - forma como ellos ven. - Así nosotros escribimos un motor que es SmartTemplate - nunca volvio a existir(nota: esa clase nunca fue - enviada al público). Esta era una clase que ralizaba casi todo lo que nosotros - necesitabamos: sustitución de variables regulares, soporte incluso - de otras plantillas, integración con archivos de configuración, - incrustación de código PHP, funcionalidades 'if' limitada y muchos - mas bloques dinámicos robustos que podrían ser anidados muchas veces. - Todo esto con expresiones regulares y el código producido seria mejor, como - diriamos nosotros, impenetrable. - Eso era también notoriamente lento en grandes aplicaciones por todas - las interpretaciones y expresiones regulares trabajando en cada - requisición. - El mayor problema del punto de vista de un programador era todo el trabajo - necesario en el procesamiento del scripts PHP y procesamiento de bloques - dinámicos de la plantilla. Como hacemos eso facilmente? - - - Entonces se origino la visión de que finalmente se convirtiera en - Smarty. Nosotros sabemos que rápido es el código PHP sin las cabeceras - y la interpretación de plantillas(templates). - También sabemos que meticuloso y arrogante es el lenguaje PHP su poder - debe ser aceptable para un diseñador, y este podría ser enmascarado con - una simples sintaxis de plantillas(templates). - Entonces que pasara si nosotros convinamos las dos fuerzas? - De esta manera, nacio Smarty... - - - - diff --git a/trunk/docs/es/programmers/advanced-features.xml b/trunk/docs/es/programmers/advanced-features.xml deleted file mode 100644 index d0d3902a..00000000 --- a/trunk/docs/es/programmers/advanced-features.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - Caracteristicas Avanzadas -&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/trunk/docs/es/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/es/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 75a1552d..00000000 --- a/trunk/docs/es/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - Objetos - - El Smarty permite acceso a objetos de PHP a través de sus templates. - Hay dos formas de accesarlos. Una forma es - registrando objetos para el - template, entonces acceselos mediante sintaxis similar a las funciones - habituales. La otra es asignar objetos al - template y accesarlos como si fueran una variable asignada. El primer método - tiene una sintaxis de template mucho mas agradable. Y también mas segura, a - medida que un objeto registrado puede ser reescrito a ciertos métodos y - propiedades. Sin embargo tanto, un objeto registrado - no puede ser puesto en loop o ser asignado en arreglos de objetos, - etc. El método que usted escoja sera determinado por sus necesidades, pero - utilice el primero método si es posible para mantener un minimo de sintaxis - en el template. - - - Si $security esta habilitada, - ninguno de los dos métodos privados o funciones pueden ser accesados - (comenzando con "_"). Si un metodo y propiedades de un mismo nombre existe, - el método será usado. - - - Usted puede restringir los métodos y propiedades que pueden ser accesados - listandolos en un arreglo como el tercer parámetro de registro. - - - Por default, los parámetros pasados a los objetos a a través de los - templates son pasados de la misma forma en que las - funciones de costumbre - los obtienen. Un arreglo asociativo es pasado como el primer parámetro, - y el objeto smarty como el segundo. Si usted quiere que los parámetros - pasados uno de cada vez por cada argumento pasen como parámetros de un - objeto tradicional, defina el cuarto parámetro de registro en falso. - - - El quinto parámetro opcional solo tiene efecto con - format siendo true - y conteniendo una lista de métodos de ob que seran tratados - como bloques. Esto significa que estos métodos tienen una - etiqueta de cierre en el template - ({foobar->meth2}...{/foobar->meth2}) y - los parámetros para los métodos tienen la misma sinopsis como - los parámetros de block-function-plugins: - Ellos reciben 4 parámetros - $params, - $content, - &$smarty y - &$repeat también se comportan como - block-function-plugins. - - - usando un objeto registrado o atribuido - -register_object("foobar",$myobj); -// Si usted quiere restringir acceso a ciertos metodos o propriedades, listelos -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// Si usted quiere usar el formato de parámetro del objeto tradicional, pase un booleano en false -$smarty->register_object("foobar",$myobj,null,false); - -// también puede asignar ojetos. Posible cuando se asignan por referencia. -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display("index.tpl"); -?> -]]> - - - y como debera accesar a su objeto en index.tpl - - -meth1 p1="foo" p2=$bar} - -{* usted también puede asignar la salida *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output} - -{* accesando a nuestro objeto asignado *} -{$myobj->meth1("foo",$bar)} -]]> - - - - diff --git a/trunk/docs/es/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/es/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 3882ed8f..00000000 --- a/trunk/docs/es/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - Filtros de salida - - Cuando el template es invocado a través de display() o fetch(), - su salida puede ser enviada a través de uno o mas filtros de salida. - Este es diferente a los postfilters porque los postfilters operan en - los templates compilados antes de ser salvados en disco, y los filtros - de salida operan en la salida del template cuando este es ejecutado. - - - - Los Filtros de Salida pueden ser - registrado o - cargados del directorio de plugins usando la función - load_filter() o - configurando a variable - $autoload_filters. - El Smarty pasara la salida como el primer argumento, y espera - que la función retorne el resultado del procesamiento. - - - Usando un filtro de salida de template - -register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// Ahora cualquier ocurrencia de una dirección de email en la salida -// del template tendra una simple protección contra spambots -?> -]]> - - - - diff --git a/trunk/docs/es/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/es/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 5aa444d3..00000000 --- a/trunk/docs/es/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - Postfilters - - Los postfilters de template son funciones de PHP con las cuales sus - templates son corridos inmediatamente después de ser compilados. - Los postfilters pueden ser - registrado o cargados del directorio de plugins usando la función - load_filter() o por la variable - de configuración - $autoload_filters. - El Smarty pasara el código fuente del template - compilado como el primer argumento, y espera que la función retorne el - resultado del procesamiento. - - - Usando un postfilter de template - -;\n\" ?>;\n".$tpl_source; -} - -// registra el postfilter -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> -]]> - - - Observe como hacer la compilacion para Smarty del template index.tpl: - - - - {* rest of template content... *} - ]]> - - - - diff --git a/trunk/docs/es/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/es/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 519d0594..00000000 --- a/trunk/docs/es/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - Prefilters - - Los prefilters de Template son funciones de PHP que corren sus - templates antes de ser compilados. Esto es bueno para procesar - por adelantado sus templates y remover comentarios no deseados, - vigilando a las personas que coloquen en sus templates, etc. - - - Los Prefilters pueden ser - registrado - o cargado del directorio de plugins usando la función - load_filter() o por la - configuración de la variable - $autoload_filters. - - - El Smarty pasara el código fuente del template como el primer argumento, - y espera que la función le retorne el código fuente del template - resultante. - - - usando un prefiltro prefilter de template - -/U","",$tpl_source); -} - -// registrar el prefilter -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> -]]> - - - Esto eliminara todos los comentarios en el codigo del template. - - - - diff --git a/trunk/docs/es/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/es/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index e4eb8dfc..00000000 --- a/trunk/docs/es/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - Función manipuladora de cache - - Como una alternativa al uso del mecanismo de caching por default basado - en archivo, usted puede especificar una función habitual de manipulación - de cache que será usada para leer, escribir y limpar archivos de cache. - - - Cree una función en su aplicación para que Smarty la use como un - manipulador de cache. Defina el nombre de la variable de clase en el - $cache_handler_func. - El Smarty ahora usara esta para manipular datos en el cache. El primer - parámetro es la acción, que puede ser uno de estos 'read', 'write' y - 'clear'. El segundo parámetro es el objeto de Smarty. El tercer parámetro - es el contenido que esta en el cache. Sobre 'write', el Smarty pasa el - contenido en cache en estos parámetros. sobre 'read', el Smarty espera - que su función acepte este parámetro por referencia y poblar estos con los - datos en cache. Sobre 'clear', el Smarty pasa una variable en cero desde - aquí que esta no es usada. El cuarto parámetro es el nombre del archivo de - template(necesario para leer/escribir). El quinto parámetro es la cache_id - (opcional). El sexto parámetro es la compile_id (opcional). - - - NOTA: El ultimo parámetro ($exp_time) fue adicionado en el Smarty-2.6.0. - - - ejemplo usando MySQL como una fuente de cache - -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; - - // create unique cache 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': - // read cache from 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': - // 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; - -} - -?> -]]> - - - - diff --git a/trunk/docs/es/programmers/advanced-features/template-resources.xml b/trunk/docs/es/programmers/advanced-features/template-resources.xml deleted file mode 100644 index ba3159d1..00000000 --- a/trunk/docs/es/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,257 +0,0 @@ - - - - Recursos - - Los templates pueden venir de una variedad de fuentes. Cuando usted - muestra un template con - display() o - fetch(), o incluye un template - dentro de otro template, usted suministra un tipo de recurso, seguido - por la ruta correcta y el nombre del template. - Si un recurso no es dado explicitamente el valor de - $default_resource_type - es asumido. - - - Templates desde $template_dir - - Los templates desde el - $template_dir no requieren - recursos del template, aunque usted puede usar el file: resource for - consistancy(recurso por consistencia). Justamente proporcionando - la ruta(path) del template que usted quiere usar en relación al - directorio root $template_dir. - - - Usando templates desde $template_dir - -display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // igual al de arriba -?> - -{* dentro del template de Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* igual al de arriba *} -]]> - - - - - Templates partiendo de cualquier directorio - - Los templates de fuera del - $template_dir requieren - el file: tipo de recurso del template, seguido por la ruta absoluta - y el nombre del template. - - - usando templates desde cualquier directorio - -display("file:/export/templates/index.tpl"); -$smarty->display("file:/path/to/my/templates/menu.tpl"); -?> -]]> - - - dentro del template Smarty: - - - - - - - - Rutas de archivos de Windows - - Si usted esta utilizando una maquina con windows, las rutas de - los archivos normalmente incluyen la letra del drive (C:) en el - comienzo del nombre de la ruta. Asegurarse de usar "file:" en la - ruta para evitar conflictos de nombres y poder obtener los - resultados desados. - - - usando templates con rutas de archivos de windows - -display("file:C:/export/templates/index.tpl"); -$smarty->display("file:F:/path/to/my/templates/menu.tpl"); -?> -]]> - - - dentro del template de Smarty - - - - - - - - - - Templates partiendo de otras fuentes - - Se pueden retomar templates usando cualquier fuente posible a la - que usted pueda acceder con PHP: base de datos, sockets, LDAP, etc. - Usted puede hacer esto escribiendo las funciones de plugin de recurso - y registrandolas con Smarty. - - - - Vea la sección resource plugins - para mayor informacion sobre las funciones que puede utilizar. - - - - - Nota Usted puede activar manualmente el recurso file - incrustado, pero no puede suministrar un recurso que busca templates a - partir del sistema de archivos de alguna otra forma registrando bajo - otro nombre de recurso. - - - - Usando recursos habituales - -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) -{ - // llame su base de datos para traer los datos y poblar el $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) -{ - // asume que todos los templates son seguros - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // no usar para templates -} - -// registrar el nombre del recurso "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// usando el recurso a partir del script PHP -$smarty->display("db:index.tpl"); -?> -]]> - - - usando el recurso dentro del template de Smarty - - - - - - - - - Función manipuladora de Template por default - - Usted puede especificar la función que será usada para devolver - el contenido del template dentro del evento del template no puede - ser retomado desde su recurso. Un uso distinto es para crear - templates que no existen "on-the-fly" (templates cuyo contenido - cambia mucho, bastante variable). - - - usando la función manipuladora de template por default - -_write_file($resource_name,$template_source); - return true; - } - } else { - // not a file - return false; - } -} - -// defina la función manipuladora por default -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - diff --git a/trunk/docs/es/programmers/api-functions.xml b/trunk/docs/es/programmers/api-functions.xml deleted file mode 100644 index 36d5cbc8..00000000 --- a/trunk/docs/es/programmers/api-functions.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - La clase Methods() de 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/trunk/docs/es/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/es/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index 714274a5..00000000 --- a/trunk/docs/es/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - append_by_ref - pasando valores por referencia - - - Descipción - - voidappend_by_ref - stringvarname - mixedvar - boolmerge - - - Este es usado para pasar valores al - templete por referencia. Si usted pasa una variable por referencia entonces - cambiara su valor, el valor asignado sufrira el cambio también. Para - objetos, append_by_ref() - también envia una copia en memoria del objeto adicionado. Vea el manual de - PHP en referenciando variables para una mejor explicación del asunto. - Si usted pasa el tercer parámetro en true, el valor será mezclado con el - arreglo en ves de ser adicionado. - - ¬e.parameter.merge; - - append_by_ref - -append_by_ref("Name", $myname); -$smarty->append_by_ref("Address", $address); -?> -]]> - - - - Ver también append() - y assign(). - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-append.xml b/trunk/docs/es/programmers/api-functions/api-append.xml deleted file mode 100644 index 7bdd6026..00000000 --- a/trunk/docs/es/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - append() - agregando elementos a una matriz asignada - - - Descripción - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - - Este es usado para adicionar un elemento en un arreglo asignado. - Si usted adiciona una cadena como valor, este se convertira en - un valor del arreglo y entonces lo adiciona. Usted puede - explicitamente pasar pares de nombres/valores, o arreglos asociativos - conteniendo los pares nombre/valor. Si usted pasa el tercer parámetro - opcional como true, el valor se únira al arreglo actual en vez de ser - adicionado. - - ¬e.parameter.merge; - - append - -append("Name", "Fred"); -$smarty->append("Address", $address); - -// passing an associative array -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - - - Ver también - append_by_ref(), - assign() - y - get_template_vars() - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/es/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index de0ec1e5..00000000 --- a/trunk/docs/es/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - assign_by_ref - pasando valores por referencia - - - Descripción - - voidassign_by_ref - stringvarname - mixedvar - - - Este es usado para asignar valores por - referencia al template en vez de hacer una copia. Vea el manual de PHP en - la parte sobre referencia de variables para una explicación mas detallada. - - - Nota Técnica - - Este es usado para asignar valores por referencia al template. - Si ested asigna una variable por referencia entonces cambiara - este valor, el valor asignado exprimentara el cambio también. - Para objetos, - assign_by_ref() también exite una copia del objetos asignado en memoria. - Vea el manual de PHP en refereciando variables para una mejor explicación. - - - - assign_by_ref() - -assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - - - - Ver también assign(), - clear_all_assign(), - append() - y {assign} - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-assign.xml b/trunk/docs/es/programmers/api-functions/api-assign.xml deleted file mode 100644 index 4517b72a..00000000 --- a/trunk/docs/es/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - assign() - pasando valores para el template - - - Descripción - - voidassign - mixedvar - - - voidassign - stringvarname - mixedvar - - - Usted puede explicitamente pasar pares de nombres/valores, o un arreglo - asociativo conteniendo el par de nombre/valor. - - - assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// pasando un arreglo asosiativo -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// pasando un row desde una base de datos (eg adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - - - Accesando estos en el template con - - - -]]> - - - - Para ver una asignacion de arreglos mas compleja - {foreach} - y - {section} - - - - Vea también assign_by_ref(), - get_template_vars(), - clear_assign(), - append() - y - {assign} - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/es/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index ec15505f..00000000 --- a/trunk/docs/es/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - clear_all_assign() - >limpia el valor de todas las variables asignadas - - - Descripción - - voidclear_all_assign - - - - clear_all_assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// will output above -print_r( $smarty->get_template_vars() ); - -// clear all assigned variables -$smarty->clear_all_assign(); - -// will output nothing -print_r( $smarty->get_template_vars() ); -?> -]]> - - - - Ver también - clear_assign(), - clear_config(), - assign() - y append() - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/es/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index c9db2fcb..00000000 --- a/trunk/docs/es/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - clear_all_cache - limpia completamente el cache del template - - - - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Como un parámetro opcional, usted puede proporcionar un periodo minimo - en segundos que el archivo de cache debe tener antes de ser anulado. - </para> - <example> - <title>clear_all_cache - -clear_all_cache(); -?> -]]> - - - - Ver también - clear_cache(), - is_cached() - y - caching - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-clear-assign.xml b/trunk/docs/es/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index a6944f36..00000000 --- a/trunk/docs/es/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - clear_assign() - limpia el valor de una variable asignada - - - Descripción - - voidclear_assign - mixedvar - - - Este puede ser un valor simple, o un arreglo de valores. - - - clear_assign() - -clear_assign('Name'); - -// clear multiple variables -$smarty->clear_assign(array('Name', 'Address', 'Zip')); -?> -]]> - - - - Ver también - clear_all_assign(), - clear_config(), - get_template_vars(), - assign() - y append() - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-clear-cache.xml b/trunk/docs/es/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index b6fa5292..00000000 --- a/trunk/docs/es/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - clear_cache() - Esto limpia el cache de un template especifico - - - Descripción - - voidclear_cache - stringtemplate - stringcache_id - stringcompile_id - intexpire_time - - - Si usted tiene multiples caches - en este archivo, usted puede limpiar un cache especifico proporcionando el - cache_id como segundo parámetro Usted también puede pasar - el $compile_id - como un tercer parámetro. Usted puede "agrupar" - templates conjuntamente de esta manera estos pueden ser removidos como un grupo. - Vea el caching section para mayor información. - Como un cuarto parámetro opcional, usted puede proporcionar un periodo - minimo en segundos que el archivo de cache debe tener antes de ser anulado. - - - clear_cache() - -clear_cache('index.tpl'); - -// clear the cache for a particular cache id in an multiple-cache template -$smarty->clear_cache('index.tpl', 'CACHEID'); -?> -]]> - - - - Ver también - clear_all_cache() - y - caching. - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/es/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 14cc0060..00000000 --- a/trunk/docs/es/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - clear_compiled_tpl() - Esto limpia la vesion compilada del recurso de un template especifico - - - Descripción - - voidclear_compiled_tpl - stringtpl_file - stringcompile_id - intexp_time - - - Esto limpia la versión compilada del recurso del template especificado, - o todos los archivos de templates compilados si no fueron especificados. - si usted pasa $compile_id solo - sera compilado este template especificado - $compile_id es limpiado. - Si usted lo pasa con ex_time, entonces solo compilara los templates - anteriores al exp_time segundo seran limpiados, por default todos los - templates son compilados y limpiados independientemente de su tiempo de vida. - Esta función es solo para uso avanzado, normalmente no es necesaria. - - - clear_compiled_tpl() - -clear_compiled_tpl("index.tpl"); - -// clear entire compile directory -$smarty->clear_compiled_tpl(); -?> -]]> - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-clear-config.xml b/trunk/docs/es/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index b47914fe..00000000 --- a/trunk/docs/es/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - clear_config() - Esto limpia todas las variables de configuración - - - Descripción - - voidclear_config - stringvar - - - Esto limpia todas las variables de - configuración asignadas. - Si es proporcionado el nombre de una variable, solo esa variable es limpiada. - - - clear_config() - -clear_config(); - -// clear one variable -$smarty->clear_config('foobar'); -?> -]]> - - - - Ver también - get_config_vars(), - config variables, - config files, - {config_load}, - config_load() - y - clear_assign() - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-config-load.xml b/trunk/docs/es/programmers/api-functions/api-config-load.xml deleted file mode 100644 index a9b548bc..00000000 --- a/trunk/docs/es/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - config_load() - Carga el archivo de configuración y lo asigna al template - - - Descripción - - voidconfig_load - stringfile - stringsection - - - Esto carga el archivo de configuración de - datos y lo asigna al template. Esto funciona idéntico a la función - {config_load}. - - - Nota Técnica - - A partir de Smarty 2.4.0, las variables de template asignadas son - mantenidas a través de fetch() y - display(). Las variables de - configuración cargadas de config_load() son siempre de alcance global. - Los archivos de configuracion también son compilados para - execución rapida, y respetar el - force_compile y - compile_check de - configuración. - - - - config_load() - -config_load('my.conf'); - -// load a section -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - - - - Ver también - {config_load}, - get_config_vars(), - clear_config(), - y - config variables - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-display.xml b/trunk/docs/es/programmers/api-functions/api-display.xml deleted file mode 100644 index 39d03637..00000000 --- a/trunk/docs/es/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - display() - Despliega el Template - - - Descripción - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - Este despliega el template diferente de fetch(). Cargando un tipo valido de path - template resource. - Como un segundo parámetro opcional, usted puede pasar un - identificador de cache. - Vea el caching section para mayor - información. - - ¶meter.compileid; - - display() - -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 la sintaxis template resources - para mostrar archivos fuera del directorio - $template_dir. - - - Ejemplos de recursos de la función display - -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'); -?> -]]> - - - - Ver también fetch() y - template_exists(). - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-fetch.xml b/trunk/docs/es/programmers/api-functions/api-fetch.xml deleted file mode 100644 index b6477e9a..00000000 --- a/trunk/docs/es/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - fetch() - Retorna la salida del template - - - Descripción - - stringfetch - stringtemplate - stringcache_id - string$compile_id - - - Este retorna la salida del template en vez de - desplegarla. - Proporcionando un tipo y path valido - template resource. - Como un segundo parámetro opcional, usted puede pasar el - identificador de cache. - vea el caching section para - mayor información. - - ¶meter.compileid; - - - - fetch() - -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; -?> -]]> - - - - - - Usando fetch() y enviando a un e-mail - - El template email_body.tpl - - - - - - El template email_disclaimer.tpl usando el modificador - {textformat}. - - - - - - y el script de PHP usando la función - mail() - - -getRow($sql); -$smarty->assign('contact', $contact); - -mail($contact['email'], 'Subject', $smarty->fetch('email_body.tpl')); - -?> -]]> - - - - - - Ver también - {fetch} - display(), - {eval}, - y - template_exists(). - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/es/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index c01039b9..00000000 --- a/trunk/docs/es/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - get_config_vars() - retorna el valor asignado a la variable de configuración - - - Descripción - - arrayget_config_vars - stringvarname - - - Si no tiene un parámetro asignado, un arreglo de todas las - variables - de los archivos de configuración es retornado. - - - get_config_vars() - -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); -?> -]]> - - - - Ver también - clear_config(), - {config_load}, - config_load() - y - get_template_vars(). - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/es/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index bd4e962e..00000000 --- a/trunk/docs/es/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - get_registered_object() - Este retorna una referencia para un objeto registrado. - - - Descripción - - arrayget_registered_object - stringobject_name - - - Este es útil dentro de una función habitual cuando usted - necesita acesar directamente a un - objeto registrado. - Ver objects para mas - información; - - - get_registered_object() - -get_registered_object($params['object']); - // use $obj_ref is now a reference to the object - } -} -?> -]]> - - - - Ver también - register_object(), - unregister_object() - y - objects section - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/es/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 3020bc27..00000000 --- a/trunk/docs/es/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - get_template_vars() - Retorna el valor asignado a una variable - - - descripción - - arrayget_template_vars - stringvarname - - - Si no tiene un parámetro dado, un arreglo de todas las variables - asignadas es retornado. - - - get_template_vars - -get_template_vars('foo'); - -// get all assigned template vars -$tpl_vars = $smarty->get_template_vars(); - -// take a look at them -print_r($tpl_vars); -?> -]]> - - - - Ver también assign(), - {assign}, - assign_by_ref(), - append(), - clear_assign(), - clear_all_assign() - y - get_config_vars() - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-is-cached.xml b/trunk/docs/es/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 48c86ba1..00000000 --- a/trunk/docs/es/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - is_cached() - Retorna true si hay cache valido para ese template - - - Descripción - - boolis_cached - stringtemplate - stringcache_id - stringcompile_id - - - Esto solamente funciona si - caching está asignado a true. - ver también caching section. - - - is_cached() - -caching = true; - -if(!$smarty->is_cached("index.tpl")) { -// do database calls, assign vars here -} - -$smarty->display("index.tpl"); -?> -]]> - - - - Usted también puede pasar un identificador de $cache como un - segundo parámetro opcional en el caso que usted quiera - multiples caches - para el template dado. - - - Usted puede proporcionar el identidicador como un tercer parametro - opcional. Si usted omite ese parametro la persistencia del - $compile_id es usada. - - - Si usted no quiere pasar el - identificador de cache - solamente quiere pasar el compile id debe pasar null - como el identidficador de cache. - - - is_cached() con templates con multiple-cache - -caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // do database calls, assign vars here -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> - - - - - - Nota técnica - - Si is_cached retorna true el carga actualmente - la salida del cache y lo guarda internamente. cualquier subsecuente - llama a display() o - fetch() y retorna este internamente - guardando la salida y no intenta volver a cargar el archivo del cache. - Esto previene una condicion de la carrera que puede ocurrir cuando un - segundo proceso limpie el cache entre las llamadas a is_cached mostradas - en el ejemplo de arriba. Esto significa tambien llamar al - clear_cache() y otros cambios - en el cache-settings que no tiene efecto despues que - is_cached retorna true. - - - - Ver también - clear_cache(), - clear_all_cache(), - y - caching section. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-load-filter.xml b/trunk/docs/es/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index fd154e26..00000000 --- a/trunk/docs/es/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - load_filter() - Carga un filtro de plugin - - - Descripción - - voidload_filter - stringtype - stringname - - - El primer argumento especifíca el tipo de filtro a cargar y puede - ser uno de los siguientes: 'pre', 'post', o 'output'. El segundo - argumento especifíca el nombre del filtro del plugin, por ejemplo, - 'trim'. - - - loading filter plugins - -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' -?> -]]> - - - - Ver también - register_prefilter(), - register_postfilter(), - register_outputfilter(), - $autoload_filters - y - Advanced features. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-block.xml b/trunk/docs/es/programmers/api-functions/api-register-block.xml deleted file mode 100644 index 1eaa7ebc..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - register_block() - Registra dinamicamente bloques de funciones de plugins - - - Descripción - - voidregister_block - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - Use este para registrar dinámicamente bloques de funciones de - plugins. Pase el bloque de nombres de función, seguido por una - llamada de función PHP que implemente esto. - - - La llamada de una funcion-php impl - puede ser cualquier (a) cadena conteniendo el nombre de la - función o (b) un arreglo con el formato - array(&$object, $method) con - &$object siendo la referencia a un - objeto y $method siendo una cadena - conteniendo el nombre del método o (c) un arreglo con el - formato array(&$class, $method) con - $class siendo un nombre de clase y - $method siendo un método de esta clase. - - - cacheable y cache_attrs - pueden ser omitidos en la mayoria de los casos. Vea Controlando modos de salida de cache de los - plugins para saber como usar las propiedades. - - - register_block() - -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; - } -} -?> -]]> - - - Donde el template es: - - - - - - - Ver también - unregister_block() - y - Plugin Block Functions. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/es/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 357d29a2..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - register_compiler_function - Registra dinamicamente un plugin de una funcion compiladora - - - Descripción - - boolregister_compiler_function - stringname - mixedimpl - boolcacheable - - - Pase el nombre de la - función compiladora, - seguido por la función PHP que implemente esto. - - - La llamada a la funcion-php impl puede ser - - - - - a una cadena conteniendo el nombre de la función - - - un arreglo con la forma array(&$object, $method) con - &$object siendo una referencia para un objeto y - $method siendo una cadena conteniendo el nombre del método - - - un arreglo con la forma - array(&$class, $method) con - $class siendo el nombre de una clase y - $method siendo el método de esta clase. - - - - - cacheable puede ser omitido en la mayoria de los casos. - Vea Controlando modos de Salida de - Cache de los Plugins para obtener mayor información. - - -Ver también unregister_compiler_function() -y Plugin Compiler Functions. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-function.xml b/trunk/docs/es/programmers/api-functions/api-register-function.xml deleted file mode 100644 index a8c74169..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - register_function() - Registra dinamicamente un plugin de función para un template - - - Descripción - - voidregister_function - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - Pase en el template el nombre de la función, seguido - por el nombre de la función PHP que implementa esto. - - - La llamada a la funcion-php impl puede ser: - - - - - a una cadena conteniendo el nombre de la función o - - - - un arreglo con la forma - array(&$object, $method) con - &$object siendo una referencia para un objeto y - $method siendo una cadena conteniendo el nombre del método - - - - un arreglo con la forma array(&$class, $method) - con $class siendo el nombre de una clase y - $method siendo un metodo de esa clase. - - - - - - cacheable y cache_attrs pueden ser omitidos - en la mayoria de los caasos. - Vea Controlando modos de Salida Cache de - los Plugins para obtener mayores informes. - - - 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()); - } -} -?> -]]> - - - y en el template - - - - - - - -Ver también unregister_function() -y Plugin functions. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-modifier.xml b/trunk/docs/es/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index a88f3133..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - register_modifier() - mofidica dinámicamente plugins registrados - - - Descripción - - voidregister_modifier - stringname - mixedimpl - - - Pase en el template el nombre del modificador, seguido de la - función PHP que implemente esto. - - - La llamada de la funcion-php impl puede ser - - - - una cadena conteniendo el nombre de la función - - - un arreglo con la forma array(&$object, $method) con - &$object siendo una referencia para un objeto y - $method siendo una cadena conteniendo el nombre de un metodo - - - - un arreglo con la forma - array(&$class, $method) con - $class siendo el nombre de una clase y - $method siendo un metodo de esta clase. - - - - - register_modifier() - -register_modifier('sslash', 'stripslashes'); - -?> -]]> - -template - - -]]> - - - - - Ver También - unregister_modifier(), - register_function(), - modifiers, - Extending Smarty with plugins - y - Creating Plugin modifiers, - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-object.xml b/trunk/docs/es/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 5c91f672..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - register_object() - Registr un objeto para usar en el template - - - Descripción - - voidregister_object - stringobject_name - objectobject - arrayallowed_methods_properties - booleanformat - arrayblock_methods - - - Vea object section para ejemplos. - - - Vea también - get_registered_object(), - y - unregister_object(). - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/es/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 9ce52601..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - register_outputfilter() - Registra dinamicamente filtros de salida - - - Descripción - - voidregister_outputfilter - mixedfunction - - - Use este para registrar dinámicamente filtros de salida para - operaciones en la salida - del template antes de mostrarlo. - Vea Filtros de - Salida de Templates para mayores informes de como - configurar una función de filtro de salida. - - - La llamada de la funcion-php function puede ser - - - - - una cadena conteniendo un nombre de función - - - - un arreglo con la forma - array(&$object, $method) con - &$object siendo referencia a un objeto y - $method siendo una cadena conteniendo el nombre de un metodo - - - - un arreglo con la forma - array(&$class, $method) con - $class siendo el nombre de la clase y - $method siendo un método de esta clase. - - - - -Vea también -unregister_outputfilter(), -register_prefilter(), -register_postfilter(), -load_filter(), -$autoload_filters -y -template output filters. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/es/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index ffff3e0f..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - register_postfilter() - Resgistr dinamicamente postfiltros - - - Descripción - - voidregister_postfilter - mixedfunction - - - Use esto para registrar dinámicamente postfiltros para - correr templates directos después de ser compilados. - Vea postfiltros - de template para mayores informes de como configurar - funciones de postfiltering. - - - La llamada de la funcion-php function puede ser: - - - - - una cadena conteniendo un nombre de función - - - - un arreglo con la forma - array(&$object, $method) con - &$object siendo una referencia para un - objeto y $method siendo una cadena conteniendo - el nombre de un método - - - - un arreglo con la forma - array(&$class, $method) con - $class siendo un nombre de clase y - $method siendo un método de esta clase. - - - - - Vea También - unregister_postfilter(), - register_prefilter(), - register_ouputfilter(), - load_filter(), - $autoload_filters - y template output filters. - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/es/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index fc3e2000..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - register_prefilter() - Registra dinamicamente prefiltros - - - Descripción - - voidregister_prefilter - mixedfunction - - - Use esto para registrar - prefiltros - dinámicamente para correr templates antes de que estos sean compilados. - Vea template prefilters - para mayores informes de como configurar una función de prefiltering. - - - La llamada de la funcion-php function puede ser: - - - - - una cadena conteniendo un nombre de función - - - - un arreglo con la forma - array(&$object, $method) con - &$object siendo una referencia para un - objeto y $method siendo una cadena conteniendo - el nombre de un método - - - - un arreglo con la forma - array(&$class, $method) con - $class siendo un nombre de clase y - $method siendo un método de esta clase. - - - - - - Ver también - unregister_prefilter(), - register_postfilter(), - register_ouputfilter(), - load_filter(), - $autoload_filters - y template output filters. - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-register-resource.xml b/trunk/docs/es/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 84727320..00000000 --- a/trunk/docs/es/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - register_resource - Registra dinamicamente un plugin de recurso - - - Descripción - - voidregister_resource - stringname - arrayresource_funcs - - - Use esto para registrar dinámicamente un - recurso de plugin con Smarty. - Pase el nombre o el recurso y o el arreglo de funciones que implementa - esto. Vea template resources - para mayor información de como configurar una función para mandar llamar - templates. - - - Nota técnica - - El nombre del recurso debe tener al menos dos caracteres de largo. - Un nombre de recurso de un carácter será ignorado y usado como parte - del path del archivo como, $smarty->display('c:/path/to/index.tpl'); - - - - La php-funcion-array resource_funcs debe tener - 4 o 5 elementos. Con 4 elementos los elementos son las llamadas para - las respectivas funciones de recurso "source", "timestamp", "secure" - y "trusted". Con 5 elementos el primer elemento - tiene que ser un objeto por referencia o un nombre de clase del objeto - o una clase implementando el recurso y los 4 elementos siguientes tiene - que ser los nombres de los métodos implementando "source", "timestamp", - "secure" y "trusted". - - - register_resource - -register_resource('db', array('db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted')); -?> -]]> - - - - Ver también unregister_resource() - y template resources - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-template-exists.xml b/trunk/docs/es/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index cc2c07c4..00000000 --- a/trunk/docs/es/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - template_exists() - Verifica si el template especificado existe - - - Descripción - - booltemplate_exists - stringtemplate - - - Este puede aceptar un path para el template en el filesystem o un recurso de - cadena especificando el template. - - - template_exists() - - Este ejemplo utiliza $_GET['page'] este incluye el contenido del template. Si el - template no existe entonces un error de pagina es deplegado en su lugar. - - - El page_container.tpl - - - -{$title} - -{include file='page_top.tpl'} - -{* include middle content page *} -{include file=$page_mid} - -{include file='page_footer.tpl'} - -]]> - - - y el script PHP - - -template_exists($mid_template) ){ - $mid_template = 'page_not_found.inc.tpl'; -} -$smarty->assign('page_mid', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - - - - Ver también - display(), - fetch(), - {include} - y {insert} - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-trigger-error.xml b/trunk/docs/es/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 9865b3cc..00000000 --- a/trunk/docs/es/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - trigger_error - Despliega un mensaje de error - - - Descripción - - voidtrigger_error - stringerror_msg - intlevel - - - Esta función puede ser usada para la salida de un mensaje de error - usando Smarty. El parámetro level es uno de - los valores usados para la función de php - trigger_error(), - ex.: E_USER_NOTICE, E_USER_WARNING, etc. - Por default es E_USER_WARNING. - - - Ver también - $error_reporting, - debugging - y - Troubleshooting. - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-block.xml b/trunk/docs/es/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 764dba96..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - unregister_block - Des-registra dinamicamente un plugin de bloque de funciones - - - Descripción - - voidunregister_block - stringname - - - Use esto para des-registrar dinámicamente un - bloque de funciones de plugin. - Pase en el bloque el nombre de la función. - - - Ver también - register_block() - y - Block Functions Plugins. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/es/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 5c28b7ee..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - unregister_compiler_function() - des-registrar dinámicamente una función de compilación - - - Descripción - - voidunregister_compiler_function - stringname - - - Pase el nombre de la función compiladora. - - - Ver también register_compiler_function() - y Plugin Compiler Functions. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-function.xml b/trunk/docs/es/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 08c5408b..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - unregister_function() - des-registrar dinámicamente una función de plugin del template - - - Descripción - - voidunregister_function - stringname - - - Pase en el template el nombre de la función. - - - unregister_function() - -unregister_function("fetch"); -?> -]]> - - - - Ver también register_function() . - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/es/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index ff5234ba..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - unregister_modifier() - des-registrar dinámicamente un modificador de plugin - - - Descripción - - voidunregister_modifier - stringname - - - Pase en el template el nombre del modificador. - - - unregister_modifier() - -unregister_modifier("strip_tags"); -?> -]]> - - - - Ver también register_modifier() - y Plugin modifiers, - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-object.xml b/trunk/docs/es/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index db79b1be..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - unregister_object() - Des-registra dinamicamente un objeto - - - Descripción - - voidunregister_object - stringobject_name - - - Ver también register_object() - y objects section - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/es/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 419dae0a..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - unregister_outputfilter() - des-registra dinámicamente un filtro de salida - - - Descripción - - voidunregister_outputfilter - stringfunction_name - - - Use este para des-registrar dinámicamente un filtro de salida. - - - Ver también register_outputfilter() - y template output filters. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/es/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index bb3596d9..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - unregister_postfilter() - Des-registra dinamicamente un postfiltro - - - Descripción - - voidunregister_postfilter - stringfunction_name - - - Ver también - register_postfilter() - y template post filters. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/es/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index d38f2e21..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - unregister_prefilter() - Des-registra dinamicamente un prefiltro - - - Descripción - - voidunregister_prefilter - stringfunction_name - - - Ver también - register_prefilter() - y pre filters. - - - - - diff --git a/trunk/docs/es/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/es/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index ffc12eb2..00000000 --- a/trunk/docs/es/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - unregister_resource() - Des-registra dinamicamente un plugin de recurso - - - Descripción - - voidunregister_resource - stringname - - - Pase en el parámetro el nombre del recurso. - - - unregister_resource() - -unregister_resource("db"); -?> -]]> - - - - Ver también - register_resource() - y - template resources - - - - - diff --git a/trunk/docs/es/programmers/api-variables.xml b/trunk/docs/es/programmers/api-variables.xml deleted file mode 100644 index 7851731f..00000000 --- a/trunk/docs/es/programmers/api-variables.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - Clase Variables de 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/trunk/docs/es/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/es/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 1b31c3e2..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - $autoload_filters - - Si existe algun filtro que usted desea cargar en cada llamada de - template, usted puede especificar cual variable usar y el Smarty - ira automáticamente a cargarlos para usted. La variable es un - arreglo asociativo donde las llaves son tipos de filtro y los - valores son arreglos de nombres de filtros. - Por ejemplo: - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - - - - - Ver también - register_outputfilter(), - register_prefilter(), - register_postfilter() - y - load_filter() - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/es/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 7ecbf94c..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - $cache_dir - - Este es el nombre del directorio donde los caches del template - son almacenados. Por default es - "./cache", esto significa que - buscara el directorio de cache en el mismo directorio que ejecuta - el scripts PHP. - Este directorio debe ser regrabable por el - servidor web - (ver intalación). - Usted puede usar también su propia - función habitual - de mantenimiento de cache para manipular los archivos de cache, que - ignorará está configuración. - Ver tambien $use_sub_dirs. - - - - Nota Técnica - - Esta configuración debe ser cualquiera de estas dos, un path - relativo o absoluto. include_path no es usado para escribir archivos. - - - - Nota Técnica - - No es recomendado colocar este directorio bajo el directorio - document root del servidor web. - - - - Ver también - $caching, - $use_sub_dirs, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check - y Caching section. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/es/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 3a6c758b..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - $cache_handler_func - - Usted puede proporcionar una función por default para manipular - archivos de cache en vez de usar el metodo incrustado usando el - $cache_dir. - Para mas detalles vea la sección - - cache handler function section. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/es/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index 345edeb9..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - $cache_lifetime - - Este es la duración del tiempo en segundos que un cache de template - es valido. Una vez que este tiempo está expirado, el cache sera - regenerado. $caching debe ser asignado a "true" para $cache_lifetime - hasta tener algún propósito. Un valor de -1 forza el cache a nunca - expirar. Un valor de 0 forzara a que el cache sea siempre regenerado - (bueno solo para probar, el método mas eficiente para desabilitar cache - es asignar $caching = false.) - - - Si $force_compile - está habilitado, los archivos de cache serán regenerados todo el - tiempo, efectivamente desabilitando caching. Usted puede limpiar - todos los archivos de cache con la función - clear_all_cache(), - o archivos individuales de cache (o grupos) con la función - clear_cache(). - - - Nota Técnica - - Si usted quisiera dar a ciertos templates su propio tiempo de - vida de cache, usted puede hacer esto asignando - $caching = 2, entonces - determina $cache_lifetime a un único valor justo antes de llamar - display() - o fetch(). - - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/es/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 1b7a2f99..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - $cache_modified_check - - Si es asignado true, Smarty respetara el If-Modified-Since - encabezado enviado para el cliente. Si el timestamp del - archivo de cache no fue alterado desde la ultima visita, - entonces un encabezado "304 Not Modified" sera enviado en - vez del contenido. - Esto funciona solamente en archivos de cache sin etiquetas - {insert}. - - - Ver también - $caching, - $cache_lifetime, - $cache_handler_func, - y - Caching section. - - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-caching.xml b/trunk/docs/es/programmers/api-variables/variable-caching.xml deleted file mode 100644 index f036f9b8..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - $caching - - Este informa al Smarty si hay o no salida de cache para el template - en el $cache_dir. - Por default tiene asignado 0, o desabilitado. Si su template genera - contenido redundante, es necesario ligar el $caching. Esto tendra un - benefico significativo en el rendimiento. Usted puede tener - multiples caches para el mismo template. - Un valor de 1 o 2 caching habilitados. - 1 anuncia a Smarty para usar la variable actual - $cache_lifetime hasta - determinar si el cache expiro. Un valor 2 anuncia a Smarty para usar - el valor $cache_lifetime - al tiempo en que le cache fue generado. - De esta manera usted puede determinar el $cache_lifetime inmediatamente - antes de buscar el template para tener - el control cuando este cache en particular expira. - Vea también is_cached(). - - - Si $compile_check está habilitado, - el contenido del cache se regenerara si alguno de los dos templates o archivos - de configuración que son parte de este cache estuviera modificado. - Si $force_compile está habilitado, - el contenido del cache siempre sera regenerado. - - - - Ver También - $cache_dir, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check -y Caching section. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-compile-check.xml b/trunk/docs/es/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 70d93a41..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - $compile_check - - En cada llamada de la aplicación PHP, Smarty prueba para ver si el - template actual fue modificado (diferentes time stamp) desde la - ultima compilación. Si este fue modificado, se recompilara el template. - Si el template no fue compilado, este ira a compilar de cualquier - manera esa configuración. Por default esta variable es determinada como - true. Una vez que la aplicación esta en producción (los templates no - seran modificados), el paso compile_check no es necesario. asegurese de - determinar $compile_check a "false" para un mejor funcionamiento. - Note que si usted modifica está para "false" y el archivo de template - está modificado, usted *no* vera los cambios desde el template hasta que - no sea recompilado. Si el caching - esta habilitado y compile_check está habilitado, entonces los archivos de - cache tienen que ser regenerados si el archivo de template es muy complejo - o el archivo de configuración fue actualizado. - vea $force_compile - o clear_compiled_tpl(). - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/es/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index e3cb19f8..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - $compile_dir - - Ese es el nombre del directorio donde los templates compilados - están localizados, Por default están en - "./templates_c" , esto - significa que lo buscara en el directorio de templates en el - mismo directorio que esta ejecutando el script php. - Este directorio debe tener permiso de - escritura para el servidor web - (ver la instalación). - también $use_sub_dirs. - - - - Nota Técnica - - Esa configuración debe ser un path relativo o un path - absoluto. include_path no se usa para escribir archivos. - - - - Nota Técnica - - No es recomendado colocar este directorio bajo el directorio - document root de su servidor web. - - - - Ver también $compile_id - y $use_sub_dirs. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-compile-id.xml b/trunk/docs/es/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index b1943fb4..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - $compile_id - - Identificador de compilación persistente. Como una alternativa - para pasar el mismo compile_id a cada llamada de función, usted - puede asignar este compile_id y este será usado implicitamente - después. - - - Con el compile_id usted puede trabajar con limitacion porque usted - no puede usar el mismo - $compile_dir - para diferentes - $template_dirs. - Si usted asigna distintos compile_id para cada template_dir entonces - Smarty puede hacer la compilacion de los templates por cada compile_id. - - - Si usted tiene por ejemplo un - prefilter - este localiza su template (es decir: traduce al lenguaje las dependencias por partes) - y lo compila, entonces usted debe usar el lenguaje actual como $compile_id - y usted obtendrá un conjunto de plantillas compiladas para cada idioma que usted utilice. - - - otro ejemplo puede ser si usa el mismo directorio para compilar - multiples dominios / multiples host virtuales. - - - $compile_id - -compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = 'path/to/shared_compile_dir'; - -?> -]]> - - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/es/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 92373c53..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $compiler_class - - Especifica el nombre del compilador de clases que Smarty usara - para compilar los templates. El default es 'Smarty_Compiler'. - Solo para usuarios avanzados. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/es/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index c768cac1..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - $config_booleanize - - Si es asignado true, los valores del archivo de configuración de - on/true/yes y off/false/no se convierten en valores booleanos - automáticamente. De esta forma usted puede usar los valores en un - template como: {if #foobar#} ... {/if}. Si foobar estuviera on, - true o yes, la condición {if} se ejecutara. true es el default. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-config-dir.xml b/trunk/docs/es/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 378a5986..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - $config_dir - - Este es el directorio usado para almacenar - archivos de configuración - usados en los templates. - El default es "./configs", - esto significa que lo buscara en el directorio de templates en - el mismo directorio que esta ejecutando el script php. - - - Nota Técnica - - No es recomendado colocar este directorio bajo el directorio - document root de su servidor web. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/es/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index 48fddf19..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $config_fix_newlines - - Si es asignado true, mac y dos newlines (\r y \r\n) en el archivo de - configuración seran convertidos a \n cuando estos fueran interpretados. - true es el defaut. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/es/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index af1bc757..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - $config_overwrite - - Si es asignado true, las variables leidas en el - archivo de configuración se - sobreescribiran unas a otras. De lo contrario, las variables seran - guardadas en un arreglo. Esto es útil si usted quiere almacenar - arreglos de datos en archivos de configuración, solamente lista - tiempos de cada elemento múltiplo. true por default. - - - Arreglo de variables de configuración - - Este ejemplo utiliza - {cycle} para - la salida a una tabla alternando colores por renglon rojo/verde/azul - con $config_overwrite = false. - - El archivo de configuración. - - - - - El template con ciclo - {section}. - - - - {section name=r loop=$rows} - - ....etc.... - - {/section} - -]]> - - - - Ver también - {config_load}, - config files, - get_config_vars(), - clear_config() - y - config_load(). - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/es/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 3a7b41d6..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $config_read_hidden - - Si es asignado true, esconde secciones (nombres de secciones comenzando con - un periodo) en el archivo de configuración - pueden ser leidos del template. Tipicamente desearia esto como false, de esta - forma usted puede almacenar datos sensibles en el archivo de configuración - como un parámetro de base de datos y sin preocuparse que el template los carge. - false es el default. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/es/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index beea73fa..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $debug_tpl - - Este es el nombre del archivo de template usado para el debug de la - consola. Por default, es nombrado debug.tpl y esta - localizado en el SMARTY_DIR. - - - Ver también - $debugging - y - Debugging console - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/es/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index 047a0bed..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - $debugging_ctrl - - Esto permite rutas alternativas para habilitar el debug. - NONE no significa que métodos alternativos son permitidos. - URL significa cuando la palabra SMARTY_DEBUG fue encontrada - en el QUERY_STRING, que el debug está habilitado para la - llamada del script. Si - $debugging es true, - ese valor es ignorado. - - - Ver también Debugging console. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-debugging.xml b/trunk/docs/es/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 8d8c4656..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - $debugging - - Este habilita el - debugging console. - La consola es una ventana de javascript que informa a usted - sobre los archivos del template incluidos y las variables - destinadas a la pagina del template actual. - - - Ver también - {debug}, - $debug_tpl, - y $debugging_ctrl - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/es/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index cdc7fdc1..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $default_modifiers - - Este es un arreglo de modificadores implicitamente aplicados para cada - variable en el template. Por Ejemplo, cada variable HTML-escape por - default, usa el arreglo('escape:"htmlall"'); Para hacer que las variables - excenten los modificadores por default, pase el modificador especial - "smarty" con un valor de parámetro "nodefaults" modificando esto, tal - como {$var|smarty:nodefaults}. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/es/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 84796368..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - $default_resource_type - - Este anuncia a Smarty el tipo de recurso a usar implicitamente. - El valor por default es 'file', significa que - $smarty->display('index.tpl'); y - $smarty->display('file:index.tpl'); son identicos en el significado. - Para mas detalles vea el capitulo resource. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/es/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 6d25ef7c..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $default_template_handler_func - - Esta función es llamada cuando un template no puede ser obtenido - desde su recurso. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/es/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index b8f3936e..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - $error_reporting - - Cuando este valor es asignado a non-null-value este valor es - usado como un nivel - error_reporting - dentro de display() y fetch(). - Cuando debugging es - habilitado este valor es ignorado y el error-level no es tocado. - - - Ver también - trigger_error(), - debugging - y - Troubleshooting. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-force-compile.xml b/trunk/docs/es/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 8f98e921..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $force_compile - - Este forza al Smarty a (re)compilar templates en cada llamada. - Esta configuración sobrescribe - $compile_check. - Por default este - es desabilitado. Es útil para el desarrollo y - debug. - Nunca debe ser usado en ambiente de producción. Si el - cache esta habilitado, - los archivo(s) de cache seran regenerados todo el tiempo. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/es/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index c97d3787..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - $left_delimiter - - Este es el delimitador izquierdo usado por el lenguaje de template. - El default es "{". - - - Ver también $right_delimiter - y escaping smarty parsing. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-php-handling.xml b/trunk/docs/es/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 43acb390..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - $php_handling - - Este informa al Smarty como manipular códigos PHP contenidos en los - templates. Hay cuatro posibles configuraciones, siendo el default - SMARTY_PHP_PASSTHRU. Observe que esto NO afectara los códigos php - dentro de las etiquetas - {php}{/php} en el template. - - - SMARTY_PHP_PASSTHRU - Smarty echos tags as-is. - SMARTY_PHP_QUOTE - Smarty abre comillas a las etiquetas - de entidades html. - SMARTY_PHP_REMOVE - Smarty borra las etiquetas del - template. - SMARTY_PHP_ALLOW - Smarty ejecuta las etiquetas como - código PHP. - - - - Incrustar codigo PHP dentro del template es sumamente desalentador. - Use custom functions - o modifiers en vez de eso. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/es/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 808c0b79..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - $plugins_dir - - Este es el directorio (o directorios) donde Smarty procurara ir - a buscar los plugins que sean necesarios. - El default es "plugins" - bajo el SMARTY_DIR. - Si usted proporciona un path relativo, Smarty procurara ir primero - bajo el SMARTY_DIR, - Entonces relativo para el cwd(current working directory), - Entonces relativo para cada entrada de su PHP include path. - Si $plugins_dir es un arreglo de directorios, Smarty buscara los - plugins para cada directorio de plugins en el orden en el que fueron - proporcionados. - - - Nota Técnica - - Para un mejor funcionamiento, no configure su plugins_dir para que - use el include path PHP. Use un path absoluto, o un path relativo - para SMARTY_DIR o el cwd (current working directory). - - - - multiple $plugins_dir - -plugins_dir = array( - 'plugins', // the default under SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/es/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 92dc9b31..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $request_use_auto_globals - - Especifica si el Smarty debe usar variables globales del php - $HTTP_*_VARS[] ($request_use_auto_globals=false valor por default) - o $_*[] ($request_use_auto_globals=true). Esto afecta a los templates - que hacen uso de - {$smarty.request.*}, {$smarty.get.*} etc. . - Atención: Si usted asigna $request_use_auto_globals a true, - variable.request.vars.order - no tendran efecto los valores de configuracion de php - gpc_order sera usados. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/es/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 119d0942..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - $request_vars_order - - El orden en el cual las variables requeridas seran registradas, - similar al variables_order en el php.ini - - - Ver también $smarty.request - y $request_use_auto_globals. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/es/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index a0353f32..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - $right_delimiter - - Este es el delimitador derecho usado por el lenguaje de template. - El default es "}". - - - ver también $left_delimiter - y escaping smarty parsing. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/es/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 2cb70f1b..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - $secure_dir - - Este es un arreglo de todos los directorios locales que son - considerados seguros. - {include} y - {fetch} usan estos (directorios) - cuando security está habilitada. - - - Ver también - Security settings, - y $trusted_dir. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-security-settings.xml b/trunk/docs/es/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index 6fb9284e..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - $security_settings - - Estas son usadas para cancelar o especificar configuraciones de - seguridad cuando - security esta habilitado. - Estas son las posibles configuraciones. - - - - - PHP_HANDLING - true/false. la configuracion de - $php_handling - no es checada por security. - - - - - IF_FUNCS - Este es un arreglo de nombres de funciones PHP - permitidas en los bloques - IF. - - - - - INCLUDE_ANY - true/false. Si es asignado true, algun template - puede ser incluido para un archivo de sistema, a pesar de toda la - lista de $secure_dir. - - - - - PHP_TAGS - true/false. Si es asignado true, las etiquetas - {php}{/php} son - permitidas en los templates. - - - - MODIFIER_FUNCS - Este es un arreglo de nombres de - funciones PHP permitidas usadas como modificadores de variables. - - - - - ALLOW_CONSTANTS - true/false. Si es asignado true, la constante a travez de - {$smarty.const.name} - es autorizada en el template. El default es asignado "false" por seguridad. - - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-security.xml b/trunk/docs/es/programmers/api-variables/variable-security.xml deleted file mode 100644 index 07306669..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - $security - - $security true/false, el default es false. Security es bueno - para situaciones cuando usted tiene partes inconfiables editando - el template (via ftp por ejemplo) y usetd quiere reducir los - riesgos de comportamiento de seguridad del sistema a través del - lenguaje del template. Al habilitar la seguridad forza las siguientes - reglas del lenguaje del template, a menos que especifique control con - $security_settings: - - - - - Si $php_handling está - asignado a SMARTY_PHP_ALLOW, este es implicitamente cambiado a - SMARTY_PHP_PASSTHRU - - - - - Las funciones PHP no son permitidas en sentencias - {if}, - excepto quellas que esten especificadas en - $security_settings - - - - - Los templates solo pueden ser incluidos en el - directorio listado en arreglo - $secure_dir - - - - - Los archivos locales solamente pueden ser traidos del - directorio listado en - $secure_dir usando - el arreglo {fetch} - - - - - Estas etiquetas - {php}{/php} no son permitidas - - - - - Las funciones PHP no son permitidas como modificadores, - excepto si estan especificados en el - $security_settings - - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-template-dir.xml b/trunk/docs/es/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 8c2db7a6..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - $template_dir - - Este es el nombre por default del directorio del template. Si - usted no proporciona un tipo de recurso que incluya archivos, - entonces estos se encontraran aquí. - Por default "./templates", - esto significa que lo buscara en el directorio del - templates en el mismo - directorio que esta ejecutando el script PHP. - - - Nota Técnica - - No es recomendado colocar este directorio bajo el directorio - document root de su servidor web. - - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/es/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 3465b6f4..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $trusted_dir - - $trusted_dir solamente es usado cuando - $security está habilitado. - Este es un arreglo de todos los directorios que son considerados - confiables. Los directorios confiables son de donde usted extraera - sus script PHP que son ejecutados directamente desde el template con - {include_php}. - - - diff --git a/trunk/docs/es/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/es/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 7bb25b13..00000000 --- a/trunk/docs/es/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - $use_sub_dirs - - Smarty puede crear subdirectorios bajo los directorios - templates_c y - cache - si $use_sub_dirs es asignado true. - En un ambiente donde hay potencialmente decenas de miles de archivos creados, - esto puede ayudar la velocidad de sistema de archivos. - Por otro lado, algunos ambientes no permiten que procesos de PHP creen directorios, - este debe ser desabilitado. El valor por defaulr es false (disabled). - Los Sub directorios son mas eficientes, entonces aprovechelo si puede. - - - Teóricamente usted obtiene mayor eficiencia en sun sistema de archivos con 10 directorios - que contengan 100 archivos, que con un directorio que contenga 1000 archivos. - Este era ciertamente un caso con Solaris 7 (UFS)... con un nuevo sistema de archivos - como ext3 y un levantado especial, la diferencia es casi nula. - - - Nota Técnica - - $use_sub_dirs=true doesn't trabaja con - safe_mode=On, - esto es porque es switchable y porque puede estar en off por default. - - - - Nota Técnica - - Desde Smarty-2.6.2 use_sub_dirs esta por default en false. - - - - Ver también - $compile_dir, - y - $cache_dir. - - - - diff --git a/trunk/docs/es/programmers/caching.xml b/trunk/docs/es/programmers/caching.xml deleted file mode 100644 index aa8edd1b..00000000 --- a/trunk/docs/es/programmers/caching.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - Cache - - Caching es usado para aumentar la velocidad de llamada de - display() o - fetch() salvando esto en un - archivo de salida. Si hay una versión de cache disponible - para la llamada, este es mostrado en vez de regresar la salida - de datos. Caching puede hacer cosas tremendamente rápidas, - especialmente templates con largo tiempo de computo. - Desde la salida de datos de - display() o - fetch() está en - cache, un archivo de cache podría ser compuesto por diversos - archivos de templates, archivos de configuración, etc. - - - Dado que sus templates son dinámicos, es importante tener cuidado - de como usa la cache y por cuanto tiempo. Por ejemplo, si usted esta - mostrando la pagina principal de su web site y esta no tiene cambios - muy frecuentes en su contenido, esta puede funcionar bien en la cache - por una hora o mas. por otro lado, si usted esta mostrando una pagina - con un mapa de tiempo que contenga nueva información por minuto, no - tiene sentido hacer cache nuestra página. - -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; - - diff --git a/trunk/docs/es/programmers/caching/caching-cacheable.xml b/trunk/docs/es/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 7bbfc8a7..00000000 --- a/trunk/docs/es/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - Controlando salida de Cacheabilidad de plugins - - Desde Smarty-2.6.0 los caches de plugins pueden ser declarados - o registrados. - El tercer parámetro para register_block(), - register_compiler_function() - y register_function() es llamado - $cacheable y el default es true que es - también el comportamiento de plugins en la versiones anteriores - a Smarty 2.6.0. - - - - Cuando registre un plugin con $cacheable=false el plugin es llamado - todo el tiempo en la pagina que está siendo mostrada, aun si la - pagina viene desde el cache. - La función de plugin tiene un comportamiento parecido al de - la función insert. - - - - En contraste con {insert} - el atributo para el plugin no está en cache por default. Ellos pueden ser - declarados para ser cacheados con el cuarto parámetro - $cache_attrs. $cache_attrs - es un arreglo de nombres de atributos que deben ser cacheados, entonces la - función de plugin pega el valor como si fuera el tiempo en que la pagina - fue escrita para el cache todo el tiempo este es traido desde el cache. - - - - Previniendo que una saída de plugin de ser cacheada - -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'); -?> -]]> - - - Donde index.tpl es: - - -endtime} -]]> - - - El número en segundos hasta el endtime del $obj este sufre cambios - en cada display de la pagina, aun si la pagina esta en cache. Desde - que el atributo endtime sea cacheado el objeto solamente tiene que - ser jalado de la base de datos cuando la pagina esta escrita en la - cache mas no en requisiciones de la pagina. - - - - - Previniendo una pasada entera del template para el cache - -caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - - - Donde index.tpl es: - - - - - - - - Cuando recarga la pagina usted notara que ambas fechas son diferentes. - Una es "dinamica" y la otra es "estática". Usted puede hacer todo entre - las etiquetas {dynamic}...{/dynamic} y tener la certeza de que no sera - cacheado como el resto de la pagina. - - - - - diff --git a/trunk/docs/es/programmers/caching/caching-groups.xml b/trunk/docs/es/programmers/caching/caching-groups.xml deleted file mode 100644 index 574e6477..00000000 --- a/trunk/docs/es/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - Cache Groups - - Usted puede hacer agrupamientos mas elaborados configurando grupos de - cache_id. Esto se logra con la separación de cada sub-grupo con una - barra vertical "|" en el valor del cache_id. Usted puede tener tantos - sub-grupos como guste. - - - Usted puede pensar que los grupos de cache son parecidos a un - directorio para organizar. por ejemplo, un grupo de cache con - "a|b|b" podria pensarse como la estructura del directorio "a/b/c/". - clear_cache(null,"a|b|c") esto seria para quitar los archivos - "/a/b/c/*". clear_cache(null,"a|b") esto seria para quitar los - archivos "/a/b/*". Si usted espicifica el compile_id como - clear_cache(null,"a|b","foo") este tratara de agregarlo al grupo - de cache "/a/b/c/foo/". Si usted especifica el nombre del template - tal como clear_cache("foo.tpl","a|b|c") entonces el smarty intentara - borrar "/a/b/c/foo.tpl". - Usted no puede borrar un nombre de template especifico bajo multiples - grupos de cache como "/a/b/*/foo.tpl", el grupo de cache trabaja solo - de izquierda a derecha. Usted puede necesitar para su grupos de - templates un unico grupo de cache jerarquico para poder limpiarlos - como grupos. - - - El agupamiento de cache no debe ser confundido con su directorio - jerarquico del template, El agrupamiento de cache no tiene ninguna - ciencia de como sus templates son estructurados. - Por ejemplo, si usted tiene una estructura display('themes/blue/index.tpl'), - usted no puede limpiar el cache para todo bajo el diretorio "themes/blue". - Si usted quiere hacer esto, usted debe agruparlos en el cache_id, como - display('themes/blue/index.tpl','themes|blue'); Entonces usted puede - limpiar los caches para el tema azul con clear_cache(null,'themes|blue'); - - - Grupos de cache_id - -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"); - -// clear the foo.tpl cache file with "sports|basketball" as the cache_id -$smarty->clear_cache("foo.tpl","sports|basketball"); - - -$smarty->display('index.tpl',"sports|basketball"); -?> -]]> - - - - - - diff --git a/trunk/docs/es/programmers/caching/caching-multiple-caches.xml b/trunk/docs/es/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index a23ef646..00000000 --- a/trunk/docs/es/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - Multiples caches por pagina - - Usted puede tener multiples archivos de cache para una simples llamada - de display() - o fetch(). - Vamos a decir que una llamada a - display('index.tpl') debe tener varios contenidos de salida diferentes - dependiendo de alguna condición, y usted quiere separar los caches para - cada una. Usted puede hacer esto pasando un cache_id como un segundo - parámetro en la llamada de la función. - - - Pasando un cache_id para display() - -caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Arriba, nosotros pasamos la variable $my_cache_id a - display() con - el cache_id. Para cada valor unico de $my_cache_id, un cache por - separado sera generado para cada index.tpl. En este ejemplo, - "article_id" fue pasado en URL y es usado como el cache_id. - - - Nota Técnica - - Tenga mucho cuidado cuando pase valores del cliente (web browser) - dentro de Smarty (o alguna aplicación PHP). Aunque el ejemplo de - arriba usar el article_id desde una URL parece facil, esto podría - tener fatales consecuencias. El cache_id es usado para crear un - directorio en el sistema de archivos, entonces si el usuario decide - pasar un valor extremadamente largo para article_id, o escribir un - script que envia article_ids aleatorios en un paso rápido, esto - posiblemente podría causar problemas a nivel del servidor. Tenga la - certeza de limpiar algún dato pasado antes de usarlo. En este ejemplo, - tal vez usted sabia que el article_id tiene un largo de 10 caracteres - este es constituido solamente de alfanuméricos, y debe ser un article_id - valido en la base de datos. Verifique esto! - - - - Asegurarse de pasar el mismo cache_id como el segundo parámetro - para is_cached() y - clear_cache(). - - - Pasando un cache_id para is_cached() - -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); -?> -]]> - - - - Usted puede limpar todos los caches para un cache_id en particular - pasando el primer parámetro null a - clear_cache().. - - - Limpando todos los caches para un cache_id en particular - -caching = true; - -// clear all caches with "sports" as the cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -?> -]]> - - - - De esta manera, usted puede "agrupar" sus caches conjuntamente dando les - el mismo cache_id. - - - - - diff --git a/trunk/docs/es/programmers/caching/caching-setting-up.xml b/trunk/docs/es/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 2e69790b..00000000 --- a/trunk/docs/es/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,199 +0,0 @@ - - - - Configurando el Cache - - Lo primero que se tiene que hacer es habilitar el cache. esto es configurar - $caching = true (o 1.) - - - Habilitando Cache - -caching = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Con el caching habilitado, la llamada a la función display('index.tpl') traera - el template como siempre, pero también salvara una copia en el archivo de salida - (una copia de cache) en el $cache_dir. - En la proxima llamada de display('index.tpl'), la copia en cache sera usada en - vez de traer nuevamente el template. - - - Nota Técnica - - Los archivos en el $cache_dir son - nombrados similarmente al nombre del archivo de template. - Aunque ellos tengan una extensión ".php", ellos no son realmente scripts - ejecutables de php. No edite estos archivos! - - - - Cada pagina en cache tiene un periodo de tiempo limitado determinado por - $cache_lifetime. - El default del valor es 3600 segundos, o 1 hora. Después de este tiempo - expira, el cache es regenerado. Es posible dar tiempos individuales para - caches con su propio tiempo de expiración para configuración - $caching = 2. - Vea la documentación en - $cache_lifetime - para mas detalles. - - - Configurando cache_lifetime por cache - -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'); -?> -]]> - - - - Si $compile_check está habilitado, - cada archivo de template y archivo de configuración que está involucrado con el - archivo en cache es checado por modificadores. Si alguno de estos archivos fue - modificado desde que el ultimo cache fue generado, el cache es regenerado - inmediatamente. Esto es una forma de optimizar ligeramente el rendimiento de las - cabeceras, dejar $compile_check - determinado false. - - - Habilitando $compile_check - -caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Si $force_compile está habilitado, - los archivos de cache siempre seran regenerados. Esto definitivamente desactiva - el caching. - $force_compile generalmente - es usado para propositos de debug solamente, una forma mas eficiente - de desactivar el caching es asignando - $caching = false (ó 0.) - - - La función is_cached() puede ser - usada para testar si un template tiene un cache valido o no. Si usted - tiene un template con cache que requiera alguna cosa como un retorno - de base de datos, usted puede usar esto para saltar este proceso. - - - Usando is_cached() - -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'); -?> -]]> - - - - Usted puede guardar partes de su pagina dinámica con la función - de template {insert}. - Vamos a decir que su pagina entera puede tener cache excepto para un - banner que es mostrado abajo del lado derecho de su pagina. Usando - la función insert para el banner, usted puede guardar ese elemento - dinámico dentro de un contenido de cache. Vea la documentación en - {insert} para detalles - y ejemplos. - - - Usted puede limpiar todos los archivos de cache con la función - clear_all_cache(), - los archivos de cache individuales (o grupos) con la función - clear_cache(). - - - Limpiando el cache - -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'); -?> -]]> - - - - - - diff --git a/trunk/docs/es/programmers/plugins.xml b/trunk/docs/es/programmers/plugins.xml deleted file mode 100644 index fcfebd16..00000000 --- a/trunk/docs/es/programmers/plugins.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - Extendiendo Smarty con plugins - - La version 2.0 introduce la arquitectura de plugin que es usada para - casi todas las funcionalidades adaptables del Smarty. Esto incluye: - - funciones - modificadores - funciones de bloque - funciones de compilación - prefiltros - postfiltros - filtros de salida - recursos(fuentes) - inserts - - Con la excepción de recursos, la compatibildad con la forma antigua - de funciones de manipulación de registro via register_* API es conservada. - Si usted no uso el API en lugar de eso modifico las variables de clase - $custom_funcs, $custom_mods, y otras - directamente, entonces usted va a necesitar ajustar sus scripts para - cualquiera que use el API o convertir sus funciones habituales 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/trunk/docs/es/programmers/plugins/plugins-block-functions.xml b/trunk/docs/es/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index ab29a690..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - Block Functions - - - void smarty_block_name - array $params - mixed $content - object &$smarty - boolean &$repeat - - - - Las funciones de bloque son funciones de forma: {func} .. {/func}. - En otras palabras, estas encapsulan un bloque del template y operan - el contenido de este bloque. Las funciones de bloque toman precedencia - sobre las funciones habituales con el mismo nombre, es decir, usted no - puede tener ambas, las funciones habituales {func} y las funciones de - bloque {func} .. {/func}. - - - Por default la implementación de su función es llamada dos - veces por el Smarty: una vez por la etiqueta de apertura, y - la otra por la etiqueta de cierre - (vea &$repeat abajo para ver como hacer - cambios a esto). - - - Solo la etiqueta de apertura de la función de bloque puede tener - atributos. Todos los atributos pasados a las funciones de template - estan contenidos en $params como un arreglo - asociativo. Usted puede accesar a cualquiera de estos valores - directamente, e.g. $params['start']. - Los atributos de la etiqueta de apertura son también son accesibles - a su función cuando se procesa la etiqueta de cierre. - - - El valor de la variable $content depende de - que si su función es llamada por la etiqueta de cierre o de apertura. - En caso de que la etiqueta sea de apertura, este será - null, si la etiqueta es de cierre el valor será - del contenido del bloque del template. Se debe observar que el bloque - del template ya a sido procesado por el Smarty, asi todo lo que usted - recibirá es la salida del template, no el template original. - - - - El parámetro &$repeat es pasado por - referencia para la función de implementación y proporciona - la posibilidad de controlar cuantas veces será mostrado el bloque. - Por default $repeat es true - en la primera llamada de la block-function (etiqueta de apertura del - bloque) y false en todas las llamadas subsecuentes - a la función de boque (etiqueta de cierre del boque). Cada vez que es - implementada la función retorna con el &$repeat - siendo true, el contenido entre {func} .. {/func} es evaluado y es - implementado a la función es llamada nuevamente con el nuevo contenido - del bloque en el parámetro $content. - - - - Si usted tiene funciones de bloque anidadas, es posible descubrir - cual es el padre de la función de bloque accesando la variable - $smarty->_tag_stack. - Solo hacer un var_dump() sobre ella y la estrutura estara visible. - - - Vea tambien: - register_block(), - unregister_block(). - - - Función de bloque - - -]]> - - - - - diff --git a/trunk/docs/es/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/es/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index ecb798b6..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - Funciones Compiladoras - - Las funciones compiladoras solo son llamadas durante la compilación - del template. Estas son útiles para inyectar codigo PHP o contenido - estático time-sensitive dentro del template. Si existen ambas, una - función compiladora y una función habitual registrada bajo el mismo - nombre, la función compiladora tiene precedencia. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - En las funciones compiladoras son pasados dos parámetros: - la etiqueta string del argumento de la etiqueta - basicamente, - todo a partir del nombre de la función hasta el delimitador del - cierre, y el objeto del Smarty. Es supuesto que retorna el codigo - PHP para ser inyectado dentro del template compilado. - - - Vea también - register_compiler_function(), - unregister_compiler_function(). - - - Función compiladora simple - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - - Esta función puede ser llamada en un template de la siguiente forma: - - -{* esta función es ejecutada solamente en tiempo de compilación *} -{tplheader} - - - El codigo PHP resultante en el template compilado seria algo asi: - - - -]]> - - - - - diff --git a/trunk/docs/es/programmers/plugins/plugins-functions.xml b/trunk/docs/es/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 8dd9678b..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - Funciones de Template - - - void smarty_function_name - array $params - object &$smarty - - - - Todos los atributos pasados para las funciones de template a partir - del template estan contenidas en $params como - un arreglo asociativo. - - - La salida(valor de retorno) de la función será substituida en - el lugar de la etiqueta de la función en el template (la función - fetch, por ejemplo). - Alternativamente, la función puede simplemente ejecutar alguna - otra tarea sin tener alguna salida (la función assign). - - - Si la función necesita pasar valores a algunas variables del template - o utilizar alguna otra funcionalidad del Smarty, esta puede usar el - objeto $smarty alimentandolo para hacer eso. - - - Vea tambien: - register_function(), - unregister_function(). - - - - Función de plugin con salida - - -]]> - - - - - que puede ser usada en el template de la siguiente forma: - - -Question: Will we ever have time travel? -Answer: {eightball}. - - - - Función de plugin sin salida - -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/trunk/docs/es/programmers/plugins/plugins-howto.xml b/trunk/docs/es/programmers/plugins/plugins-howto.xml deleted file mode 100644 index cbd6968c..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - Como funcionan los Plugins - - Los plugins son siempre cargados cuando son requeridos. solo los - calificativos especificos, funciones, recursos, etc convocados en - scripts del template seran leidos. Además, cada plugin es cargado - una sola vez, aun si usted tiene corriendo varias instancias - diferentes de Smarty dentro de la misma petición. - - - Pre/posfiltros y salidas de filtros son una parte de un caso especial. - Dado que ellos no son mensionados en los templates, ellos deben ser - registrados o leidos explicitamente mediante funciones de API antes de - que el template sea procesado. El orden en el cual son ejecutados - multiples filtros del mismo tipo depende del orden en el que estos son - registrados o leidos. - - - El directorio de directory - puede ser una cadena que contenga una ruta o un arreglo que contenga - multiples rutas. Para instalar un plugin, simplemente coloquelo en el - directorio y el Smarty lo usara automáticamente. - - - - diff --git a/trunk/docs/es/programmers/plugins/plugins-inserts.xml b/trunk/docs/es/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 3c6ae962..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - Inserts - - Los Plugins Insert son usados para implementar funciones que son - invocadas por las etiquetas - insert - en el template. - - - - string smarty_insert_name - array $params - object &$smarty - - - - El primer parámetro de la función es un arreglo asociativo de - atributos pasados al insert. - - - La función insert debe retornar el resultado que ira a sustituir - el lugar de la etiqueta insert en el template. - - - insert plugin - -trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - - - - - diff --git a/trunk/docs/es/programmers/plugins/plugins-modifiers.xml b/trunk/docs/es/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index bc38a241..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,115 +0,0 @@ - - - Modificadores - - Los modificadores son funciones que son aplicadas a una variable - en el template antes de ser mostrada o usada en algun otro contexto. - Los modificadores pueden ser encadenados conjuntamente. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - El primer parámetro en el modificador de plugin es el valor sobre - el cual el modificador es precisa para funcionar. El resto de los - parámetros pueden ser opcionales, dependiendo de cual tipo de operación - va a ser ejecutada. - - - El modificador debe retornar el resultado de su procesamiento. - - - Vea Tambien - register_modifier(), - unregister_modifier(). - - - Plugin modificador simple - - Este plugin básicamente es un alias de una función incorporada - en PHP. Este no tiene ningun parámetro adicional. - - - -]]> - - - - - Plugin modificador mas complejo - - $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/trunk/docs/es/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/es/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index 7a7f9131..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - Nombres convencionales - - Los archivos y funciones de Plugin deben seguir una convención - de apariencia muy especifica a fin de que pueda ser localizada - por el Smarty. - - - Los archivos de plugin deben ser nombrados de la siguiente forma: -
      - - - type.name.php - - -
      -
      - - Donde type es uno de los siguientes tipo de plugin: - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - Y name seria un identificador valido (solo, letras, - números, y underscores). - - - Algunos ejemplos: function.html_select_date.php, - resource.db.php, modifier.spacify.php. - - - Las funciones de plugin dentro de los archivos de plugin deben ser - nombradas de la siguiente forma: -
      - - smarty_type_name - -
      -
      - - El significado de type and name son - los mismo que loas anteriores. - - - El Smarty mostrara mensajes de error apropiados si el archivo de - plugins que es necesario no es encontrado, o si el archivo a la - función de plugin esta nombrado inadecuadamente. - -
      - - diff --git a/trunk/docs/es/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/es/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 118041c2..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - Filtros de Salida - - Los Filtros de salida operan en la salida del template, después - que el template es cargado y ejecutado, pero antes que la salida - sea mostrada. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - El primer parámetro de la función de filtro de salida es la - salida del template que necesita ser procesada, y el segundo - parámetro es la instancia del Smarty invocando el plugin. - El plugin debe hacer el procesamiento y retornar los resultados. - - - plugin de filtro de salida - - -]]> - - - - - diff --git a/trunk/docs/es/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/es/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 561e76d6..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - Prefiltros/Postfiltros - - Los Plugins Prefilter y postfilter con muy similares en concepto; - donde ellos difieren es en la ejecución -- mas precisamente en el - tiempo sus ejecuciones. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Los Prefilters son usados para procesar el fuente del template inmediatamente - antes de la compilación. El primer parámetro de la función del prefilter es el - fuente del template, posiblemente modificado por algunos otros prefilters. - El Plugin es supuesto que retorne el fuente modificado. Observe que este código - no es salvado en ningun lugar, este es solo usado para la compilación. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Los Postfilters son usados para procesar la salida compilada del template - (el código PHP) inmediatamente después de que la compilacion es terminada - pero antes de que el template compilado sea salvado en el sistema de archivos. - El primer parámetro para la función postfilter es el código del template - compilado, posiblemente modificado por otros postfilters. - El plugin se supone retornara la versión modificada de este código. - - - prefilter plugin - -]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - - - - - postfilter plugin - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - - diff --git a/trunk/docs/es/programmers/plugins/plugins-resources.xml b/trunk/docs/es/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 295e30b7..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - Fuentes - - Las fuentes de los plugins son como una forma generica de suministrar - código fuente de template o componentes de script PHP al Smarty. Algunos - ejemplos de fuentes: base de datos, LDAP, memoria compartida, sockets, etc. - - - - Existe un total de 4 funciones que necesitan estar registradas para - cada tipo de fuente. Cada función recibirá el fuente requerido como - primer parámetro y el objeto de Smarty como ultimo parámetro. - El resto de los parámetros dependen de la función. - - - - - 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 primera función debe devolver el recurso. Su segundo parámetro - es una variable pasada por referencia donde el resultado debe ser - almacenado. La función debe retornar true si - esta pudo recuperar satisfactoriamente el recurso y en caso contrario - retornara false. - - - - La segunda función debe devolver la ultima modificación del - recurso requerido (como un timestamp Unix). El segundo parámetro - es una variable pasada por referencia donde el timestamp sera - almacenado. La función debe retornar true - si el timestamp pudo ser determinado satisfactoriamente, y en - caso contrario retornara false. - - - - La tercera función debe retornar true o - false, dependiendo si el recurso requerido - es seguro o no. Esta función es usada solo para recursos de - template pero esta debe ser definida. - - - - La cuarta función debe retornar true o - false, dependiendo si el recurso requerido - es seguro o no. Esta función es usada solo para componetes de - script de PHP solicitado por las etiquetas - include_php o insert - con el atributo src. Sin embargo, - este debe ser definido para los recurso del template. - - - Vea también - register_resource(), - unregister_resource(). - - - Plugin resource (recurso) - -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/trunk/docs/es/programmers/plugins/plugins-writing.xml b/trunk/docs/es/programmers/plugins/plugins-writing.xml deleted file mode 100644 index a68bd917..00000000 --- a/trunk/docs/es/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - Escribiendo Plugins - - Los Plugins pueden ser leidos por el Smarty automáticamente del - sistema de archivos o pueden ser registrados en tiempo de - ejecución por medio de una de las funciones de API register_* . - Estos también pueden ser usados con la función API unregister_*. - - - Para los plugins que son registrados en tiempo de ejecución, el - nombre de la(s) función(es) de plugin no tiene que seguir la - convención de apariencia. - - - Si un plugin depende de alguna función alimentada por otro plugin - (como es el caso con algunos plugins incrustados con el Smarty), - entonces la forma apropiada para leer el plugin necesario es esta: - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - Como regla general, el objeto Smarty siempre es pasado a los - plugins como ultimo parámetro (con dos excepciones: los - modificadores no pasan el objeto de Smarty del todo y los - blocks obtenidos son pasados &$repeat - después el objeto de Smarty para manter compatibilidad con - antiguas versiones de Smarty). - - - - diff --git a/trunk/docs/es/programmers/smarty-constants.xml b/trunk/docs/es/programmers/smarty-constants.xml deleted file mode 100644 index f3ac18d5..00000000 --- a/trunk/docs/es/programmers/smarty-constants.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Constantes - - - SMARTY_DIR - - Esta debe ser la ruta completa del path para la localización - de los archivos de clases de Smarty. Si esta no fuera definida, - Entonces Smarty intentara determinar el valor apropiado - automáticamente. Si es definido, el path - debe finalizar con una diagonal. - - - SMARTY_DIR - - -]]> - - - - Ver también - $smarty.const - y - $php_handling constants - - - - SMARTY_CORE_DIR - - Esta debe ser la ruta completa de localización del sistema de archivos - de Smarty core. Si no es definido, Smarty tomara por default esta constante de - libs/ - bajo el sub-directory SMARTY_DIR. - Si es definida, la ruta debe terminar con una diagonal. - Use esta constante cuando necesite incluir manualmente algun archivo de core.* - - - SMARTY_CORE_DIR - - -]]> - - - - - Ver también - $smarty.const - - - - diff --git a/trunk/docs/fop/README b/trunk/docs/fop/README deleted file mode 100755 index f4a36360..00000000 --- a/trunk/docs/fop/README +++ /dev/null @@ -1,14 +0,0 @@ -README -====== - -This directory contains some files needed by FOP to generate the PDF files. - -*.cfg => some languages need a configuration file to embed fonts (e.g. Russian) -*.ttf => fonts needed to embed in the PDF files -*.xml => Font Metrics generated with FOP's TTF reader - - -Fonts included -============== -1) Thryomanes (thry*.ttf) - -> Languages: Russian diff --git a/trunk/docs/fop/ru.cfg b/trunk/docs/fop/ru.cfg deleted file mode 100755 index 19e3464b..00000000 --- a/trunk/docs/fop/ru.cfg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/fop/thryb.ttf b/trunk/docs/fop/thryb.ttf deleted file mode 100755 index 75f5bf4e..00000000 Binary files a/trunk/docs/fop/thryb.ttf and /dev/null differ diff --git a/trunk/docs/fop/thryb.xml b/trunk/docs/fop/thryb.xml deleted file mode 100755 index 872254ae..00000000 --- a/trunk/docs/fop/thryb.xml +++ /dev/null @@ -1,2 +0,0 @@ - -Thryomanes,Bold693447850-234-555-319137810403300TYPE0CIDFontType20 \ No newline at end of file diff --git a/trunk/docs/fop/thrybi.ttf b/trunk/docs/fop/thrybi.ttf deleted file mode 100755 index 9a178e56..00000000 Binary files a/trunk/docs/fop/thrybi.ttf and /dev/null differ diff --git a/trunk/docs/fop/thrybi.xml b/trunk/docs/fop/thrybi.xml deleted file mode 100755 index f6e494e5..00000000 --- a/trunk/docs/fop/thrybi.xml +++ /dev/null @@ -1,2 +0,0 @@ - -Thryomanes,BoldItalic692457850-234-604-31914671040970-12TYPE0CIDFontType20 \ No newline at end of file diff --git a/trunk/docs/fop/thryi.ttf b/trunk/docs/fop/thryi.ttf deleted file mode 100755 index b1089289..00000000 Binary files a/trunk/docs/fop/thryi.ttf and /dev/null differ diff --git a/trunk/docs/fop/thryi.xml b/trunk/docs/fop/thryi.xml deleted file mode 100755 index 8995d6fd..00000000 --- a/trunk/docs/fop/thryi.xml +++ /dev/null @@ -1,2 +0,0 @@ - -Thryomanes,Italic692457850-234-599-31914431032970-12TYPE0CIDFontType20 \ No newline at end of file diff --git a/trunk/docs/fop/thryn.ttf b/trunk/docs/fop/thryn.ttf deleted file mode 100755 index cb7962fa..00000000 Binary files a/trunk/docs/fop/thryn.ttf and /dev/null differ diff --git a/trunk/docs/fop/thryn.xml b/trunk/docs/fop/thryn.xml deleted file mode 100755 index 3fdc194a..00000000 --- a/trunk/docs/fop/thryn.xml +++ /dev/null @@ -1,2 +0,0 @@ - -Thryomanes693447850-234-545-319133410323300TYPE0CIDFontType20 \ No newline at end of file diff --git a/trunk/docs/fr/appendixes/bugs.xml b/trunk/docs/fr/appendixes/bugs.xml deleted file mode 100644 index 73edb60d..00000000 --- a/trunk/docs/fr/appendixes/bugs.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - BUGS - - Vérifiez le fichier de BUGS fourni avec la dernière version de Smarty ou - consultez le site Web. - - - diff --git a/trunk/docs/fr/appendixes/resources.xml b/trunk/docs/fr/appendixes/resources.xml deleted file mode 100644 index fccd3d92..00000000 --- a/trunk/docs/fr/appendixes/resources.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - Ressources - - La page Web de Smarty se trouve à l'adresse suivante : - &url.smarty; - - - - Vous pouvez souscrire à la mailing liste en envoyant un email à - &ml.general.sub;. - Les archives de la mailing list se trouvent à l'adresse suivante : - ici - - - Les forums sur &url.forums; - - - Le wiki sur &url.wiki; - - - Le chat sur irc.freenode.net#smarty - - - La FAQ ici et ici - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/appendixes/tips.xml b/trunk/docs/fr/appendixes/tips.xml deleted file mode 100644 index c6fb5048..00000000 --- a/trunk/docs/fr/appendixes/tips.xml +++ /dev/null @@ -1,439 +0,0 @@ - - - - - - Trucs et astuces - - - Gestion des variables non-assignées - - Peut-être voudrez-vous des fois afficher une valeur par - défaut pour une variable qui n'a pas été assignée, comme - pour afficher &nbsp; afin que les couleurs - de fond des tableaux fonctionnent. Beaucoup utiliseraient une - instruction {if} - pour gérer celà, mais il existe un moyen - plus facile dans Smarty : l'utilisation du modificateur - de variable - default. - - Les erreurs de variable indéfinie seront affichés si - la fonction PHP - - error_reporting() vaut E_ALL - et qu'une variable n'a pas été assignée à Smarty. - - - - - Afficher &nbsp; quand une variable est vide - - - - - - Voir aussi - default et - la gestion des variables par défaut. - - - - - Gestion des variables par défaut - - Si une variable est utilisée fréquemment dans vos templates, - lui appliquer le modificateur - default - peut être un peu fastidieux. - Vous pouvez remédier à celà en lui assignant une valeur par défaut - avec la fonction {assign}. - - - Assigner une valeur par défaut à une variable de template - - - - - - Voir aussi - default et - la gestion des variables non-assignées. - - - - - Passage du titre à un template d'en-tête - - Quand la majorité de vos templates utilisent les mêmes en-tête et pied-de-page, - il est d'usage de les mettre dans leurs propres templates et de les inclure - ({include}). - Mais comment faire si l'en-tête doit avoir un titre différent, selon la page - d'où on vient ? Vous pouvez passer le titre à l'en-tête en tant qu' - attribut quand il est inclus. - - - - Passer le titre au template d'en-tête - - - mainpage.tpl - Lorsque la page principal est construite, - le titre Man Page est passé au header.tpl et sera utilisé - en tant que titre. - - - - - - - archives.tpl - Lorsque la page principal est construite, le titre - sera Archives. Notez que dans cet exemple, nous utilisons une variable du fichier - archives_page.conf au lieu d'une variable classique. - - - - - - - header.tpl - Notez que Smarty News est affiché - si la variable $title n'est pas définie, en utilisant le modificateur de variable par - default. - - - - - {$title|default:'Smarty News'} - - - ]]> - - - - footer.tpl - - - - -]]> - - - - - - Dates - - De façon générale, essayez de toujours passer les dates à Smarty - sous forme de timestamp. - Cela permet aux designers de templates d'utiliser - date_format - pour avoir un contrôle total sur le formatage des dates et de comparer - facilement les dates entre elles. - - - Utilisation de date_format - - - - - Affichera : - - - - - - - - - Affichera : - - - - - - Les dates peuvent être comparées dans le template en utilisant les timestamps, comme ceci : - - - - - - - En utilisant la fonction - {html_select_date} - dans un template, le programmeur veut en général convertir le - résultat d'un formulaire en un timestamp. - Voici une fonction qui devrait vous être utile. - - - Conversion des éléments date d'un formulaire en timestamp - - -]]> - - - - - Voir aussi - {html_select_date}, - {html_select_time}, - date_format et - $smarty.now, - - - - - WAP/WML - - Les templates WAP/WML nécessitent un en-tête - Content-Type qui doit être - passé avec le template. Le moyen le plus facile de faire celà est d'écrire - une fonction utilisateur qui écrit l'en-tête. Si vous utilisez le - cache, - celà ne fonctionnera pas. Nous utiliserons donc une balise d'insertion - ({insert}) - (rappelez-vous que les balises d'insertion ne sont pas mises en cache !). - Assurez-vous qu'aucune sortie - rien n'est transmise au navigateur avant l'appel du template, sans quoi - la modification de l'en-tête échouera. - - - Utilisation d'{insert} pour écrire un en-tête Content-Type WML - - -]]> - - - votre template Smarty doit commencer avec la balise d'insertion : - - - - - - - - - - - - -

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

      -
      - - -

      - Pretty easy isn't it? -

      -
      -
      -]]> -
      -
      -
      - - Templates composants - - Traditionnellemnt, la programmation avec des templates dans les applications - se déroule de la façon suivante : d'abord vous récupérez vos variables - dans l'application PHP (peut-être avec des requêtes en base de données), puis - vous instanciez votre objet Smarty, - assign() - les variables et display() le - template. Disons par exemple que nous avons un téléscripteur dans - notre template. Nous récupérerions les données dans notre application, - puis les assignerions ensuite pour les afficher. Mais ne serait-ce pas - mieux de pouvoir ajouter ce téléscripteur à n'importe quelle application - en incluant directement le template sans avoir à se soucier de la récupération - des données ? - - - Vous pouvez réaliser celà en écrivant un plugin personnalisé pour récupérer le contenu - et l'assigner à une variable du template. - - - Template composant - - function.load_ticker.php - - Efface le fichier du répertoire des - $plugins - - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - index.tpl - - - - - - - Voir aussi - {include_php}, - {include} et - {php}. - - - - Dissimuler les adresses email - - Vous-êtes vous déjà demandé pourquoi vos adresses emails sont sur autant - de listes de diffusion de spam ? Une façon pour les spammers de récupérer les - adresses est de parcourir les pages Web. Voici une façon de remédier - à ce problème : mettre votre adresse email dans du Javascript brouillé - au milieu de votre source HTML, sans que celà ne gêne l'affichage sur le - navigateur Web. Cela est fait grâce au plugin - {mailto}. - - - Exemple de dissimulation d'une adresse email - -Envoyer une demande à -{mailto address=$EmailAddress encode='javascript' subject='Bonjour'} -]]> - - - - Note technique - - Cette méthode n'est pas infaillible. Un spammer peut programmer son - collecteur d'email pour passer outre cette astuce, mais c'est cependant - peu probable. - - - - Voir aussi - escape et - {mailto}. - - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/appendixes/troubleshooting.xml b/trunk/docs/fr/appendixes/troubleshooting.xml deleted file mode 100644 index 9193d9ab..00000000 --- a/trunk/docs/fr/appendixes/troubleshooting.xml +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - Diagnostic des erreurs - - - Erreurs Smarty/PHP - - Smarty peut identifier de nombreuses erreurs comme des attributs de - balises manquants ou de noms de variables malformés. Dans ce cas-là, - vous verrez apparaître une erreur semblable à : - - - erreurs Smarty - - - - - - - Smarty vous indique le nom du template, le numéro de la ligne et l'erreur. - Après cela, vous pouvez connaître le numéro de ligne où il y a eu erreur dans - la définition de la classe Smarty. - - - - Il y a certaines erreurs que Smarty ne peut pas détecter, comme les - balises fermantes manquantes. Ce type d'erreurs est la plupart du temps - repéré dans la phase de compilation PHP du template compilé. - - - - Erreur d'analyse PHP - - - - - - Quand vous rencontrez une erreur d'analyse PHP, le numéro de la ligne - indiqué est celui du fichier PHP compilé et non du template. Vous pouvez alors - regarder le template et détecter l'erreur. Voici quelques erreurs fréquentes : - balises fermantes pour - {if}{/if} - ou - {section}{/section} - manquantes, ou syntaxe logique incorrecte dans une instruction {if}. - Si vous ne trouvez pas l'erreur, vous devrez alors ouvrir le fichier PHP compilé et aller à la - ligne correspondante pour trouver d'où vient l'erreur. - - - Autres erreurs communes - - - - - - - - Le dossier - $template_dir - est incorrect, n'existe pas ou le fichier - the file index.tpl n'est pas dans le dossier - templates/. - - - - - Une fonction - {config_load} - est dans un template (ou - config_load() - a été appelé) et soit - $config_dir - est incohérent, n'existe pas, ou - site.conf n'est pas dans le dossier. - - - - - - - - - - - Soit le dossier - $compile_dir - n'est pas correctement défini, le dossier n'existe pas, ou - templates_c est un fichier et non un dossier. - - - - - - - - - - Le dossier $compile_dir - n'est pas accessible en écriture par le serveur web. Voir le bas - de la page sur l'installation de - Smarty pour les permissions. - - - - - - - - - - - Cela signifie que - $caching est activé et soit - le dossier - $cache_dir - n'est pas correctement défini, le dossier n'existe pas, ou - cache est un fichier et non un dossier. - - - - - - - - - - - Cela signifie que - $caching est activé et - le dossier - $cache_dir - n'est pas accessible en écriture par le serveur web. Voir le bas - de la page sur l'installation de - Smarty pour les permissions. - - - - - - - Voir aussi - le débogage, - $error_reporting et - trigger_error(). - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/bookinfo.xml b/trunk/docs/fr/bookinfo.xml deleted file mode 100755 index ac1d0554..00000000 --- a/trunk/docs/fr/bookinfo.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - Smarty - le moteur et compilateur de templates PHP - - - Monte - Ohrt <monte at ohrt dot com> - - - Andrei - Zmievski <andrei@php.net> - - - - - Arnaud - Cogoluègnes <arnaud.cogoluegnes@free.fr> - - - Gérald - Croës <gcroes@aston.fr> - - - Mehdi - Achour <didou@php.net> - - - Yannick - Yannick <yannick@php.net> - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - - diff --git a/trunk/docs/fr/designers/chapter-debugging-console.xml b/trunk/docs/fr/designers/chapter-debugging-console.xml deleted file mode 100644 index cb5a0894..00000000 --- a/trunk/docs/fr/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Console de débogage - - Il existe une console de débogage dans Smarty. La console vous indique - toutes les templates incluses, - les variables assignées et chargées depuis un fichier de - configuration pour le template courant. - Un template appelé debug.tpl est inclus dans la distribution de Smarty qui contrôle - le formattage de la console. Définissez $debugging - à &true; dans Smarty et, si besoin, vous pouvez définir - $debug_tpl - de façon à ce que ce dernier contienne le chemin du template à utiliser(dans - SMARTY_DIR par defaut). - Lorsque vous chargez la page, une console javascript est censée surgir - et vous donner les noms de toutes les variables inclues et assignées dans - votre page courante. Pour voir toutes les variables d'un template particulier, - voir la fonction {debug}. - Pour désactiver la console de débogage, définissez - $debugging à &false;. - Vous pouvez également temporairement activer le débogage en indiquant - SMARTY_DEBUG dans l'url si tant est que l'option - $debugging_ctrl - soit activée. - - - Note technique - - La console de débogage ne fonctionne pas si vous utilisez l'API - fetch(), - mais seulement lorsque vous utilisez - display(). - C'est en effet un jeu d'instructions javascripts à la fin du template qui déclenchent - l'ouverture de la fenêtre. Si vous n'aimez pas javascript, vous pouvez modifier - debug.tpl pour formater les données de la façon qui vous conviendra le - mieux. Les données de débogage ne sont pas mises en cache et les - informations de debug.tpl ne sont pas incluses dans la sortie de la - console de débogage. - - - - - Le temps de chargement des templates et des fichiers de configuration sont - indiqués en secondes. - - - - Voir aussi - troubleshooting, - $error_reporting - et trigger_error(). - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/config-files.xml b/trunk/docs/fr/designers/config-files.xml deleted file mode 100644 index 29be76aa..00000000 --- a/trunk/docs/fr/designers/config-files.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - Fichiers de configuration - - Les fichiers de configuration sont un moyen interressant pour gérer - des variables depuis un seul et même fichier. L'exemple le plus courant - étant le schéma de couleurs du template. Normalement, pour changer le - schéma de couleur d'une application, vous devriez aller - dans chaque template et changer la couleur des éléments (ou les classes css). - Avec un fichier de configuration, il vous est possible de conserver - la couleur dans un seul endroit, puis de la mettre à jour une seule fois. - - - Exemple de fichier de configuration - - - - - - Les valeurs des variables de fichiers de configuration - peuvent être entre guillemets, sans que celà soit nécessaire. Si vous vouler utiliser des - valeurs sur plusieurs lignes, vous devrez les entourer de triples - guillemets ("""). Vous pouvez insérer des commentaires dans les fichiers de - configuration en utilisant une syntaxe quelquonque, non valide. - Nous recommandons l'utilisation de # (dièse) en début - de ligne. - - - Cet exemple de fichier de configuration contient deux sections. Les noms des - sections sont entourés de crochets []. Les noms de section peuvent être - des chaînes, ne contenant aucun des symboles [ et - ]. Dans notre exemple, les 4 variables du début sont - des variables dites globales, qui ne sont pas contenue dans une section. - Ces variables sont toujours chargées depuis le fichier de configuration. - Si une section est chargée, alors toutes les variables de cette section - ainsi que les variables globales sont chargées. Si une variable existe - à la fois en tant que globale et à la fois en tant que variable de - section, la variable de section est prioritaire. - Si vous appelez deux variables dans une même section de la même façon, - la dernière déclarée prime. (voir - $config_overwrite) - - - Les fichiers de configuration sont chargés dans le template grâce aux - fonctions {config_load} - (voir aussi config_load()). - - - Vous pouvez masquer des variables ou des sections entières en préfixant - le nom de la variable ou le nom de la section avec une virgule. - Ce procédé est utile si votre application récupère ses données depuis - plusieurs fichiers de configuration et récupère des données sensibles dont - vos templates n'ont pas besoin. Si des tiers éditent des templates, vous - êtes sûr que ces derniers n'accèderont pas à ces données de configuration - en les chargeant depuis le template. - - - Voir aussi - {config_load}, - $config_overwrite, - get_config_vars(), - clear_config() et - config_load(). - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax.xml b/trunk/docs/fr/designers/language-basic-syntax.xml deleted file mode 100644 index e57be33a..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - Bases syntaxiques - - Toutes les balises Smarty sont entourées de délimiteurs. Par défaut, - ils sont { et - }, mais ils peuvent être modifiés. - - - Pour les exemples de ce manuel, nous supposons que vous utiliserez leur valeur par défaut. - Dans Smarty, le contenu qui est situé en dehors des délimiteurs - est affiché comme contenu statique, inchangé. Lorsque Smarty rencontre - des balises de template, il tente de les comprendre et en affiche la sortie - appropriée, en lieu et 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; - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/fr/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 051faf9d..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - Désactiver l'analyse de Smarty - - Il est quelques fois utile, voir nécessaire, de demander à Smarty d'ignorer - certaines sections que seraient analysées sinon. Un exemple classique est - l'incorporation de code Javascript ou CSS dans les templates. Le problème - est que ces langages utilisent les caractères { et }, qui sont aussi les - délimiteurs Smarty par défaut. - - - - Le plus simple pour éviter une telle situation est de placer vos codes - Javascript et CSS dans des fichiers séparés, puis d'utiliser les méthodes - standards HTML pour y accéder. - - - - Inclure du contenu tel quel est possible en utilisant les blocs - {literal} .. {/literal}. - Similairement à l'utilisation d'entités HTML, vous pouvez utiliser - {ldelim} et - {rdelim}, ou - {$smarty.ldelim} - pour afficher les délimiteurs. - - - - Il est souvent plus simple de modifier les délimiteurs de Smarty : - $left_delimiter et - $right_delimiter. - - - Exemple de changement de délimiteur - -left_delimiter = ''; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - - - Où le template est: - - - sur Smarty - -]]> - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax/language-math.xml b/trunk/docs/fr/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 1ec62cd3..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Opérations mathématiques - - Les opérations mathématiques peuvent être directement appliquées aux - variables. - - - Exemples d'opérations mathématiques - -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`"} -]]> - - - - - Voir aussi la fonction - {math} - pour les équations complexes et - {eval}. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/fr/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index f22d8c1c..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Paramètres - - La plupart des fonctions - attendent des paramètres qui régissent leur - comportement. Les paramètres des fonctions Smarty sont très proches des - attributs des balises HTML. Les valeurs numériques n'ont pas besoin d'être - entourées par des guillemets, par contre, ces guillemets sont recommandées lors - de l'utilisation de chaînes de caractères. Des variables peuvent aussi être - utilisées en tant que paramètres, et ne doivent pas être entourées de guillemets. - - - Certains paramètres requièrent des valeurs booléennes (&true; ou &false;). - Elles peuvent être spécifiées par l'une des valeures suivantes, sans guillemet: - true, on, et yes, - ou false, off, et no. - - - Paramètres de fonction, syntaxe - - - {html_options options=$choices selected=$selected} - -]]> - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/fr/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 4fbed629..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - Commentaires - - Les commentaires dans Smarty sont entourés d'asterisques, - et entourés par le délimiteurs - de cette façon : - - - - - - - - Les commentaires Smarty ne sont PAS affichés dans la sortie finale du - template, différemment des <!-- commentaires HTML -->. - Ils sont utilisés pour des notes internes, dans le template que personne ne verra ;) - - - Commentaires dans un template - - - - {$title} - - - -{* un autre commentaire Smarty sur une seule ligne *} - - -{* ces multi-lignes sont des commentaires -qui ne sont pas envoyées au navigateur -*} - -{********************************************************* -Un bloc de commentaires multilignes contenant les crédits -@ author: bg@example.com -@ maintainer: support@example.com -@ para: var that sets block style -@ css: the style output -**********************************************************} - -{* Inclusion du fichier d'en-tête contenant le logo principal *} -{include file='header.tpl'} - -{* Note aux développeurs : $includeFile est assigné au script foo.php *} - -{include file=$includeFile} - -{* Ce block - {html_options options=$vals selected=$selected_id} - -*} - - -{* $affiliate|upper *} - -{* Vous ne pouvez pas imbriquer des commentaires *} -{* - -*} - -{* Balise cvs pour un template, ci-dessous, le 36 DOIT ÊTRE une devise américaine sinon, -il sera converti en cvs.. *} -{* $Id: Exp $ *} -{* $Id: *} - - -]]> - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/fr/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 9f972a95..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - Fonctions - - Les balises Smarty affichent une variable - ou invoquent une fonction. Elles sont appelées - lorsqu'elles sont entourées, ainsi que leurs - paramètres, des délimiteurs Smarty. - Par exemple : {nomfonction attr1='val' attr2='val'}. - - - syntaxe des fonctions - -{$name}! -{else} - Bonjour, {$name}! -{/if} - -{include file='footer.tpl' ad=$random_id} -]]> - - - - - - Les fonctions natives et les - fonctions utilisateurs ont toutes deux la même - syntaxe, dans les templates. - - - - - Les fonctions natives sont relatives - au traitement interne de Smarty, - comme {if}, - {section} et - {strip}. - Il n'y a aucune raison à ce qu'elles soient modifiées ou changées. - - - - - Les fonctions utilisateurs sont des fonctions additionnelles, - implémentées par l'intermédiaire de plugins. - Elles peuvent être modifiées pour correspondre - à vos besoins, et vous pouvez en créer de nouvelles. - {html_options} et - {popup} - sont deux exemples de fonctions utilisateurs. - - - - - Voir aussi - register_function(). - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 734127d7..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - Variables insérées dans des chaînes de caractères - - - - - Smarty est capable d'interpréter les - variables assignées à l'intérieur de - chaînes entre guillemets, du moment que leur nom est exclusivement composé - de chiffres, lettres, underscores et crochets - Voir le nommage pour plus de détails. - - - - Si le nom de la variable - contient tout autre caractère (point, référence à un objet, etc.) - la variable doit être entourée d'apostrophes - inverses (`). - - - - Vous ne pouvez jamais insérer de - modificateurs, ils doivent toujours être appliquer à - l'extérieur des guillemets. - - - - - Exemples de synthaxes - - - - - - - Exemples pratiques - - - - - - - Voir aussi - escape. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/fr/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index c7f7bf5f..00000000 --- a/trunk/docs/fr/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - Variables - - Les variables de template commence par un signe dollar ($). - Elles peuvent contenir des nombres, des lettres et des underscores, tout - comme une variable PHP. - Vous pouvez référencer des tableaux indexés - numériquement ou non. Vous pouvez aussi référencer des propriétés d'objet - ainsi que des méthodes. - - - Les variables des fichiers de - configuration sont une exception à la synthaxe utilisant un signe dollar. Elles peuvent être - référencées en les entourant du signe dièse (#) ou via la variable spéciale - $smarty.config. - - - Variables - -bar} <-- affiche la propriété "bar" de l'objet -{$foo->bar()} <-- affiche la valeur retournée de la méthode "bar" de l'objet -{#foo#} <-- affiche la variable du fichier de configuration "foo" -{$smarty.config.foo} <-- synonyme pour {#foo#} -{$foo[bar]} <-- synthaxe uniquement valide dans une section de boucle, voir {section} -{assign var=foo value='baa'}{$foo} <-- affiche "baa", voir {assign} - -Plusieurs autres combinaisons sont autorisées - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- passage de paramètres -{"foo"} <-- les valeurs statiques sont autorisées - -{* affiche la variable serveur "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - - - - - Les variables spéciales comme $_GET, $_SESSION, etc. - sont également disponibles, lisez le chapitre sur les variables réservées - $smarty - pour plus de détails. - - - - Voir aussi - $smarty, - les variables de configuration, - {assign} et - assign(). - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions.xml b/trunk/docs/fr/designers/language-builtin-functions.xml deleted file mode 100644 index 3bbbc0d4..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - Fonctions natives - - Smarty est fourni en standard avec plusieurs fonctions natives. - Ces fonctions natives sont partie intégrante du moteur de Smarty. - Vous ne pouvez pas créer de - fonctions utilisateurs - qui portent le même nom qu'une fonction native et vous ne pouvez pas non - plus en modifier le comportement. - - - Quelques-unes de ces fonctions ont un attribut - assign qui récupère le résultat de la - fonction et la place dans une variable nommée dans le template plutôt que - de l'afficher ; tout comme la fonction - {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; - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 90605a42..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - {capture} - - - {capture} est utilisé pour récupérer la sortie d'éléments dans - une variable au lieu de les afficher. Tout contenu situé entre - {capture name='foo'} et {/capture} - est intercepté dans une variable dont le nom est spécifié dans l'attribut - name. - - - Le contenu capturé peut être utilisé dans - le template par l'intermédiaire de la variable spéciale - $smarty.capture.foo - où foo est la valeur de l'attribut name. - Si vous ne donnez pas de valeur à l'attribut name, alors - default est utilisé en tant que nom, i.e. - $smarty.capture.default. - - - {capture} peut être imbriqué. - - - - - - - - - - - - Attribut - Type - Requis - Defaut - Description - - - - - name - string - non - default - Le nom du bloc capturé - - - assign - string - non - n/a - Le nom de la variable à laquelle la sortie sera assignée - - - - - - Attention - - Faîtes attention lorsque vous interceptez la sortie de commandes - {insert}. - Si vous avez configuré le cache pour que ce - dernier soit actif, et que vous avez des commandes {insert} - supposées s'exécuter dans un contenu en cache, ne tentez pas de capturer - ce contenu. - - - - - {capture} avec le nom de l'attribut - -{$smarty.capture.banner} -{/if} -]]> - - - - - {capture} dans une variable de template - Cet exemple démontre également la fonction - {popup} - - - -Votre IP est {$smarty.server.REMOTE_ADDR}. -{/capture} -Aide -]]> - - - - - - Voir aussi - $smarty.capture, - {eval}, - {fetch}, - fetch() et - {assign}. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 9df5cc08..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - {config_load} - - - {config_load} est utiliseé pour charger des variables - #variables# - depuis un fichier de configuration - dans un template. - - - - - - - - - - - - Nom attribut - Type - Requis - Défaut - Description - - - - - file - chaîne de caractère - Oui - n/a - Le nom du fichier de configuration à inclure - - - section - chaîne de caractère - Non - n/a - Le nom de la section à charger - - - scope - chaîne de caractère - non - local - - La façon dont la portée des variables est définie, soit - local, parent ou global. local signifie que la variable est - chargée dans le contexte du template. parent indique que - la variable est disponible tant dans le template qui - l'a inclus que dans le template parent, ayant réalisé - l'inclusion du sous template. global signifie que la variable - est diponible dans tous les templates. - - - - global - booléen - Non - No - - Si oui ou non les variables sont disponibles pour les - templates parents, identique à scope=parent. - Note: Cet attribut est obsolète depuis l'apparition - de l'attribut scope, il est toutefois toujours supporté. - Si scope est défini, global est ignoré. - - - - - - - Fonction {config_load} - - Le fichier example.conf - - - - - et le template - - -{#pageTitle#|default:"No title"} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Les fichiers de configuration peuvent contenir des sections. - Vous pouvez charger des variables d'une section donnée avec le - nouvel attribut section. - - - - Les sections des fichiers de configuration - et la fonction native - {section} - n'ont rien en commun, il s'avère simplement qu'elles portent le même nom. - - - - fonction {config_load} avec section - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - - Voir aussi $config_overwrite - pour les tableaux de variables de configuration. - - - - Voir aussi - les fichiers de configuration, - les variables de configuration, - $config_dir, - get_config_vars() et - config_load(). - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index af9ffd46..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,457 +0,0 @@ - - - - - - {foreach},{foreachelse} - - {foreach} est utilisé pour parcourir un - simple tableau associatif, - contrairement à {section} - qui effectue une boucle sur les tableaux de données. - La synthaxe pour - {foreach} est plus simple que - {section}, - mais ne peut être utilisé que pour des tableau simple. - Chaque {foreach} doit aller de paire avec une balise fermante - {/foreach}. - - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - from - tableau - oui - n/a - Le tableau à parcourir - - - item - chaîne de caractère - Oui - n/a - Le nom de la variable "élément courant" - - - key - chaîne de caractère - Non - n/a - Le nom de la variable représentant la clef courante. - - - name - chaîne de caractère - Non - n/a - Le nom de la boucle foreach, qui nous permettra - d'accéder à ses propriétés. - - - - - - - - - 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. - - - - - L'attribut <parameter>item</parameter> - -assign('myArray', $arr); -?> -]]> - - - Template pour afficher $myArray dans une liste non-ordonnée. - - - - {foreach from=$myArray item=foo} -
    • {$foo}
    • - {/foreach} -
    -]]> - - - 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 données avec {foreachelse} - Exemple d'un script de recherche dans une base de données (e.g. PEAR ou ADODB), - le résultat de la requête est assigné à Smarty. - -assign('results', $db->getAssoc($sql) ); -?> -]]> - - Le template qui affiche None found - si aucun résultat avec {foreachelse}. - -{$con.name} - {$con.nick}

    -{foreachelse} -Aucun élément n'a été trouvé dans la recherche -{/foreach} -]]> - - - - - .index - - index contient l'index courant du tableau, en commançant par zéro. - - - 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'itération courante de la boucle et commence - toujours à 1, contrairement à - index. - Il est incrémenté d'un, à chaque itération. - - - Exemple avec <parameter>iteration</parameter> et <parameter>index</parameter> - - - - - - - .first - - first vaut &true; si l'itération 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 défini à &true; si l'itération courante de - {foreach} est la dernière. - - - Exemple avec <parameter>last</parameter> - -{$prod}{if $smarty.foreach.products.last}
    {else},{/if} -{foreachelse} -... contenu ... -{/foreach} -]]> -
    -
    -
    - - .show - - show est utilisé en tant que paramètre à {foreach}. - show est une valeur booléenne. 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'itérations que cette boucle - {foreach} effectuera. - Il peut être utilisé dans ou après 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/trunk/docs/fr/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 46ccf82a..00000000 --- a/trunk/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 même flexibilité que l'instruction - PHP if, - avec quelques fonctionnalités supplémentaires pour le - moteur de template. Tous les {if} doivent être - utilisés de pair avec un {/if}. - {else} et {elseif} sont également - des balises autorisées. 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 présente les opérateurs reconnus, qui doivent être entourés d'espaces. - Remarquez que les éléments listés entre [crochets] sont optionnels. Les équivalents - PHP sont indiqués lorsque applicables. - - - - - - - - - - - - Opérateur - Syntaxe alternative - Exemple de syntaxe - Signification - Equivalent PHP - - - - - == - eq - $a eq $b - égalité - == - - - != - ne, neq - $a neq $b - différence - != - - - > - gt - $a gt $b - supérieur à - > - - - < - lt - $a lt $b - inférieur à - < - - - >= - gte, ge - $a ge $b - supérieur ou égal à - >= - - - <= - lte, le - $a le $b - inférieur ou égal à - <= - - - === - - $a === 0 - égalité (type et valeur) - === - - - ! - not - not $a - négation - ! - - - % - 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 - paritée 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} - -{* Vérifie si c'est un tableau. *} -{if is_array($foo) } -..... -{/if} - -{* Vérifie 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/trunk/docs/fr/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 8d874e8f..00000000 --- a/trunk/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 obsolète dans Smarty. - Vous pouvez obtenir des résultats é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 - répertoire plugins/ - ou de votre application. Reportez-vous à l'exemple des - templates composants - pour plus de détails. - - - - - - - - - - - - - Nom attribut - Type - Requis - Défaut - Description - - - - - file - chaîne de caractère - oui - n/a - Le nom du fichier PHP à inclure - - - once - boléen - Non - &true; - Inclure plusieurs fois ou non le fichier PHP si - plusieurs demandes d'inclusions sont faîtes. - - - assign - chaîne de caractère - Non - n/a - le nom de la variable PHP dans laquelle la sortie - sera assignée plutôt que directement affichée. - - - - - - - Les balises {include_php} sont utilisées pour inclure directement - un script PHP dans vos templates. Si - $security est activé, - alors le script à exécuter 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 défaut, les fichiers PHP ne sont inclus qu'une seule fois, même si - la demande d'inclusion survient plusieurs fois dans le template. - Vous pouvez demander à ce que ce fichier soit inclus à chaque demande - grâce à 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 spécifiée plutôt que d'en afficher directement le résultat. - - - 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/trunk/docs/fr/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index d066c298..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - {include} - - - Les balises {include} sont utilisées pour inclure des templates à - l'intérieur d'autres templates. Toutes les variables disponibles - dans le template réalisant 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 définition de l'attribut optionnel assign - spécifie la variable de template assignée à la sortie de - {include} au lieu d'être affichée. Similaire à - {assign}. - - - - Les variables peuvent être passées à des templates inclus comme - attributs. - Toutes les variables explicitement passées à 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 mêmes. - - - - Toutes les valeurs de variables assignées sont restaurées une fois le contexte - du template inclus refermés. 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, parès 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 - chaîne de caractères - Oui - n/a - Le nom du template à inclure - - - assign - chaîne de caractères - Non - n/a - Le nom de la variable dans laquelle sera assignée - 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 affichée 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/trunk/docs/fr/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 02cbc7d0..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - {insert} - - - Les balises {insert} fonctionnent à peu près comme les balises - {include}, - à l'exception que leur sortie n'est PAS placée en cache lorsque - le cache du template est activé. - Les balises {insert} seront exécutées à chaque appel du template. - - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chaîne de caractères - Oui - n/a - le nom de la fonction insert (insert_name) - - - assign - chaîne de caractère - Non - n/a - Le nom de la variable qui recevra la sortie - - - script - chaîne de caractères - Non - n/a - Le nom du script PHP inclus avant que la fonction - insert ne soit appelée. - - - [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# (récupérés - depuis un fichier de configuration), - et à besoin d'un appel de fonction pour récupérer le contenu du bandeau. - - - Fonction {insert} - -{* exemple de récupération 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 - paramètres #emplacement_bandeau# et #id_site#. Smarty va rechercher une - fonction appelée insert_getBanner () dans votre application PHP, et lui - passer les valeurs #banner_location_id# et #site_id# comme premier - paramètre, dans un tableau associatif. Tous les noms des fonctions {insert} - de votre application doivent être prefixées de "insert_" pour remédier - à d'éventuels conflits de nommage. Votre fonction insert_getBanner () - est supposée traiter les valeurs passées et retourner - un résultat. Ces résultats sont affichés 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 résultat 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 - affichée directement. - - - Assigner la sortie à une variable n'est pas - très utile lorsque le cache est activé. - - - - - - - Si vous donnez une valeur à l'attribut script, ce script PHP sera - inclus (une seule fois) avant l'exécution de la fonction {insert}. - Le cas peut survenir lorsque la fonction {insert} n'existe pas encore, - et que le script PHP chargé de sa définission 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 façon, 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 - gérables par le cache. Même 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 méthode est très pratique pour - des éléments tels que les bandeaux publicitaires, les enquêtes, - la météo, les résultats de recherche, retours utilisateurs, etc. - - - - Voir aussi - {include} - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 0ee62f6c..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - {ldelim},{rdelim} - - {ldelim} et {rdelim} sont utilisés pour - échapper - les délimiteurs 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 désactivation de l'analyse de Smarty. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 085b1022..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - {literal} - - Les balises {literal} permettent à un bloc de données - d'être pris tel - quel, sans qu'il ne soit interprété par Smarty. Très pratique lors - de l'emplois d'éléments 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 interprété, et - affiché comme du contenu statique. Si vous voulez inclure des tags de template - dans votre block {literal}, utilisez plutôt - {ldelim}{rdelim} - pour échapper les délimiteurs 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 idée intéressante 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 désactivation de l'analyse de Smarty. - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 0efa67fc..00000000 --- a/trunk/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 ignorés, quelle que soit la valeur de $php_handling. Pour les - utilisateurs avancés seulement, son utilisation n'est normalement pas - nécessaire et n'est pas recommandée. - - - Notes techniques - - Pour accéder 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 glâce favorite :-) -]]> - - - - Voir aussi - $php_handling, - {include_php}, - {include}, - {insert} et - les templates composantes. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 83e1dbee..00000000 --- a/trunk/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 données, - 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 - Défaut - Description - - - - - name - chaîne de caractère - Oui - n/a - Le nom de la section - - - loop - mixed - Oui - n/a - Valeur qui détermine le nombre de fois que la boucle sera exécutée - - - start - entier - Non - 0 - - La position de l'index ou la section commencera son - parcours. Si la valeur donnée est négative, la position de - départ est calculée depuis la fin du tableau. Par exemple, - s'il existe 7 valeurs dans le tableau à parcourir et que start - est à -2, l'index de départ sera 5. Les valeurs incorrectes - (en dehors de la portée du tableau) sont automatiquements - tronquées à 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 négatif, le tableau sera parcouru en sens - inverse - - - max - entier - Non - n/a - Définit le nombre maximum de fois que le tableau sera - parcouru - - - show - booléen - No - &true; - Détermine s'il est nécessaire d'afficher la - section ou non - - - - - - - - Les paramètres 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 imbriquées mais leurs noms doivent être uniques. - - - - L'attribut loop, habituellement un tableau de valeurs, - détermine 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 après le nom de la variable entre crochets []. - - - - {sectionelse} est exécuté lorsqu'aucune valeur n'est trouvée dans la variable à - parcourir. - - - - {section} a également ces propres variables qui gérent les propriétés - de la {section}. - Ces propriétés sont accessibles comme ceci : - {$smarty.section.name.property} - où name est l'attribut name. - - - - Les propriétés 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 référencer les données de la {section}. - - - - - - - - - Boucler dans un tableau associatif avec {section} - - Voici un exemple d'affichage d'un tableau associatif de données 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} démontrant l'utilisation de la variable <varname>loop</varname> - Cet exemple suppose que $custid, $name - et $address sont tous des tableaux contenant le même - 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 détermine uniquement le nombre - de fois qu'il faut boucler. - Vous pouvez accéder à 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} imbriquée - - Les sections peuvent être imbriquées autant de fois que vous le voulez. - Avec les sections imbriquées, vous pouvez accéder aux structures de données - 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 données et {sectionelse} - Les résultats d'une recherche dans une base de données - (e.g. ADODB ou PEAR) sont assignés à Smarty - - assign('contacts', $db->getAll($sql)); -?> -]]> - -Le template pour afficher le résultat de la base de données 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 élément n'a été trouvé -{/section} - -]]> - - - - - - .index - - index contient l'index courant du tableau, en commençant par zéro ou par - start s'il est fourni. Il s'incrémente d'un en un ou de - step s'il est fourni. - - - Note technique - - Si les propriétés step et start - ne sont pas modifiés, alors le fonctionnement est le même que celui de la propriété - iteration, - mise à part qu'il commence à zéro au lieu de un. - - - -Exemple avec la propriété <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 précédente. - Lors de la première 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 propriétés <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'itération courante de la boucle et commence à un. - - - - Ceci n'est pas affecté par les propriétés {section} - start, step et - max contrairement à la propriété - index. - iteration commence également à un au lieu de zéro - contrairement à index. - rownum - est un alias de iteration, ils sont identiques. - - - -Exemple avec la propriété <varname>iteration</varname> - -assign('arr',$id); -?> -]]> - -Le template pour afficher tous les autres éléments 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 propriété - iteration est d'afficher un bloc d'en-tête d'un tableau toutes - les 5 lignes. - Utilisez la fonction {if} - avec l'opérateur 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 défini à &true; si l'itération courante de - {section} est l'initiale. - - - - - - .last - - last est défini à &true; - si l'itération courante de la section est la dernière. - - - Exemple avec les propriétés <varname>first</varname> et <varname>last</varname> - - Cet exemple boucle sur le tableau $customers, - affiche un bloc d'en-tête lors de la première itération et, lors de la dernière, - affiche un bloc de pied de page. Utilise aussi la propriété - 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'itération courante de la boucle, - commençant à un. C'est un alias de iteration, - ils fonctionnent exactement de la même façon. - - - - - .loop - - loop contient le dernier index de la boucle de la section. - Il peut être utilisé dans ou après la {section}. - - - Exemple avec la propriété <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 paramètre à la section et est une valeur booléenne. - S'il vaut &false;, la section ne sera pas affichée. S'il y a un - {sectionelse}, il sera affiché de façon alternative. - - - Exemple avec la propriété <varname>show</varname> - Une valeur booléenne $show_customer_info est passée - depuis l'application PHP, pour réguler 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'itérations que cette - {section} bouclera. Il peut être utilisé dans ou après une - {section}. - - - Exemple avec la propriété <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/trunk/docs/fr/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/fr/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index cb49371e..00000000 --- a/trunk/docs/fr/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - {strip} - - Il est fréquent que les designers web rencontrent des problèmes - dus aux espaces et retours chariots, qui affectent le rendu HTML - ("fonctionnalités" des navigateurs), les obligeant à coller les - balises les unes aux autres. Cette solution rend généralement le - code illisible et impossible à maintenir. - - - Tout contenu situé entre les balises {strip}{/strip} se verra - allégé des espaces superflus et des retours chariots en début 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 - indésirables 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 début ou en fin de ligne dans des balises strip, ce dernier sera collé - au suivant/précédent et risque de ne pas être affiché selon - l'effet désiré. - - - Voir aussi - le modificateur strip. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-combining-modifiers.xml b/trunk/docs/fr/designers/language-combining-modifiers.xml deleted file mode 100644 index 06bce7bd..00000000 --- a/trunk/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 invoqués dans l'ordre d'apparition, de la gauche vers la droite. - Ils doivent être séparés par un | (pipe). - - - Combiner des modificateurs - -assign('titreArticle', 'Les fumeurs sont productifs, mais la mort -tue l\'efficacitée.'); - -?> -]]> - - - Où le template est : - - - - - - Celà va afficher : - - - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions.xml b/trunk/docs/fr/designers/language-custom-functions.xml deleted file mode 100644 index acfe69a2..00000000 --- a/trunk/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/trunk/docs/fr/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index e92a55c1..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - {assign} - - {assign} est utilisé pour déclarer des variables de template - durant l'exécution du template. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - var - chaîne de caractère - Oui - n/a - Le nom de la variable assignée - - - value - chaîne de caractère - Oui - n/a - La valeur assignée - - - - - - {assign} - - - - - L'exemple ci-dessus affichera : - - - - - - - - {assign} avec quelques fonctions mathématiques - Cet exemple complexe doit avoir ces variables entre crochets. - - - - - - - Accès aux variables {assign} depuis un script PHP - - Pour accéder aux variables {assign} depuis le script PHP, utilisez - get_template_vars(). - Ci-dessous, le template qui crée la variable $foo. - - - - - - Les variables de template ne sont disponibles que après/durant l'exécution du template, - comme dans le script ci-dessous. - - -get_template_vars('foo'); - -// Récupère le template dans une variable -$whole_page = $smarty->fetch('index.tpl'); - -// Ceci affichera 'smarty' car le template a été exécuté -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/trunk/docs/fr/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 53a41d57..00000000 --- a/trunk/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 itération. Vous pouvez adapter le nombre, l'intervale - et la direction du compteur, ainsi que décider d'afficher ou non - les valeurs. Vous pouvez lancer plusieurs compteurs simultanément 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 assignée - à la variable de template donnée plutôt que d'être directement affichée. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chaîne de caractère - Non - default - Le nom du compteur - - - start - numérique - Non - 1 - La valeur initiale du compteur - - - skip - numérique - Non - 1 - L'intervale du compteur - - - direction - chaîne de caractères - Non - up - la direction du compteur (up/down) [compte / décompte] - - - print - booléen - Non - &true; - S'il faut afficher cette valeur ou non - - - assign - chaîne de caractères - Non - n/a - La variable dans laquelle la valeur du compteur - sera assignée. - - - - - - {counter} - - -{counter}
      -{counter}
      -{counter}
      -]]> -
      - - L'exemple ci-dessus affichera : - - - -2
      -4
      -6
      -]]> -
      -
      -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 88904b6d..00000000 --- a/trunk/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. - Très pratique pour alterner entre deux ou plusieurs couleurs dans un tableau, - ou plus généralement pour boucler sur les valeurs d'un tableau. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chaîne de caractères - Non - default - Le nom du cycle - - - values - divers - Oui - N/A - Les valeurs sur lesquelles boucler, soit une liste - séparée par des virgules, (voir l'attribut delimiter), - soit un tableau de valeurs - - - print - booléen - Non - &true; - S'il faut afficher ou non cette valeur - - - advance - booléen - Non - &true; - Oui ou non aller à la prochaîne valeur - - - delimiter - chaîne de caractères - Non - , - Le délimiteur à utiliser dans la liste. - - - assign - chaîne de caractères - Non - n/a - La variable de template dans laquelle la sortie - sera assignée - - - reset - booléen - Non - &false; - Le cycle sera défini à la première valeur - - - - - - - - - Vous pouvez définir plusieurs {cycle} dans votre template, en leur - donnant des noms uniques (attribut name). - - - Vous pouvez empêcher la valeur courante de s'afficher en définissant - l'attribut print à &false;. Ce procédé peut être - utile pour discrètement passer outre une valeur de la liste. - - - L'attribut advance est utilisé pour répéter une valeur. Lorsque - définit à &false;, le prochain appel de {cycle} ramènera la même valeur. - - - Si vous définissez l'attribut spécial assign, la sortie de la fonction - {cycle} y sera assignée plutôt que d'être directement affichée. - - - - {cycle} - - - {$data[rows]} - -{/section} -]]> - - Le template ci-dessus affichera : - - - 1 - - - 2 - - - 3 - -]]> - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index cae45f77..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - {debug} - - {debug} amène la console de débogage sur la page. - Fonctionne quelle que soit la valeur du paramètre - debug de Smarty. - Comme ce dernier est appelé lors de l'exécution, il n'est capable - d'afficher que les variables assignées - 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 - chaîne de caractères - Non - javascript - Type de sortie, html ou javascript - - - - - - Voir aussi - la console de débogage. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 12b01eb1..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - {eval} - - {eval} évalue une variable comme si cette dernière - é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 définissez l'attribut assign, la sortie sera assignée à la - variable de template désignée plutôt que d'être affichée dans le - template. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - var - mixed - Oui - n/a - Variable (ou chaîne de caractères) à évaluer - - - assign - chaîne de caractères - Non - n/a - Le nom de la variable PHP dans laquelle la sortie - sera assignée - - - - - - Note technique - - - - Les variables évaluées sont traitées de la même façon que les templates. - Elles suivent les mêmes règles de traitement et de sécurité, comme si - elles étaient réellement des templates. - - - - Les variables évaluées sont compilées à chaque invocation, et la version - compilée n'est pas sauvegardée ! Toutefois, si le - cache est activé, la sortie sera placée 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 spécifier un nom de {#emphstart#}ville{#emphend#}. -ErrorDept = Vous devez spécifier un {#emphstart#}département{#emphend#}. -]]> - - - Où le template est : - - - - - - L'exemple ci-dessus affichera : - - -ville. -Vous devez spécifier un département. -]]> - - - - - un autre exemple avec {eval} - - Ceci va afficher le nom du serveur (en majuscule) et son IP. - La variable $str également venir d'une requête de base de données. - - -assign('foo',$str); -?> - ]]> - - - Où le template est : - - - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index df3853fe..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - {fetch} - - {fetch} est utilisé pour récupérer des fichiers depuis le système 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 - récupérée, puis affichée. - - - Ceci ne supporte pas les redirections http. Assurez vous d'inclure les - slash de fin sur votre page web si nécessaire. - - - - - - - - Si le nom du fichier commence par ftp://, - le fichier sera récupéré depuis le serveur ftp, et affiché. - - - - - - Pour les fichiers du système local, le chemin doit être absolu ou - relatif au chemin d'exécution du script PHP. - - - Si la variable de template - $security - est activée et que vous récupérez un fichier depuis le système - de fichiers local, {fetch} - ne permettra que les fichiers se trouvant dans un des dossiers - définis dans les dossiers sécurisés. - - - - - - - - Si l'attribut assign est défini, l'affichage - de la fonction {fetch} sera assignée à cette - variable de template au lieu d'être affichée dans le template. - - - - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - file - chaîne de caractères - Oui - n/a - Le fichier, site http ou ftp à récupérer - - - assign - chaîne de caractères - Non - n/a - Le nom de la variable PHP dans laquelle la sortie - sera assignée plutôt que d'être directement affichée. - - - - - - - Exempe avec {fetch} - -{$weather} -{/if} -]]> - - - - Voir aussi - {capture}, - {assign} - {eval} et - fetch(). - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index 0f678a58..00000000 --- a/trunk/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 crée un groupe de cases à cocher avec les données fournies. Elle prend - en compte la liste des éléments sélectionnés par défaut. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chaîne de caractères - 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 - chaîne de caractères/tableau - Non - empty - Les éléments cochés 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 - chaîne de caractères - Non - empty - chaîne de caractère pour séparer chaque case - à cocher - - - assign - chaîne de caractères - Non - empty - Assigne les balises d'un checkbox à un tableau plutôt que de les afficher - - - labels - booléen - Non - true - Ajoute la balise <label>- à la sortie - - - assign - chaîne de caractères - Non - empty - Assigne la sortie à un tableau dont chaque checkbox est un élément. - - - - - - - - - Les attributs requis sont values et - output, à moins que vous utilisez - options à la place. - - - - - Tous les affichages sont conformes XHTML. - - - - - Tous les paramètres qui ne sont pas dans la liste ci-dessus - sont affichés sous la forme de paires nom/valeur dans chaque - balise <input> crées. - - - - - - {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 données (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 résultat des requêtes de la base de données sera affiché avec : - - -'} -]]> - - - - Voir aussi - {html_radios} et - {html_options}. - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 2719b3eb..00000000 --- a/trunk/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 génère la balise - HTML pour une image. La hauteur et la longueur de l'image sont calculés - automatiquement depuis le fichier image si aucune n'est spécifiée. - - - - - - - - - - - Nom attribut - Type - Requis - Défaut - Description - - - - - file - chaîne de caractères - Oui - n/a - nom/chemin des images - - - height - chaîne de caractères - Non - Hauteur de l'image actuelle - Hauteur de l'image à afficher - - - width - chaîne de caractères - Non - Longueur de l'image actuelle - Longueur de l'image à afficher - - - basedir - chaîne de caractères - non - racine du serveur web - Répertoire depuis lequel baser le calcul des - chemins relatifs - - - alt - chaîne de caractères - non - - Description alternative de l'image - - - href - chaîne de caractères - non - n/a - valeur de l'attribut href, indiquant le lien vers l'image - - - path_prefix - chaîne de caractères - non - n/a - Préfixe pour le chemin de la sortie - - - - - - - - basedir est le dossier de base dans lequel - les images sont basées. S'il n'est pas fourni, la variable d'environnement - $_ENV['DOCUMENT_ROOT'] sera utilisée. - Si $security - est activé, le chemin vers l'image doit être présent dans le - dossier de sécurité. - - - - href est la valeur de l'attribut href de l'image. - Si le lien est fourni, une balise <a href="LINKVALUE"><a> - sera placée autour de la balise de l'image. - - - - path_prefix est un préfixe optionnel que vous pouvez fournir. - Il est utile si vous voulez fournir un nom de serveur différent pour l'image. - - - - Tous les paramètres qui ne sont pas dans la liste ci-dessus sont affichés - sous la forme d'une paire nom/valeur dans la balise - <img> créée. - - - - - Note technique - - {html_image} requiert un accès au disque dur pour lire l'image et - calculer ses dimensions. Si vous n'utilisez pas un cache, - il est généralement préférable 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/trunk/docs/fr/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 75fb6853..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - {html_options} - - {html_options} est une - fonction personnalisée - qui crée un groupe d'options avec les données fournies. Elle prend en charge - les éléments sélectionnés par défaut. - - - - - - - - - - - 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 - déroulantes - - - output - array - Oui, à moins que vous n'utilisiez - l'attribut options - n/a - Un tableau de libellés pour la liste - déroulante - - - selected - chaîne de caractères/tableau - Non - empty - Les éléments sélectionnés - - - options - Tableau associatif - Oui, à moins que vous n'utilisiez option - et values - n/a - Un tableau associatif valeur / libellé - - - name - chaîne de caractères - 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 créées, - sinon, UNIQUEMENT la liste <option> sera générée. - - - - Si la valeur fournie est un tableau, il sera traité comme un - <optgroup> HTML, et affichera les groupes. - La récursivité est supportée avec <optgroup>. - - - - Tous les paramètres qui ne sont pas dans la liste ci-dessus sont affichés - sous la forme de paire nom/valeur dans la balise - <select>. Ils seront ignorés si le paramètre 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 génèrera une liste. Notez la présence - de l'attribut name qui crée les - balises <select>. - - - - - - - L'affichage de l'exemple ci-dessus sera : - - - - - - - -]]> - - - - - Tableaux séparés 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 affichés avec le template suivant - (notez l'utilisation de la fonction PHP - count() en tant que modificateur pour - définir 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 données (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/trunk/docs/fr/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 15194736..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - {html_radios} - - {html_radios} est une - fonction personnalisée - qui crée des boutons radio html à partir des données fournies. Elle prend en - charge les éléments sélectionnés par défaut. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chaîne de caractères - 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 libellés pour les boutons radio - - - checked - chaîne de caractères - Non - empty - Les boutons radios sélectionnés - - - options - tableau associatif - Oui, à moins que vous n'utilisiez values - et outputs - n/a - Un tableau associatif valeurs / libellés - - - separator - chaîne de caractères - Non - empty - Chaîne de séparation à placer entre les - boutons radio - - - assign - chaîne de caractères - Non - empty - Assigne les balises des boutons radio à un tableau plutôt 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 paramètres qui ne sont pas dans la liste ci-dessus sont - affichés sous la forme de paire nom/valeur dans la balise - <input> créées. - - - - - {html_radios} : Première 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} : Deuxième 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 données (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 assignée depuis la base de données ci-dessus sera affichée - avec le template : - - -'} -]]> - - - - Voir aussi - {html_checkboxes} et - {html_options}. - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 4fdee5c7..00000000 --- a/trunk/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 personnalisée - qui crée des listes déroulantes pour saisir la date. Elle peut afficher n'importe - quel jour, mois et année. - Tous les paramètres qui ne sont pas dans la liste ci-dessous sont - affichés sous la forme pair nom/valeur dans les balises - <select> des jours, mois et années. - - - - - - - - - - - Nom attribut - Type - Requis - Défaut - Description - - - - - prefix - chaîne de caractères - Non - Date_ - Avec quoi préfixer 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 - chaîne de caractères - Non - current year - La première année dans la liste déroulante, soit - le numéro de l'année, soit un nombre relatif à l'année - courante (+/- N). - - - end_year - chaîne de caractères - Non - même chose que start_year - La dernière année dans la liste déroulante, soit - le numéro de l'année, soit un nombre relatif à l'année - 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 années ou pas. - - - month_format - chaîne de caractères - Non - %B - le format du mois (strftime) - - - day_format - chaîne de caractères - Non - %02d - Le format du jour (sprintf) - - - day_value_format - chaîne de caractères - Non - %d - Le format de la valeur du jour (sprintf) - - - year_as_text - boolean - Non - false - S'il faut afficher l'année au format texte - - - reverse_years - boolean - Non - false - Affiche les années dans l'ordre inverse - - - field_array - chaîne de caractères - Non - null - - Si un nom est donné, la liste déroulante sera affichée - de telle façon que les résultats seront retournés à PHP - sous la forme nom[Day] (jour), nom[Year] (année), - nom[Month] (Mois). - - - - day_size - chaîne de caractères - Non - null - Ajoute un attribut size à la liste - déroulante des jours. - - - month_size - chaîne de caractères - Non - null - Ajoute un attribut size à la liste - déroulante des mois. - - - year_size - chaîne de caractères - Non - null - Ajoute un attribut size à la liste - déroulante des années. - - - all_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires à - toutes les balises select/input. - - - day_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select/input du jour. - - - month_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select/input du mois. - - - year_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select/input de l'année. - - - field_order - chaîne de caractères - Non - MDY - L'ordre dans lequel afficher les - listes déroulantes. - - - field_separator - chaîne de caractères - Non - \n - la chaîne de caractères affichée entre les - différents champs. - - - month_value_format - chaîne de caractères - Non - %m - Le format strftime de la valeur des mois, par défaut %m - pour les numéros. - - - year_empty - chaîne de caractères - Non - null - S'il est renseigné, alors le premier élément de la boite de sélection - affiche le texte donné en tant que libellé et dispose de la valeur . - Utile par exemple lorsque vous souhaitez que la boite de sélection affiche - Sélectionnez une année. - A savoir que vous pouvez spécifier des valeurs de la forme -MM-DD pour - l'attribut time afin d'indiquer une année non sélectionnée. - - - month_empty - chaîne de caractères - Non - null - S'il est renseigné, le premier élément de la boite de sélection - affiche le texte donné en tant que libellé et dispose de la valeur . - A savoir que vous pouvez spécifier des valeurs de la forme YYYY--DD pour - l'attribut time afin d'indiquer qu'il manque le moi. - - - day_empty - chaîne de caractères - Non - null - S'il est renseigné, le premier élément de la boite de sélection - affiche le texte donné en tant que libellé et dispose de la valeur . - A savoir que vous pouvez spécifier 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} : Deuxième exemple - - - - - Ce qui donne en sortie: (L'année 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/trunk/docs/fr/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 759a6320..00000000 --- a/trunk/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 personnalisée - qui crée des listes déroulantes pour saisir une heure. Elle prends en charge l'heure, - les minutes, les secondes et le méridian. - - - L'attribut time accepte comme paramètre différents - formats. Ils peuvent être un timestamp unique, une chaîne respectant le format - YYYYMMDDHHMMSS ou une chaîne - valide pour la fonction php - strtotime(). - - - - - - - - - - - Nom attribut - Type - Requis - Défaut - Description - - - - - prefix - chaîne de caractères - Non - Time_ - Par quoi préfixer 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 méridian (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 - déroulante - - - second_interval - integer - Non - 1 - Intervalle des secondes dans la liste - déroulante - - - field_array - chaîne de caractères - Non - n/a - Nom du tableau dans lequel les valeures - seront stockées. - - - all_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select / input. - - - hour_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select / input de l'heure. - - - minute_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select / input des minutes. - - - second_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select / input des secondes. - - - meridian_extra - chaîne de caractères - Non - null - Ajoute des attributs supplémentaires aux balises - select / input du méridian. - - - - - - 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/trunk/docs/fr/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 8b40b03c..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - {html_table} - - {html_table} est une - fonction personnalisée - qui transforme un tableau de données dans un tabeau HTML. - - - - - - - - - - - Nom de l'attribut - Type - Requis - Défaut - Description - - - - - loop - tableau - Oui - n/a - Tableau de données à parcourir - - - cols - mixed - Non - 3 - - Nombre de colonnes de la table ou une liste de noms de colonnes séparés par une - virgule ou un tableau contenant les noms des colonnes. Si l'attribut "cols" est vide, - mais que des lignes sont données, alors le nombre de colonnes sera calculé - en utilisant le nombre de lignes et le nombre d'éléments à afficher pour qu'il y - ait juste assez de colonnes pour afficher tous les éléments. Si les lignes et - les colonnes sont omis tous les deux, la valeur par défaut de "cols" sera appliquée, - à savoir 3. Si fourni en tant que liste ou tableau, le nombre de colonnes - est calculé par rapport au nombre d'éléments 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 données, alors le nombre de lignes sera calculée en utilisant le nombre de colonnes - et le nombre d'éléments à afficher pour qu'il y ait juste assez de lignes pour afficher - tous les éléments. - - - - inner - chaîne de caractères - No - cols - - La direction du rendu des éléments consécutifs dans la boucle du tableau. - cols signifie que les éléments doivent être - afficher colonnes par colonnes. - rows signifie que les éléments doivent être - afficher lignes par lignes. - - - - caption - chaîne de caractères - No - empty - - Texte à utiliser pour l'élément <caption> du tableau. - - - - table_attr - chaîne de caractères - Non - border="1" - attributs pour la balise <table> - - - th_attr - chaîne de caractères - No - empty - Attributs pour les balises <th> - (les tableaux sont parcourus) - - - tr_attr - chaîne de caractères - Non - empty - Attributs pour les balises <tr> (les tableaux sont parcourus) - - - td_attr - chaîne de caractères - Non - empty - Attributs pour les balises <td> - (les tableaux sont parcourus) - - - trailpad - chaîne de caractères - Non - &nbsp; - Valeur avec laquelle remplir les cellules - restantes de la dernière ligne (si il y en a) - - - hdir - chaîne de caractères - Non - right - - Direction du rendu. Les valeurs possibles sont right (left-to-right), - left (right-to-left) - - - - vdir - chaîne de caractères - Non - down - - Direction des colonnes lors du rendu. Les valeurs possibles sont : - down (top-to-bottom), up - (bottom-to-top) - - - - - - - - - L'attribut cols détermine le nombre - de colonnes dans le tableau. - - - - Les valeurs table_attr, tr_attr - et td_attr déterminent 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 utilisée pour compléter les cellules - vides de la dernière 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 assignées depuis PHP peuvent être affichées comme le démontre - cet exemple. - - - - - 123 - 456 - 789 - - - - -{**** Deuxième exemple ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - - - - - - - -
      1234
      5678
      9   
      - - -{**** Troisième 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/trunk/docs/fr/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 1e9e4c05..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - {mailto} - - {mailto} crée un lien mailto: - automatiquement encodé (optionnel). - L'encodage rend la tâche de récupération 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 hexadécimal. - - - - - - - - - - - - Nom attribut - Type - Requis - Défaut - Description - - - - - address - chaîne de caractères - Oui - n/a - L'adresse email - - - text - chaîne de caractères - Non - n/a - Le texte à afficher, par défaut l'adresse email - - - encode - chaîne de caractères - Non - none - Comment encoder l'adresse email. - none, hex, javascript - et javascript_charcode sont des valeurs correctes. - - - cc - chaîne de caractères - Non - n/a - Les adresses email en copie (Cc). - Séparez les entrées par une virgule. - - - bcc - chaîne de caractères - Non - n/a - Les adresses email en copie cachées (Bcc). - Séparez les entrées par une virgule. - - - subject - chaîne de caractères - Non - n/a - Sujet de l'email. - - - newsgroups - chaîne de caractères - Non - n/a - Newsgroup où poster le message. - Séparez les entrées par une virgule. - - - followupto - chaîne de caractères - Non - n/a - Adresses où transmettre le message. - Séparez les entrées par une virgule. - - - - extra - chaîne de caractères - 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/trunk/docs/fr/designers/language-custom-functions/language-function-math.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index bb8f5140..00000000 --- a/trunk/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 opérations dans le template. - - - - Toute valeur numérique peut être utilisée dans une - opération, et le résultat sera affiché à la place des balises - "equation". - - - - Les variables utilisées dans l'opération sont passées en - tant que paramètre, 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 opérateurs valides. Voir la - documentation PHP pour plus d'informations sur ces fonctions - mathématiques. - - - - Si vous spécifiez l'attribut assign, la sortie - de la fonction {math} sera assignée à la variable - donnée plutôt que d'être directement affichée. - - - - - Note technique - - {math} est une fonction coûteuse 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 résultat au template. - Evitez coût que coût les appels répétitifs à la fonction {math}, - comme on pourait le faire une - une boucle {section}. - - - - - - - - - - - - Nom attribut - Type - Requis - Défaut - Description - - - - - equation - chaîne de caractères - Oui - n/a - L'opération à éxécuter - - - format - chaîne de caractères - Non - n/a - Le format du résultat (sprintf) - - - var - numeric - Oui - n/a - Les variables de l'opération - - - assign - chaîne de caractères - Non - n/a - Variable de template dans laquelle la sortie - sera assignée - - - [var ...] - numeric - Oui - n/a - Valeurs des variables de l'opération - - - - - - {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/trunk/docs/fr/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index 2ad1838e..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - {popup_init} - - {popup} - est une intégration de overLib, - une librairie capable de réaliser des fenêtres surgissantes (nous parlerons de "popup"). - Ce type de fenêtre est utilisé pour apporter des informations - contextuelles, comme des infobulles d'aides ou astuces. - - - - - {popup_init} doit être appelé une seule fois, - de préférence dans la balise <head>, dans toutes les pages si vous - comptez utiliser la fonction - {popup}. - - - - Le chemin est relatif au script exécuté ou un chemin complet (i.e. non relatif au template). - - - - overLib - a été écrit par Erik Bosrup, et le site de l'auteur/le téléchargement est disponible à l'adresse sur - &url.overLib;. - - - - - {popup_init} - - -{* popup_init doit être appelé une fois en début de page. *} -{popup_init src='/javascripts/overlib.js'} - -{* exemple avec une url complète *} -{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/trunk/docs/fr/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index 4dad51bd..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - {popup} - - {popup} est utilisé pour créer une fenêtre popup javascript. - {popup_init} - DOIT être appelé en premier pour que cela fonctionne. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - text - chaîne de caractères - Oui - n/a - Le texte/code html à afficher dans la popup - - - trigger - chaîne de caractères - Non - onMouseOver - L'évènement utilisé pour rendre la popup active, - onMouseOver ou onClick. - - - sticky - booléen - Non - &false; - Rends la popup active jusqu'a ce qu'elle soit - explicitement fermée. - - - caption - chaîne de caractères - Non - n/a - Défini le libellé du titre - - - fgcolor - chaîne de caractères - Non - n/a - Couleur interne de la popup - - - bgcolor - chaîne de caractères - Non - n/a - Couleur de la bordure de la popup - - - textcolor - chaîne de caractères - Non - n/a - Couleur du texte à l'intérieur de la - popup - - - capcolor - chaîne de caractères - Non - n/a - Couleur du libellé de la popup - - - closecolor - chaîne de caractères - Non - n/a - Couleur du texte de fermeture - - - textfont - chaîne de caractères - Non - n/a - La police à utiliser dans le texte principal - - - captionfont - chaîne de caractères - Non - n/a - La police à utiliser dans le libellé - - - closefont - chaîne de caractères - Non - n/a - La police pour le texte de fermeture - - - textsize - chaîne de caractères - Non - n/a - Taille de la police texte prinicpal - - - captionsize - chaîne de caractères - Non - n/a - Taille de la police du libellé - - - closesize - chaîne de caractères - 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 - booléen - Non - &false; - La popup va à gauche de la souris - - - right - booléen - Non - &false; - La popup va à droite de la souris - - - center - booléen - Non - &false; - La popup est centrée par rapport à la - position de la souris - - - above - booléen - Non - &false; - la popup est au dessus de la souris. NOTE: - possible uniquement si la hauteur est définie - - - below - booléen - 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 à définir bgcolor à "" ou la - couleur apparaitra de même. NOTE: Lorsque vous avez un - lien de fermeture, Netscape effectuera un nouveau rendu - des cellules du tableau, affichant mal les éléments - - - closetext - chaîne de caractères - Non - n/a - Définit le texte de fermeture par autre chose - que "Close" - - - noclose - booléen - Non - n/a - N'affiche pas le bouton "Close" pour les fenêtres - "collantes". - - - - status - chaîne de caractères - Non - n/a - Défini le texte de la barre de statut - du navigateur - - - autostatus - booléen - Non - n/a - Défini le texte de la barre de statut au contenu - de la popup. NOTE: Ecrase l'attribut status. - - - autostatuscap - chaîne de caractères - Non - n/a - Défini 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 paramètre 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 spécifiée 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 - Vérrouille la popup à une position horizontale. - Note: remplace les autres paramètres de position - horizontale - - - fixy - entier - Non - n/a - Vérouille la popup à une position verticale - Note: remplace les autres paramètres de position - verticale - - - background - url - Non - n/a - Défini l'image à utiliser plutôt que le tableau - de fond - - - padx - entier, entier - Non - n/a - Écarte l'image de fond du reste des éléments - avec un espace horizontal, pour le positionnement du texte. - Note: c'est un attribut à deux paramètres. - - - pady - entier, entier - Non - n/a - Écarte l'image de fond du reste des éléments - avec un espace vertical, pour le positionnement du texte. - Note: c'est un attribut à deux paramètres. - - - fullhtml - booléen - 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 - chaîne de caractères - Non - n/a - Contrôle la popup dans un cadre différent. - Voir la documentation d'overlib pour plus de détails - sur cette fonction. - - - function - chaîne de caractères - Non - n/a - Appelle la fonction javascript spécifiée 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 délai, en - millisecondes. - - - hauto - booléen - Non - n/a - Détermine automatiquement si la popup doit être - à gauche ou à droite de la souris - - - vauto - booléen - Non - n/a - Détermine 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/trunk/docs/fr/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/fr/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index de88a431..00000000 --- a/trunk/docs/fr/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,303 +0,0 @@ - - - - - - {textformat} - - {textformat} est une - fonction de bloc - utilisée pour formater du texte. - Elle nettoie la chaîne de ses espaces et caractères spéciaux, puis - formate les paragraphes en ajustant ces derniers à une certaine limite, - puis en indentant les lignes. - - - Vous pouvez soit utiliser un style prédéfini, soit définir explicitement - chaque attribut. Actuellement, seul le style prédéfini email est - disponible. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - style - chaîne de caractères - Non - n/a - Style prédéfini - - - indent - number - Non - 0 - Taille de l'indentation pour chaque - ligne - - - indent_first - number - Non - 0 - Taille de l'indentation de la - première ligne - - - indent_char - chaîne de caractères - Non - (single space) - Le caractère (ou la chaîne) à utiliser pour - indenter - - - wrap - number - Non - 80 - À combien de caractères doit on ajuster chaque - ligne - - - wrap_char - chaîne de caractères - Non - \n - Le caractère (ou chaîne de caractères) avec lequel - terminer les lignes - - - wrap_cut - boolean - Non - &false; - Si true, wrap réduira les lignes au caractère exact - au lieu d'ajuster à la fin d'un mot - - - assign - chaîne de caractères - Non - n/a - Le nom de la variable PHP dans laquelle la - sortie sera assignée - - - - - - {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/trunk/docs/fr/designers/language-modifiers.xml b/trunk/docs/fr/designers/language-modifiers.xml deleted file mode 100644 index 3dc6a066..00000000 --- a/trunk/docs/fr/designers/language-modifiers.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - Modificateurs de variables - - Les modificateurs de variables peuvent être appliqués aux - variables, - fonctions utilisateurs - ou chaînes de caractères. 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 paramètres additionnels, qui en affectent - le comportement. Ces paramètres suivent le nom du modificateur et - sont séparés par un : (deux points). - Toutes les fonctions PHP peuvent être utilisées en tant que modifieurs - implicitement (plus d'informations ci-dessous) et les modificateurs peuvent - être combinés. - - - Exemple de modificateur - - - {html_options output=$myArray|upper|truncate:20} - -]]> - - - - - - Si vous appliquez un modificateur de variable à un tableau plutôt qu'à une - variable simple, le modificateur sera appliqué à chaque valeur du tableau. - Si vous souhaitez que le modificateur travaille réellement avec le tableau - en tant que tel, vous devez préfixer le nom du modificateur avec un symbole - @ - - Exemple - {$articleTitle|@count} - affichera le nombre - d'éléments dans le tableau $articleTitle en utilisant - la fonction PHP count() - comme modificateur. - - - - - - - - Les modificateurs sont chargés automatiquement depuis votre répertoire - de plugin $plugins_dir - ou peuvent être enregistrés 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 utilisées comme modificateur, - sans autre déclaration, tel que dans l'exemple ci-dessus. - Cepdendant, l'utilisation de fonctions PHP comme modificateurs - contient deux petits pièges à éviter : - - Le premier - quelques fois, l'ordre des paramètres 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 deuxième - Si - $security est activé, toutes les fonctions PHP - qui devront être utilisées comme modificateurs, doivent être déclarées dans l'élément - MODIFIER_FUNCS du tableau - - $security_settings. - - - - - - Voir aussi - register_modifier(), - les modificateurs combinés. - 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/trunk/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 99204d95..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - capitalize - - Met la première lettre de chaque mot d'une variable en majuscule. - C'est l'équivalent de la fonction PHP - - ucfirst(). - - - - - - - - - - - Position du paramètre - Type - Requis - Défaut - Description - - - - - 1 - booléen - No - &false; - Détermine 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/trunk/docs/fr/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 727356ff..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - cat - - Cette valeur est concaténée à la variable donnée. - - - - - - - - - - - Position du paramètre - Type - Requis - cat - Description - - - - - 1 - chaîne de caractères - Non - empty - Valeur à concaténer à la variable donnée. - - - - - - cat - -assign('articleTitle', "'Les devins ont prévus que le monde existera toujours"); - -?> -]]> - - - Où le template est : - - - - - - Affichera : - - - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 6b23fe3c..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - count_characters - - Compte le nombre de caractères dans une variable. - - - - - - - - - - - Position du paramètre - 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 liées à la température.'); - -?> -]]> - - - 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/trunk/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index 4557827c..00000000 --- a/trunk/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/trunk/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 106e3bba..00000000 --- a/trunk/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/trunk/docs/fr/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 75d71079..00000000 --- a/trunk/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/trunk/docs/fr/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 5df543b3..00000000 --- a/trunk/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 passées à smarty en tant que - timestamp unix, - timestamp mysql ou comme chaîne quelconque contenant mois jour année - (interprétable par - strtotime()). - Les concepteurs de templates peuvent utiliser date_format pour contrôler - parfaitement le format de sortie de la date. - Si la date passée à date_format est vide, et qu'un - second paramètre est donné, ce dernier sera utilisé comme étant la date à formater. - - - - - - - - - - - Position du paramètre - Type - Requis - Défaut - Description - - - - - 1 - chaîne de caractères - Non - %b %e, %Y - Format de sortie de la date. - - - 2 - chaîne de caractères - Non - n/a - Date par défaut si aucune n'est spécifiée en entrée. - - - - - - - - - Depuis Smarty 2.6.10, les valeurs numériques passées à date_format - sont toujours (excepté pour les timestamps mysql, voir - ci-dessous) interprétées comme un timestamp Unix. - - - Avant la version 2.6.10 de Smarty, les chaînes numériques qui étaient - également analysables par strtotime() - en PHP (comme YYYYMMDD), - étaient, parfois, dépendament de l'implémentation de strtotime(), - interprétées en tant que des chaînes date et NON des timestamps. - - - La seule exception est les timestamps MySQL : Ils sont uniquement numériques - et d'une longueur de 14 caractères (YYYYMMDDHHMMSS). Les timestamps - MySQL ont la priorité sur les timestamps Unix. - - - - Note pour les développeurs - - date_format est essentiellement un gestionnaire pour la fonction PHP - strftime(). - Vous pourriez avoir plus ou moins d'options disponibles suivant le système sur lequel - la fonction PHP strftime() - a été compilé. Vérifiez la documentation pour votre système pour avoir une liste complète - 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 - Abréviation du jour de la semaine, selon les paramètres locaux. - - - %A - Nom du jour de la semaine, selon les paramètres locaux. - - - %b - Abréviation du nom du jour, selon les paramètres locaux. - - - %B - Nom complet du mois, selon les paramètres locaux. - - - %c - Préférences d'affichage selon les paramètres locaux. - - - %C - Siècle, (L'année divisée par 100 et tronquée comme un entier, de 00 à 99) - - - %d - Jour du mois, en tant que nombre décimal (de 01 à 31) - - - %D - même chose que %m/%d/%y - - - %e - Jour du mois en tant que nombre décimal. Un chiffre unique est précédé par - un espace (de 1 à 31) - - - %g - Position de la semaine dans le siècle [00,99] - - - %G - Position de la semaine, incluant le siècle [0000,9999] - - - %h - identique à %b - - - %H - L'heure en tant que décimale, en utilisant une horloge sur 24 (de 00 à 23) - - - %I - L'heure en tant que décimale en utilisant une horloge sur 12 (de 01 to 12) - - - %j - jour de l'année (de 001 à 366) - - - %k - Heure (horloge sur 24). Les numéros à un chiffre sont précédés d'un espace. (de 0 à 23) - - - %l - Heure (horloge sur 12). Les numéros à un chiffre sont précédés d'un espace. (de 1 à 12) - - - %m - Mois en tant que nombre décimal (de 01 à 12) - - - %M - Minute en tant que nombre décimal - - - %n - Retour chariot (nouvelle ligne). - - - %p - soit am soit pm selon l'heure donnée, 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 décimal. - - - %t - Caractère tabulation. - - - %T - Heure courante, équivalent à %H:%M:%S - - - %u - Jour de la semaine en tant que nombre décimal [1,7], ou 1 représente le lundi. - - - %U - Le numéro de la semaine en nombre décimal, utilisant le premier dimanche - en tant que premier jour de la première semaine. - - - %V - Le numéro de la semaine de l'année courante selon la norme ISO 8601:1988, - de 01 à 53, ou la semaine 1 est la première semaine qui dispose au minimum - de 4 jours dans l'année courante et ou Lundi est le premier jour - de cette semaine. - - - %w - Jour de la semaine en tant que nombre décimal, dimanche étant 0 - - - %W - Le numéro de la semaine de l'année courante en tant que nombre décimal, - ou Lundi est le premier jour de la première semaine. - - - %x - Représentation préférée de la date selon les paramètres locaux. - - - %X - Représentation préférée de l'heure selon les paramètres locaux, sans la - date. - - - %y - L'année en tant que nombre décimal, sans le siècle. (de 00 à 99) - - - %Y - L'année en tant que nombre décimal, avec le siècle. - - - %Z - Zone horraire, nom ou abréviation - - - %% - Un caractère litéral `%' - - - - - Voir aussi - $smarty.now, - strftime(), - {html_select_date} et - les astuces sur les dates. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 48e6a7d1..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - default - - Utilisé pour définir une valeur par défaut à une variable. - Si la variable est vide ou indéfinie, la valeur donnée est affichée - en lieu et place. default attends un seul argument. - - - - - Avec - error_reporting(E_ALL), les variables non - déclarées lanceront toujours une erreur dans le template. Cette fonction est - utile pour remplacer les chaînes vides ou de longueurs vides. - - - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - chaîne de caractères - Non - empty - La valeur par défaut de la sortie si la variable - d'entrée est vide. - - - - - - Défaut - -assign('TitreArticle', 'Les portes de la moria restent fermées.'); -$smarty->assign('email',''); - -?> -]]> - - - Où le template est : - - - - - - Affichera : - - - - - - - Voir aussi - la gestion des variables par défaut - et la gestion de l'effacement des variables. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 22281142..00000000 --- a/trunk/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 hexadécimaux, - avec les entités hexadécimales, avec javascript - et avec les e-mails. - Par défaut, ce paramètre est html. - - - - - - - - - - - - Position du paramètre - Type - Requis - Valeurs possibles - Défaut - Description - - - - - 1 - chaîne de caractère - Non - - html, htmlall, - url, - urlpathinfo, quotes, - hex, hexentity, - javascript, mail - - html - Format d'échappement à utiliser. - - - 2 - chaîne de caractère - Non - - ISO-8859-1, UTF-8, ... n'importe quel jeu de - caractères supporté par - htmlentities() - - ISO-8859-1 - Le jeu de caractères 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 entités 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 utilisées comme modificateurs, suivant la - configuration de - - $security. - - -click here -]]> - - - Et ceci est utile pour les e-mails, mais lisez plutôt 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/trunk/docs/fr/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 523309c1..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - indent - - Indente chacune des lignes d'une chaîne. Comme paramètre optionnel, - vous pouvez spécifier le nombre de caractères à utiliser pour l'indentation (4 par défaut). - Comme second paramètre optionnel, vous - pouvez spécifier le caractère à utiliser pour l'indentation (utilisez - "\t" pour les tabulations). - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - entier - Non - 4 - De combien de caractères l'indentation doit être effectuée. - - - 2 - chaîne de caractère - Non - (espace) - Caractère à 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/trunk/docs/fr/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 0bcea136..00000000 --- a/trunk/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 Sauvés.'); -?> -]]> - - - Où le template est : - - - - - - Affichera : - - - - - - - Voir aussi - upper et - capitalize. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 398d1440..00000000 --- a/trunk/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/trunk/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index 38e05dbe..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - regex_replace - - Un rechercher / remplacer avec une expression régulière. Utilise la même - syntaxe que la fonction PHP - preg_replace(). - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - chaîne de caractère - Oui - n/a - Expression régulière à remplacer. - - - 2 - chaîne de caractère - Oui - n/a - La chaîne 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/trunk/docs/fr/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 597d51c8..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - replace - - Un simple remplacement de chaîne de caractères. C'est l'équivalent - de la fonction PHP - str_replace(). - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - chaîne de caractères - Oui - n/a - chaîne à remplacer. - - - 2 - chaîne de caractères - Oui - n/a - chaîne 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/trunk/docs/fr/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 1b8e07bd..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - spacify - - spacify est un moyen pour insérer un espace entre tous les caractères - d'une variable. Optionnellement, vous pouvez lui passer un caractère - (ou une chaîne) différent de l'espace à insérer. - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - chaîne de caractère - Non - espace - Ce qui est inséré entre chaque caractère 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/trunk/docs/fr/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 3aca76fd..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - string_format - - Un moyen pour formater les chaînes de caractères, comme par exemple les - nombres décimaux. Utilise la syntaxe de - sprintf() - pour formater les éléments. - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - chaîne de caractères - 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/trunk/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index bc854a55..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - strip_tags - - Supprime toutes les balises, et plus généralement tout ce qui se trouve - entre < et >. - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - bool - Non - &true; - Si l'on remplace les éléments 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/trunk/docs/fr/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 3947ae38..00000000 --- a/trunk/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 chaîne donnée. - - - Note - - Si vous voulez réaliser cette action sur un bloc complet du template, - utilisez la fonction {strip}. - - - - strip - -assign('titreArticle', "Une réunion autour\n d'un feu de cheminée\t -est toujours agréable."); -$smarty->display('index.tpl'); -?> -]]> - - - Où le template est : - - - - - - Affichera : - - - - - - - Voir aussi - {strip} et - truncate. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 2fcaf9a8..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - truncate - - Tronque une variable à une certaine longueur, par défaut 80. - Un second paramètre optionnel permet de spécifier une chaîne à afficher - à la fin de la variable une fois tronquée. Les caractères de fin sont - inclus dans la longueur de la chaîne à tronquer. Par défaut, - truncate tentera de couper la chaîne à la fin d'un mot. - Si vous voulez tronquer la chaîne au caractère exact, donnez la valeur &true; au - dernier paramètre optionnel. - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - entier - Non - 80 - Le nombre de caractères maximums au-delà duquel - on effectue le troncage - - - 2 - chaîne de caractère - Non - ... - Le texte qui remplace le texte tronqué. Sa longueur est - incluse dans la configuration de la longueur à tronquer. - - - 3 - booléen - Non - &false; - Détermine si le troncage est effectué sur - le dernier mot (&false;), ou au caractère exact (&true;). - - - - 4 - booléen - Non - &false; - Ceci détermine si le troncage intervient à la fin de la - chaîne (&false;), ou au milieu de la chaîne (&true;). Notez que si - ceci vaut &true;, alors les limites de mots sont ignorées. - - - - - - truncate - -assign('titreArticle', 'Deux soeurs réunies après 18 ans de séparation.'); - -?> -]]> - - -Où le template est : - - - - - -Ce qui donne en sortie : - - - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 96dcc625..00000000 --- a/trunk/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/trunk/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 85c29f51..00000000 --- a/trunk/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - wordwrap - - Ajuste une chaîne de caractères à une taille de colonne, par défaut 80. - Un second paramètre optionnel vous permet de spécifier la chaîne à utiliser - pour l'ajustement à la nouvelle ligne (retour chariot "\n" par défaut). - Par défaut, wordwrap tente un ajustement à la fin d'un mot. - Si vous voulez autoriser le découpage des mots pour un ajustement au caractère près, - passez &true; au troisième paramètre optionnel. Ceci est l'équivalent de la - fonction PHP wordwrap(). - - - - - - - - - - - Position du paramètre - Type - Requis - Defaut - Description - - - - - 1 - entier - Non - 80 - La nombre de colonnes sur lequel ajuster l'affichage. - - - 2 - chaîne de caractères - Non - \n - chaîne de caractères utilisée pour l'ajustement. - - - 3 - booléen - Non - &false; - Détermine si l'ajustement se fait en fin de mot - (&false;) ou au caractère 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 père
      ; -qu'elle n'a pas vu depuis
      ; -des années. - -Une femme aveugle obtient un n -ouveau rein d'un père qu'elle -n'a pas vu depuis des années. -]]> -
      -
      - - Voir aussi - nl2br et - {textformat}. - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-variables.xml b/trunk/docs/fr/designers/language-variables.xml deleted file mode 100644 index bf67853c..00000000 --- a/trunk/docs/fr/designers/language-variables.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Variables - - Smarty possède différents types de variables. Le type de ces variables dépend - du symbole qui les préfixe, ou des symboles qui les entourent. - - - Les variables de Smarty peuvent être soit affichées directement, soit utilisées - comme arguments pour les - fonctions - et modificateurs, à l'intérieur d'expressions - conditionnelles, etc. - Pour afficher une variable, il suffit de l'entourer par des - délimiteurs de - telle sorte qu'elle soit la seule chose qu'ils contiennent. - - Exemple de variables - - -]]> - - - - Astuce - La façon de la simple d'analyser les variables Smarty est - d'utiliser la - console de débogage. - - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - diff --git a/trunk/docs/fr/designers/language-variables/language-assigned-variables.xml b/trunk/docs/fr/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index cb0e9cbc..00000000 --- a/trunk/docs/fr/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - Variables assignées depuis PHP - - Pour utiliser une variables assignées depuis PHP, il - faut la préfixer par le symbole dollar $. - Les variables asignées depuis un template grâce à la fonction - {assign} sont - manipulées de la même façon. - - - Variables assignées - 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 assignées depuis PHP en en spécifiant la clef, - après le symbole '.' (point). - - - Accéder 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 indexés - - Vous pouvez utiliser des tableaux indexés de la même façon - que vous le faites en PHP. - - - Accès aux tableaux grâce à 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 - assignés depuis PHP peuvent être utilisées en - en spécifiant le nom après le symbole ->. - - - Accéder aux attributs des objets - -name}
      -email: {$person->email}
      -]]> -
      - - Affichera : - - - -email: zaphod@slartibartfast.example.com
      -]]> -
      -
      -
      -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-variables/language-config-variables.xml b/trunk/docs/fr/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 44f968bd..00000000 --- a/trunk/docs/fr/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Variables chargées depuis des fichiers de configuration - - Les variables récupérées depuis un - fichier de configuration sont utilisées - entourées du symbole dièse (#), ou via la variable spéciale smarty - $smarty.config. - La dernière 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 démontrant la méthode - - $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 utilisés tant - qu'elles n'ont pas été chargées. Cette procédure est expliquée - plus loin dans le document, voir {config_load}. - - - Voir aussi - les variables et - les variables réservées $smarty. - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/designers/language-variables/language-variables-smarty.xml b/trunk/docs/fr/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index ee6e8370..00000000 --- a/trunk/docs/fr/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - Variable réservée {$smarty} - - La variable PHP réservée {$smarty} peut être - utilisée pour accéder à plusieurs - variables d'environnements. En voici la liste complète. - - - - Variables de requête - - Les variables de requête - comme $_GET, $_POST, - $_COOKIE, $_SERVER, - $_ENV et $_SESSION - (voir - $request_vars_order - et - $request_use_auto_globals) - peuvent être utilisées comme dans l'exemple suivant : - - - Afficher des variables de requête - - - - - - - Pour des raisons historiques, {$SCRIPT_NAME} peut être accédé - directement, cependant, {$smarty.server.SCRIPT_NAME} est - la solution proposée pour accéder à cette valeur. - - -click me -click me -]]> - - - - - - {$smarty.now} - - Le timestamp - courant peut être récupéré grâce à {$smarty.now}. - La valeur correspond au nombre de secondes écoulées 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'exécuter avec $smarty.now - au début et à la fin montrera les 3 secondes de différence. - - Utilisation de {$smarty.now} - - - - - - - - - {$smarty.const} - - Vous pouvez directement accéder aux constantes PHP. - Voir aussi les constantes smarty. - - - - - - -Affiche la constante dans un template comme : - - - - - - - - - {$smarty.capture} - - La sortie du template réalisée via - {capture}..{/capture} - peut être récupérée par l'intermédiaire de la variable - {$smarty.capture}. Voir la section - sur {capture} pour un - exemple à ce sujet. - - - - - {$smarty.config} - - La variable {$smarty.config} peut être utilisée pour désigner 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 utilisée pour accéder aux propriétés - 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. - - -Généré par Smarty {$smarty.version} -]]> - - - - - {$smarty.ldelim}, {$smarty.rdelim} - - Ces variables sont utilisées pour afficher le délémiteur gauche et le délimiteur 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/trunk/docs/fr/getting-started.xml b/trunk/docs/fr/getting-started.xml deleted file mode 100644 index 59bfd4eb..00000000 --- a/trunk/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 précisément, il facilite - la séparation entre la logique applicative et la présentation. - Celà s'explique plus facilement dans une situation où le - programmeur et le designer de templates jouent des rôles différents, 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 éléments de contenu, ils ne contiennent aucune information - concernant la présentation. 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 présentation de ces éléments (tableaux HTML, couleurs d'arrière-plan, - tailles des polices, feuilles de styles, etc.). Un beau jour le programmeur - a besoin de changer la façon dont le contenu de l'article - est récupéré (un changement dans la logique applicative). Ce - changement n'affecte pas le designer de templates, le contenu - arrivera toujours au template de la même façon. De même, si le - le designer de templates veut changer complétement l'apparence - du template, aucun changement dans la logique de l'application - n'est nécessaire. 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 séparation de la logique métier de la - logique de présentation. Celà signifie que les templates peuvent contenir - des traitements, du moment qu'il soit relatif à de la présentation. - Inclure d'autres templates, alterner les couleurs des lignes - d'un tableau, mettre du texte en majuscule, parcourir un tableau de données - pour l'afficher, etc. sont toutes des actions relatives à du traitement - de présentation. Celà ne signifie pas que Smarty requiert une telle séparation - de votre part. Smarty ne sais pas quoi est quoi, c'est donc à vous de placer - la logique de présentation dans vos templates. Ainsi, si vous - ne désirez pas - disposer de logique métier 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 crée des scripts PHP à partir - de ces derniers. Une fois créés, ils sont exécutés. - Il n'y a donc pas d'analyse coûteuse de template à chaque requête, - et les templates peuvent bénéficier des solutions de cache PHP - comme Zend Accelerator (&url.zend;) ou - PHP Accelerator. - - - Quelques caractéristiques de Smarty : - - - - - Il est très rapide. - - - - - Il est efficace, le parser PHP s'occupe du sale travail. - - - - - Pas d'analyse de template coûteuse, une seule compilation. - - - - - Il sait ne recompiler que les fichiers de templates qui ont été modifiés. - - - - - Vous pouvez créer des - fonctions utilisateurs et des - modificateurs de variables personnalisés, le langage de - template est donc extrémement extensible. - - - - - Syntaxe des templates configurable, vous - pouvez utiliser {}, {{}}, <!--{}-->, etc. comme - délimiteurs tag. - - - - - Les instructions if/elseif/else/endif - sont passées au parser PHP, la syntaxe de l'expression {if...} - peut être aussi simple ou aussi complexe que vous - le désirez. - - - - - Imbrication illimitée de sections, de 'if', etc. autorisée. - - - - - 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 intégré. - - - - - Sources de templates arbitraires. - - - - - Fonctions de gestion de cache personnalisables. - - - - - Architecture de plugins - - - - - - - Installation - - - Ce dont vous avez besoin - - Smarty nécessite un serveur Web utilisant PHP 4.0.6 ou supérieur. - - - - - Installation de base - - Copiez les fichiers bibliothèques 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 partagés par toutes les applications et ne seront - mis à jour que lorsque vous installerez une nouvelle version de - Smarty. - - - fichiers nécessaires de la bibliothèque SMARTY - - - - - - - Smarty utilise une constante PHP appelée SMARTY_DIR qui - représente le chemin complet de la bibliothèque Smarty. - En fait, si votre application trouve le fichier - Smarty.class.php, vous n'aurez pas - besoin de définir la variable - SMARTY_DIR, - Smarty s'en chargera pour vous. - En revanche, si Smarty.class.php - n'est pas dans votre répertoire d'inclusion ou que vous ne - donnez pas un chemin absolu à votre application, vous - devez définir SMARTY_DIR explicitement. - SMARTY_DIR - doit avoir être terminé par un slash. - - - - Créer une instance de Smarty - - Voici comment créer 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 : - - - - Définition manuelle de la constante SMARTY_DIR - - -]]> - - - - - Définir le chemin absolu au fichier de la bibliothèque - - -]]> - - - - - Ajout du dossier contenant la bibliothèque à l'include_path de PHP - - -]]> - - - - - Maintenant que les fichiers de la librairie sont en place, - il est temps de définir les répertoires de Smarty, pour votre application. - - - Smarty a besoin de quatre répertoires qui sont, par défaut, - 'templates/', - 'templates_c/', - 'configs/' et - 'cache/'. - - - Chacun d'entre eux peut être défini - via les attributs - $template_dir, - - $compile_dir, - $config_dir et - - $cache_dir respectivement. Il est vivement - conseillé que vous régliez ces répertoires séparément pour chaque - application qui utilise Smarty. - - - Assurez-vous de bien connaître chemin de la racine - de votre arborescence Web. Dans notre exemple, la racine - est /web/www.example.com/docs/. Seul Smarty - accède aux répertoires en question, et jamais le serveur Web. - Pour des raisons de sécurité, il est donc conseillé de - sortir ces répertoires dans un répertoire - en dehors de l'arborescence - Web. - - - Dans notre exemple d'installation, nous allons régler 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 répertoires. Vous pouvez utiliser le même - environnement pour n'importe quelle autre application, il suffit de - remplacer livredor avec le nom de votre application. - Nous allons mettre nos répertoires 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 accès. Nous allons l'appeler - 'index.php' et le placer dans un sous-répertoire - appelé /livredor/. - - - - Technical Note - - Il est pratique de configurer le serveur Web de - sorte que index.php soit identifié comme fichier - par défaut de ce répertoire. Aicnsi, si l'on tape - http://www.example.com/livredor/, le script - index.php soit exécuté sans que - index.php ne soit spécifié dans l'URL. Avec - Apache, vous pouvez régler cela en ajoutant index.php - à la ligne où se trouve DirectoryIndex (séparez chaque entrée - par un espace) dans le httpd.conf. - - - - - - - - - Jetons un coup d'oeil à la structure de fichier obtenue : - - - - Structure de fichiers - - - - - - - Smarty a besoin d'accéder en écriture - aux répertoires - $compile_dir et - $cache_dir, - assurez-vous donc que le serveur Web dispose de ces droits d'accès. - Il s'agit généralement de l'utilisateur "nobody" et du group - "nobody". Pour les utilisateurs de OS X, l'utilisateur par défaut - est "web" et le group "web". Si vous utilisez Apache, vous pouvez - parcourir le fichier httpd.conf (en général dans - "/usr/local/apache/conf/") pour déterminer quel est l'utilisateur - et le groupe auquel il appartient. - - - - régler les permissions d'accès - - - - - - - Note - - La commande chmod 770 est relativement bien sécurisée, elle donne - à l'utilisateur "nobody" et au groupe "nobody" les accès en - lecture/écriture aux répertoires. Si vous voulez donner le droit d'accès - en lecture à tout le monde (principalement pour pouvoir accéder - vous-même à ces fichiers), vous pouvez lui préférer chmod 775. - - - - - Nous devons créer 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 reconnaître le fichier et - adapter la coloration syntaxique. - - - - - Maintenant passons à l'édition du fichier index.php. Nous allons - créer une instance de Smarty, - assigner - une valeur à une variable de template et - afficher le résultat 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 répertoires Smarty. Si - /web/www.example.com/smarty/livredor/ - est dans votre include_path PHP alors ces réglages ne sont pas nécessaires. - Quoi qu'il en soit, il est plus efficace et (par expérience) - moins générateur d'erreurs de les définir avec des chemins - absolus. Celà nous garantit que Smarty récupèrera 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 avancée - - - Ceci est la suite de l'installation de base, veuillez - lire cette dernière avant de poursuivre. - - - - Une manière 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. Créons un nouveau répertoire - /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 même 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 créer une instance de Smarty, - correctement configurée, en utilisant Smarty_livredor() - qui initialise automatiquement tout ce qu'il faut pour votre application. - - - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/language-defs.ent b/trunk/docs/fr/language-defs.ent deleted file mode 100644 index 8eb16df1..00000000 --- a/trunk/docs/fr/language-defs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/trunk/docs/fr/language-snippets.ent b/trunk/docs/fr/language-snippets.ent deleted file mode 100644 index 74f4279e..00000000 --- a/trunk/docs/fr/language-snippets.ent +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - Note technique - - Le paramètre merge respecte les clés du tableau, - donc, si vous fusionnez deux tableaux indexés numériquement, ils peuvent - se recouvrir les uns les autres ou aboutir à des clés non séquentielles. Ceci - est diférent de la fonction PHP array_merge() - qui élimine des clés numériques et les renumérote. - -'> - - -En tant que troisième paramètre optionnel, vous pouvez passer un -identifiant de compilation $compile_id. -C'est au cas où vous voudriez compiler plusieurs versions du -même template, par exemple, pour avoir des templates compilés -pour différents 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. -Définissez un $compile_id -séparé pour chaque -$template_dir, -sinon, les templates du même nom s'effaceront. Vous pouvez également -définir la variable $compile_id une seule -fois plutôt que de la passer à chaque appel à la fonction.'> - - - La fonction PHP de callback function peut être soit : - - - Une chaîne de caractères contenant la fonction name - - - - Un tableau sous la forme array(&$object, $method) où - &$object est une référence d'objet et - $method une chaîne contenant le nom de la méthode - - - - Un tableau sous la forme - array($class, $method) où - $class est le nom de la classe et - $method est une méthode de la classe. - - - '> \ No newline at end of file diff --git a/trunk/docs/fr/livedocs.ent b/trunk/docs/fr/livedocs.ent deleted file mode 100644 index 0e9e5652..00000000 --- a/trunk/docs/fr/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - -'> -'> - - diff --git a/trunk/docs/fr/make_chm_index.html b/trunk/docs/fr/make_chm_index.html deleted file mode 100644 index a01d830c..00000000 --- a/trunk/docs/fr/make_chm_index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - Manuel Smarty - - - - - - - -

      - -

      -
      -

      Manuel Smarty

      -
      Monte Ohrt
      -
      Andrei Zmievski
      -
      -

      Ce fichier a été généré : [GENTIME]
      -Allez sur http://smarty.php.net/download-docs.php -pour récupérer la version actuelle.

      - -
      - -
      - diff --git a/trunk/docs/fr/preface.xml b/trunk/docs/fr/preface.xml deleted file mode 100644 index ad2429e6..00000000 --- a/trunk/docs/fr/preface.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - Préface - - "Comment rendre mes scripts PHP indépendants de la présentation ?". - Voici sans doute la question la plus posée sur la mailing list - PHP. Alors que PHP est étiqueté "langage de script - pour HTML", on se rend vite compte, après quelques projets qui mélangent - sans complexe HTML et PHP, que la séparation entre la forme et - le contenu, c'est bien [TM]. De plus, dans de nombreuses entreprises - les rôles du designer et du programmeur sont distincts. La solution template - coule donc de source. - - - Dans notre entreprise par exemple, le développement d'une application - se fait de la manière suivante : une fois le cahier des charges écrit, - le designer réalise une maquette, et donne ses interfaces - au programmeur. Le programmeur implémente les fonctionnalités 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 amène les - templates jusqu'au faîte de leur gloire. Il est possible que le projet fasse - une fois ou deux des allers/retours entre la programmation et la présentation. - En conséquence, il est important de disposer d'un bon système 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 répondre à des problématiques d'interface, mais ne veulent pas - nécessairement avoir à faire à toutes les subtilités de la programmation PHP. - - - Un rapide tour d'horizon des solutions type template aujourd'hui et - l'on s'aperçoit que la plupart d'entre elles n'offrent que des moyens - rudimentaires pour substituer des variables dans des templates, ainsi que des - fonctionnalités limitées de blocs dynamiques. Cependant nous avons - besoin d'un peu plus. Nous ne voulons pas que les programmeurs - s'occupent de la présentation HTML du TOUT, mais celà est pratiquement - inévitable. Par exemple, si un designer veut des couleurs d'arrière plan - différentes pour alterner entre différents blocs dynamiques, il est nécessaire - 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 récupérer des variables, exploitables dans leurs - templates. Et la liste est longue. - - - Fin 1999, nous avons commencé à écrire une spécification pour un moteur de - template. Une fois la spécification terminée, - 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 problèmes techniques complexes, - mais nous avons participés à de nombreux débats sur ce que devait - et ce que ne devait pas faire un moteur de template. De cette expérience nous avons - décidé 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 réalisé 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, intégration avec des fichiers de configuration, - intégration de code PHP, instruction 'if' basique et une gestion plus robuste - des blocks dynamiques imbriqués. Elle faisait tout celà avec des expressions - rationnelles et le code se révéla, comment dire, impénétrable. 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 - exécution. Le plus gros problème du point de vue du programmeur était - tout le travail nécessaire en amont, dans le script PHP, pour configurer - et exécuter 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 coût - d'analyse des templates. Nous savons aussi combien fastidieux - et décourageant peut paraître le langage pour le designer moyen, et que - celà peut être remplacé par une syntaxe spécifique, beaucoup - plus simple. Et si nous combinions les deux forces ? Ainsi, Smarty - était né...:-) - - - - diff --git a/trunk/docs/fr/programmers/advanced-features.xml b/trunk/docs/fr/programmers/advanced-features.xml deleted file mode 100644 index 40de54e2..00000000 --- a/trunk/docs/fr/programmers/advanced-features.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - Fonctionnalités avancées - &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/trunk/docs/fr/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/fr/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 4089019e..00000000 --- a/trunk/docs/fr/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - Objets - - Smarty donne l'accès aux objets - PHP à travers les templates. Il y a 2 moyens d'y avoir accès. - - - - Le premier consiste à - allouer les objets - au template puis de les utiliser avec une syntaxe similaire a celles - des fonctions personnalisées. - - - Le deuxième moyen consiste à assigner des objets - aux templates et de les utiliser comme n'importe quelle - variable. - - - - La première méthode a une syntaxe beaucoup plus sympathique. - Elle est aussi plus sécurisée, puisqu'un objet alloué ne peut avoir accès - qu'a certaines méthodes et propriétés. Néanmoins, - un objet alloué ne peut pas avoir de lien sur lui-même - ou être mis dans un tableau d'objet, etc. - Vous devez choisir la méthode qui correspond a vos - besoins, mais tGchez d'utiliser la première méthode autant que possible - afin de réduire la syntaxe des templates au minimum. - - - Si l'option de sécurité - est activée, aucune méthode ou fonctions privées - n'est accessible (commentant par "_"). S'il existe une méthode et une - propriété du même nom, c'est la méthode qui sera utilisée. - - - Vous pouvez restreindre l'accès aux méthodes et aux propriétés en - les listant dans un tableau en tant que troisième paramètre - d'allocation. - - - Par défaut, les paramètres passés aux objets depuis le template le sont de la - même façon que les fonctions utilisateurs - les récupèrent. - Le premier paramètre correspond à un tableau associatif, le second à l'objet - Smarty. Si vous souhaitez que les paramètres soient passés un à un, comme - dans un appel traditionnel, définissez registration, quatrième paramètre optionnel, - à &false;. - - - Le cinquième paramètre optionnel n'a d'effet que si le paramètre - format vaut true et il contient - une liste de méthodes qui doivent être traitées comme des blocks. Celà signifie - que ces méthodes ont un tag fermant dans le template - ({foobar->meth2}...{/foobar->meth2}) et que les paramètres - de ces méthodes fonctionnent de la même façon que les paramètres des - blocks de fonctions des plugins : - Ils contiennent 4 paramètres - $params, - $content, - &$smarty et - &$repeat et ils fonctionnent de la même - façon que les blocks de fonctions des plugins. - - - Utilisation d'un objet alloué ou assigné - -register_object('foobar',$myobj); -// on restreint l'accès a certaines méthodes et propriétés en les listant -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); -// pour utiliser le format habituel de paramètre objet, passez le booléen = false -$smarty->register_object('foobar',$myobj,null,false); - -// on peut aussi assigner des objets. Assignez par référence quand c'est possible -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> - -?> -]]> - - - Et voici comment accéder à 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/trunk/docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 11f54c94..00000000 --- a/trunk/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 envoyée à travers un ou plusieurs filtres de sorties. - Ils diffèrent des filtres - de post-compilation dans le sens où ils agissent sur la sortie - des templates, une fois exécutés, et non sur les sources des templates. - - - - Les filtres de sortie peuvent être soit - déclarés soit - chargés depuis les répertoires - des plugins en utilisant la fonction - load_filter() - ou en réglant la variable - $autoload_filters. - Smarty passera la sortie du template en premier argument et attendra - de la fonction qu'elle retourne le résultat de l'exécution. - - - Utilisation d'un filtre de sortie - -register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// dorénavant toute occurence d'un adresse email dans le résultat 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/trunk/docs/fr/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/fr/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index fe5d8de8..00000000 --- a/trunk/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 - exécutent après avoir été compilés. Les filtres de post-compilation - peuvent être soit déclarés, soit chargés - depuis les répertoires des plugins - en utilisant la fonction - load_filter() ou en réglant - la variable - $autoload_filters. - Smarty passera le template compilé en tant que premier paramètre et attendra - de la fonction qu'elle retourne le résultat de l'exécution. - - - 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, après 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/trunk/docs/fr/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/fr/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index eb6931d3..00000000 --- a/trunk/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 - exécutent avant qu'ils ne soient compilés. 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 - déclarés, soit chargés - à partir des répertoires de plugins - en utilisant la fonction load_filter() ou - en réglant 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/trunk/docs/fr/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/fr/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index dab4c843..00000000 --- a/trunk/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 mécanisme de cache par défaut (basé sur des fichiers - de cache) consiste à spécifier une fonction de gestion de cache utilisateur - qui sera utilisée pour lire, écrire et effacer les fichiers de cache. - - - Il suffit de créer 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 gérer les données du cache. - - - - - Le premier argument est l'action, qui sera read, write and - clear. - - - - Le second paramètre est l'objet Smarty. - - - - Le troisième est le contenu - du cache. Pour écrire, Smarty passe le contenu du cache dans ces paramètres. - Pour lire, Smarty s'attend à ce que votre fonction accepte ce paramètre - par référence et que vous le remplissiez avec les données du cache. Pour effacer, - il suffit de passer une variable fictive car cette dernière n'est pas utilisée. - - - - Le quatrième paramètre est le nom du fichier de template (utile pour - lire/écrire). - - - - Le cinquième paramètre est l'identifiant $cache_id. - - - - Le sixième est l'identifiant optionnel - $compile_id. - - - - Le septième et dernier paramètre $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'hôte 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; - - // crée 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': - // récupère le cache dans la base de données - $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 données - - 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 données 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/trunk/docs/fr/programmers/advanced-features/template-resources.xml b/trunk/docs/fr/programmers/advanced-features/template-resources.xml deleted file mode 100644 index b9cf8831..00000000 --- a/trunk/docs/fr/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - Ressources - - Les templates peuvent provenir d'une grande variété de ressources. Quand vous - affichez (display()) ou - récupérez (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 donnée, la valeur de la variable $default_resource_type - sera utilisée. - - - Templates depuis $template_dir - - Les templates du répertoire - $template_dir n'ont pas - besoin d'une ressource template, bien que vous puissiez utiliser - la ressource "file" pour être cohérent. Vous n'avez qu'à fournir - le chemin vers le template que vous voulez utiliser, relatif - au répertoire racine - $template_dir. - - - Utilisation de templates depuis $template_dir - -display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // le même que ci-dessus -?> - -{* le template Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* le même que ci-dessus *} -]]> - - - - - Templates à partir de n'importe quel répertoire - - Les templates en-dehors du répertoire - $template_dir - nécessitent le type de ressource template, suivi du chemin absolu et du nom du - template. - - - Utilisation d'un template depuis n'importe quel répertoire - -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 début du chemin. - Assurez-vous de bien mettre file: dans le chemin pour éviter des - conflits d'espace de noms et obtenir les résultats escomptés. - - - 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 récupérer les templates à partir de n'importe quelle - source à laquelle vous avez accès avec PHP : base de données, - sockets, LDAP et ainsi de suite. Il suffit d'écrire les fonctions - de ressource plugins et de les enregistrer auprès 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 récupère un template depuis - le système 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) -{ - // requête 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 utilisée 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 défaut - - Vous pouvez spécifier une fonction qui sera utilisée pour - récupérer le contenu d'un template dans le cas où le template - ne peut pas être récupéré depuis sa ressource. Une utilisation possible est - la création de templates à la volée. - - - utilisation de la fonction de gestion de template par défaut - -_write_file($resource_name,$template_source); - return true; - } - } else { - // pas un fichier - return false; - } -} - -// règle la fonction par défaut -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-functions.xml b/trunk/docs/fr/programmers/api-functions.xml deleted file mode 100644 index 8a591f4b..00000000 --- a/trunk/docs/fr/programmers/api-functions.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - Méthodes - &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/trunk/docs/fr/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/fr/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index af172193..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - append_by_ref() - Ajoute des valeurs par référence - - - Description - - voidappend_by_ref - stringvarname - mixedvar - boolmerge - - - Utilisée pour ajouter des valeurs à un - template par référence plutôt que par copie. - Si vous ajoutez une variable par référence puis changez sa - valeur, le changement est aussi répercuté sur la valeur assignée. - Pour les objets, - append_by_ref() ne fait pas de copie en mémoire de l'objet - assigné. Voir la documentation PHP pour plus d'informations sur les - références de variable. - Si vous passez le troisième paramètre à &true;, la valeur - sera fusionnée avec le tableau courant plutôt que d'être ajoutée. - - ¬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/trunk/docs/fr/programmers/api-functions/api-append.xml b/trunk/docs/fr/programmers/api-functions/api-append.xml deleted file mode 100644 index b4148ba2..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - append() - Ajoute un élément à un tableau assigné - - - Description - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - - Si vous utilisez cette fonction avec une chaîne de caractères, elle est - convertie en tableau auquel on ajoute ensuite l'élément. Vous pouvez - explicitement passer des paires nom/valeur. Si vous passez le troisième - paramètre (optionel) à &true;, la valeur sera fusionnée - avec le tableau plutôt que d'être ajoutée. - - ¬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 élément 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/trunk/docs/fr/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/fr/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 46c4b2f9..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - assign_by_ref() - Assigne des valeurs par référence - - - Description - - voidassign_by_ref - stringvarname - mixedvar - - - Utilisée pour assigner des valeurs aux - templates par référence plutôt que par copie. Référez-vous au manuel PHP - pour une explication plus précise sur les références des variables. - - - Note technique - - Si vous assignez une variable par référence puis changez sa - valeur, le changement est aussi répercuté sur la valeur assignée. - Pour les objets, - assign_by_ref() ne fait pas de copie en mémoire de l'objet - assigné. Référez-vous au manuel PHP pour une explication plus précise sur - les références 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/trunk/docs/fr/programmers/api-functions/api-assign.xml b/trunk/docs/fr/programmers/api-functions/api-assign.xml deleted file mode 100644 index 5d0c17ee..00000000 --- a/trunk/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 données (eg adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - - - Accéder à 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/trunk/docs/fr/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/fr/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index e1d57065..00000000 --- a/trunk/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 assignées - - - 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 assignées -$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/trunk/docs/fr/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/fr/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index f9bd4da9..00000000 --- a/trunk/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 paramètre optionnel afin d'indiquer l'âge minimun - que doivent avoir les fichiers de cache pour qu'ils soient effacés. - - - 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/trunk/docs/fr/programmers/api-functions/api-clear-assign.xml b/trunk/docs/fr/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index b7ce1f6c..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - clear_assign() - Efface la valeur d'une variable assignée - - - 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/trunk/docs/fr/programmers/api-functions/api-clear-cache.xml b/trunk/docs/fr/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 0a019e8d..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - clear_cache() - Efface le cache d'un template spécifique - - - Description - - voidclear_cache - stringtemplate - stringcache_id - stringcompile_id - - intexpire_time - - - - - Si vous avez plusieurs fichiers de cache - pour ce template, vous pouvez en spécifier un en particulier en passant son identifiant - cache_id en deuxième paramètre. - - - Vous pouvez aussi passer un identifiant de compilation - $compile_id - en troisième paramètre. Vous pouvez grouper - des templates ensemble afin qu'ils puissent être supprimés en groupe. Référez-vous à la - section sur le cache pour plus d'informations. - - - Vous pouvez passer un quatrième paramètre 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 grâce à 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/trunk/docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 29ee8e3e..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - clear_compiled_tpl() - Efface la version compilée d'un template spécifié - - - Description - - voidclear_compiled_tpl - stringtpl_file - stringcompile_id - - intexp_time - - - Utilisée pour effacer la version compilée du template spécifié ou - de tous les templates si aucun n'est spécifié. - Si vous passez uniquement un - $compile_id, - le template compilé correspondant à ce - $compile_id - sera effacé. Si vous passez un exp_time, les templates compilés plus vieux que - exp_time secondes - seront effacés, par défaut, tous les templates compilés seront - effacés au vû de leurs âges. Cette fonction est destinée à un usage - avancé et n'est habituellement pas utilisée. - - - Exemple avec clear_compiled_tpl() - -clear_compiled_tpl('index.tpl'); - -// efface tout le contenu du répertoire des templates compilés -$smarty->clear_compiled_tpl(); -?> -]]> - - - - Voir aussi - clear_cache(). - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-functions/api-clear-config.xml b/trunk/docs/fr/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 69a3607d..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - clear_config() - Efface toutes les variables de configuration assignées - - - Description - - voidclear_config - stringvar - - - Utilisée pour effacer toutes les variables - de configuration assignées. - Si un nom de variable est spécifié, seule cette variable sera effacée. - - - 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/trunk/docs/fr/programmers/api-functions/api-config-load.xml b/trunk/docs/fr/programmers/api-functions/api-config-load.xml deleted file mode 100644 index da4eb318..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - config_load() - Charge les données d'un fichier de configuration et les assigne au template - - - Description - - voidconfig_load - stringfile - stringsection - - - Utilisée pour charger des données 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 assignées - sont conservées entre chaque appel à - fetch() et - display(). - Les variables de configuration chargées avec config_load() sont - globales. Les fichiers de configuration sont aussi compilés pour une - exécution plus rapide et respecte les réglages 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/trunk/docs/fr/programmers/api-functions/api-display.xml b/trunk/docs/fr/programmers/api-functions/api-display.xml deleted file mode 100644 index 9110be8c..00000000 --- a/trunk/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 - - - - Utilisée pour afficher un template. Il faut fournir un type et un - chemin de ressource template - valides. Vous pouvez passer en second paramètre 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 données que si le fichier -// de cache n'existe pas -if(!$smarty->is_cached('index.tpl')) { - - // quelques données - $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 répertoire - $template_dir. - - - Exemples de fonction d'affichage de ressources templates - -display('/usr/local/include/templates/header.tpl'); - -// chemin absolu (mêm chose) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// chemin absolu Windows (on DOIT utiliser le préfixe "file:") -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// inclue à partir de la ressource template nommée "db" -$smarty->display('db:header.tpl'); -?> -]]> - - - - Voir aussi - fetch() et - template_exists(). - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-functions/api-fetch.xml b/trunk/docs/fr/programmers/api-functions/api-fetch.xml deleted file mode 100644 index af2266e4..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - fetch() - Retourne le résultat du template - - - Description - - stringfetch - stringtemplate - stringcache_id - string$compile_id - - - - Utilisée pour renvoyer le résultat du template plutôt 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 deuxième - paramètre. Reportez-vous à la section cache - pour plus de renseignements. - - ¶meter.compileid; - - - - Exemple avec fetch() - -caching = true; - -// ne fait un appel à la base de données que si le fichier -// de cache n'existe pas -if(!$smarty->is_cached('index.tpl')) -{ - - // quelques données - $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); - -} - -// récupère le résultat -$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/trunk/docs/fr/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/fr/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index edc977fa..00000000 --- a/trunk/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 passée en paramètre - - - Description - - arrayget_config_vars - stringvarname - - - Si aucun paramètre n'est donné, un tableau de toutes les variables de - configuration chargées est retourné. - - - Exemple avec get_config_vars() - -get_config_vars('foo'); - -// récupère toutes les variables de configuration chargées -$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/trunk/docs/fr/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/fr/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 173b8835..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - get_registered_object() - Retourne la référence d'un objet enregistré - - - Description - - arrayget_registered_object - stringobject_name - - - Utile quand vous voulez accéder 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 référence vers l'objet - } -} -?> -]]> - - - - Voir aussi - register_object(), - unregister_object() et - la section sur les objets. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/fr/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index be70a08f..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - get_template_vars() - Retourne la valeur assignée passée en paramètre - - - Description - - arrayget_template_vars - stringvarname - - - Si aucun paramètre n'est donné, un tableau de toutes les variables - assignées est retourné. - - - Exemple avec get_template_vars - -get_template_vars('foo'); - -// récupère toutes les variables assignées 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/trunk/docs/fr/programmers/api-functions/api-is-cached.xml b/trunk/docs/fr/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 204c6f2e..00000000 --- a/trunk/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 défini à &true;, voir aussi la - section sur le cache pour plus d'informations. - - - - Vous pouvez aussi passer en second paramètre 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 troisième paramètre. Si vous ne spécifiez pas ce paramètre, le - - $compile_id persistant sera utilisé. - - - - Si vous ne voulez pas passer un $cache_id mais plutôt 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 supplémentaire à - display() ou - fetch() retournera ce - contenu stocké en interne - sans tenter de recharger le fichier en cache. Celà évite des problématiques d'accès 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 paramètres 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 donnée -} - -$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 données, 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/trunk/docs/fr/programmers/api-functions/api-load-filter.xml b/trunk/docs/fr/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 059e8950..00000000 --- a/trunk/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 spécifie le type du filtre - et peut prendre l'une des valeurs suivantes : pre, post ou - output. Le second argument spécifie 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 fonctionnalités avancées. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-functions/api-register-block.xml b/trunk/docs/fr/programmers/api-functions/api-register-block.xml deleted file mode 100644 index d970c025..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - register_block() - Déclare dynamiquement des plugins de fonction de blocs - - - Description - - voidregister_block - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - Utilisée pour déclarer dynamiquement des plugins de fonction - de blocs. Il faut passer en paramètre le nom de la fonction - de blocs, suivi du nom de la fonction PHP qui l'implémente. - - &api.register.snippet; - - Les paramètre cacheable et - cache_attrs peuvent être omis dans la plupart - des cas. Voir Contrôler 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/trunk/docs/fr/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/fr/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 812cc2dc..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - register_compiler_function() - Déclare dynamiquement un plugin de fonction de compilation - - - Description - - boolregister_compiler_function - stringname - mixedimpl - boolcacheable - - - Il faut passer en paramètres le nom de la fonction - de compilation, suivi par la fonction PHP qui l'implémente. - - &api.register.snippet; - - Le paramètre cacheable peut être omis dans la - plupart des cas. Voir Contrôler 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/trunk/docs/fr/programmers/api-functions/api-register-function.xml b/trunk/docs/fr/programmers/api-functions/api-register-function.xml deleted file mode 100644 index f8b41181..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - register_function() - Déclare dynamiquement des plugins de fonction de templates - - - Description - - voidregister_function - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - Il faut passer en paramètres le nom de la fonction - de templates, suivi par le nom de la fonction PHP qui l'implémente. - - &api.register.snippet; - - Les paramètres cacheable et - cache_attrs peut être omis dans la - plupart des cas. Voir Contrôler 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/trunk/docs/fr/programmers/api-functions/api-register-modifier.xml b/trunk/docs/fr/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index a3b2ef33..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - register_modifier() - Déclare dynamiquement un plugin de modificateur - - - Description - - voidregister_modifier - stringname - mixedimpl - - - Il faut passer en paramètre le nom du modificateur de variables, - suivi de la fonction PHP qui l'implémente. - - &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 création de plugins modifieurs. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-functions/api-register-object.xml b/trunk/docs/fr/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 40861224..00000000 --- a/trunk/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/trunk/docs/fr/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/fr/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 483ffa3e..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - register_outputfilter() - Déclare dynamiquement des filtres de sortie - - - Description - - voidregister_outputfilter - mixedfunction - - - Utilisée pour déclarer 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/trunk/docs/fr/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/fr/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 40967406..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - register_postfilter() - Déclare dynamiquement des filtres de post-compilation - - - Description - - voidregister_postfilter - mixedfunction - - - Utilisée pour déclarer dynamiquement des - filtres de post-compilation pour y faire - passer des templates une fois qu'ils ont été compilés. Reportez-vous - à la section - filtres de post-compilation de templates - pour avoir plus de renseignements sur la façon de paramétrer 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/trunk/docs/fr/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/fr/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 7e4b349d..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - register_prefilter() - Déclare dynamiquement des filtres de pré-compilation - - - Description - - voidregister_prefilter - mixedfunction - - - Utilisée pour déclarer dynamiquement des - filtres de pré-compilation pour y faire - passer des templates avant qu'ils ne soient compilés. Reportez-vous - à la section - filtres de pré-compilation de templates - pour avoir plus de renseignements sur la façon de paramétrer 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/trunk/docs/fr/programmers/api-functions/api-register-resource.xml b/trunk/docs/fr/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 0907c43b..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - register_resource() - Déclare dynamiquement une ressource plugin - - - Description - - voidregister_resource - stringname - arrayresource_funcs - - - Utilisée pour déclarer dynamiquement une ressource plugin - dans Smarty. Il faut passer en paramètre le nom de la ressource - et le tableau des fonctions PHP qui l'implémentent. Reportez-vous - à la section ressources templates - pour avoir plus d'informations sur la façon de paramétrer une fonction - récupérant des templates. - - Note technique - - Un nom de ressource doit être composé d'au moins deux caractères. - Les noms de ressources d'un seul caractère seront ignorés et utilisés - 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 éléments. - - - S'il est composé de 4 éléments, - les éléments seront les noms de fonctions pour, respectivement, - source, timestamp, secure et - trusted de la ressource. - - - S'il est composé de 5 éléments, le premier élément devra être une - référence sur un objet ou le nom d'une classe de l'objet ou une classe - implémentant la ressource et les 4 éléments suivants doivent être - les noms des méthodes implémentant 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/trunk/docs/fr/programmers/api-functions/api-template-exists.xml b/trunk/docs/fr/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 6bcf7e0b..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - template_exists() - Vérifie si un template spécifique existe - - - Description - - booltemplate_exists - stringtemplate - - - Elle accepte soit un chemin vers le template, soit une ressource de type - chaîne de caractères spécifiant 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/trunk/docs/fr/programmers/api-functions/api-trigger-error.xml b/trunk/docs/fr/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 52c73260..00000000 --- a/trunk/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 utilisée pour afficher un message d'erreur - en utilisant Smarty. Le paramètre level - peut prendre l'une des valeures utilisées par la fonction PHP - trigger_error(), - i.e. E_USER_NOTICE, E_USER_WARNING, etc. Par défaut - il s'agit de E_USER_WARNING. - - - Voir aussi - $error_reporting, - le débogage et - Troubleshooting. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-functions/api-unregister-block.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 5469dfe6..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - unregister_block() - Désalloue dynamiquement un plugin de fonction de blocs - - - Description - - voidunregister_block - stringname - - - Utilisée pour désallouer dynamiquement un plugin de fonction - de blocs. Passez en paramètre 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/trunk/docs/fr/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index c2ee7548..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - unregister_compiler_function() - Désalloue dynamiquement une fonction de compilation - - - Description - - voidunregister_compiler_function - stringname - - - Passez en paramètre 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/trunk/docs/fr/programmers/api-functions/api-unregister-function.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index e3eb8d19..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - unregister_function() - Désalloue dynamiquement un plugin de fonction de templates - - - Description - - voidunregister_function - stringname - - - Passez en paramètres 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/trunk/docs/fr/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 3eac194e..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - unregister_modifier() - Désalloue dynamiquement un plugin modificateur de variable - - - Description - - voidunregister_modifier - stringname - - - Passez en paramètre 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/trunk/docs/fr/programmers/api-functions/api-unregister-object.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index f73de7c4..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - unregister_object() - Désalloue 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/trunk/docs/fr/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index f9b4a106..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - unregister_outputfilter() - Désalloue dynamiquement un filtre de sortie - - - Description - - voidunregister_outputfilter - stringfunction_name - - - Utilisée pour désallouer 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/trunk/docs/fr/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 81355d00..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - unregister_postfilter() - Désallouer 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/trunk/docs/fr/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index ac2618c4..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - unregister_prefilter() - Désalloue 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/trunk/docs/fr/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/fr/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 83fe577b..00000000 --- a/trunk/docs/fr/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - unregister_resource() - Désalloue dynamiquement un plugin ressource - - - Description - - voidunregister_resource - stringname - - - Passez en paramètre 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/trunk/docs/fr/programmers/api-variables.xml b/trunk/docs/fr/programmers/api-variables.xml deleted file mode 100644 index 1d9dcad4..00000000 --- a/trunk/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/trunk/docs/fr/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/fr/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index b8842b20..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - $autoload_filters - - Si vous désirez charger des filtres a chaque invocation - de templates, vous pouvez le spécifier 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/trunk/docs/fr/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/fr/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index c6dacbfe..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - $cache_dir - - Il s'agit du nom du répertoire où les caches des templates - sont stockés. Par défaut il s'agit de - ./cache, ce qui signifie - que Smarty va chercher ce répertoire - dans le même répertoire que le script PHP en cours d'exécution. - 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 contrôler les fichiers de cache, qui ignorera - cette configuration. - Voir aussi $use_sub_dirs. - - - Note technique - - Ce réglage 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 répertoire - 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/trunk/docs/fr/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/fr/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 04c8f67e..00000000 --- a/trunk/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 plutôt que - d'utiliser celle livrée avec Smarty - ($cache_dir). - Référez-vous à la section sur la - fonction de gestion de cache - personnalisée pour plus de détails. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/fr/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index 7f4ca1a8..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - $cache_lifetime - - Il s'agit de la durée en secondes pendant laquelle un cache de template - est valide. Une fois cette durée dépassée, le cache est regénéré. - - - - - $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 regénéré (utile - a des fins de tests seulement. Une meilleure façon de désactiver - le cache est de mettre $caching = 0). - - - Si vous souhaitez donner a certains templates leur propre durée de vie - en cache, vous pouvez le faire en réglant - $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 regénérés a chaque fois, - désactivant ainsi le cache. Vous pouvez effacer tous les fichiers du cache - avec la function - clear_all_cache() - ou de façon individuelle (ou groupée) avec la fonction clear_cache(). - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/fr/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 4af095ba..00000000 --- a/trunk/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-tête - If-Modified-Since envoyé par le client. Si la date de dernière - modification du fichier de cache n'a pas changé depuis la dernière - visite, alors un en-tête '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/trunk/docs/fr/programmers/api-variables/variable-caching.xml b/trunk/docs/fr/programmers/api-variables/variable-caching.xml deleted file mode 100644 index b838fe51..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - $caching - - Ce paramètre demande à Smarty de mettre ou non en cache la sortie des - templates. - Par défaut, ce réglage est à 0 (désactivé). Si vos templates - générent du contenu redondant, il est conseillé d'activer le - cache. Celà permettra un gain de performance conséquent. - - - - Vous pouvez aussi avoir de - nombreux fichiers de cache - pour un même template. - - - - - Une valeur de 1 ou 2 active le cache. - - - - 1 indique a Smarty d'utiliser la variable - $cache_lifetime - pour déterminer si le fichier de cache a expiré. - - - Une valeur de 2 indique à Smarty d'utiliser la valeur - $cache_lifetime - spécifiée à la - génération du cache. Ainsi vous pouvez régler - la durée de vie d'un fichier de cache avant de récupérer - le template pour avoir un certain contrôle quand ce fichier en particulier expire. Voir - aussi is_cached(). - - - - Si $compile_check - est actif, le contenu du cache sera regénéré 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 regénéré. - - - - - 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/trunk/docs/fr/programmers/api-variables/variable-compile-check.xml b/trunk/docs/fr/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 157ed926..00000000 --- a/trunk/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 dernière modification différente) depuis sa - dernière 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 réglage. - Par défaut cette valeur est à &true;. - - - Quand une application est mise en production (les templates - ne changent plus), cette vérification n'est pas nécessaire. - Assurez-vous de mettre $compile_check à &false; - pour des performances maximales. Notez que si vous mettez ce paramètre à &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 regénérés 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/trunk/docs/fr/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/fr/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index c2e11854..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - $compile_dir - - C'est le nom du répertoire où se trouvent les templates - compilés. Par défaut, il s'agit de ./templates_c, - ce qui signifie que Smarty va chercher ce répertoire - dans le même répertoire que le script PHP en cours d'exécution. - Ce dossier doit être accessible en écriture - par le serveur web. - (Voir l'installation pour plus d'informations). - - - Note technique - - Ce réglage 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 répertoire - sous la racine de l'arborescence Web. - - - - Voir aussi - $compile_id et - $use_sub_dirs. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-compile-id.xml b/trunk/docs/fr/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index a4f98a96..00000000 --- a/trunk/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 même - $compile_id a chaque appel de fonction mais une - alternative consiste à régler 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 même - $compile_dir pour - différents $template_dirs. - Si vous définissez un $compile_id distinct pour - chaque $template_dir, - alors Smarty indique aux templates compilés à 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 compilés pour chaque langage que vous utiliserez. - - - Un autre exemple serait d'utiliser le même dossier de compilation - à travers de multiples domaines / vhosts. - - - $compile_id dans un environement d'hôte virtuel - -compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/chemin/vers/shared_compile_dir'; - -?> -]]> - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/fr/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index d46239da..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - $compiler_class - - Spécifie le nom de la classe du compilateur qui va être utilisée pour - compiler les templates. Le compilateur par défaut est - 'Smarty_Compiler'. Réservé aux utilisateurs avancés. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/fr/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index f759dc59..00000000 --- a/trunk/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 booléen. De cette façon vous pouvez - utiliser ces valeurs dans le template de la façon suivante : {if #foobar#}...{/if}. - Si foobar est à on, true ou yes, - l'instruction {if} sera exécutée. &true; par défaut. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-config-dir.xml b/trunk/docs/fr/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 1e3b9621..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - $config_dir - - Il s'agit du répertoire utilisé pour stocker les - fichiers de configuration - utilisés dans les templates. - La valeur par défaut est ./configs, - ce qui signifie que Smarty va chercher ce répertoire - dans le même répertoire que le script PHP qui s'exécute. - - - Note technique - - Il n'est pas conseillé de mettre ce répertoire - sous la racine de l'arborescence Web. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/fr/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index c805e728..00000000 --- a/trunk/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 caractéres de nouvelles lignes mac et dos - ('\r' et '\r\n') sont convertis en - '\n' quand ils sont analysés. &true; par défaut. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/fr/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 5d9d42ac..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - $config_overwrite - - Si cette variable est à &true; (par défaut), les variables lues dans les - fichiers de configuration - peuvent s'écraser entre elles. Sinon les variables - seront mises dans un tableau. Très utile si vous voulez stocker - des tableaux de données dans des fichiers de configuration, listez - simplement chaque élément 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/trunk/docs/fr/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/fr/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 5e876678..00000000 --- a/trunk/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 cachées (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 façon vous pouvez stocker des données sensibles dans les fichiers - de configuration, par exemple des paramètres de base de données, - sans vous soucier de la façon dont les templates les chargent. - Mise à &false; par défaut. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/fr/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index a16b4475..00000000 --- a/trunk/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 débogage. Par défaut debug.tpl, - il se situe dans SMARTY_DIR. - - - Voir aussi - $debugging et - la console de débogage. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/fr/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index f09d333e..00000000 --- a/trunk/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/trunk/docs/fr/programmers/api-variables/variable-debugging.xml b/trunk/docs/fr/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index c0bc160a..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - $debugging - - Celà active la - console de débogage. - La console est une fenêtre javascript qui vous informe des templates - inclus et des variables - assignées depuis PHP et des - variables des fichiers de configuration - pour le script courant. Il ne montre pas les variables assignées - dans un template avec - {assign}. - - - Voir aussi - $debugging_ctrl - sur la façon d'activer le débogage depuis l'url. - - - Voir aussi - {debug}, - $debug_tpl et - $debugging_ctrl. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/fr/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index 2617399a..00000000 --- a/trunk/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 défaut a chaque variable dans un template. - Par exemple, pour par défaut échapper les caractéres HTML de chaque variable, - utilisez array('escape:"htmlall"'). Pour rendre une variable indépendante - des modificateurs par défaut, passez-lui en paramètre le modificateur - nodefaults : {$var|smarty:nodefaults}. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/fr/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 09a734e3..00000000 --- a/trunk/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 défaut est file, signifiant que - $smarty->display('index.tpl') et - $smarty->display('file:index.tpl') sont la même chose. Voyez le chapitre - ressource pour plus de détails. - - - - diff --git a/trunk/docs/fr/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/fr/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 4208c556..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - $default_template_handler_func - - Cette fonction est appelée quand un template ne peut pas être - obtenu avec sa ressource. - - - diff --git a/trunk/docs/fr/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/fr/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index 0071aa3f..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - $error_reporting - - Lorsque cette valeur est configurée à une valeur non nulle, - sa valeur est utilisée comme le - error_reporting-level - de PHP à l'intérieur de display() - et fetch(). Lorsque le déboguage - est ignoré, cette valeur est ignorée et error-level est non-modifié. - - - Voir aussi - trigger_error(), - le débogage et - Troubleshooting. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-force-compile.xml b/trunk/docs/fr/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 7b7989d0..00000000 --- a/trunk/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 réglage supplante - $compile_check. - Par défaut, il vaut &false;. Ceci est commode pour le développement - et le débogage - mais ne devrait jamais être utilisé dans un environnment de production. - Si le système de cache est actif, les - fichiers du cache seront regénérés à chaque appel. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/fr/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 38e91dbb..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $left_delimiter - - Il s'agit du délimiteur gauche utilisé par le moteur de templates. La - valeur par défaut est {. - - - Voir aussi - $right_delimiter et - l'analyse d'échapement Smarty. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-php-handling.xml b/trunk/docs/fr/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 76a741b5..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - $php_handling - - Indique à Smarty comment interpréter le code PHP - intégré dans les templates. Il y a quatre valeurs possibles, par - défaut 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 entités HTML. - SMARTY_PHP_REMOVE - Smarty supprime les balises - des templates. - SMARTY_PHP_ALLOW - Smarty exécute les balises - comme du code PHP. - - - - Intégrer du code PHP dans les templates est vivement - déconseillé. Préférez les - fonctions utilisateurs ou les - modificateurs de variables. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/fr/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 8f048ad4..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - $plugins_dir - - C'est le répertoire (ou les répertoires) dans lequel Smarty ira chercher - les plugins dont il a besoin. La valeur par défaut est - plugins/ sous - le répertoire SMARTY_DIR. - Si vous donnez un chemin relatif, Smarty - regardera d'abord relativement au - SMARTY_DIR, puis relativement - au répertoire de travail courant, puis relativement à chaque entrée de votre répertoire - d'inclusion PHP. Si $plugins_dir est un tableau de répertoires, Smarty - cherchera les plugins dans chaque répertoire de plugins, - dans l'ordre donné. - - - Note technique - - Pour des raisons de performances, ne réglez 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 répertoire 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/trunk/docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 2b8a6517..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - $request_use_auto_globals - - Spécifie si Smarty doit utiliser les variables PHP $HTTP_*_VARS[] - ($request_use_auto_globals=&false; qui est la valeur par défaut) 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 utilisée. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/fr/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 2e4305ca..00000000 --- a/trunk/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 requêtes sont enregistrées, - 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/trunk/docs/fr/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/fr/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 76b32b24..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $right_delimiter - - Il s'agit du délimiteur droit utilisé par le moteur de templates. - La valeur par défaut est }. - - - Voir aussi - $left_delimiter et - l'analyse d'échappement Smarty. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/fr/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 907d0833..00000000 --- a/trunk/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 répertoires locaux qui sont - considérés comme sécurisés. - {include} et - {fetch} l'utilisent quand - la sécurité est activée. - - - Exemple avec $secure_dir - -secure_dir = $secure_dirs; -?> -]]> - - - - Voir aussi - la configuration pour la sécuritéet - $trusted_dir. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-security-settings.xml b/trunk/docs/fr/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index 06f36ba7..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - $security_settings - - Ces réglages servent à écraser ou spécifier les paramètres de sécurité - quand celle-ci est activée. - Les réglages possibles sont les suivants : - - - - - PHP_HANDLING - booléen. Si &true;, le - réglage $php_handling - n'est pas vérifié. - - - - - IF_FUNCS - Le tableau des noms de fonctions - PHP autorisées dans les intructions - {if}. - - - - - INCLUDE_ANY - booléen. Si &true;, - les templates peuvent être inclus de n'importe où, quelque soit - le contenu de $secure_dir. - - - - - PHP_TAGS - booléen. Si &true;, - les balises {php}{/php} - sont autorisées dans les templates. - - - - - MODIFIER_FUNCS - Le tableau des noms de fonctions - autorisées à être utilisées comme modificateurs de - variables. - - - - - ALLOW_CONSTANTS - booléen. Si l'accès aux constantes via - la syntaxe {$smarty.const.name} - est autorisé ou non. - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-security.xml b/trunk/docs/fr/programmers/api-variables/variable-security.xml deleted file mode 100644 index 863bd829..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - $security - - Cette variable vaut &false; par défaut. La sécurité est de rigueur - quand vous n'êtes pas complétement sûr des personnes qui éditent les templates - (par ftp par exemple) et que vous voulez réduire le risque que - la sécurité du système soit compromise par le langage de template. - Activer cette option de sécurité applique les régles suivantes - au langage de template, à moins que - $security_settings - ne spécifie le contraire : - - - - - Si $php_handling - est réglée à SMARTY_PHP_ALLOW, cela est implicitement - changé à SMARTY_PHP_PASSTHRU. - - - - - Les fonctions PHP ne sont pas autorisées dans les - instructions {if}, - à part celles déclarées dans - $security_settings. - - - - - Les templates ne peuvent être inclus que depuis - des répertoires listés dans le tableau - $secure_dir. - - - - - Les fichiers locaux ne peuvent être récupérés que depuis - les répertoires listés dans le tableau - $secure_dir en - utilisant {fetch}. - - - - - Les balises {php}{/php} - ne sont pas autorisées. - - - - - Les fonctions PHP ne sont pas autorisées en tant - modificateurs, à part celles spécifiées dans - $security_settings. - - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-template-dir.xml b/trunk/docs/fr/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index a3a21913..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - $template_dir - - C'est le nom par défaut du répertoire des templates. - Si vous ne spécifiez aucun chemin lors de l'utilisation de templates, Smarty - les cherchera à cet emplacement. Par défaut, il s'agit de - ./templates, ce qui signifie - qu'il va chercher le répertoire templates/ - dans le répertoire où se trouve le script PHP en cours d'exécution. - - - - Note technique - - Il n'est pas conseillé de mettre ce répertoire dans l'arborescence Web. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/fr/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index af79ac23..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $trusted_dir - - $trusted_dir n'est utilisée lorsque - $security est activée. - C'est un tableau de tous les répertoires qui peuvent être considérés comme svrs. - Les répertoires svrs sont ceux qui contiennent des scripts PHP qui - sont exécutés directement depuis les templates avec - {include_php}. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/fr/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 50327fb6..00000000 --- a/trunk/docs/fr/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - $use_sub_dirs - - Smarty va créer des sous-dossiers dans les dossiers - templates_c et - cache - si la variable $use_sub_dirs est défini à &true; (Par défaut, vaut &false;). - Dans un environnement où il peut y avoir potentiellement des centaines de milliers - de fichiers de créés, ceci peut rendre le système de fichiers plus rapide. - D'un autre côté, quelques environnements n'acceptent pas que les processus PHP - créent des dossiers, donc, cette variable doit être désactivée par défaut. - - - Les sous-dossiers sont plus efficaces, utilisez-les - donc si vous le pouvez. - Théoriquement, vous obtiendrez plus de performance sur un système de fichier - contenant 10 dossiers contenant chaque, 100 fichiers plutôt qu'un dossier - contenant 1000 fichiers. C'est par exemple le cas avec Solaris 7 (UFS)... - avec les systèmes de fichiers récents comme ext3 ou reiserfs, la différence - est proche de zéro. - - - Note technique - - - $use_sub_dirs=true ne fonctionne pas avec - safe_mode=On, - raison pour laquelle c'est paramétrable et que c'est désactivé par défaut. - - - - $use_sub_dirs=true sous Windows peut causer des problèmes. - - - Safe_mode est obsolète depuis PHP6. - - - - - - Voir aussi - $compile_id, - $cache_dir et - $compile_dir. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/caching.xml b/trunk/docs/fr/programmers/caching.xml deleted file mode 100644 index d37f85ae..00000000 --- a/trunk/docs/fr/programmers/caching.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - Cache - - Le cache est utilisée pour accélérer l'appel de display() ou de fetch() en sauvegardant leur résultat - dans un fichier. Si un fichier de cache est disponible lors d'un appel, - il sera affiché sans qu'il ne soit nécessaire de regénérer le résultat. - Le système de cache peut accélérer les traitements de façon impressionnante, - en particulier les templates dont la compilation est très longue. Comme - le résultat 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 façon dont les fichiers de cache sont générés, 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 intéressant de mettre cette page - dans le cache pour une heure ou plus. A l'inverse, si vous affichez une page - de météo 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/trunk/docs/fr/programmers/caching/caching-cacheable.xml b/trunk/docs/fr/programmers/caching/caching-cacheable.xml deleted file mode 100644 index af5a0574..00000000 --- a/trunk/docs/fr/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - Contrôler la mise en cache des sorties des Plugins - - Depuis Smarty-2.6.0, la mise en cache des plugins peut être déclarée lors - de leur inscription. Les troisièmes paramètres de - register_block(), - - register_compiler_function() - et register_function() sont appelés - $cacheable et valent &true; par défaut, ce qui est - aussi le comportement par défaut des versions de Smarty précédent la 2.6.0 - - - - Lors de l'inscription d'un plugin avec $cacheable=false, le plugin est - appelé à chaque fois que la page est affichée, même 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 défaut. Celà peut - être le cas en utilisant le quatrième paramètre - $cache_attrs. $cache_attrs - est un tableau de noms d'attributs qui doivent être mis en cache, pour que - la fonction plugin reçoive les valeurs telles qu'elles étaient définies lorsque - la page a été mise en cache, à chaque récupération à partir du cache. - - - - Eviter la mise en cache du résultat 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')) { - // récupération 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, même 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 données lors de la mise en cache de - la page, mais pas lors des affichages ultérieurs 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 - différentes. L'une est dynamic et l'autre est static. - Vous pouvez faire ce que vous voulez entre {dynamic}...{/dynamic} - et être sûrs que cela ne sera pas mis en cache comme le reste de la page. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/caching/caching-groups.xml b/trunk/docs/fr/programmers/caching/caching-groups.xml deleted file mode 100644 index b631cd3e..00000000 --- a/trunk/docs/fr/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - Groupes de fichiers de cache - - Vous pouvez faire des groupements plus élaborés en paramétrant les - groupes de $cache_id. Il suffit de séparer chaque sous-groupe - avec une barre verticale | dans la valeur de $cache_id. - Vous pouvez faire autant de sous-groupes que vous le désirez. - - - - - Vous pouvez voir les groupes de cache comme une hiérarchie de dossiers. - Par exemple, un groupe de cache 'a|b|c' peut être considéré comme - la hiérarchie 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 spécifiez un - $compile_id - de cette façon clear_cache(null,'a|b','foo') il sera traité comme un groupe de - cache apposé '/a/b/c/foo/'. - - - - Si vous spécifiez un nom de template de cette façon - 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 spécifié 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 hiérarchisé pour être capable de les effacer - comme un groupe. - - - - - Le groupement de cache ne devrait pas être confondu avec votre hiérarchie - de dossiers de templates, le groupement de cache n'a aucune connaissance - de la façon dont vos templates sont structurés. 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 thème blue, - vous devriez créer une structure de groupe de cache qui reflète 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/trunk/docs/fr/programmers/caching/caching-multiple-caches.xml b/trunk/docs/fr/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index 82ee88c6..00000000 --- a/trunk/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 même appel - aux fonctions display() ou - fetch(). Imaginons qu'un appel a - display('index.tpl') puisse avoir plusieurs résultats, en fonction de - certaines conditions, et que vous vouliez des fichiers de cache séparés - pour chacun d'eux. Vous pouvez faire celà en passant un identifiant de - cache ($cache_id) en deuxiéme paramètre à 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 résultat peut s'avérer mauvais. L'identifiant - de cache est utilisé pour créer un répertoire sur le système de fichiers, - donc si l'utilisateur décide de donner une trés grande valeur à article_id - ou d'écrire un script qui envoie des article_id de façon aléatoire, - celà pourra causer des problémes coté serveur. Assurez-vous de bien - tester toute donnée passée en paramètre avant de l'utiliser. Dans cet - exemple, peut-être savez-vous que article_id a une longueur de 10 - caractéres, est exclusivement composé de caractéres alph-numériques et - doit avoir une valeur contenue dans la base de données. Vérifiez-le bien ! - - - - Assurez-vous de bien passer le même 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 paramètre - à 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 manière, vous pouvez "grouper" vos fichiers de cache en leur - donnant le même identifiant. - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/caching/caching-setting-up.xml b/trunk/docs/fr/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 516a8ff1..00000000 --- a/trunk/docs/fr/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - Paramétrer le cache - - La première 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 même occasion une copie du résultat - dans un fichier (de cache) du répertoire - $cache_dir. - Au prochain appel de display('index.tpl'), le fichier de cache sera préféré - à la réutilisation du template. - - - Note technique - - Les fichiers situés dans - $cache_dir - sont nommés de la même façon que les templates. - Bien qu'ils aient une extension .php, ils ne sont pas vraiment - directement exécutable. N'éditez surtout pas ces fichiers ! - - - - Tout fichier de cache a une durée de vie limitée déterminée par $cache_lifetime. La valeur par - défaut est 3600 secondes, i.e. 1 heure. Une fois que cette durée est - dépassée, le cache est regénéré. Il est possible de donner - une durée d'expiration propre à chaque fichier de cache en réglant - $caching=2. - Se reporter à la documentation de $cache_lifetime pour plus de - détails. - - - Réglage individuel de $cache_lifetime - -caching = 2; // régler la durée de vie individuellement - -// règle la durée de vie du cache a 15 minutes pour index.tpl -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// règle la durée de vie du cache à 1 heure pour home.tpl -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTE : le réglage suivant ne fonctionne pas quand $caching = 2. La durée de vie -// du fichier de cache de home.tpl a déja été réglée 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 vérifié pour détecter une éventuelle - modification. Si l'un de ces fichiers a été modifié depuis que le fichier de cache a été - généré, le cache est immédiatement regénéré. Ce processus est couteux, donc, - pour des raisons de performances, mettez ce paramètre à &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 regénérés. Ceci revient finalement à - désactiver le cache. $force_compile - est utilisé à des fins de débogage, - un moyen plus efficace de désactiver le cache est de régler - $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 requête - à une base de données, vous pouvez utiliser cette méthode plutôt - 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 bannière en bas à droite. En utilisant une fonction - {insert} pour la - bannière, vous pouvez garder cet élément dynamique dans le contenu qui - est en cache. Reportez-vous à la documentation - {insert} pour plus de détails - ainsi que des exemples. - - - Vous pouvez effacer tous les fichiers du cache avec la fonction clear_all_cache(), ou de façon - 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/trunk/docs/fr/programmers/plugins.xml b/trunk/docs/fr/programmers/plugins.xml deleted file mode 100644 index 5602bed5..00000000 --- a/trunk/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 - utilisée pour pratiquement toutes les fonctionnalités - 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 - façons d'enregistrer les fonctions de gestion avec l'API register_ - est conservée. 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 fonctionnalités personnalisées 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/trunk/docs/fr/programmers/plugins/plugins-block-functions.xml b/trunk/docs/fr/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index c9a26c4a..00000000 --- a/trunk/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 opèrent sur les - contenus de ces blocs. Les fonctions de blocs ont la priorité sur les - fonctions utilisateurs - de même nom, ce qui signifie que vous ne - pouvez avoir une fonction utilisateur {func} et une fonction de bloc - {func}..{/func}. - - - - - Par défaut, l'implémentation de votre fonction est appelée deux fois par Smarty : - une fois pour la balise ouvrante et une autre fois pour la balise - fermante (voir $repeat ci-dessous - sur la façon de modifier ce comportement). - - - Seule la balise ouvrante d'une fonction de bloc peut avoir des - attributs. - Tous les attributs passés par le template aux fonctions de templates sont - contenus dans le tableau associatif $params. - Votre fonction a aussi accès aux attributs de la balise - ouvrante quand c'est la balise fermante qui est exécutée. - - - La valeur de la variable $content est différente - selon si votre fonction est appelée 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 déjà été exécuté par Smarty, vous recevrez donc la sortie du - template et non sa source. - - - - Le paramètre $repeat est passé - par référence à la fonction d'implémentation et fournit la possibilité - de contrôler le nombre d'affichage du bloc. Par défaut, - $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'implémentation retourne avec le paramètre - $repeat vallant &true;, le contenu situé - {func}...{/func} est évalué et la fonction d'implémentation est appelé - une nouvelle fois avec le nouveau bloc de contenu en tant que paramètre - $content. - - - - - Si vous imbriqué des fonctions de bloc, il est possible de connaître - la fonction de bloc parente grâce à la variable $smarty->_tag_stack. - Faîtes un var_dump() - dessus et la structure devrait apparaître. - - - Fonction de bloc - - -]]> - - - - Voir aussi : - register_block() et - unregister_block(). - - - diff --git a/trunk/docs/fr/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/fr/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index d10ab590..00000000 --- a/trunk/docs/fr/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - Fonctions de compilation - - Les fonctions de compilation sont appelées 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 personnalisée - ont le même nom, la fonction de compilation a priorité. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - Les fonctions de compilation ont deux paramètres : une chaîne contenant - la balise - en gros, tout, depuis le nom de la fonction jusqu'au délimiteur de fin - et - l'objet Smarty. Elles sont censées retourner le code PHP qui doit être - injecté dans le template compilé. - - - Fonction de compilation simple - - -]]> - - - Cette fonction peut-être appelée depuis le template comme suivant : - - - - - - Le code PHP résultant dans les templates compilés ressemblerait à ça : - - - -]]> - - - - Voir aussi : - register_compiler_function() et - unregister_compiler_function(). - - - diff --git a/trunk/docs/fr/programmers/plugins/plugins-functions.xml b/trunk/docs/fr/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 0925162c..00000000 --- a/trunk/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 - passés aux fonctions de template à partir du template - sont contenus dans le tableau associatif $params. - - - Le retour de la fonction sera substituée à la balise de fonction - du template (fonction - {fetch} - par exemple). Sinon, la fonction peut simplement accomplir une autre tâche sans sortie - (la fonction - {assign} par exemple). - - - Si la fonction a besoin d'assigner des variables aux templates ou d'utiliser - d'autres fonctionnalités fournies par Smarty, elle peut recevoir un - objet $smarty pour celà. - - - - Fonction de plugin avec sortie - - -]]> - - - - - peut être utilisée dans le template de la façon 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/trunk/docs/fr/programmers/plugins/plugins-howto.xml b/trunk/docs/fr/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 1ba50ead..00000000 --- a/trunk/docs/fr/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - Comment fonctionnent les plugins - - Les plugins sont toujours chargés à la demande. Seuls les modificateurs - de variables, les ressources, etc invoqués dans les scripts de templates - seront chargés. De plus, chaque plugin n'est chargé qu'une fois, et ce - même si vous avez plusieurs instances de Smarty qui tournent dans - la même requête. - - - Les filtres de post/pré-compilation et les filtres de sortie sont des cas - un peu spéciaux. - Comme ils ne sont pas mentionnés dans les templates, ils doivent être déclarés - ou chargés explicitement via les fonctions de l'API avant que le template - ne soit exécuté. L'ordre dans lequel les filtres multiples d'un même type - sont exécutés dépend de l'ordre dans lequel ils sont enregistrés ou chargés. - - - Le répertoire de plugin peut - être une chaîne de caractères 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/trunk/docs/fr/programmers/plugins/plugins-inserts.xml b/trunk/docs/fr/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 90c0606d..00000000 --- a/trunk/docs/fr/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Insertions - - Les plugins d'insertion sont utilisés pour implémenter les fonctions - qui sont appelées par les balises - {insert} - dans les templates. - - - - string smarty_insert_name - array $params - object &$smarty - - - - Le premier paramètre passé à la fonction est une tableau associatif - d'attributs. - - - La fonction d'insertion est supposée retourner le résultat 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/trunk/docs/fr/programmers/plugins/plugins-modifiers.xml b/trunk/docs/fr/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 74538d49..00000000 --- a/trunk/docs/fr/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - Modificateurs - - Les modificateurs - sont de petites fonctions appliquées à une variable - de template avant qu'elle ne soit affichée ou utilisée dans un autre contexte. - Les modificateurs peuvent être chaînés entre eux. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - Le premier paramètre passé au modificateur est la valeur - sur laquelle le modificateur est supposé opérer. Les autres paramétres - peuvent être optionnels, dépendant de quel genre d'opération doit être - effectué. - - - Le modificateur doit retourner - le résultat de son exécution. - - - Plugin modificateur simple - - Ce plugin est un alias d'une fonction PHP. Il n'a aucun paramètre - supplémentaires. - - - -]]> - - - - - 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/trunk/docs/fr/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/fr/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index 04017564..00000000 --- a/trunk/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 très spécifique pour être localisés par Smarty. - - - Les fichiers de plugins doivent être nommés de la façon 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 - nommées de la façon suivante : -
      - - smarty_type_nom - -
      -
      - - - - Les significations de type et de nom sont les mêmes - que précédemment. - - - Un exemple de nom de modificateur foo serait - function smarty_modifier_foo(). - - - - Smarty donnera des messages d'erreurs appropriés si le fichier de plugin - n'est pas trouvé ou si le fichier ou la fonction de plugin ne sont - pas nommés correctement. - -
      - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/fr/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 152b1afd..00000000 --- a/trunk/docs/fr/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Filtres de sortie - - Les plugins de filtres de sortie opèrent sur la sortie du template, - après que le template a été chargé et exécuté, mais avant que - la sortie ne soit affichée. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - Le premier paramètre passé à la fonction du filtre de sortie est la - sortie du template qui doit être modifiée et le second paramètre - est l'instance de Smarty appelant le plugin. Le plugin est supposé - faire un traitement et en retourner le résultat. - - - Plugin de filtre de sortie - - -]]> - - - - Voir aussi - - register_outputfilter() et - - unregister_outputfilter(). - - - - diff --git a/trunk/docs/fr/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/fr/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 93ebe0c9..00000000 --- a/trunk/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 très - proches. Ils différent dans leur exécution, plus précisément dans le - moment où ils sont exécutés. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Les filtres de pré-compilation sont utilisés pour transformer la source d'un template - juste avant la compilation. Le premier paramètre passé à la fonction - de filtre de pré-compilation est la source du template, éventuellement modifiée par - d'autres filtres de pré-compilations. Le plugin est supposé retourner la source modifiée. - Notez que cette source n'est sauvegardée nulle part, elle est seulement - utilisé pour la compilation. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Les filtres de post-compilation sont utilisés pour modifier la sortie du template - (le code PHP) juste après que la compilation a été faîte mais juste - avant que le template ne soit sauvegardé sur le système de fichiers. - Le premier paramètre passé à la fonction de filtre de post-compilation est le code - du template compilé, éventuellement déja modifié par d'autres filtres de post-compilations. - Le plugin est censé retourner la version modifiée 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/trunk/docs/fr/programmers/plugins/plugins-resources.xml b/trunk/docs/fr/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 9045d2a5..00000000 --- a/trunk/docs/fr/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - -Ressources - - Les plugins ressources sont un moyen générique de fournir des sources - de templates ou des composants de scripts PHP à Smarty. Quelques exemples - de ressources : bases de données, LDAP, mémoire partagée, sockets, etc. - - - Il y au total quatre fonctions qui ont besoin d'être enregistrées pour - chaque type de ressource. Chaque fonction reçoit le nom de la ressource demandée - comme premier paramètre et l'objet Smarty comme dernier paramètre. - Les autres paramètres dépendent 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 première fonction est supposée récupérer la ressource. Son second - paramètre est une variable passée par référence où le résultat doit être - stocké. La fonction est supposée retourner &true; si - elle réussit à récupérer la ressource et &false; sinon. - - - - La seconde fonction est supposée récupérer la date de dernière modification - de la ressource demandée (comme un timestamp UNIX). Le second paramètre - est une variable passée par référence dans laquelle la date doit - être stockée. La fonction est supposée renvoyer &true; si elle - réussit à récupérer la date et &false; sinon. - - - - La troisième fonction est supposée retourner &true; - ou &false; selon si la ressource demandée est sûre - ou non. La fonction est utilisée seulement pour les ressources templates - mais doit tout de même être définie. - - - - La quatrième fonction est supposée retourner &true; - ou &false; selon si l'on peut faire confiance ou - non à la ressource demandée. Cette fonction est utilisée seulement - pour les composants de scripts PHP demandés par les balises - - {include_php} ou - {insert} - ayant un attribut src. Quoiqu'il en soit, - elle doit être définie 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 requêtes 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) -{ - // inutilisée pour les templates -} -?> -]]> - - - - Voir aussi : - register_resource() et - unregister_resource(). - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/plugins/plugins-writing.xml b/trunk/docs/fr/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 2b0cb386..00000000 --- a/trunk/docs/fr/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Ecrire des plugins - - Les plugins peuvent être soit chargés automatiquement par Smarty - depuis le système de fichier, soit être déclarés - pendant l'exécution via une fonction register_* de l'API. Ils peuvent - aussi être désalloués en utilisant une fonction unregister_* de - l'API. - - - Pour les plugins qui ne sont pas enregistrés pendant l'exécution, le nom - des fonctions n'ont pas à suivre la convention de nommage. - - - Si certaines fonctionnalités d'un plugin dépendent d'un autre plugin - (comme c'est le cas de certains plugins accompagnant Smarty), alors - la maniére appropriée de charger le plugin est la suivante : - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - Une règle générale est que chaque objet Smarty est toujours passé au plugin - en tant que dernier paramètre, sauf pour deux exceptions : - - - - les modificateurs ne sont pas passés du tout à l'objet Smarty - - - les blocs récupèrent le paramètre - $repeat passé après l'objet Smarty afin de - conserver une compatibilité avec les anciennes versions de Smarty. - - - - - \ No newline at end of file diff --git a/trunk/docs/fr/programmers/smarty-constants.xml b/trunk/docs/fr/programmers/smarty-constants.xml deleted file mode 100644 index 863a22ab..00000000 --- a/trunk/docs/fr/programmers/smarty-constants.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Constantes - - - SMARTY_DIR - - Il doit s'agir du chemin complet - du répertoire où se trouvent les fichiers classes de Smarty. - S'il n'est pas défini dans votre script, Smarty essaiera alors d'en - déterminer automatiquement la valeur. - S'il est défini, 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 répertoire où - se trouvent les fichiers internes de Smarty. S'il n'est - pas défini, Smarty placera comme valeur par défaut la - valeur de la constante précédente - SMARTY_DIR. S'il est - défini, 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/trunk/docs/fr/translation.xml b/trunk/docs/fr/translation.xml deleted file mode 100644 index 1c22bfb0..00000000 --- a/trunk/docs/fr/translation.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - Ceci est le fichier généré 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/trunk/docs/id/bookinfo.xml b/trunk/docs/id/bookinfo.xml deleted file mode 100644 index cfa56c13..00000000 --- a/trunk/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/trunk/docs/id/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/id/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 40a3ba4b..00000000 --- a/trunk/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/trunk/docs/id/designers/language-basic-syntax/language-math.xml b/trunk/docs/id/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 0ae1df1e..00000000 --- a/trunk/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/trunk/docs/id/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/id/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index a131e28e..00000000 --- a/trunk/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/trunk/docs/id/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/id/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index ac52d25e..00000000 --- a/trunk/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/trunk/docs/id/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/id/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 12c051a4..00000000 --- a/trunk/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/trunk/docs/id/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/id/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index fc49b8e5..00000000 --- a/trunk/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/trunk/docs/id/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/id/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index 94c08e55..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 691c880c..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 19a33ff3..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index dee97e11..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 3bc21763..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index a7ad8300..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 18eb7348..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 8a13e8e6..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 0c58f6f5..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index e71533e1..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 6a0bf73d..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 262323aa..00000000 --- a/trunk/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/trunk/docs/id/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/id/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 2a3a8718..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/id/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 64b5fdf0..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/id/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 73d24a8f..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/id/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 5a1988d7..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/id/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 5cb752bc..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/id/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index ce1efa37..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/id/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 77ae98af..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/id/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index 4e9ed005..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/id/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 192f3624..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/id/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 814b7e2b..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/id/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 9ec390f4..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/id/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 214efd33..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/id/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index f3c0ba85..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/id/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 184c6595..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/id/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index cc24028a..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-math.xml b/trunk/docs/id/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index ecde0592..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/id/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index bafd23d0..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/id/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index f6a1f9ce..00000000 --- a/trunk/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/trunk/docs/id/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/id/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 9d286565..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 0037324f..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index a6fc60e1..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index de94cf4d..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index f4efd4e3..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 44e4973b..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index d1b6e5db..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 928ae523..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index d7a84169..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 44920e44..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 7b4cbd17..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 43b1ee1a..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 4261e2c4..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index 8d99819b..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 52fcade8..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 5f82e463..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 0718b4c2..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index f0d4d81f..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 204998a7..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index e0c5bfc7..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index acb59845..00000000 --- a/trunk/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/trunk/docs/id/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/id/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index f09dbe24..00000000 --- a/trunk/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/trunk/docs/id/designers/language-variables/language-assigned-variables.xml b/trunk/docs/id/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 293ea5cb..00000000 --- a/trunk/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/trunk/docs/id/designers/language-variables/language-config-variables.xml b/trunk/docs/id/designers/language-variables/language-config-variables.xml deleted file mode 100644 index b19e97ef..00000000 --- a/trunk/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/trunk/docs/id/designers/language-variables/language-variables-smarty.xml b/trunk/docs/id/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 0520c946..00000000 --- a/trunk/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/trunk/docs/id/getting-started.xml b/trunk/docs/id/getting-started.xml deleted file mode 100644 index 3cd572f5..00000000 --- a/trunk/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/trunk/docs/id/language-defs.ent b/trunk/docs/id/language-defs.ent deleted file mode 100644 index 0891dd26..00000000 --- a/trunk/docs/id/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/trunk/docs/id/language-snippets.ent b/trunk/docs/id/language-snippets.ent deleted file mode 100644 index 525d7bd7..00000000 --- a/trunk/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/trunk/docs/id/livedocs.ent b/trunk/docs/id/livedocs.ent deleted file mode 100644 index 740b1885..00000000 --- a/trunk/docs/id/livedocs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - -'> -'> - - diff --git a/trunk/docs/id/preface.xml b/trunk/docs/id/preface.xml deleted file mode 100644 index 3cdad427..00000000 --- a/trunk/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/trunk/docs/id/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/id/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index e2b47e56..00000000 --- a/trunk/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/trunk/docs/id/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/id/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index c2b67ae3..00000000 --- a/trunk/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/trunk/docs/id/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/id/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 47fb83df..00000000 --- a/trunk/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/trunk/docs/id/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/id/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 9d384e4a..00000000 --- a/trunk/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/trunk/docs/id/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/id/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index 67b4ccb9..00000000 --- a/trunk/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/trunk/docs/id/programmers/advanced-features/template-resources.xml b/trunk/docs/id/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 406c800b..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/id/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index 9d2f7400..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-append.xml b/trunk/docs/id/programmers/api-functions/api-append.xml deleted file mode 100644 index 2275fafd..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/id/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 7ec5a6e3..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-assign.xml b/trunk/docs/id/programmers/api-functions/api-assign.xml deleted file mode 100644 index d6a1d08d..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/id/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index cd878b58..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/id/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 1ee92316..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-clear-assign.xml b/trunk/docs/id/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index e6bdcf18..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-clear-cache.xml b/trunk/docs/id/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 5ef7f074..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/id/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index daf386bf..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-clear-config.xml b/trunk/docs/id/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 41908a7a..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-config-load.xml b/trunk/docs/id/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 91e36fcd..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-display.xml b/trunk/docs/id/programmers/api-functions/api-display.xml deleted file mode 100644 index b2a2f0a2..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-fetch.xml b/trunk/docs/id/programmers/api-functions/api-fetch.xml deleted file mode 100644 index 98e4fe6a..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/id/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 3cc7717f..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/id/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 3ba847a2..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/id/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index d33a0c0b..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-is-cached.xml b/trunk/docs/id/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 41237115..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-load-filter.xml b/trunk/docs/id/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 5945a78d..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-block.xml b/trunk/docs/id/programmers/api-functions/api-register-block.xml deleted file mode 100644 index ea734e58..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/id/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 6c3c28e7..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-function.xml b/trunk/docs/id/programmers/api-functions/api-register-function.xml deleted file mode 100644 index 7abcaa08..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-modifier.xml b/trunk/docs/id/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index f2e25b9c..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-object.xml b/trunk/docs/id/programmers/api-functions/api-register-object.xml deleted file mode 100644 index fc159b3b..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/id/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 870a8b0a..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/id/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 3c1a7fea..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/id/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 15c88f39..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-register-resource.xml b/trunk/docs/id/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 363497e8..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-template-exists.xml b/trunk/docs/id/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index ed999d0d..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-trigger-error.xml b/trunk/docs/id/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 8ecc1da4..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-block.xml b/trunk/docs/id/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index d8bc028d..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/id/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index d5033921..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-function.xml b/trunk/docs/id/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 2acea1fc..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/id/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index aead7d7b..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-object.xml b/trunk/docs/id/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 58a50088..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/id/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 2daf6181..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/id/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 5250f272..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/id/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 79f45c20..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/id/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 6add4729..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/id/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 9f4948ad..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/id/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 90fc1b5a..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/id/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 788999c1..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/id/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index 2d4eb91b..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/id/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 83b276ea..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-caching.xml b/trunk/docs/id/programmers/api-variables/variable-caching.xml deleted file mode 100644 index 4c6f46c5..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-compile-check.xml b/trunk/docs/id/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index c70e1fd4..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/id/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index 41b5bdc0..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-compile-id.xml b/trunk/docs/id/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index ca298a4b..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/id/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 8a124cbb..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/id/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index 7e9c533e..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-config-dir.xml b/trunk/docs/id/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index e07b1f13..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/id/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index ef02ad4a..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/id/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 508d87b2..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/id/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index f6a6467d..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/id/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 5c298fa2..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/id/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index 4b352177..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-debugging.xml b/trunk/docs/id/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 2eb8e9c8..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/id/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index f79bc14a..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/id/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 211ce338..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/id/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 44f74321..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/id/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index 358136ca..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-force-compile.xml b/trunk/docs/id/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 18787936..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/id/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index d366c62c..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-php-handling.xml b/trunk/docs/id/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 3f514473..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/id/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index e6f1ae2d..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/id/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 978d8f26..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/id/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index f1267306..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/id/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 79880d24..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/id/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index cb58d49d..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-security-settings.xml b/trunk/docs/id/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index 7c75c2d5..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-security.xml b/trunk/docs/id/programmers/api-variables/variable-security.xml deleted file mode 100644 index 80937d99..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-template-dir.xml b/trunk/docs/id/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 40a442c5..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/id/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 97ac7ac2..00000000 --- a/trunk/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/trunk/docs/id/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/id/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 4b1ebbfe..00000000 --- a/trunk/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/trunk/docs/id/programmers/caching/caching-cacheable.xml b/trunk/docs/id/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 898d9951..00000000 --- a/trunk/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/trunk/docs/id/programmers/caching/caching-groups.xml b/trunk/docs/id/programmers/caching/caching-groups.xml deleted file mode 100644 index 8a6ee6e8..00000000 --- a/trunk/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/trunk/docs/id/programmers/caching/caching-multiple-caches.xml b/trunk/docs/id/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index 78a13b99..00000000 --- a/trunk/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/trunk/docs/id/programmers/caching/caching-setting-up.xml b/trunk/docs/id/programmers/caching/caching-setting-up.xml deleted file mode 100644 index fd63c030..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-block-functions.xml b/trunk/docs/id/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index ea4424bd..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/id/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index de4f5ccf..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-functions.xml b/trunk/docs/id/programmers/plugins/plugins-functions.xml deleted file mode 100644 index d6676052..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-howto.xml b/trunk/docs/id/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 3a685efc..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-inserts.xml b/trunk/docs/id/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 9ca86a3d..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-modifiers.xml b/trunk/docs/id/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index f3db0fcb..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/id/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index e0f7b7b9..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/id/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 31d0754d..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/id/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 56dda3dd..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-resources.xml b/trunk/docs/id/programmers/plugins/plugins-resources.xml deleted file mode 100644 index e94bce23..00000000 --- a/trunk/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/trunk/docs/id/programmers/plugins/plugins-writing.xml b/trunk/docs/id/programmers/plugins/plugins-writing.xml deleted file mode 100644 index d20a0c11..00000000 --- a/trunk/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/trunk/docs/it/appendixes/bugs.xml b/trunk/docs/it/appendixes/bugs.xml deleted file mode 100644 index 42444201..00000000 --- a/trunk/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/trunk/docs/it/appendixes/resources.xml b/trunk/docs/it/appendixes/resources.xml deleted file mode 100644 index f02599f4..00000000 --- a/trunk/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/trunk/docs/it/appendixes/tips.xml b/trunk/docs/it/appendixes/tips.xml deleted file mode 100644 index 043aaade..00000000 --- a/trunk/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/trunk/docs/it/appendixes/troubleshooting.xml b/trunk/docs/it/appendixes/troubleshooting.xml deleted file mode 100644 index ecc50cb9..00000000 --- a/trunk/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/trunk/docs/it/bookinfo.xml b/trunk/docs/it/bookinfo.xml deleted file mode 100644 index 32e82744..00000000 --- a/trunk/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/trunk/docs/it/designers/chapter-debugging-console.xml b/trunk/docs/it/designers/chapter-debugging-console.xml deleted file mode 100644 index eba9858e..00000000 --- a/trunk/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/trunk/docs/it/designers/config-files.xml b/trunk/docs/it/designers/config-files.xml deleted file mode 100644 index 4832d3f1..00000000 --- a/trunk/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/trunk/docs/it/designers/language-basic-syntax.xml b/trunk/docs/it/designers/language-basic-syntax.xml deleted file mode 100644 index aa28037a..00000000 --- a/trunk/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/trunk/docs/it/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/it/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 6df4c6d6..00000000 --- a/trunk/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/trunk/docs/it/designers/language-basic-syntax/language-math.xml b/trunk/docs/it/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index b95cb70b..00000000 --- a/trunk/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/trunk/docs/it/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/it/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 3dafd0bd..00000000 --- a/trunk/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/trunk/docs/it/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/it/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 315e53e3..00000000 --- a/trunk/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/trunk/docs/it/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/it/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 65f6e7a2..00000000 --- a/trunk/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/trunk/docs/it/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/it/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 0c5a8dc5..00000000 --- a/trunk/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/trunk/docs/it/designers/language-builtin-functions.xml b/trunk/docs/it/designers/language-builtin-functions.xml deleted file mode 100644 index 057e785b..00000000 --- a/trunk/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/trunk/docs/it/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index ce3fb3b7..00000000 --- a/trunk/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/trunk/docs/it/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 2f8a21e1..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index ea92a3c2..00000000 --- a/trunk/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 - - nessuno - Array sul quale viene eseguito il ciclo - - - item - stringa - - 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/trunk/docs/it/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index fd56a796..00000000 --- a/trunk/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/trunk/docs/it/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 6b8cba88..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index f5d0754a..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 5e730a88..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index e4b85cc2..00000000 --- a/trunk/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/trunk/docs/it/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 09db737d..00000000 --- a/trunk/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/trunk/docs/it/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index f4f670fb..00000000 --- a/trunk/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/trunk/docs/it/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 919ef443..00000000 --- a/trunk/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 - - nessuno - Nome della sezione - - - loop - [$variable_name] - - 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/trunk/docs/it/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/it/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 60544751..00000000 --- a/trunk/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/trunk/docs/it/designers/language-combining-modifiers.xml b/trunk/docs/it/designers/language-combining-modifiers.xml deleted file mode 100644 index 4a2bdf37..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions.xml b/trunk/docs/it/designers/language-custom-functions.xml deleted file mode 100644 index f7bfc4d0..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/it/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index fb00052f..00000000 --- a/trunk/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 - - nessuno - Nome della variabile valorizzata - - - value - stringa - - 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/trunk/docs/it/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/it/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 0df3dadb..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/it/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 601d17e1..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/it/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 194ffc2f..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/it/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index d9de5118..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/it/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 7d1e1973..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/it/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index f2567267..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/it/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 532858f3..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/it/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 0815cd2c..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/it/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index e28671b7..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/it/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 8eeed819..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/it/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 0a4296a3..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/it/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 9067307b..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/it/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 5147206d..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-custom-functions/language-function-math.xml b/trunk/docs/it/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index ac350b94..00000000 --- a/trunk/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 - - nessuno - l'equazione da eseguire - - - format - stringa - no - nessuno - formato del risultato (sprintf) - - - var - numerico - - nessuno - valore di una variabile dell'equazione - - - assign - stringa - no - nessuno - variabile del template cui verrà assegnato il risultato - - - [var ...] - numerico - - 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/trunk/docs/it/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/it/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index 367b5dac..00000000 --- a/trunk/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/trunk/docs/it/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/it/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index 8c0dc4cb..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/it/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 49e0ae78..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers.xml b/trunk/docs/it/designers/language-modifiers.xml deleted file mode 100644 index 49415645..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 72fe0a8c..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index d02fe4f7..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 05ed9956..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index c216f39f..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index c848badc..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index f4b4cc10..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 6aa4074e..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 51991322..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 9b5b6cda..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 635d7d38..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index e7436dd3..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index ebce31c9..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index e995c8c1..00000000 --- a/trunk/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 - - nessuno - E' l'espressione regolare da sostituire. - - - 2 - stringa - - 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/trunk/docs/it/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index bbee1126..00000000 --- a/trunk/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 - - nessuno - E' la stringa di testo da sostituire. - - - 2 - stringa - - 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/trunk/docs/it/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 5b209f70..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index e9313a5f..00000000 --- a/trunk/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 - - 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/trunk/docs/it/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 6c4c25ca..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 79dab2ce..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 13ba41b5..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 14af2721..00000000 --- a/trunk/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/trunk/docs/it/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/it/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 63f59377..00000000 --- a/trunk/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/trunk/docs/it/designers/language-variables.xml b/trunk/docs/it/designers/language-variables.xml deleted file mode 100644 index 9521ce62..00000000 --- a/trunk/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/trunk/docs/it/designers/language-variables/language-assigned-variables.xml b/trunk/docs/it/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index cd19a2c8..00000000 --- a/trunk/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/trunk/docs/it/designers/language-variables/language-config-variables.xml b/trunk/docs/it/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 15a43f5f..00000000 --- a/trunk/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/trunk/docs/it/designers/language-variables/language-variables-smarty.xml b/trunk/docs/it/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 816da253..00000000 --- a/trunk/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/trunk/docs/it/getting-started.xml b/trunk/docs/it/getting-started.xml deleted file mode 100644 index e413c543..00000000 --- a/trunk/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/trunk/docs/it/language-defs.ent b/trunk/docs/it/language-defs.ent deleted file mode 100644 index 669a1884..00000000 --- a/trunk/docs/it/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/trunk/docs/it/language-snippets.ent b/trunk/docs/it/language-snippets.ent deleted file mode 100644 index ed2149c3..00000000 --- a/trunk/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/trunk/docs/it/livedocs.ent b/trunk/docs/it/livedocs.ent deleted file mode 100644 index 7e1e4b7e..00000000 --- a/trunk/docs/it/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - -'> -'> - - - diff --git a/trunk/docs/it/preface.xml b/trunk/docs/it/preface.xml deleted file mode 100644 index c511935d..00000000 --- a/trunk/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/trunk/docs/it/programmers/advanced-features.xml b/trunk/docs/it/programmers/advanced-features.xml deleted file mode 100644 index 26fbf8ce..00000000 --- a/trunk/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/trunk/docs/it/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/it/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 9118a0f7..00000000 --- a/trunk/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/trunk/docs/it/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/it/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 6b7f54c1..00000000 --- a/trunk/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/trunk/docs/it/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/it/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 4ae0ad66..00000000 --- a/trunk/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/trunk/docs/it/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/it/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 40497b31..00000000 --- a/trunk/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/trunk/docs/it/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/it/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index 54d0b377..00000000 --- a/trunk/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/trunk/docs/it/programmers/advanced-features/template-resources.xml b/trunk/docs/it/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 41c80559..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions.xml b/trunk/docs/it/programmers/api-functions.xml deleted file mode 100644 index e8fee188..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/it/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index 273427a4..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-append.xml b/trunk/docs/it/programmers/api-functions/api-append.xml deleted file mode 100644 index 7957f3e3..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/it/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 86c9c5ff..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-assign.xml b/trunk/docs/it/programmers/api-functions/api-assign.xml deleted file mode 100644 index f89787f4..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/it/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index bddaa932..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/it/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index b1df225b..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-clear-assign.xml b/trunk/docs/it/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index d63cc0ed..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-clear-cache.xml b/trunk/docs/it/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index f9bbda45..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/it/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index ed2e20e1..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-clear-config.xml b/trunk/docs/it/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 2d494b61..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-config-load.xml b/trunk/docs/it/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 22349c58..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-display.xml b/trunk/docs/it/programmers/api-functions/api-display.xml deleted file mode 100644 index cba54f30..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-fetch.xml b/trunk/docs/it/programmers/api-functions/api-fetch.xml deleted file mode 100644 index a9276641..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/it/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 9d88cc4f..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/it/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index bbf91ea7..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/it/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 646009d6..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-is-cached.xml b/trunk/docs/it/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index ad464b79..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-load-filter.xml b/trunk/docs/it/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 3d0200c0..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-block.xml b/trunk/docs/it/programmers/api-functions/api-register-block.xml deleted file mode 100644 index d00ba2bf..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/it/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 3847d096..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-function.xml b/trunk/docs/it/programmers/api-functions/api-register-function.xml deleted file mode 100644 index 86c77c9e..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-modifier.xml b/trunk/docs/it/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index 06a3ab5b..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-object.xml b/trunk/docs/it/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 5655d8c1..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/it/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 894eb490..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/it/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 6d8458d4..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/it/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 0bcac796..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-register-resource.xml b/trunk/docs/it/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 42f51dfb..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-template-exists.xml b/trunk/docs/it/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 6d793caa..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-trigger-error.xml b/trunk/docs/it/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index fe48c4e3..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-block.xml b/trunk/docs/it/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 91657d3e..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/it/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index cd1b7266..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-function.xml b/trunk/docs/it/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 60be5d3f..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/it/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 2f1bdae2..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-object.xml b/trunk/docs/it/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 5e2b08bb..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/it/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 4e8b8283..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/it/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 73bce5f5..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/it/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index bd51805a..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/it/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 23a52da1..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables.xml b/trunk/docs/it/programmers/api-variables.xml deleted file mode 100644 index 8fe5d378..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/it/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index c67a170c..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/it/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 33ac4fa3..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/it/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 219e1d8e..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/it/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index ade675d4..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/it/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index a968e308..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-caching.xml b/trunk/docs/it/programmers/api-variables/variable-caching.xml deleted file mode 100644 index a2667e65..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-compile-check.xml b/trunk/docs/it/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index d63eb45d..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/it/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index e3a9da2b..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-compile-id.xml b/trunk/docs/it/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 59852b86..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/it/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 162df326..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/it/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index a98c0843..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-config-dir.xml b/trunk/docs/it/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 7a05a14f..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/it/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index 079f1a56..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/it/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 23187b43..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/it/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 8093267f..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/it/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index c481be59..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/it/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index f8fd7d81..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-debugging.xml b/trunk/docs/it/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 1e2b8215..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/it/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index f7f16284..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/it/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 15fd227a..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/it/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 87dce654..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/it/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index a15eff38..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-force-compile.xml b/trunk/docs/it/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 093409dc..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/it/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 25598f2b..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-php-handling.xml b/trunk/docs/it/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 847c1081..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/it/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 4de05bb9..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/it/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 137e4f66..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/it/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 52c9b10e..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/it/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 018aeb11..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/it/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 9e9c3cbb..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-security-settings.xml b/trunk/docs/it/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index cd466665..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-security.xml b/trunk/docs/it/programmers/api-variables/variable-security.xml deleted file mode 100644 index 9bd2700b..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-template-dir.xml b/trunk/docs/it/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 276b38e2..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/it/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 102c955a..00000000 --- a/trunk/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/trunk/docs/it/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/it/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 91f20e17..00000000 --- a/trunk/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/trunk/docs/it/programmers/caching.xml b/trunk/docs/it/programmers/caching.xml deleted file mode 100644 index df6a6189..00000000 --- a/trunk/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/trunk/docs/it/programmers/caching/caching-cacheable.xml b/trunk/docs/it/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 08c955e0..00000000 --- a/trunk/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/trunk/docs/it/programmers/caching/caching-groups.xml b/trunk/docs/it/programmers/caching/caching-groups.xml deleted file mode 100644 index 05880c0f..00000000 --- a/trunk/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/trunk/docs/it/programmers/caching/caching-multiple-caches.xml b/trunk/docs/it/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index da26dcd5..00000000 --- a/trunk/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/trunk/docs/it/programmers/caching/caching-setting-up.xml b/trunk/docs/it/programmers/caching/caching-setting-up.xml deleted file mode 100644 index fcc03617..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins.xml b/trunk/docs/it/programmers/plugins.xml deleted file mode 100644 index e9df2574..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-block-functions.xml b/trunk/docs/it/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index 408ca7f3..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/it/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index 4ccbcd20..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-functions.xml b/trunk/docs/it/programmers/plugins/plugins-functions.xml deleted file mode 100644 index ceff1c77..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-howto.xml b/trunk/docs/it/programmers/plugins/plugins-howto.xml deleted file mode 100644 index d45c4cf4..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-inserts.xml b/trunk/docs/it/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index aab313ae..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-modifiers.xml b/trunk/docs/it/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 44b0f895..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/it/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index cd3bd69c..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/it/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index dc659575..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/it/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 37f86aca..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-resources.xml b/trunk/docs/it/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 2ba51d98..00000000 --- a/trunk/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/trunk/docs/it/programmers/plugins/plugins-writing.xml b/trunk/docs/it/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 12303f66..00000000 --- a/trunk/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/trunk/docs/it/programmers/smarty-constants.xml b/trunk/docs/it/programmers/smarty-constants.xml deleted file mode 100644 index aca0ea66..00000000 --- a/trunk/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/trunk/docs/ja/appendixes/bugs.xml b/trunk/docs/ja/appendixes/bugs.xml deleted file mode 100644 index c7d06a79..00000000 --- a/trunk/docs/ja/appendixes/bugs.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - ãƒã‚° - - Smarty ã®æœ€æ–°ãƒ‡ã‚£ã‚¹ãƒˆãƒªãƒ“ューションã«ä»˜å±žã—ã¦ã„ã‚‹ - BUGS ファイルを読むã‹ã€web サイトをãƒã‚§ãƒƒã‚¯ã—ã¦ãã ã•ã„。 - - - diff --git a/trunk/docs/ja/appendixes/resources.xml b/trunk/docs/ja/appendixes/resources.xml deleted file mode 100644 index d97a5514..00000000 --- a/trunk/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/trunk/docs/ja/appendixes/tips.xml b/trunk/docs/ja/appendixes/tips.xml deleted file mode 100644 index 7013ff95..00000000 --- a/trunk/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/trunk/docs/ja/appendixes/troubleshooting.xml b/trunk/docs/ja/appendixes/troubleshooting.xml deleted file mode 100644 index e220a3a5..00000000 --- a/trunk/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/trunk/docs/ja/bookinfo.xml b/trunk/docs/ja/bookinfo.xml deleted file mode 100644 index 46345845..00000000 --- a/trunk/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/trunk/docs/ja/designers/chapter-debugging-console.xml b/trunk/docs/ja/designers/chapter-debugging-console.xml deleted file mode 100644 index 0b2d5c63..00000000 --- a/trunk/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/trunk/docs/ja/designers/config-files.xml b/trunk/docs/ja/designers/config-files.xml deleted file mode 100644 index e3ca731e..00000000 --- a/trunk/docs/ja/designers/config-files.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - 設定ファイル - - 設定ファイルã¯ã€ï¼‘ã¤ã®ãƒ•ァイルã‹ã‚‰ã‚°ãƒ­ãƒ¼ãƒãƒ«ãªãƒ†ãƒ³ãƒ—レート変数を管ç†ã™ã‚‹æ–¹æ³•ã¨ã—ã¦ã€ - デザイナーã«ã¨ã£ã¦æœ‰ç”¨ã§ã™ã€‚1ã¤ã®ä¾‹ã¨ã—ã¦ã¯ã€ãƒ†ãƒ³ãƒ—レートã®è‰²ã®æŒ‡å®šã‚’行ã†å ´åˆã§ã™ã€‚ - 通常ã€ã‚¢ãƒ—リケーションã®é…色を変更ã™ã‚‹ã«ã¯å…¨ã¦ã®ãƒ†ãƒ³ãƒ—レートファイルを調ã¹ã€ - 該当ã™ã‚‹ç®‡æ‰€ã®è‰²ã®æŒ‡å®šã‚’変更ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - 設定ファイルを使ã†ã¨è‰²ã®æŒ‡å®šã‚’一箇所ã§ç®¡ç†ã§ãã‚‹ã®ã§ã€ - æ›´æ–°ã™ã‚‹å¿…è¦ãŒã‚るファイルã¯ï¼‘ã¤ã ã‘ã«ãªã‚Šã¾ã™ã€‚ - - - 設定ファイルã®è¨˜è¿°ä¾‹ - - - - - - 設定ファイルã®å€¤ - ã¯ã‚¯ã‚©ãƒ¼ãƒˆã§å›²ã‚€äº‹ãŒå‡ºæ¥ã¾ã™(å¿…é ˆã§ã¯ã‚りã¾ã›ã‚“)。 - シングルクォートã¨ãƒ€ãƒ–ルクォートã®ã©ã¡ã‚‰ã§ã‚‚使用ã§ãã¾ã™ã€‚ - 複数行ã«ã¾ãŸãŒã‚‹å€¤ã‚’æŒã¤å ´åˆã¯ã€å€¤å…¨ä½“をトリプルクォート(""") - ã§å›²ã¿ã¾ã™ã€‚設定ファイルã®ä¸­ã«ã‚³ãƒ¡ãƒ³ãƒˆã‚’記述ã™ã‚‹ã«ã¯ã€ - 行ã®åˆã‚ã« # (ãƒãƒƒã‚·ãƒ¥) を使ã†äº‹ã‚’推奨ã—ã¾ã™ã€‚ - - - 上記ã®è¨­å®šãƒ•ァイルã®ä¾‹ã¯ï¼’ã¤ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’æŒã£ã¦ã„ã¾ã™ã€‚ - セクションåã¯ãƒ–ラケット[]ã«å›²ã¾ã‚Œã€[ - ã‚‚ã—ã㯠] ã‚’å«ã¾ãªã„ä»»æ„ã®æ–‡å­—列を指定ã§ãã¾ã™ã€‚ - 先頭ã®ï¼”ã¤ã®å¤‰æ•°ã¯ã€ã‚°ãƒ­ãƒ¼ãƒãƒ«å¤‰æ•° (ã‚ã‚‹ã„ã¯ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã«å«ã¾ã‚Œãªã„変数) - ã§ã™ã€‚ã“れらã®å¤‰æ•°ã¯å¸¸ã«è¨­å®šãƒ•ァイルã‹ã‚‰èª­ã¿è¾¼ã¾ã‚Œã¾ã™ã€‚ - 特定ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ãŒèª­ã¿è¾¼ã¾ã‚ŒãŸå ´åˆã¯ã€ - グローãƒãƒ«å¤‰æ•°ã«åŠ ãˆã¦ãã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‹ã‚‰ã®å¤‰æ•°ãŒèª­ã¿è¾¼ã¾ã‚Œã¾ã™ã€‚ - グローãƒãƒ«å¤‰æ•°ã¨ã‚»ã‚¯ã‚·ãƒ§ãƒ³å†…ã«åŒã˜å¤‰æ•°ãŒå­˜åœ¨ã™ã‚‹å ´åˆã¯ã‚»ã‚¯ã‚·ãƒ§ãƒ³å†…ã®å¤‰æ•°ãŒä½¿ç”¨ã•れã¾ã™ã€‚ - 1ã¤ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³å†…ã«åŒåã®ï¼’ã¤ã®å¤‰æ•°ã‚’指定ã—ãŸå ´åˆã¯ã€ - - $config_overwrite - ãŒç„¡åйã§ãªã„é™ã‚Šã¯å¾Œã§æŒ‡å®šã•れãŸã‚‚ã®ãŒä½¿ç”¨ã•れã¾ã™ã€‚ - - - 設定ファイルã®èª­ã¿è¾¼ã¿ã¯ã€çµ„ã¿è¾¼ã¿ã®ãƒ†ãƒ³ãƒ—レート関数 - - {config_load} ã‚ã‚‹ã„㯠API 関数 config_load() - ã«ã‚ˆã£ã¦è¡Œã„ã¾ã™ã€‚ - - - [.hidden] ã®ã‚ˆã†ã«å¤‰æ•°ååˆã¯ã‚»ã‚¯ã‚·ãƒ§ãƒ³åã®å…ˆé ­ã«ãƒ”リオドをã¤ã‘る事ã«ã‚ˆã£ã¦ã€ - 変数åˆã¯å…¨ä½“ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’隠蔽ã™ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ - アプリケーションã‹ã‚‰ã¯ä½¿ç”¨ã•れるãŒãƒ†ãƒ³ãƒ—レートエンジンã‹ã‚‰ã¯ä½¿ç”¨ã•れãªã„よã†ãªé‡è¦ãªãƒ‡ãƒ¼ã‚¿ - (DB接続ã«é–¢ã™ã‚‹æƒ…å ±ãªã©) ã‚’å–å¾—ã™ã‚‹éš›ã«æœ‰ç”¨ã§ã™ã€‚ - テンプレートを編集をã™ã‚‹ã‚µãƒ¼ãƒ‰ãƒ‘ーティãŒå­˜åœ¨ã™ã‚‹å ´åˆã€ - é‡è¦ãªãƒ‡ãƒ¼ã‚¿ã‚’å«ã‚“ã è¨­å®šãƒ•ァイルをテンプレート内ã«èª­ã¿è¾¼ã‚€äº‹ã«ã‚ˆã£ã¦ç›—ã¿èª­ã¾ã‚Œã‚‹å±é™ºæ€§ã‚’回é¿ã§ãã¾ã™ã€‚ - - - {config_load}〠- $config_overwrite〠- get_config_vars()〠- clear_config() - ãŠã‚ˆã³ - config_load() - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - diff --git a/trunk/docs/ja/designers/language-basic-syntax.xml b/trunk/docs/ja/designers/language-basic-syntax.xml deleted file mode 100644 index 6ffb2be3..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/ja/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 327b4c47..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-basic-syntax/language-math.xml b/trunk/docs/ja/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 59f08f08..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 559a9a98..00000000 --- a/trunk/docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - 属性 - - ã»ã¨ã‚“ã©ã® 関数 ã«ã¯ã€ - ãれらã®å‹•作を指定ã—ãŸã‚Šä¿®æ­£ã™ã‚‹ãŸã‚ã®å±žæ€§ãŒã‚りã¾ã™ã€‚Smarty 関数ã®å±žæ€§ã¯ - HTML ã®å±žæ€§ã«ã‹ãªã‚Šè¿‘ã„ã‚‚ã®ã§ã™ã€‚é™çš„ãªå€¤ã¯ã‚¯ã‚©ãƒ¼ãƒˆã§å›²ã‚€å¿…è¦ã¯ã‚りã¾ã›ã‚“ãŒã€ - リテラル文字列ã§ã‚ã‚‹ã¹ãã§ã™ã€‚変数を使ã†å ´åˆã¯ã‚¯ã‚©ãƒ¼ãƒˆã§å›²ã‚“ã§ã¯ã„ã‘ã¾ã›ã‚“。 - - - ã„ãã¤ã‹ã®å±žæ€§ã¯ã€boolean 値 (&true; ã‚ã‚‹ã„㯠&false;) ã‚’å¿…è¦ã¨ã—ã¾ã™ã€‚ - ã“れらã®å€¤ã¯ã€ã‚¯ã‚©ãƒ¼ãƒˆãªã—ã® true〠- onã€yes ã‚ã‚‹ã„㯠- falseã€off〠- no を指定ã™ã‚‹äº‹ãŒå‡ºæ¥ã¾ã™ã€‚ - - - 関数ã®å±žæ€§ã®æ§‹æ–‡ - - - {html_options options=$companies selected=$company_id} - -]]> - - - - diff --git a/trunk/docs/ja/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/ja/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index e5851f00..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/ja/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 7f24db7f..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index a6834eec..00000000 --- a/trunk/docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - ダブルクォート内ã«åŸ‹ã‚è¾¼ã¾ã‚ŒãŸå¤‰æ•° - - - - - Smarty ㌠"ダブルクォート" ã§å›²ã¾ã‚ŒãŸå†…容ã®ä¸­ã‹ã‚‰ 割り当ã¦ã‚‰ã‚ŒãŸ - 変数 - ã¨ã—ã¦èªè­˜ã™ã‚‹ã®ã¯ã€å¤‰æ•°åãŒæ•°å­—・文字・_(アンダースコア)・[](ブラケット) - ã®ã¿ã§æ§‹æˆã•れã¦ã„ã‚‹ã‚‚ã®ã®ã¿ã§ã™ã€‚詳細㯠- åå‰ã®ä»˜ã‘ã‹ãŸ - ã‚’å‚ç…§ãã ã•ã„。 - - - - ãã®ä»–ã®æ–‡å­—ã€ãŸã¨ãˆã° .(ピリオド)や - $object>reference(オブジェクトå‚照)をå«ã‚€å ´åˆã¯ã€ - ãã®å¤‰æ•°ã‚’ `ãƒãƒƒã‚¯ã‚¯ã‚©ãƒ¼ãƒˆ` ã§å›²ã‚€å¿…è¦ãŒã‚りã¾ã™ã€‚ - - - - ä¿®é£¾å­ ã‚’åŸ‹ã‚込むã“ã¨ã¯ã§ããšã€ - 常ã«ã‚¯ã‚©ãƒ¼ãƒˆã®å¤–ã§é©ç”¨ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - - - - - æ§‹æ–‡ã®ä¾‹ - - - - - - - 実用例 - - - - - - - escape - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - diff --git a/trunk/docs/ja/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/ja/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index d63b742b..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions.xml b/trunk/docs/ja/designers/language-builtin-functions.xml deleted file mode 100644 index 3348eefc..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 411f707d..00000000 --- a/trunk/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 - (foo 㯠name å±žæ€§ã§æŒ‡å®šã—ãŸå¤‰æ•°) ã«ã‚ˆã£ã¦åˆ©ç”¨ã§ãã¾ã™ã€‚ - 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/trunk/docs/ja/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index d929f1d8..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index e75cc25d..00000000 --- a/trunk/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 ループå - - - - - - - - - å¿…é ˆã®å±žæ€§ã¯ from 㨠item ã§ã™ã€‚ - - - - {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/trunk/docs/ja/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 8fba32b4..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 0770e6c4..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index bc70625e..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 1ef80935..00000000 --- a/trunk/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() 関数を探ã—ã€ç¬¬ï¼‘パラメータã¨ã—㦠- #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 オブジェクトã¯ç¬¬ï¼’パラメータã¨ã—ã¦æ¸¡ã•れã¾ã™ã€‚ - ã“れã«ã‚ˆã‚Šã€{insert} - 関数ã‹ã‚‰ Smarty ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆã®æƒ…å ±ã®å‚照や修正ãŒå¯èƒ½ã§ã™ã€‚ - - - テクニカルノート - - テンプレートã«ã¯ã€ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã®å¯¾è±¡å¤–ã¨ãªã‚‹éƒ¨åˆ†ã‚’æŒãŸã›ã‚‹äº‹ãŒå¯èƒ½ã§ã™ã€‚ - キャッシュ ãŒæœ‰åйã®å ´åˆã§ã‚‚〠- {insert} ã‚¿ã‚°ã«ã‚ˆã‚‹å‡ºåŠ›ã¯ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã•れã¾ã›ã‚“。 - ãã®ãƒšãƒ¼ã‚¸ãŒå‘¼ã³å‡ºã•れる度ã«å‹•çš„ã«å®Ÿè¡Œã•れã¾ã™ã€‚ - ã“ã®å‹•作ã¯ã€ãƒãƒŠãƒ¼ãƒ»æŠ•ç¥¨ãƒ»å¤©æ°—äºˆå ±ãƒ»æ¤œç´¢çµæžœãƒ»ãƒ¦ãƒ¼ã‚¶ãƒ¼ãƒ•ィードãƒãƒƒã‚¯ã‚¨ãƒªã‚¢ç­‰ã«å‘ã„ã¦ã„ã¾ã™ã€‚ - - - - {include} - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - diff --git a/trunk/docs/ja/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 0c8212c5..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index feebacfa..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 9902e2df..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 1abe5a2b..00000000 --- a/trunk/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; - ã“ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’表示ã™ã‚‹ã‹ã©ã†ã‹ - - - - - - - - å¿…é ˆã®å±žæ€§ã¯ name 㨠loop - ã§ã™ã€‚ - - - - {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 属性ã®å€¤)ãšã¤å¢—加ã—ã¾ã™ã€‚ - - - テクニカルノート - - step 㨠start - 属性ãŒå¤‰æ›´ã•れã¦ã„ãªã„å ´åˆã¯ã€ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã®ãƒ—ロパティ 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} ã®ãƒ—ロパティ - startã€step ãŠã‚ˆã³ 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/trunk/docs/ja/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/ja/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 576d9c0d..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-combining-modifiers.xml b/trunk/docs/ja/designers/language-combining-modifiers.xml deleted file mode 100644 index 1bcae48b..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions.xml b/trunk/docs/ja/designers/language-custom-functions.xml deleted file mode 100644 index 7812a163..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 250736dc..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 9f312818..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 6d953ec6..00000000 --- a/trunk/docs/ja/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - {cycle} - - {cycle} ã¯ã€å€¤ã®è¨­å®šã«å¾“ã£ã¦å¾ªç’°ã—ã¾ã™ã€‚ - テーブル内ã®ã‚»ãƒ«ã®è‰²ã‚’交互ã«ï¼’色もã—ãã¯ãれ以上ã®è‰²ã«å¤‰æ›´ã—ãŸã‚Šã€ - é…列ã®å€¤ã‚’循環ã™ã‚‹ã‚ˆã†ãªäº‹ãŒç°¡å˜ã«è¡Œãˆã¾ã™ã€‚ - - - - - - - - - - - - 属性å - åž‹ - å¿…é ˆ - デフォルト - æ¦‚è¦ - - - - - 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/trunk/docs/ja/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 787cfb04..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index eb1d9f27..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 5c226e70..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index 3d27c306..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index a586b068..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 07c0ca35..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 6a46c0fb..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 230d79dd..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index fd9941cf..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 91b98e33..00000000 --- a/trunk/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_attrã€tr_attr - ãŠã‚ˆã³ td_attr ã®å€¤ã¯ã€ãれãžã‚Œ - <table>ã€<tr> - ãŠã‚ˆã³ <td> ã‚¿ã‚°ã®å±žæ€§ã‚’表ã—ã¾ã™ã€‚ - - - - tr_attr ã‚„ td_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/trunk/docs/ja/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 54267b72..00000000 --- a/trunk/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〠- hexã€javascript - ã‚ã‚‹ã„㯠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/trunk/docs/ja/designers/language-custom-functions/language-function-math.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index 030b050f..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index af854517..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index f80ffad2..00000000 --- a/trunk/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 - æ°´å¹³ã®ãƒ›ãƒ¯ã‚¤ãƒˆã‚¹ãƒšãƒ¼ã‚¹ã«ã‚ˆã£ã¦èƒŒæ™¯ç”»åƒã®è¡¨ç¤ºé ˜åŸŸã‚’大ããã™ã‚‹ - (注: ï¼’ã¤ã®ãƒ‘ラメータãŒå¿…è¦) - - - pady - integer,integer - No - n/a - 垂直ã®ãƒ›ãƒ¯ã‚¤ãƒˆã‚¹ãƒšãƒ¼ã‚¹ã«ã‚ˆã£ã¦èƒŒæ™¯ç”»åƒã®è¡¨ç¤ºé ˜åŸŸã‚’大ããã™ã‚‹ - (注: ï¼’ã¤ã®ãƒ‘ラメータãŒå¿…è¦) - - - 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/trunk/docs/ja/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/ja/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index e56d296e..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers.xml b/trunk/docs/ja/designers/language-modifiers.xml deleted file mode 100644 index cfc83707..00000000 --- a/trunk/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() - 関数ã§ç™»éŒ²ã—ã¾ã™ã€‚ï¼’ã¤ç›®ã®æ–¹æ³•ã¯ã€PHP スクリプト㨠Smarty テンプレート㧠- 関数を共有ã™ã‚‹å ´åˆãªã©ã«æœ‰ç”¨ã§ã™ã€‚ - - - - å…ˆã»ã©ã®ä¾‹ã§ç¤ºã—ãŸã‚ˆã†ã«ã€å…¨ã¦ã® PHP é–¢æ•°ã¯æš—é»™ã§ä¿®é£¾å­ã¨ã—ã¦ä½¿ç”¨ã™ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ - ã—ã‹ã—ã€ä¿®é£¾å­ã¨ã—ã¦PHP関数を使ã†ã«ã¯ï¼’ã¤ã®å°ã•ãªè½ã¨ã—ç©´ãŒã‚りã¾ã™ã€‚ - - 第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/trunk/docs/ja/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 4a8db398..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 0e7b0730..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index a0ad3f48..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index 4c917e2b..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 7fad717d..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 0f4356e7..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 5d2c6ba6..00000000 --- a/trunk/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 ã«æ¸¡ã—ãŸæ—¥ä»˜ãŒç©ºã§ - ç¬¬ï¼’ãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿ãŒæ¸¡ã•れãŸå ´åˆã€ãã®æ—¥ä»˜ã‚’フォーマットã—ã¾ã™ã€‚ - - - - - - - - - - - - - パラメータã®ä½ç½® - åž‹ - å¿…é ˆ - デフォルト - æ¦‚è¦ - - - - - 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/trunk/docs/ja/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 159a35df..00000000 --- a/trunk/docs/ja/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - default - - 変数ã®ãƒ‡ãƒ•ォルト値を設定ã—ã¾ã™ã€‚変数ãŒç©ºã§ã‚ã‚‹ã‹è¨­å®šã•れã¦ã„ãªã„å ´åˆã«ã€ - 代ã‚りã¨ã—ã¦ãƒ‡ãƒ•ォルト値ãŒè¡¨ç¤ºã•れã¾ã™ã€‚ã“ã®ä¿®é£¾å­ã¯ï¼‘ã¤ã®ãƒ‘ラメータをã¨ã‚Šã¾ã™ã€‚ - - - - - - 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/trunk/docs/ja/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index faa17249..00000000 --- a/trunk/docs/ja/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - escape - - escape ã¯å¤‰æ•°ã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚„エスケープを行ã„ã¾ã™ã€‚ - ãŸã¨ãˆã° html〠- urlã€ã‚·ãƒ³ã‚°ãƒ«ã‚¯ã‚©ãƒ¼ãƒˆã€ - hexã€hexentity〠- 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/trunk/docs/ja/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 85562577..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index ee97d832..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 82903885..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index bb01bca0..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 75c71168..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 60e36d67..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 11eb7385..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 3cdcea2a..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 881a7c43..00000000 --- a/trunk/docs/ja/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - strip - - 繰り返ã•れãŸç©ºç™½ãƒ»æ”¹è¡Œãƒ»ã‚¿ãƒ–ã‚’ã€ï¼‘ã¤ã®ç©ºç™½ã¾ãŸã¯ä¸Žãˆã‚‰ã‚ŒãŸæ–‡å­—列ã«ã‚ˆã£ã¦ç½®ãæ›ãˆã¾ã™ã€‚ - - - Note - - テンプレートテキストã®ãƒ–ロックを対象ã«å–り去りãŸã„ãªã‚‰ã€ - 組ã¿è¾¼ã¿ã® {strip} - 関数を使用ã—ã¦ä¸‹ã•ã„。 - - - - strip - -assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - - {strip} - ãŠã‚ˆã³ - truncate - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - diff --git a/trunk/docs/ja/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 129af96d..00000000 --- a/trunk/docs/ja/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - truncate - - 指定ã—ãŸã‚­ãƒ£ãƒ©ã‚¯ã‚¿æ•°(デフォルトã¯80)ã§å¤‰æ•°ã‚’切りæ¨ã¦ã¾ã™ã€‚ - 第2パラメータã«ã¯ã€å¤‰æ•°ãŒåˆ‡ã‚Šæ¨ã¦ã‚‰ã‚ŒãŸæ™‚ã«çµ‚端ã«ä»˜åŠ ã™ã‚‹æ–‡å­—列を指定ã™ã‚‹äº‹ãŒå‡ºæ¥ã¾ã™ã€‚ - 指定ã™ã‚‹æ–‡å­—列ã®é•·ã•ã¯å…ƒã®åˆ‡ã‚Šæ¨ã¦ã®é•·ã•ã®ä¸­ã«å«ã¾ã‚Œã¾ã™ã€‚ - デフォルトã§ã¯ã€truncate ã¯å˜èªžã®å¢ƒç•Œã§åˆ‡ã‚Šæ¨ã¦ã‚’行ã„ã¾ã™ã€‚ - 厳密ãªã‚­ãƒ£ãƒ©ã‚¯ã‚¿æ•°ã§åˆ‡ã‚Šæ¨ã¦ãŸã„å ´åˆã«ã¯ç¬¬ï¼“パラメータ㫠&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/trunk/docs/ja/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 9b557083..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 71a555dc..00000000 --- a/trunk/docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - wordwrap - - 指定ã—ãŸã‚«ãƒ©ãƒ å¹…ã§æ–‡å­—列をワードラップã—ã¾ã™ï¼ˆãƒ‡ãƒ•ォルトã¯80)。 - 第2パラメータã«ã¯ã€æ¬¡ã®è¡Œã«ãƒ¯ãƒ¼ãƒ‰ãƒ©ãƒƒãƒ—ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã•れる文字列を指定ã™ã‚‹äº‹ãŒå‡ºæ¥ã¾ã™ - (デフォルト㯠"\n")。 - デフォルトã§ã¯ã€wordwrap ã¯å˜èªžã®å¢ƒç•Œã§ãƒ¯ãƒ¼ãƒ‰ãƒ©ãƒƒãƒ—を行ã„ã¾ã™ã€‚ - åŽ³å¯†ãªæ–‡å­—æ•°ã§ãƒ¯ãƒ¼ãƒ‰ãƒ©ãƒƒãƒ—ã—ãŸã„å ´åˆã¯ç¬¬ï¼“パラメータ㫠&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/trunk/docs/ja/designers/language-variables.xml b/trunk/docs/ja/designers/language-variables.xml deleted file mode 100644 index f0789703..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-variables/language-assigned-variables.xml b/trunk/docs/ja/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 89492a81..00000000 --- a/trunk/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/trunk/docs/ja/designers/language-variables/language-config-variables.xml b/trunk/docs/ja/designers/language-variables/language-config-variables.xml deleted file mode 100644 index a790c7a3..00000000 --- a/trunk/docs/ja/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - 設定ファイルã‹ã‚‰èª­ã¿è¾¼ã¾ã‚ŒãŸå¤‰æ•° - - 設定ファイル - ã‹ã‚‰èª­ã¿è¾¼ã¾ã‚ŒãŸå¤‰æ•°ã‚’å‚ç…§ã™ã‚‹ã«ã¯ã€ãれをãƒãƒƒã‚·ãƒ¥ãƒžãƒ¼ã‚¯ (#) - ã§å›²ã‚€ã‹ã€ã‚ã‚‹ã„㯠Smarty 変数 - $smarty.config を使用ã—ã¾ã™ã€‚ - ï¼’ã¤ç›®ã®æ–¹æ³•ã¯ã€ã‚¯ã‚©ãƒ¼ãƒˆã•れãŸå±žæ€§å€¤ã®ä¸­ã«å«ã‚ã‚‹å ´åˆã«ä¾¿åˆ©ã§ã™ã€‚ - - - 設定ファイルã®å¤‰æ•° - - サンプルã®è¨­å®šãƒ•ァイル - foo.conf: - - - - - - #hash# æ–¹å¼ã®ãƒ†ãƒ³ãƒ—レート - - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - - $smarty.config æ–¹å¼ã®ãƒ†ãƒ³ãƒ—レート - - - -{$smarty.config.pageTitle} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - ã©ã¡ã‚‰ã®å ´åˆã‚‚出力ã¯åŒã˜ã§ã™ã€‚ - - - -This is mine - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - 変数ã¯ã€è¨­å®šãƒ•ァイルã‹ã‚‰èª­ã¿è¾¼ã¾ã‚Œã‚‹ã¾ã§ä½¿ç”¨ã§ãã¾ã›ã‚“。 - 詳細ã¯ã€å¾Œã»ã© - - {config_load} - ã®é …ã§èª¬æ˜Žã—ã¾ã™ã€‚ - - - 変数 ãŠã‚ˆã³ - 予約変数 - $smarty ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - -
      - diff --git a/trunk/docs/ja/designers/language-variables/language-variables-smarty.xml b/trunk/docs/ja/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 406f155f..00000000 --- a/trunk/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() - ãŒã‚³ãƒ¼ãƒ«ã•れるã“ã¨ã«æ³¨æ„ã—ã¾ã—ょã†ã€‚ã¤ã¾ã‚Šã€å…¨ä½“を処ç†ã™ã‚‹ã®ã«ï¼“ç§’ã‹ã‹ã‚‹ã‚¹ã‚¯ãƒªãƒ—トãŒã‚ã£ãŸã¨ã—ã¦ã€ - ãã®æœ€åˆã¨æœ€å¾Œã§ãれãžã‚Œ $smarty.now - をコールã™ã‚‹ã¨ã€ãã®å€¤ã«ã¯ï¼’ç§’ã®å·®ãŒç”Ÿã˜ã¾ã™ã€‚ - - - - - - - - - - {$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/trunk/docs/ja/getting-started.xml b/trunk/docs/ja/getting-started.xml deleted file mode 100644 index 096907df..00000000 --- a/trunk/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...} - ã®æ¡ä»¶å¼ã«ã¯ã‚·ãƒ³ãƒ—ルãªã‚‚ã®ã‹ã‚‰è¤‡é›‘ãªã‚‚ã®ã¾ã§è‡ªç”±ã«æŒ‡å®šå¯èƒ½ - - - - - - sections ã‚„ if'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/ - ã¨åã¥ã‘られãŸï¼”ã¤ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŒå¿…è¦ã§ã™ã€‚ - - - ã“れらã®åå‰ã¯ã€ãれãžã‚Œ - Smarty クラスã®ãƒ—ロパティ - - $template_dir〠- - $compile_dir〠- - $config_dir ãŠã‚ˆã³ - - $cache_dir ã§å®šç¾©ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ - - - - Smarty を使用ã™ã‚‹å„アプリケーションã«ãŠã„ã¦ã€ - ã“れらã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’個別ã«è¨­ç½®ã™ã‚‹äº‹ã‚’å¼·ãæŽ¨å¥¨ã—ã¾ã™ã€‚ - - - - - インストール例ã¨ã—ã¦ã€ã‚²ã‚¹ãƒˆãƒ–ックアプリケーション㮠- Smarty 環境をセットアップã—ã¦ã¿ã¾ã™ã€‚ - ç§é”ã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®å‘½åè¦ç´„ã®ç›®çš„ã«ã¤ã„ã¦ã®ã¿å–り上ã’ã¾ã—ãŸã€‚ - 例ã®ã‚¢ãƒ—リケーションåã‚’ guestbook/ - ã‹ã‚‰ã‚ãªãŸã®ã‚¢ãƒ—リケーションåã«ç½®ãæ›ãˆã‚Œã°ã€åŒæ§˜ã®ç’°å¢ƒã‚’使用ã§ãã¾ã™ã€‚ - - - - - ファイル構造 - - - - - - - ã‚ãªãŸã¯ web サーãƒã®ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆãƒ«ãƒ¼ãƒˆã®ä½ç½®ã‚’知ã£ã¦ã„ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - 例ã§ã¯ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆãƒ«ãƒ¼ãƒˆã¯ /web/www.example.com/guestbook/htdocs/ - ã¨ã—ã¾ã™ã€‚Smarty ディレクトリ㯠Smarty ライブラリã«ã‚ˆã£ã¦ã®ã¿ã‚¢ã‚¯ã‚»ã‚¹ã•れ〠- web ブラウザã‹ã‚‰ç›´æŽ¥ã‚¢ã‚¯ã‚»ã‚¹ã•れる事ã¯ã‚りã¾ã›ã‚“。 - ã—ãŸãŒã£ã¦ã‚»ã‚­ãƒ¥ãƒªãƒ†ã‚£ã®å¿ƒé…ã‚’é¿ã‘ã‚‹ãŸã‚ã«ã€ - ã“れらã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’ドキュメントルート㮠外部 - ã«é…ç½®ã™ã‚‹äº‹ã‚’推奨ã—ã¾ã™ (ãŸã ã—å¿…é ˆã§ã¯ã‚りã¾ã›ã‚“)。 - - - - ドキュメントルート下ã«ã¯æœ€ä½Žï¼‘ã¤ã®ãƒ•ァイルãŒå¿…è¦ã§ã‚り〠- ãれ㯠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/trunk/docs/ja/language-defs.ent b/trunk/docs/ja/language-defs.ent deleted file mode 100644 index c5b174a1..00000000 --- a/trunk/docs/ja/language-defs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/trunk/docs/ja/language-snippets.ent b/trunk/docs/ja/language-snippets.ent deleted file mode 100644 index fb6dade5..00000000 --- a/trunk/docs/ja/language-snippets.ent +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - テクニカルノート - - merge パラメータã¯é…列ã®ã‚­ãƒ¼ã‚’å°Šé‡ã™ã‚‹ã®ã§ã€ - ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ãŒæ•°å€¤ã§ã‚ã‚‹ï¼’ã¤ã®é…列をマージã™ã‚‹å ´åˆã€ - ãれらã¯ãŠäº’ã„上書ãã•れるã‹ä¸é€£ç¶šãªã‚­ãƒ¼ã®é…列ã«ãªã‚‹ã‹ã‚‚ã—れã¾ã›ã‚“。 - ã“れã¯ã€æ•°å€¤ã®ã‚­ãƒ¼ã‚’å…¨ã¦å‰Šé™¤ã—ãŸå¾Œã«å†ã³ã‚­ãƒ¼ã«ç•ªå·ä»˜ã‘を行ã†ã€PHP - ã® array_merge() - 関数ã¨ã¯é•ã£ã¦ã„ã¾ã™ã€‚ - -'> - - - テクニカルノート - - é¸æŠžã—ãŸã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯ function ㌠- array(&$object, $method) å½¢å¼ã§ã‚ã‚‹å ´åˆã¯ã€ - åŒã˜ $method ã‚’æŒã¤ã‚¯ãƒ©ã‚¹ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã‚’ã²ã¨ã¤ã ã‘登録ã§ãã¾ã™ã€‚ - ãã®ã‚ˆã†ãªå ´åˆã¯ã€æœ€å¾Œã«ç™»éŒ²ã•れãŸã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯ function - ã®ã¿ãŒç”¨ã„られã¾ã™ã€‚ - -'> - - - ä»»æ„ã®ç¬¬ï¼“パラメータã¨ã—㦠$compile_id - を渡ã™ã“ã¨ãŒã§ãã¾ã™ã€‚ - ç•°ãªã‚‹è¨€èªžã§ã‚³ãƒ³ãƒ‘イルã•れãŸåˆ¥ã€…ã®ãƒ†ãƒ³ãƒ—レートãŒå­˜åœ¨ã™ã‚‹ã‚ˆã†ãªã€ - åŒã˜ãƒ†ãƒ³ãƒ—レートã®ç•°ãªã‚‹ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’コンパイルã—ãŸã„å ´åˆã«åˆ©ç”¨ã—ã¾ã™ã€‚ - $compile_id ã®åˆ¥ã®åˆ©ç”¨æ³•ã¨ã—ã¦ã¯ã€è¤‡æ•°ã® - $template_dir - ã‚’æŒã£ã¦ã„る㌠- $compile_dir - ã¯ï¼‘ã¤ã—ã‹ãªã„å ´åˆãªã©ãŒã‚りã¾ã™ã€‚å„ - $template_dir - ã«åˆ¥ã€…ã® $compile_id をセットã—ãªã‘れã°ã€ - åŒåã®ãƒ†ãƒ³ãƒ—レートã¯ãŠäº’ã„ã«ä¸Šæ›¸ãã•れã¦ã—ã¾ã„ã¾ã™ã€‚ - ã“ã®é–¢æ•°ã‚’コールã™ã‚‹åº¦ã« compile_id を渡ã™ä»£ã‚りã«ã€ä¸€åº¦ - - $compile_id 変数をセットã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚ -'> - - - PHP 関数ã®ã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯ function - ã¯ã€æ¬¡ã®ã„ãšã‚Œã‹ã¨ãªã‚Šã¾ã™ã€‚ - - - 関数åã‚’å«ã‚“ã æ–‡å­—列 - - - - array(&$object, $method) å½¢å¼ã®é…列 - (&$object ã¯ã‚ªãƒ–ジェクトã®å‚ç…§ã§ã€ - $method ã¯ãƒ¡ã‚½ãƒƒãƒ‰åã‚’å«ã‚€æ–‡å­—列) - - - - array($class, $method) ã¨ã„ã†å½¢å¼ã®é…列 - ($class ã¯ã‚¯ãƒ©ã‚¹åã§ã‚り〠- $method ã¯ã‚¯ãƒ©ã‚¹ã®ãƒ¡ã‚½ãƒƒãƒ‰ï¼‰ - - - '> diff --git a/trunk/docs/ja/livedocs.ent b/trunk/docs/ja/livedocs.ent deleted file mode 100644 index 040f65fc..00000000 --- a/trunk/docs/ja/livedocs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - -'> -'> - - diff --git a/trunk/docs/ja/make_chm_index.html b/trunk/docs/ja/make_chm_index.html deleted file mode 100644 index 3e1fa83e..00000000 --- a/trunk/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/trunk/docs/ja/preface.xml b/trunk/docs/ja/preface.xml deleted file mode 100644 index b90d2b95..00000000 --- a/trunk/docs/ja/preface.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - åºæ–‡ - - "PHP スクリプトをレイアウトã‹ã‚‰åˆ†é›¢ã•ã›ã‚‹ã«ã¯ã©ã†ã™ã‚Œã°ã„ã„ã®ã§ã™ã‹ï¼Ÿ" - ã“れã¯é–“é•ã„ãªãã€PHPメーリングリストã§ã‚ˆãå°‹ã­ã‚‰ã‚ŒãŸè³ªå•ã®ã†ã¡ã®ï¼‘ã¤ã§ã—ょã†ã€‚ - 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 よりもã¯ã‚‹ã‹ã«ã‚·ãƒ³ãƒ—ルãªãƒ†ãƒ³ãƒ—レート言語ã«ã‚ˆã£ã¦éš è”½ã•れるã‹ã‚‚ã—れã¾ã›ã‚“。 - ã‚‚ã—æˆ‘々ãŒã“ã®ï¼’ã¤ã®å¼·ã•ã‚’å…¼ã­å‚™ãˆãŸã‚‰ã©ã†ãªã‚‹ã§ã—ょã†ï¼Ÿ - ã“ã®ã‚ˆã†ã«ã—㦠"Smarty" ã¯ç”Ÿã¾ã‚ŒãŸã®ã§ã™â€¦â€¦ (^o^) - - - - diff --git a/trunk/docs/ja/programmers/advanced-features.xml b/trunk/docs/ja/programmers/advanced-features.xml deleted file mode 100644 index 8774ea05..00000000 --- a/trunk/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/trunk/docs/ja/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/ja/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 9b5b21a4..00000000 --- a/trunk/docs/ja/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - オブジェクト - - Smarty ã¯ã€ãƒ†ãƒ³ãƒ—レートã‹ã‚‰ PHP ã® - オブジェクト - ã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã‚’許å¯ã—ã¦ã„ã¾ã™ã€‚オブジェクトã«ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹ã«ã¯ï¼’ã¤ã®æ–¹æ³•ãŒã‚りã¾ã™ã€‚ - - - - - 1ã¤ã¯ãƒ†ãƒ³ãƒ—レート㫠オブジェクトを登録 - ã—ã€ã‚«ã‚¹ã‚¿ãƒ é–¢æ•° - ã¨ä¼¼ãŸæ§‹æ–‡ã‚’用ã„ã¦ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹æ–¹æ³•ã§ã™ã€‚ - - - ã‚‚ã†ï¼‘ã¤ã®æ–¹æ³•㯠assign() - を用ã„ã¦ãƒ†ãƒ³ãƒ—レートã«ã‚ªãƒ–ジェクトを割り当ã¦ã€ - ä»–ã®å‰²ã‚Šå½“ã¦ã‚‰ã‚ŒãŸå¤‰æ•°ã®ã‚ˆã†ã«ã‚ªãƒ–ジェクトã«ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹æ–¹æ³•ã§ã™ã€‚ - - - - - 1ã¤ã‚ã®ãƒ¡ã‚½ãƒƒãƒ‰ã¯ç´ æ™´ã‚‰ã—ã„テンプレート構文をæŒã£ã¦ã„ã¾ã™ã€‚ - ãれã¯ã¨ã¦ã‚‚セキュアã§ã€ 登録ã•れãŸã‚ªãƒ–ジェクトã¯ã„ãã¤ã‹ã®ãƒ¡ã‚½ãƒƒãƒ‰ã‚„プロパティを制é™ã™ã‚‹äº‹ãŒå‡ºæ¥ã¾ã™ã€‚ - ã—ã‹ã—繰り返ã—ã®å‡¦ç†ã‚„オブジェクトã®é…列ã¸ã®å‰²ã‚Šå½“ã¦ç­‰ã®äº‹ãŒå‡ºæ¥ã¾ã›ã‚“。 - ã‚ãªãŸã®ãƒ‹ãƒ¼ã‚ºã«ã‚ˆã£ã¦é¸æŠžã™ã‚‹ãƒ¡ã‚½ãƒƒãƒ‰ã¯æ±ºã¾ã‚Šã¾ã™ãŒã€ - テンプレート構文を最å°é™å®ˆã‚‹ã«ã¯å¿…ãšï¼‘ã¤ã‚ã®ãƒ¡ã‚½ãƒƒãƒ‰ã‚’使用ã—ã¦ä¸‹ã•ã„。 - - - $security - ãŒæœ‰åŠ¹ã®æ™‚ã€('_' ã‹ã‚‰å§‹ã¾ã‚‹) プライベートメソッドや関数ã«ã¯ã‚¢ã‚¯ã‚»ã‚¹å‡ºæ¥ã¾ã›ã‚“。 - ã‚‚ã—メソッドã¨ãƒ—ロパティã§åŒã˜åå‰ãŒå­˜åœ¨ã™ã‚‹å ´åˆã€ãƒ¡ã‚½ãƒƒãƒ‰ãŒå„ªå…ˆã•れã¾ã™ã€‚ - - - 第3パラメータã«ãƒ¡ã‚½ãƒƒãƒ‰ã‚„パラメータをリストã—ãŸé…列を与ãˆã‚‹äº‹ã§ã‚¢ã‚¯ã‚»ã‚¹ã‚’制é™ã§ãã¾ã™ã€‚ - - - デフォルトã§ã¯ãƒ†ãƒ³ãƒ—レートã‹ã‚‰ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆã«æ¸¡ã•れãŸãƒ‘ラメータ㯠- カスタム関数 - ã«ã‚ˆã£ã¦åŒã˜æ–¹æ³•ã§æ¸¡ã•れã¾ã™ã€‚ 連想é…列ã¯ç¬¬ï¼‘パラメータã¨ã—ã¦æ¸¡ã•れ〠- smarty オブジェクトã¯ç¬¬ï¼’パラメータã¨ã—ã¦æ¸¡ã•れã¾ã™ã€‚ - ã‚‚ã—å¤ã„ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿ã®æ¸¡ã—æ–¹ã®ã‚ˆã†ã«å„å¼•æ•°ã‚’ä¸€åº¦ã«æ¸¡ã—ãŸã„ãªã‚‰ã€ç¬¬ï¼”パラメータ㫠- &false; を指定ã—ã¾ã™ã€‚ - - - ä»»æ„ã®ç¬¬ï¼•パラメータ㯠- format ㌠&true; ã®æ™‚ã ã‘影響ã—〠- ブロックã¨ã—ã¦æ‰±ã‚れるã¹ãオブジェクトã®ãƒ¡ã‚½ãƒƒãƒ‰ã®ãƒªã‚¹ãƒˆã‚’æ ¼ç´ã—ã¾ã™ã€‚ - ã“れã¯ã“れらã®ãƒ¡ã‚½ãƒƒãƒ‰ãŒãƒ†ãƒ³ãƒ—レート内ã«çµ‚了タグ - ({foobar->meth2}...{/foobar->meth2}) - ã‚’æŒã¤ã“ã¨ã‚’æ„味ã—ã€ãƒ¡ã‚½ãƒƒãƒ‰ã¸ã®ãƒ‘ラメータ㯠- - block-function-plugins - ã¸ã®ãƒ‘ラメータã¨åŒã˜æ§‹æ–‡ã¨ãªã‚Šã¾ã™ã€‚ã¤ã¾ã‚Šã€ï¼”ã¤ã®ãƒ‘ラメータ - $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/trunk/docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 6137bbfd..00000000 --- a/trunk/docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - アウトプットフィルタ - - テンプレート㌠- display() åˆã¯ - fetch() - を経由ã—ã¦å‘¼ã³å‡ºã•ã‚ŒãŸæ™‚ã€å‡ºåŠ›ã¯ï¼‘ã¤åˆã¯è¤‡æ•°ã®ã‚¢ã‚¦ãƒˆãƒ—ットフィルタを通ã—ã¦é€ã‚‰ã‚Œã¾ã™ã€‚ - ã“れ㯠- ãƒã‚¹ãƒˆãƒ•ィルタ ã¨ã¯ç•°ãªã‚Šã¾ã™ã€‚ - コンパイルã•れãŸãƒ†ãƒ³ãƒ—レートãŒãƒã‚¹ãƒˆãƒ•ィルタã«ã‚ˆã£ã¦ã€ - テンプレートãŒãƒ‡ã‚£ã‚¹ã‚¯ã«ä¿å­˜ã•れるå‰ã«å‡¦ç†ã•れるã®ã«å¯¾ã—〠- アウトプットフィルタã¯ãƒ†ãƒ³ãƒ—レートãŒå®Ÿè¡Œã•れる時ã«ãã®å‡ºåŠ›ã‚’å‡¦ç†ã—ã¾ã™ã€‚ - - - - アウトプットフィルタã¯ã€ - 登録ã™ã‚‹ - ã‹ã€ã‚ã‚‹ã„㯠load_filter() - 関数や - $autoload_filters 変数ã«ã‚ˆã£ã¦ - プラグインディレクトリ ã‹ã‚‰èª­ã¿è¾¼ã¿ã¾ã™ã€‚ - Smarty ã¯å†…部ã§ãƒ¦ãƒ¼ã‚¶å®šç¾©é–¢æ•°ã®ç¬¬ï¼‘パラメータã«ã‚³ãƒ³ãƒ‘イルã•れãŸãƒ†ãƒ³ãƒ—レートã®ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰ã‚’渡ã™ã®ã§ã€ - 関数内ã§å‡¦ç†ã‚’行ã£ãŸå¾Œã«ãã®çµæžœã®ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰ã‚’戻り値ã¨ã—ã¦è¿”ã™ã‚ˆã†ã«ã—ã¾ã™ã€‚ - - - アウトプットフィルタを使用ã™ã‚‹ - -register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// ã“れã«ã‚ˆã‚Šãƒ†ãƒ³ãƒ—レート出力ã«å«ã¾ã‚Œã‚‹ã„ãã¤ã‹ã®emailアドレス㯠-// スパムボットã‹ã‚‰ã‚·ãƒ³ãƒ—ルãªä¿è­·ã‚’å—ã‘ã‚‹ã§ã—ょㆠ-?> -]]> - - - - register_outputfilter()〠- load_filter()〠- $autoload_filters〠- ãƒã‚¹ãƒˆãƒ•ィルタ ãŠã‚ˆã³ - $plugins_dir - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - diff --git a/trunk/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 45cdf47b..00000000 --- a/trunk/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - ãƒã‚¹ãƒˆãƒ•ィルタ - - ãƒã‚¹ãƒˆãƒ•ィルタã¯ã€ãƒ†ãƒ³ãƒ—レート㌠- コンパイルã•れãŸå¾Œã« - 実行ã•れるPHPユーザ定義関数ã§ã™ã€‚ãƒã‚¹ãƒˆãƒ•ィルタã¯ã€ - 登録ã™ã‚‹ - ã‹ã€ã‚ã‚‹ã„㯠load_filter() - 関数や - $autoload_filters 変数ã«ã‚ˆã£ã¦ - プラグインディレクトリ ã‹ã‚‰èª­ã¿è¾¼ã¿ã¾ã™ã€‚ - Smarty ã¯å†…部ã§ãƒ¦ãƒ¼ã‚¶å®šç¾©é–¢æ•°ã®ç¬¬ï¼‘パラメータã«ã‚³ãƒ³ãƒ‘イルã•れãŸãƒ†ãƒ³ãƒ—レートã®ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰ã‚’渡ã™ã®ã§ã€ - 関数内ã§å‡¦ç†ã‚’行ã£ãŸå¾Œã«ãã®çµæžœã®ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰ã‚’戻り値ã¨ã—ã¦è¿”ã™ã‚ˆã†ã«ã—ã¾ã™ã€‚ - - - ãƒã‚¹ãƒˆãƒ•ィルタを使用ã™ã‚‹ - -\n\"; ?>\n".$tpl_source; -} - -// ãƒã‚¹ãƒˆãƒ•ィルタを登録ã—ã¾ã™ -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - - - 上ã®ãƒã‚¹ãƒˆãƒ•ィルタã¯ã€ã“ã®ã‚ˆã†ãªã‚³ãƒ³ãƒ‘イル済ã¿ãƒ†ãƒ³ãƒ—レート - index.tpl を作æˆã—ã¾ã™ã€‚ - - - -{* ä»¥ä¸‹ã€æ®‹ã‚Šã®ã‚³ãƒ³ãƒ†ãƒ³ãƒ„ *} -]]> - - - - register_postfilter()〠- プリフィルタ〠- アウトプットフィルタ - ãŠã‚ˆã³ - load_filter() - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - diff --git a/trunk/docs/ja/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/ja/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 84b984b2..00000000 --- a/trunk/docs/ja/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/trunk/docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index dbd3dc24..00000000 --- a/trunk/docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - キャッシュãƒãƒ³ãƒ‰ãƒ©é–¢æ•° - - デフォルトã®ãƒ•ァイルベースã®ã‚­ãƒ£ãƒƒã‚·ãƒ¥ãƒ¡ã‚«ãƒ‹ã‚ºãƒ ã®ä»£æ›¿ã¨ã—ã¦ã€ - キャッシュファイルã®èª­ã¿æ›¸ãや破棄を直接行ã†ã‚­ãƒ£ãƒƒã‚·ãƒ¥ãƒãƒ³ãƒ‰ãƒ©é–¢æ•°ã‚’指定ã§ãã¾ã™ã€‚ - - - ã¾ãšã€ã‚¢ãƒ—リケーション内ã«SmartyãŒã‚­ãƒ£ãƒƒã‚·ãƒ¥ãƒãƒ³ãƒ‰ãƒ©ã¨ã—ã¦ä½¿ç”¨ã™ã‚‹ãŸã‚ã®é–¢æ•°ã‚’定義ã—ã¾ã™ã€‚ - ãã—ã¦ãã®é–¢æ•°åã‚’ - $cache_handler_func - ã‚¯ãƒ©ã‚¹å¤‰æ•°ã«æŒ‡å®šã—ã¾ã™ã€‚Smarty ã¯ã€ã“れを使用ã—ã¦ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã•れãŸãƒ‡ãƒ¼ã‚¿ã‚’処ç†ã—ã¾ã™ã€‚ - - - - - 第1パラメータã¯ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã®å‹•ä½œã‚’è¡¨ã™æ–‡å­—列ã§ã€ã“れ㯠- readã€write ãŠã‚ˆã³ - clear ã®ã„ãšã‚Œã‹ã¨ãªã‚Šã¾ã™ã€‚ - - - - 第2パラメータ㯠Smarty オブジェクトã§ã™ã€‚ - - - - 第3パラメータã¯ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã®å†…容ã§ã™ã€‚ - write ã®å ´åˆã¯ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã•れãŸã‚³ãƒ³ãƒ†ãƒ³ãƒ„ãŒæ¸¡ã•れ〠- read ã®å ´åˆã¯å‚ç…§ã‚’å—ã‘å–ã£ã¦ãã“ã«ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã•れãŸã‚³ãƒ³ãƒ†ãƒ³ãƒ„を書ãè¾¼ã¿ã€ - clear ã®å ´åˆã¯ã“ã®ãƒ‘ラメータã®å€¤ã‚’使用ã—ãªã„ã®ã§ãƒ€ãƒŸãƒ¼ã®å¤‰æ•°ãŒæ¸¡ã•れã¾ã™ã€‚ - - - - 第4パラメータã¯ãƒ†ãƒ³ãƒ—レートファイルåã§ã™('read'åˆã¯'write'ã®å ´åˆã«å¿…è¦)。 - - - - ä»»æ„ã®ç¬¬ï¼•パラメータ㯠$cache_id ã§ã™ã€‚ - - - - ä»»æ„ã®ç¬¬ï¼–パラメータ㯠- $compile_id ã§ã™ã€‚ - - - - 最後ã®ç¬¬ï¼—パラメータ $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/trunk/docs/ja/programmers/advanced-features/template-resources.xml b/trunk/docs/ja/programmers/advanced-features/template-resources.xml deleted file mode 100644 index dc01bbff..00000000 --- a/trunk/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 テンプレート - - - - - - - - - デフォルトã®ãƒ†ãƒ³ãƒ—レートãƒãƒ³ãƒ‰ãƒ©é–¢æ•° - - テンプレートリソースã‹ã‚‰ãƒ†ãƒ³ãƒ—レートã®å–å¾—ã«å¤±æ•—ã—ãŸéš›ã«ã€ - テンプレートã®ã‚³ãƒ³ãƒ†ãƒ³ãƒ„ã‚’å–り戻ã™ãŸã‚ã«å‘¼ã³å‡ºã•れるユーザ定義関数を指定ã—ã¾ã™ã€‚ - ã“ã®é–¢æ•°ã®ä½¿ç”¨æ–¹æ³•ã®ï¼‘ã¤ã¨ã—ã¦ã€ãã®å ´é™ã‚Šã®ãƒ†ãƒ³ãƒ—レートを作æˆã™ã‚‹å‡¦ç†ã‚’行ã„ã¾ã™ã€‚ - - - デフォルトã®ãƒ†ãƒ³ãƒ—レートãƒãƒ³ãƒ‰ãƒ©é–¢æ•°ã‚’使用ã™ã‚‹ - -$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/trunk/docs/ja/programmers/api-functions.xml b/trunk/docs/ja/programmers/api-functions.xml deleted file mode 100644 index 73cbf7e2..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/ja/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index cf0cae4b..00000000 --- a/trunk/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 マニュアルã®ãƒªãƒ•ァレンスã®èª¬æ˜Žã‚’å‚ç…§ã—ã¦ä¸‹ã•ã„。 - ä»»æ„ã®ç¬¬ï¼“パラメータ㫠&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/trunk/docs/ja/programmers/api-functions/api-append.xml b/trunk/docs/ja/programmers/api-functions/api-append.xml deleted file mode 100644 index 906910b8..00000000 --- a/trunk/docs/ja/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - append() - 割り当ã¦ã‚‰ã‚ŒãŸãƒ†ãƒ³ãƒ—レートé…列ã«è¦ç´ ã‚’追加ã—ã¾ã™ã€‚ - - - 説明 - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - - ã‚‚ã—æ–‡å­—列を追加ã™ã‚‹å ´åˆã¯ã€ é…列ã®å€¤ã¨ã—ã¦ã‚³ãƒ³ãƒãƒ¼ãƒˆã•れãŸå¾Œã«è¿½åŠ ã•れã¾ã™ã€‚ - é…列å/値ã®ãƒšã‚¢ã‚’æ˜Žç¤ºçš„ã«æŒ‡å®šã™ã‚‹ã‹ã€ãã‚Œã‚‰ãŒæ ¼ç´ã•れãŸé€£æƒ³é…列を指定ã—ã¾ã™ã€‚ - é…列ã§ã¯ãªã„テンプレート変数ã«å¯¾ã—ã¦è¿½åŠ ã—ãŸå ´åˆã€ - ãã®å¤‰æ•°ã‚’é…列ã«å¤‰æ›ã—ãŸå¾Œã§è¿½åŠ ã•れã¾ã™ã€‚ ä»»æ„ã®ç¬¬ï¼“パラメータ㫠&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 ã«ï¼’番目ã®è¦ç´ ã‚’追加ã—ã¾ã™ -$smarty->append('X', $array2); - -// 連想é…列を渡ã—ã¾ã™ -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - - - - append_by_ref()〠- assign() - ãŠã‚ˆã³ - get_template_vars() - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - diff --git a/trunk/docs/ja/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/ja/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 51ceaaa3..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-assign.xml b/trunk/docs/ja/programmers/api-functions/api-assign.xml deleted file mode 100644 index 0c8e4cb0..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/ja/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index 46e396c6..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/ja/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 6159dfa5..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-clear-assign.xml b/trunk/docs/ja/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index 322fe003..00000000 --- a/trunk/docs/ja/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/trunk/docs/ja/programmers/api-functions/api-clear-cache.xml b/trunk/docs/ja/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index cbe8c072..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/ja/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 84b052ce..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-clear-config.xml b/trunk/docs/ja/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 08d0c599..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-config-load.xml b/trunk/docs/ja/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 0ff6c3a9..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-display.xml b/trunk/docs/ja/programmers/api-functions/api-display.xml deleted file mode 100644 index c6549c51..00000000 --- a/trunk/docs/ja/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - display() - テンプレートを表示ã—ã¾ã™ã€‚ - - - 説明 - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - - テンプレートを表示ã—ã¾ã™ - (fetch() ã¨é•ã„出力を行ã„ã¾ã™)。 - 第1パラメータã«ã¯ã€æœ‰åŠ¹ãª ãƒ†ãƒ³ãƒ—ãƒ¬ãƒ¼ãƒˆãƒªã‚½ãƒ¼ã‚¹ - ã®ç¨®é¡žã‚’å«ã‚€ãƒ‘スを指定ã™ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ä»»æ„ã®ç¬¬ï¼’パラメータã«ã¯ - キャッシュ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/trunk/docs/ja/programmers/api-functions/api-fetch.xml b/trunk/docs/ja/programmers/api-functions/api-fetch.xml deleted file mode 100644 index a6402537..00000000 --- a/trunk/docs/ja/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - fetch() - テンプレートã®å‡ºåŠ›ã‚’è¿”ã—ã¾ã™ã€‚ - - - 説明 - - stringfetch - stringtemplate - stringcache_id - string$compile_id - - - - ã“れã¯ã€ãƒ†ãƒ³ãƒ—レートを - 表示ã™ã‚‹ - ã®ã§ã¯ãªããã®å‡ºåŠ›ã‚’è¿”ã—ã¾ã™ã€‚第1パラメータã«ã¯ã€æœ‰åŠ¹ãª - テンプレートリソース - ã®ç¨®é¡žã‚’å«ã‚“ã ãƒ‘スを指定ã™ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ä»»æ„ã®ç¬¬ï¼’パラメータã«ã¯ - キャッシュ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/trunk/docs/ja/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/ja/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 37c52e59..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/ja/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 4893aa58..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/ja/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 3e9aae29..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-is-cached.xml b/trunk/docs/ja/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 10597523..00000000 --- a/trunk/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ã¤ã®ãƒ†ãƒ³ãƒ—レート㫠- 複数ã®ã‚­ãƒ£ãƒƒã‚·ãƒ¥ - ãŒå­˜åœ¨ã™ã‚‹å ´åˆã¯ã€ç¬¬ï¼’パラメータ㫠- $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/trunk/docs/ja/programmers/api-functions/api-load-filter.xml b/trunk/docs/ja/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index d9c0bf33..00000000 --- a/trunk/docs/ja/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - load_filter() - フィルタプラグインを読ã¿è¾¼ã¿ã¾ã™ã€‚ - - - 説明 - - voidload_filter - stringtype - stringname - - - 第1パラメータã«ã¯ã€èª­ã¿è¾¼ã‚€ãƒ•ィルタã®ç¨®é¡žã‚’ - preã€post ã‚ã‚‹ã„㯠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/trunk/docs/ja/programmers/api-functions/api-register-block.xml b/trunk/docs/ja/programmers/api-functions/api-register-block.xml deleted file mode 100644 index 0706887a..00000000 --- a/trunk/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; - - - cacheable 㨠cache_attrs - ã¯ã»ã¨ã‚“ã©ã®å ´åˆã«çœç•¥å¯èƒ½ã§ã™ã€‚ã“ã‚Œã‚‰ã®æ­£ã—ã„使用法ã«ã¤ã„ã¦ã®è©³ç´°ã¯ã€ - キャッシュå¯èƒ½ãªãƒ—ラグインã®å‡ºåŠ›ã®åˆ¶å¾¡ - ã‚’å‚ç…§ã—ã¦ä¸‹ã•ã„。 - - - register_block() - -register_block('translate', 'do_translation'); -?> -]]> - - - テンプレート - - - - - - - - unregister_block() - ãŠã‚ˆã³ - ブロック関数プラグイン - ã®ãƒšãƒ¼ã‚¸ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - - diff --git a/trunk/docs/ja/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/ja/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 141beca4..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-register-function.xml b/trunk/docs/ja/programmers/api-functions/api-register-function.xml deleted file mode 100644 index a823e79f..00000000 --- a/trunk/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; - - - - cacheable 㨠cache_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/trunk/docs/ja/programmers/api-functions/api-register-modifier.xml b/trunk/docs/ja/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index b51672b1..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-register-object.xml b/trunk/docs/ja/programmers/api-functions/api-register-object.xml deleted file mode 100644 index ae36969f..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/ja/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 24932f39..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/ja/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 91ed8271..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/ja/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 0a4f70d5..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-register-resource.xml b/trunk/docs/ja/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index d21ff8cc..00000000 --- a/trunk/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 - ã«ã¯ï¼”ã¤ã¾ãŸã¯ï¼•ã¤ã®è¦ç´ ãŒå¿…è¦ã§ã™ã€‚ - - - è¦ç´ ãŒï¼”ã¤ã®å ´åˆã¯ã€source〠- timestampã€secure ãŠã‚ˆã³ - trusted ãŒãƒªã‚½ãƒ¼ã‚¹ã®é–¢æ•°ã¨ã—ã¦ãれãžã‚Œã‚³ãƒ¼ãƒ«ãƒãƒƒã‚¯ã•れã¾ã™ã€‚ - - - è¦ç´ ãŒï¼•ã¤ã®å ´åˆã¯ã€æœ€åˆã®è¦ç´ ã¯ãƒªã‚½ãƒ¼ã‚¹ã‚’実装ã™ã‚‹ã‚ªãƒ–ジェクトã®å‚ç…§ã¾ãŸã¯ - オブジェクトã®ã‚¯ãƒ©ã‚¹åã¾ãŸã¯ã‚¯ãƒ©ã‚¹ã§ã‚ã‚‹å¿…è¦ãŒã‚りã€ç¶šãï¼”ã¤ã®è¦ç´ ã¯ - sourceã€timestampã€secure - ãŠã‚ˆã³ trusted を実装ã—ãŸãƒ¡ã‚½ãƒƒãƒ‰åã§ã‚ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - - - - register_resource() - -register_resource('db', array( - 'db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted') - ); -?> -]]> - - - - - unregister_resource() - ãŠã‚ˆã³ - テンプレートリソース - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - - diff --git a/trunk/docs/ja/programmers/api-functions/api-template-exists.xml b/trunk/docs/ja/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 11f3863c..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-trigger-error.xml b/trunk/docs/ja/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index c1684bc0..00000000 --- a/trunk/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_NOTICE ã‚„ E_USER_WARNING ãªã©) - を指定ã—ã¾ã™ã€‚デフォルト㯠E_USER_WARNING ã§ã™ã€‚ - - - - $error_reporting〠- debugging - ãŠã‚ˆã³ - トラブルシューティング - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - diff --git a/trunk/docs/ja/programmers/api-functions/api-unregister-block.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 1f38c85c..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 4b209814..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-function.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index fd170bbe..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 71b90a3a..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-object.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index e2ae571c..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index c9316c35..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index ebca7001..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 2b49732e..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/ja/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 6a1fe12e..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables.xml b/trunk/docs/ja/programmers/api-variables.xml deleted file mode 100644 index df6338f4..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/ja/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index c3cf91f1..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/ja/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 233c9a61..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/ja/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index b00df079..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/ja/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index d8b4fedc..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/ja/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index c6aa3ba9..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-caching.xml b/trunk/docs/ja/programmers/api-variables/variable-caching.xml deleted file mode 100644 index bd3bfbea..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-compile-check.xml b/trunk/docs/ja/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index c8e5be87..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/ja/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index 3f40c015..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-compile-id.xml b/trunk/docs/ja/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 392d3343..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/ja/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 699b62eb..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - $compiler_class - - Smarty ãŒãƒ†ãƒ³ãƒ—レートをコンパイルã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã™ã‚‹ã‚³ãƒ³ãƒ‘イラクラスã®åå‰ã‚’指定ã—ã¾ã™ã€‚ - デフォルト㯠'Smarty_Compiler' ã§ã™ã€‚ - ã“れã¯ä¸Šç´šãƒ¦ãƒ¼ã‚¶ã®ãŸã‚ã«ç”¨æ„ã•れã¦ã„ã¾ã™ã€‚ - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/ja/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index eaf00bf1..00000000 --- a/trunk/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 ㌠- onã€true ã‚ã‚‹ã„㯠yes - ã§ã‚ã‚‹å ´åˆã« {if} ステートメントを実行ã—ã¾ã™ã€‚ - デフォルト㯠&true; ã§ã™ã€‚ - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-config-dir.xml b/trunk/docs/ja/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 9405b135..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - $config_dir - - テンプレートã‹ã‚‰èª­ã¿è¾¼ã‚€ãŸã‚ã® - 設定ファイル - ã‚’ç½®ãディレクトリã§ã™ã€‚デフォルト㯠- ./configs - ã§ã€å®Ÿè¡Œä¸­ã® PHP スクリプトãŒç½®ã‹ã‚ŒãŸå ´æ‰€ã«ã‚ã‚‹ - configs/ - ディレクトリを探ã™ã“ã¨ã‚’æ„味ã—ã¾ã™ã€‚ - - - テクニカルノート - - ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’webサーãƒã®ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆãƒ«ãƒ¼ãƒˆä¸‹ã«ç½®ãäº‹ã¯æŽ¨å¥¨ã•れã¾ã›ã‚“。 - - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/ja/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index c8295f77..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/ja/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index d73bb85b..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/ja/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 57792384..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/ja/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 4b472b4b..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/ja/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index 6168cee2..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-debugging.xml b/trunk/docs/ja/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 54945e25..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/ja/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index f47ec953..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/ja/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index ed0d8540..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/ja/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 9d0edf33..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - $default_template_handler_func - - リソースã‹ã‚‰ã®ãƒ†ãƒ³ãƒ—レートã®å–å¾—ã«å¤±æ•—ã—ãŸå ´åˆã«ã€ã“ã®é–¢æ•°ã‚’コールã—ã¾ã™ã€‚ - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/ja/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index e930e93f..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-force-compile.xml b/trunk/docs/ja/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 8cca2eac..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $force_compile - - テンプレートãŒå‘¼ã³å‡ºã•れる毎ã«å¼·åˆ¶çš„ã«ã‚³ãƒ³ãƒ‘イル(å†ã‚³ãƒ³ãƒ‘イル)を行ã„ã¾ã™ã€‚ - ã“ã®è¨­å®šã¯ã€ - $compile_check をオーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã—ã¾ã™ã€‚ - デフォルトã®è¨­å®šã§ã¯ç„¡åйã«ãªã£ã¦ã„ã¾ã™ã€‚開発や - デãƒãƒƒã‚° ã®éš›ã«ä¾¿åˆ©ã§ã™ãŒã€ - 決ã—ã¦é‹ç”¨ç’°å¢ƒã§ä½¿ç”¨ã—ã¦ã¯ã„ã‘ã¾ã›ã‚“。 - $caching - ãŒæœ‰åйã®å ´åˆã¯ã‚­ãƒ£ãƒƒã‚·ãƒ¥ãƒ•ã‚¡ã‚¤ãƒ«ã¯æ¯Žå›žå†ç”Ÿæˆã•れã¾ã™ã€‚ - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/ja/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 1861c208..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - $left_delimiter - - ã“れã¯ã€ãƒ†ãƒ³ãƒ—レート言語ã®é–‹å§‹ã‚’表ã™ãƒ‡ãƒªãƒŸã‚¿ã§ã™ã€‚ - デフォルト㯠{ ã§ã™ã€‚ - - - $right_delimiter - ãŠã‚ˆã³ - Smarty ã®æ§‹æ–‡è§£æžã‚’å›žé¿ - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-php-handling.xml b/trunk/docs/ja/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index c47f75ed..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - $php_handling - - テンプレートã«åŸ‹ã‚è¾¼ã¾ã‚ŒãŸ PHP ã‚³ãƒ¼ãƒ‰ã®æ‰±ã„を設定ã—ã¾ã™ã€‚ - ã“れã«ã¯ï¼”ã¤ã®è¨­å®šãŒã‚りã€ãƒ‡ãƒ•ォルト㯠- 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/trunk/docs/ja/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/ja/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index ae6859f8..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/ja/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 7c757683..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/ja/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index ebb3d18f..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/ja/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index d1966b7a..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - $right_delimiter - - ã“れã¯ã€ãƒ†ãƒ³ãƒ—レート言語ã®çµ‚端を表ã™ãƒ‡ãƒªãƒŸã‚¿ã§ã™ã€‚ - デフォルト㯠} ã§ã™ã€‚ - - - $left_delimiter - ãŠã‚ˆã³ - Smarty ã®æ§‹æ–‡è§£æžã‚’å›žé¿ - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/ja/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index b3cce591..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-security-settings.xml b/trunk/docs/ja/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index a08bfb12..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-security.xml b/trunk/docs/ja/programmers/api-variables/variable-security.xml deleted file mode 100644 index 672ece72..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-template-dir.xml b/trunk/docs/ja/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 1fba726b..00000000 --- a/trunk/docs/ja/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - $template_dir - - ã“れã¯ã€ãƒ‡ãƒ•ォルトã®ãƒ†ãƒ³ãƒ—レートディレクトリã®åå‰ã§ã™ã€‚ - ファイルã®ã‚¤ãƒ³ã‚¯ãƒ«ãƒ¼ãƒ‰æ™‚ã«ãƒªã‚½ãƒ¼ã‚¹ã®ç¨®é¡žã‚’指定ã—ãªã‹ã£ãŸå ´åˆã¯ã€ - ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‹ã‚‰æŽ¢ã—ã¾ã™ã€‚デフォルト㯠- ./templates ã§ã€ - ã“れã¯ã€å®Ÿè¡Œã—ã¦ã„るスクリプトã¨åŒã˜å ´æ‰€ã«ã‚ã‚‹ - templates/ - ディレクトリを探ã™ã¨ã„ã†ã“ã¨ã§ã™ã€‚ - - - テクニカルノート - - ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’webサーãƒã®ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆãƒ«ãƒ¼ãƒˆä¸‹ã«ç½®ã事を推奨ã—ã¾ã›ã‚“。 - - - - diff --git a/trunk/docs/ja/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/ja/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 44cab815..00000000 --- a/trunk/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/trunk/docs/ja/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/ja/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index fca43240..00000000 --- a/trunk/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/trunk/docs/ja/programmers/caching.xml b/trunk/docs/ja/programmers/caching.xml deleted file mode 100644 index ae937536..00000000 --- a/trunk/docs/ja/programmers/caching.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - キャッシュ - - キャッシュã¯å‡ºåŠ›å†…å®¹ã‚’ãƒ•ã‚¡ã‚¤ãƒ«ã«ä¿å­˜ã™ã‚‹äº‹ã«ã‚ˆã£ã¦ã€ - display() - åˆã¯ - fetch() - を呼ã³å‡ºã™é€Ÿåº¦ã‚’å‘上ã•ã›ã‚‹ãŸã‚ã«ä½¿ç”¨ã•れã¾ã™ã€‚ã‚­ãƒ£ãƒƒã‚·ãƒ¥ãŒæœ‰åйã®å ´åˆã€ - 出力をå†ç”Ÿæˆã›ãšã«è¡¨ç¤ºã•れã¾ã™ã€‚特ã«å‡¦ç†æ™‚é–“ãŒé•·ã„テンプレートã¯ã€ - キャッシュを使用ã™ã‚‹äº‹ã§å¤§ãã速度ãŒä¸Šæ˜‡ã™ã‚‹ã§ã—ょã†ã€‚ - キャッシュã•れるã®ã¯ - display() - åˆã¯ - fetch() - ã®å‡ºåŠ›çµæžœãªã®ã§ã€ï¼‘ã¤ã®ã‚­ãƒ£ãƒƒã‚·ãƒ¥ãƒ•ァイルãŒè¤‡æ•°ã®ãƒ†ãƒ³ãƒ—レートファイルや - è¨­å®šãƒ•ã‚¡ã‚¤ãƒ«ç­‰ã§æ§‹æˆã•れã¦ã„ã‚‹ã“ã¨ã‚‚ã‚りã¾ã™ã€‚ - - - テンプレートãŒå‹•的コンテンツã®å ´åˆã€ä½•ã‚’ã©ã‚Œãらã„ã®æœŸé–“キャッシュã™ã‚‹ã®ã‹æ³¨æ„ãŒå¿…è¦ã§ã™ã€‚ - 例ãˆã°ã€Webサイトã®ä¸€é¢ã«ãれã»ã©å¤‰æ›´ã•れãªã„コンテンツãŒè¡¨ç¤ºã•れã¦ã„ã‚‹å ´åˆã¯ã€ - 一時間ã‹ãれ以上ã€ã“ã®ãƒšãƒ¼ã‚¸ã‚’キャッシュã—ã¦ã‚‚å•題ãªã動作ã™ã‚‹ã§ã—ょã†ã€‚ - 一方ã€ä¸€åˆ†çµŒéŽã™ã‚‹ã”ã¨ã«æ–°ã—ã„æƒ…å ±ãŒæ ¼ç´ã•れる天気図をページã«è¡¨ç¤ºã™ã‚‹å ´åˆã¯ã€ - ã“ã®ãƒšãƒ¼ã‚¸ã‚’キャッシュã™ã‚‹äº‹ã¯æ„味をãªã•ãªã„ã§ã—ょã†ã€‚ - -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; - - diff --git a/trunk/docs/ja/programmers/caching/caching-cacheable.xml b/trunk/docs/ja/programmers/caching/caching-cacheable.xml deleted file mode 100644 index bb5d1666..00000000 --- a/trunk/docs/ja/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,140 +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} -]]> - - - ãŸã¨ãˆãƒšãƒ¼ã‚¸ãŒã‚­ãƒ£ãƒƒã‚·ãƒ¥ã•れã¦ã„ã¦ã‚‚ $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/trunk/docs/ja/programmers/caching/caching-groups.xml b/trunk/docs/ja/programmers/caching/caching-groups.xml deleted file mode 100644 index 1d276112..00000000 --- a/trunk/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; - -// ã¯ã˜ã‚ã®ï¼’ã¤ã®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/trunk/docs/ja/programmers/caching/caching-multiple-caches.xml b/trunk/docs/ja/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index a76651f0..00000000 --- a/trunk/docs/ja/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - ページã”ã¨ã«è¤‡æ•°ã®ã‚­ãƒ£ãƒƒã‚·ãƒ¥ - - display() - ã‚„ fetch() - ã®ã²ã¨ã¤ã®å‘¼ã³å‡ºã—ã‹ã‚‰ã€è¤‡æ•°ã®ã‚­ãƒ£ãƒƒã‚·ãƒ¥ãƒ•ァイルをæŒã¤äº‹ãŒå‡ºæ¥ã¾ã™ã€‚ - 例ãˆã° display('index.tpl') を呼ã³å‡ºã—ãŸæ™‚〠- ã„ãã¤ã‹ã®çжæ³ã«å¿œã˜ã¦ç•°ãªã£ãŸå†…容ã®å‡ºåŠ›ã‚’æŒã£ã¦ã„ã‚‹ã‹ã‚‚ã—れãšã€ - ãã®å‡ºåŠ›ã”ã¨ã«åˆ¥ã®ã‚­ãƒ£ãƒƒã‚·ãƒ¥ã‚’æŒãŸã›ãŸã„ã¨æ€ã†ã‹ã‚‚ã—れã¾ã›ã‚“。 - ã“れã¯ã€é–¢æ•°ã‚’呼ã³å‡ºã™æ™‚ã«ç¬¬ï¼’パラメータã¨ã—㦠- $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() - ã«ã¯ã€ç¬¬ï¼’パラメータã¨ã—ã¦åŒã˜ $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() - ã®ç¬¬ï¼‘パラメータã¨ã—㦠&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/trunk/docs/ja/programmers/caching/caching-setting-up.xml b/trunk/docs/ja/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 9ce4b4a4..00000000 --- a/trunk/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/trunk/docs/ja/programmers/plugins.xml b/trunk/docs/ja/programmers/plugins.xml deleted file mode 100644 index 0b0d0c3f..00000000 --- a/trunk/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/trunk/docs/ja/programmers/plugins/plugins-block-functions.xml b/trunk/docs/ja/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index 44a8e4fb..00000000 --- a/trunk/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ã«ã‚ˆã£ã¦ï¼’度 - (1度目ã¯é–‹å§‹ã‚¿ã‚°ã€ï¼’度目ã¯çµ‚端タグã«ã‚ˆã£ã¦ï¼‰å‘¼ã³å‡ºã•れã¾ã™ - (ã“ã®å‹•作ã®å¤‰æ›´æ–¹æ³•ã¯æ¬¡ã® $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/trunk/docs/ja/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/ja/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index d27b3e01..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - コンパイラ関数プラグイン - - コンパイラ関数プラグインã¯ãƒ†ãƒ³ãƒ—レートã®ã‚³ãƒ³ãƒ‘イル時ã«ã®ã¿å‘¼ã³å‡ºã•れã¾ã™ã€‚ - ã“れらã®ãƒ—ラグインã¯ã€PHPコードã¾ãŸã¯æ™‚é–“ã«ä¾å­˜ã™ã‚‹é™çš„コンテンツをテンプレートã«å«ã‚る時ã«ä¾¿åˆ©ã§ã™ã€‚ - コンパイラ関数㨠カスタム関数 - ãŒåŒæ–¹ã¨ã‚‚åŒã˜åå‰ã§ç™»éŒ²ã•れãŸå ´åˆã¯ã€ã‚³ãƒ³ãƒ‘イラ関数ãŒå„ªå…ˆã•れã¾ã™ã€‚ - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - コンパイラ関数ã«ã¯ï¼’ã¤ã®ãƒ‘ラメータを渡ã—ã¾ã™ã€‚ - ã“れらã®ãƒ‘ラメータã¯ã€ã‚¿ã‚°å†…ã®æ–‡å­—列(基本的ã«é–¢æ•°åã‹ã‚‰çµ‚端デリミタã¾ã§ã®å…¨ã¦ã®æ–‡å­—列)ã¨ã€ - Smartyã®ã‚ªãƒ–ジェクトã§ã™ã€‚戻り値ã«ã¯ã€ã‚³ãƒ³ãƒ‘イルã•れãŸãƒ†ãƒ³ãƒ—ãƒ¬ãƒ¼ãƒˆã«æŒ¿å…¥ã•れるPHPコードを返ã—ã¾ã™ã€‚ - - - - シンプルãªã‚³ãƒ³ãƒ‘イラ関数プラグイン - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - - ã“ã®é–¢æ•°ã¯ãƒ†ãƒ³ãƒ—レートã‹ã‚‰æ¬¡ã®ã‚ˆã†ã«å‘¼ã°ã‚Œã¾ã™ã€‚ - - - - - - コンパイルã•れãŸãƒ†ãƒ³ãƒ—レートã®çµæžœã¨ã—ã¦ç”Ÿã˜ã‚‹PHPã‚³ãƒ¼ãƒ‰ã¯æ¬¡ã®ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚ - - - -]]> - - - - - - register_compiler_function() - ãŠã‚ˆã³ - - unregister_compiler_function() - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - - diff --git a/trunk/docs/ja/programmers/plugins/plugins-functions.xml b/trunk/docs/ja/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 112be46a..00000000 --- a/trunk/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/trunk/docs/ja/programmers/plugins/plugins-howto.xml b/trunk/docs/ja/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 872c707e..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - プラグインã®å‹•ä½œåŽŸç† - - プラグインã¯è¦æ±‚ãŒã‚ã‚‹ã¨å¸¸ã«èª­ã¿è¾¼ã¾ã‚Œã¾ã™ã€‚テンプレートã‹ã‚‰å‘¼ã³å‡ºã•れ㟠- 修飾å­ãƒ»é–¢æ•°ãƒ»ãƒªã‚½ãƒ¼ã‚¹ç­‰ã®ãƒ—ラグインã ã‘ãŒèª­ã¿è¾¼ã¾ã‚Œã¾ã™ã€‚ - ã•らã«å„プラグインã¯åŒã˜ãƒªã‚¯ã‚¨ã‚¹ãƒˆå†…ã« Smarty - ã®ç•°ãªã‚‹ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ãŒè¤‡æ•°å®Ÿè¡Œã•れã¦ã„ã¦ã‚‚ã€èª­ã¿è¾¼ã¾ã‚Œã‚‹ã®ã¯ä¸€åº¦ã ã‘ã§ã™ã€‚ - - - プリフィルタ/ãƒã‚¹ãƒˆãƒ•ィルタã¨ã‚¢ã‚¦ãƒˆãƒ—ットフィルタã¯å°‘ã—特殊ã§ã™ã€‚ - ã“れらã¯ãƒ†ãƒ³ãƒ—レートã‹ã‚‰å‘¼ã³å‡ºã•れãªã„ã®ã§ã€ãƒ†ãƒ³ãƒ—レートãŒå‡¦ç†ã•れるå‰ã« - API 関数を経由ã—ã¦æ˜Žç¤ºçš„ã«ç™»éŒ²ã¾ãŸã¯èª­ã¿è¾¼ã¾ã‚Œã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - åŒã˜ç¨®é¡žã®è¤‡æ•°ã®ãƒ•ィルタãŒå®Ÿè¡Œã•れる順åºã¯ã€ãれらãŒç™»éŒ²ã¾ãŸã¯èª­ã¿è¾¼ã¾ã‚Œã‚‹é †åºã«ã‚ˆã£ã¦æ±ºã¾ã‚Šã¾ã™ã€‚ - - - プラグインディレクトリ - ã¯ã€å˜ä¸€ã®ãƒ‘ã‚¹ã‚’ç¤ºã™æ–‡å­—列ã¾ãŸã¯è¤‡æ•°ã®ãƒ‘スを格ç´ã—ãŸé…列ã§ã¨ãªã‚Šã¾ã™ã€‚ - プラグインã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã¯ã€å˜ã«ãƒ—ラグインファイルをã„ãšã‚Œã‹ã®ãƒ—ラグインディレクトリ内ã«ç½®ãã ã‘ã§ã™ã€‚ - ãã†ã™ã‚Œã° Smarty ã¯ãれを自動的ã«ä½¿ç”¨ã—ã¾ã™ã€‚ - - - - diff --git a/trunk/docs/ja/programmers/plugins/plugins-inserts.xml b/trunk/docs/ja/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index f7bc9027..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - インサートプラグイン - - インサートプラグインã¯ã€ãƒ†ãƒ³ãƒ—レート㮠- {insert} - ã‚¿ã‚°ã«ã‚ˆã£ã¦å‘¼ã³å‡ºã•れる関数を実装ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã•れã¾ã™ã€‚ - - - - string smarty_insert_name - array $params - object &$smarty - - - - ã“ã®é–¢æ•°ã®ç¬¬ï¼‘パラメータã¯ã€insert ã‚¿ã‚°ã«æ¸¡ã•れる属性ã®é€£æƒ³é…列ã§ã™ã€‚ - - - ã‚¤ãƒ³ã‚µãƒ¼ãƒˆãƒ—ãƒ©ã‚°ã‚¤ãƒ³é–¢æ•°ã¯æˆ»ã‚Šå€¤ã¨ã—ã¦ã€ - テンプレート㮠{insert} ã‚¿ã‚°ã®éƒ¨åˆ†ã‚’ç½®ãæ›ãˆã‚‹çµæžœã‚’è¿”ã—ã¾ã™ã€‚ - - - インサートプラグイン - -trigger_error("insert time: missing 'format' parameter"); - return; - } - return strftime($params['format']); -} -?> -]]> - - - - - diff --git a/trunk/docs/ja/programmers/plugins/plugins-modifiers.xml b/trunk/docs/ja/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 240392c5..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 修飾å­ãƒ—ラグイン - - 修飾å­ãƒ—ラグイン - ã¯ã€ãƒ†ãƒ³ãƒ—レートã®å¤‰æ•°ãŒè¡¨ç¤ºã•れるå‰ã¾ãŸã¯ä»–ã®ã‚³ãƒ³ãƒ†ãƒ³ãƒ„ã«ä½¿ç”¨ã•れるå‰ã«é©ç”¨ã•れる関数ã§ã™ã€‚ - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - 修飾å­ãƒ—ラグインã¸ã®ç¬¬ï¼‘パラメータã¯ã€ã“ã®ä¿®é£¾å­ã«ã‚ˆã£ã¦å½±éŸ¿ã‚’å—ã‘る値ã§ã™ã€‚ - 残りã®ãƒ‘ラメータã¯ã©ã®ã‚ˆã†ãªå‹•作ãŒè¡Œã‚れるã‹ã«ã‚ˆã£ã¦ä»»æ„ã§ã™ã€‚ - - - 修飾å­ãƒ—ラグインã¯å‡¦ç†ã®çµæžœã‚’ - 返㙠- å¿…è¦ãŒã‚りã¾ã™ã€‚ - - - - シンプルãªä¿®é£¾å­ãƒ—ラグイン - - ã“ã®ãƒ—ラグインã¯ã€åŸºæœ¬çš„ã«çµ„ã¿è¾¼ã¿ã® 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/trunk/docs/ja/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/ja/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index ba637860..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,99 +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。 - - - - - - - PHP ファイル内ã§å®šç¾©ã™ã‚‹ プラグイン関数 - ã¯æ¬¡ã®ã‚ˆã†ã«æŒ‡å®šã—ã¾ã™ã€‚ -
      - - smarty_type_name - -
      -
      - - - - type ãŠã‚ˆã³ name - ã®æ„味ã¯å‰è¿°ã—ãŸã‚‚ã®ã¨åŒã˜ã§ã™ã€‚ - - - ãŸã¨ãˆã° foo ã¨ã„ã†åå‰ã®ä¿®é£¾å­ã®å ´åˆã¯ã€ - function smarty_modifier_foo() ã¨ãªã‚Šã¾ã™ã€‚ - - - - å¿…è¦ãªãƒ—ラグインファイルãŒè¦‹å½“ãŸã‚‰ãªã„ã‹ã€ - ファイルååˆã¯ãƒ—ラグイン関数åãŒä¸æ­£ãªå ´åˆ Smarty ã¯é©åˆ‡ãªã‚¨ãƒ©ãƒ¼ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’出力ã—ã¾ã™ã€‚ - -
      - - diff --git a/trunk/docs/ja/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/ja/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index d049c8ff..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - アウトプットフィルタプラグイン - - アウトプットフィルタプラグインã¯ã€ãƒ†ãƒ³ãƒ—レートãŒèª­ã¿è¾¼ã¾ã‚Œã¦å®Ÿè¡Œã•れãŸå¾Œ - (ã—ã‹ã—ãã®å‡ºåŠ›ãŒè¡¨ç¤ºã•れるå‰)ã«ãƒ†ãƒ³ãƒ—レートã®å‡ºåŠ›ã‚’æ“作ã—ã¾ã™ã€‚ - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - アウトプットフィルタã®ç¬¬ï¼‘パラメータã¯ã€å‡¦ç†ã‚’行ã†ãƒ†ãƒ³ãƒ—レート出力ã§ã™ã€‚ - 第2パラメータã¯ã€ãƒ—ラグインを呼ã³å‡ºã—ãŸSmartyã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã§ã™ã€‚ - ã“ã®ãƒ—ãƒ©ã‚°ã‚¤ãƒ³ã¯æˆ»ã‚Šå€¤ã«ã€ä¿®æ­£ã•れãŸãƒ†ãƒ³ãƒ—レート出力を返ã™ã‚ˆã†ã«ã—ã¦ä¸‹ã•ã„。 - - - アウトプットフィルタプラグイン - - -]]> - - - - - register_outputfilter() - ãŠã‚ˆã³ - - unregister_outputfilter() - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - diff --git a/trunk/docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index ba5567eb..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,118 +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; - } -?> -]]> - - - - - register_prefilter()〠- - unregister_prefilter()〠- - register_postfilter() - ãŠã‚ˆã³ - - unregister_postfilter() - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - diff --git a/trunk/docs/ja/programmers/plugins/plugins-resources.xml b/trunk/docs/ja/programmers/plugins/plugins-resources.xml deleted file mode 100644 index fb85b8a4..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - - リソースプラグイン - - リソースプラグインã¯ã€ãƒ†ãƒ³ãƒ—レートソースやPHPスクリプトã®ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚’ - Smarty ã«æä¾›ã™ã‚‹ä¸€èˆ¬çš„ãªæ–¹æ³•ã¨æ„図ã•れã¦ã„ã¾ã™ - (例: データベース, LDAP, 共有メモリ, ソケット等)。 - - - - å„種リソースã®ãŸã‚ã«ï¼”ã¤ã®é–¢æ•°ã‚’登録ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - ã“れらã®é–¢æ•°ã®æœ€åˆã®ãƒ‘ラメータã«ã¯è¦æ±‚ã•れãŸãƒªã‚½ãƒ¼ã‚¹ãŒæ¸¡ã•れ〠- 最後ã®ãƒ‘ラメータã«ã¯ 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; ã¨ãªã‚Šã¾ã™ã€‚ - - - - ï¼’ã¤ã‚ã®é–¢æ•° timestamp() ã¯ã€ - è¦æ±‚ã•れãŸãƒªã‚½ãƒ¼ã‚¹ãŒæœ€å¾Œã«ä¿®æ­£ã•ã‚ŒãŸæ™‚é–“(UNIXタイムスタンプ)ã‚’å–å¾—ã—ã¾ã™ã€‚ - 第2パラメータ $timestamp ã¯å‚ç…§ã§æ¸¡ã•れ〠- ã“ã“ã«ã‚¿ã‚¤ãƒ ã‚¹ã‚¿ãƒ³ãƒ—ãŒæ ¼ç´ã•れã¾ã™ã€‚タイムスタンプãŒå–å¾—ã§ãれ㰠- &true;ã€ãれ以外㯠&false; ã‚’è¿”ã—ã¾ã™ã€‚ - - - - 3ã¤ã‚ã®é–¢æ•° secure() ã¯ã€ - è¦æ±‚ã•れãŸãƒªã‚½ãƒ¼ã‚¹ãŒã‚»ã‚­ãƒ¥ã‚¢ã§ã‚ã‚‹ã‹ã©ã†ã‹ã«å¿œã˜ã¦ &true; åˆã¯ &false; ã‚’è¿”ã—ã¾ã™ã€‚ - ã“ã®é–¢æ•°ã¯ãƒ†ãƒ³ãƒ—レートリソースã®ãŸã‚ã«ã ã‘用ã„られã¾ã™ãŒã€å®šç¾©ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - - - - ï¼”ã¤ã‚ã®é–¢æ•° trusted() ã¯ã€ - è¦æ±‚ã•れãŸãƒªã‚½ãƒ¼ã‚¹ãŒä¿¡ç”¨ã§ãã‚‹ã‹ã©ã†ã‹ã«å¿œã˜ã¦ &true; åˆã¯ &false; ã‚’è¿”ã—ã¾ã™ã€‚ - ã“ã®é–¢æ•°ã‚’使用ã™ã‚‹ã®ã¯ã€ - {include_php} ã‚¿ã‚°ã‚ã‚‹ã„㯠- {insert} - ã‚¿ã‚°ã§ src 属性ã«ã‚ˆã£ã¦è¦æ±‚ã•れ㟠PHP - スクリプトコンãƒãƒ¼ãƒãƒ³ãƒˆã®ã¿ã§ã™ã€‚ - ã—ã‹ã—ã€ãƒ†ãƒ³ãƒ—レートリソースã§ã‚ã£ã¦ã‚‚定義ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ - - - - - - リソースプラグイン - - -]]> - - - - - register_resource() - ãŠã‚ˆã³ - unregister_resource() - ã‚‚å‚ç…§ã—ã¦ãã ã•ã„。 - - - - - diff --git a/trunk/docs/ja/programmers/plugins/plugins-writing.xml b/trunk/docs/ja/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 0f9d0df8..00000000 --- a/trunk/docs/ja/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - プラグインã®è¨˜è¿° - - プラグイン㯠Smarty ã«ã‚ˆã£ã¦ãƒ•ァイルシステムã‹ã‚‰è‡ªå‹•çš„ã«èª­ã¿è¾¼ã¾ã‚Œã‚‹ã‹ã€ - register_* API 関数ã®ã†ã¡ã®ï¼‘ã¤ã‚’経由ã—ã¦å‹•çš„ã«ç™»éŒ²ã™ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ - ã¾ãŸã€ãれら㯠unregister_* API 関数を使ã†äº‹ã«ã‚ˆã£ã¦æœªç™»éŒ²ã«ã™ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ - - - å‹•çš„ã«ç™»éŒ²ã•れるプラグインã«ã¤ã„ã¦ã¯ãƒ—ラグイン関数ã®å‘½åè¦ç´„ã«å¾“ã†å¿…è¦ã¯ã‚りã¾ã›ã‚“。 - - - Smarty ã«ãƒãƒ³ãƒ‰ãƒ«ã•れãŸã„ãらã‹ã®ãƒ—ラグインã«é–¢ã™ã‚‹å ´åˆã¨åŒæ§˜ã«ã€ - プラグインãŒåˆ¥ã®ãƒ—ラグインã«ã‚ˆã£ã¦æä¾›ã•れる機能ã«ä¾å­˜ã™ã‚‹å ´åˆã¯æ¬¡ã®æ–¹æ³•ã§å¿…è¦ã¨ã•れるプラグインを読ã¿è¾¼ã¿ã¾ã™ã€‚ - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - 基本的ã«ã€Smarty ã®ã‚ªãƒ–ジェクトã¯å¸¸ã«æœ€å¾Œã®ãƒ‘ラメータã¨ã—ã¦ãƒ—ãƒ©ã‚°ã‚¤ãƒ³ã«æ¸¡ã•れã¾ã™ã€‚ - ãŸã ã—ã€ä¾‹å¤–ãŒï¼’ã¤ã‚りã¾ã™ã€‚ - - - - 変数ã®ä¿®é£¾å­ã¯ Smarty オブジェクトを渡ã—ã¾ã›ã‚“。 - - - ブロックã®å ´åˆã¯ Smarty オブジェクトã®å¾Œã« $repeat - ãŒæ¸¡ã•れã¾ã™ã€‚ã“れã¯ã€ä»¥å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã® Smarty - ã¨ã®å¾Œæ–¹äº’æ›æ€§ã‚’ä¿ã¤ãŸã‚ã®ã‚‚ã®ã§ã™ã€‚ - - - - - - diff --git a/trunk/docs/ja/programmers/smarty-constants.xml b/trunk/docs/ja/programmers/smarty-constants.xml deleted file mode 100644 index f1dfcbb6..00000000 --- a/trunk/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/trunk/docs/ja/translation.xml b/trunk/docs/ja/translation.xml deleted file mode 100644 index 94fa16ac..00000000 --- a/trunk/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/trunk/docs/manual.xml.in b/trunk/docs/manual.xml.in deleted file mode 100644 index 6194fba1..00000000 --- a/trunk/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/trunk/docs/pt_BR/appendixes/bugs.xml b/trunk/docs/pt_BR/appendixes/bugs.xml deleted file mode 100644 index 9cd6911b..00000000 --- a/trunk/docs/pt_BR/appendixes/bugs.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - BUGS - - Verifique o arquivo BUGS que vem com a última - distribuição do Smarty, ou verifique a seção BUGS do website. - - - - diff --git a/trunk/docs/pt_BR/appendixes/resources.xml b/trunk/docs/pt_BR/appendixes/resources.xml deleted file mode 100644 index 88f2dad1..00000000 --- a/trunk/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 discussão enviando um e-mail para - &ml.general.sub;. O arquivo da lista de discussão pode ser - visualizado em &url.ml.archive;. - - - - diff --git a/trunk/docs/pt_BR/appendixes/tips.xml b/trunk/docs/pt_BR/appendixes/tips.xml deleted file mode 100644 index 99b170ac..00000000 --- a/trunk/docs/pt_BR/appendixes/tips.xml +++ /dev/null @@ -1,361 +0,0 @@ - - - - - Dicas & Truques - - - - Manipulação de Variável Vazia - - Há momentos que você quer mostrar um valor padrão para uma variável vazia ao invés de não mostrar nada, - tal como mostrar "&nbsp;" para que os planos de fundo de tabelas funcionem corretamente. Muitos - usariam uma instrução {if} para fazer isso, mas há um macete que pode ser feito usando-se o - modificador de variável padrão do Smarty. - - -Imprimindo &nbsp; quando uma variável está vazia - - - - - - - - Manipulação do valor padrão de uma Variável - - Se uma variável é usada freqüentemente em seus templates, aplicar o modificador de variável - padrão toda vez pode se tornar algo muito desagradável. Você pode evitar - isto atribuindo um valor padrão para a variável usando a função assign. - - -Atribuindo o valor padrão para uma variável de template - - - - - - - Passando a variável titulo para o template de cabeçalho - - Quando a maioria de seus templates usam os mesmos cabeçalhos e mesmos rodapés, é - comum dividi-los um em cada template e então incluí-los. Mas o que fazer se o - cabeçalho precisa ter um titulo diferente, dependendo de que página ele está vindo? - Você pode passar o titulo para o - cabeçalho quando ele é incluído. - - -Passando a variável titulo para o template de cabeçalho - - - -{$title|default:"BC News"} - - - - -footer.tpl ----------- - - -]]> - - - - Quando a página for extraída, o título da "Página Principal" é passado ao template 'cabecalho.tpl', - e será imediatamente usado como título da página. Quando a página de arquivos é extraída, o título - muda para "Arquivos". No que no exemplo de arquivos, nós estamos usando uma variável que vem do - arquivo 'pagina_arquivos.conf' ao invés de uma variável definida no código. Note também que "BC News" - é mostrado somente se a variável $titulo não conter valor algum, isto é feito usando-se o modificador - de variáveis padrão. - - - - 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 formatação da data, e também facilita a comparação de datas - se necessário. - - - 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 função 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 saída de um formulário de volta para o formato timestamp. Abaixo está uma função - que irá ajudá-lo à fazer isto. - - -Convertendo datas de volta ao formato timestamp - - -]]> - - - - - WAP/WML - - Os templates WAP/WML exigem um cabeçalho com o tipo de conteúdo (Content-Type) PHP para serem - passados junto com o template. O modo mais fácil de se fazer isso seria escrever uma função - personalizada que envia-se este cabeçalho. Se você está usando cache, isto não irá funcionar, - então nós faremos isso usando a tag insert (lembre-se que tags de insert não são guardadas no cache!). - Certifique-se de que nada é enviado ao navegador antes do template, caso contrário o cabeçalho não irá - funcionar. - - -Usando insert para escrever um cabeçalho WML Content-Type - - -]]> - - -seu template do Smarty deve começar com a tag insert, veja o exemplo à seguir: - - - - - - - - - - - - -

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

      -
      - - -

      -Bem fácil isso, não é? -

      -
      -
      -]]> -
      -
      -
      - - Templates componentizados - - Tradicionalmente, programar templates para suas aplicações é feito da seguinte maneira: - Primeiro, você guardar suas variáveis junto com a aplicação PHP, (talvez obtendo-as de consultas - à banco de dados). Após, você instancia seu objeto Smarty, atribui valores às variáveis e - mostra o template. Digamos que nós temos um registrador de estoque em nosso template. Nós - coletaríamos os dados do estoque em nossa aplicação, e então atribuíriamos valores as variáveis - referentes à ele no template e depois exibiríamos o template na tela. Agora não seria legal - se você pudesse adicionar este registrador de esto em qualquer aplicação 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 - conteúdo e atribuiria ele à uma variável definida no template. - - -Template componentizado - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - - - - - - Ofuscando endereços de E-mail - - Você já se espantou como seu endereço de E-mail entra em tantas listas de spam? - A única forma dos spammers coletarem seu(s) endereço(s) de E-mail(s) é de páginas web. - Para ajudar à combater este problema, você pode fazer seu endereço de E-mail aparecer em javascript - misturado em código HTML, e ainda assim ele irá aparecer e funcionar corretamente no navegador. - Isto é feito com o plugin chamado 'mailto'. - - -Exemplo de ofuscamento de um Endereço de E-mail - - - - - - Nota técnica - - Este método não é 100% a prova de falha. Um spammer poderia criar um programa - para coletar o e-mail e decodificar estes valores, mas é muito pouco provável. - - - -
      - \ No newline at end of file diff --git a/trunk/docs/pt_BR/appendixes/troubleshooting.xml b/trunk/docs/pt_BR/appendixes/troubleshooting.xml deleted file mode 100644 index 6bf8f258..00000000 --- a/trunk/docs/pt_BR/appendixes/troubleshooting.xml +++ /dev/null @@ -1,183 +0,0 @@ - - - - Localização de Erros - - - Erros do Smarty/PHP - - O Smarty pode obter muitos erros, tais como: atributos de tags perdidos ou nomes de variáveis - 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 número da linha e o erro. - Depois disso, o erro consiste do número da linha da classe Smarty em que o erro - ocorreu. - - - - Há certos erros que o Smarty não 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 análise do PHP - -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 - - - - Quando você encontra um erro de análise do PHP, o número da linha do erro corresponderá ao - script PHP compilado, não 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 lógica dentro de uma tag {if}. - Se você não conseguir encontrar o erro, talvez seja necessário abrir - o arquivo PHP compilado e ir até o número 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/trunk/docs/pt_BR/bookinfo.xml b/trunk/docs/pt_BR/bookinfo.xml deleted file mode 100755 index d949545a..00000000 --- a/trunk/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 Conceição <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/trunk/docs/pt_BR/designers/chapter-debugging-console.xml b/trunk/docs/pt_BR/designers/chapter-debugging-console.xml deleted file mode 100644 index 5688e25f..00000000 --- a/trunk/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 incluídos, variáveis definidas e variáveis de arquivos de - configuração do template atual. Um template chamado "debug.tpl" está - incluso com a distribuição do Smarty o qual controla a formtação do console. - Defina a variável $debugging para true no Smarty, e se necessário defina - $debug_tpl com o caminho do diretório onde está o arquivo debug.tpl (o diretório padrão - é o da constante SMARTY_DIR). Quando você carrega uma página, um javascript abre uma - janela pop-up e fornece à você o nome de todos os templates incluídos e variáveis definidas - ara a página atual. Para ver as variáveis disponíveis para um template específico, - veja a função {debug}. Para desabilitar - o console de debug, defina a variável $debugging para false. Você também pode ativar - temporariamente o console de debug colocando na URL, caso você tenha ativado esta opção - na variável $debugging_ctrl. - - - Nota Técnica - - O console de debug não 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ê não gosta de javascript, - você pode editar o template debug.tpl para exibir saída no formato que você quiser. - Dados do debug não são armazenados em cache e os dados do debug.tpl não são - inclusos no console de debug. - - - - - O tempo de carregamento de cada template e arquivo de configuração são exibidos em - segundos, ou então frações de segundo. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/config-files.xml b/trunk/docs/pt_BR/designers/config-files.xml deleted file mode 100644 index 61b49d72..00000000 --- a/trunk/docs/pt_BR/designers/config-files.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Arquivos de Configuração - - Arquivos de configuração são úteis para designers que gerenciam variáveis globais - para os templates à partir de um arquivo. Um exemplo são as cores do template. - Normalmente se você quisesse mudar o tema de cores de uma aplicação, você teria - que abrir cada arquivo de template e alterar as cores. Com arquivos de configurações, - as cores podem ser armazenadas em um lugar, e apenas um arquivo precisaria ser alterado. - - - Exemplo de sintaxe de um arquivo de configuração - - - - - - Valores de variáveis de arquivos de configuração pode estar entre aspas, - mas não é necessário. Você pode usar tanto aspas simples como duplas. - Se você tiver um valor que ocupe mais de uma linha, coloque-o dentre três aspas - ("""). Você pode colocar comentários em arquivos de configuração com qualquer - sintaxe que não é válida para um arquivo de configuração. Nós recomendamos usar um - # (cancela) no início de cada linha que contém o comentário. - - - Este arquivo de configuração tem duas seções. Nomes de seções devem estar entre conchetes []. - Nomes de seção podem ser string arbritraria que não contenham os símbolos - [ ou ]. As quatro variáveis no topo são variáveis globais, - ou variáveis que não pertencem à uma seção. Estas variáveis sempre são carregadas do arquivo de - configuração. Se uma seção em particular é carregada, então as variáveis globais e as variáveis - desta seção também são carregadas. Se uma variável de seção e global já existirem, - a variável de seção será utilizada. Se você tiver duas variáveis na mesma seção com o mesmo nome, - a última será utilizada. - - - Arquivos de configuração são carregados no template usando a função embutida config_load. - - - Você pode esconder as variáveis ou uma seção inteira colocando um ponto - antes do nome da seção ou variávei. Isso é útil em casos no qual sua aplicação lê - arquivos de configuração e obtém dados sensíveis que não são necessários para o sistema - de templates. Se a edição de seus templates é terceirizada, você terá certeza que eles não - irão ler os dados sensíveis do arquivo de configuração que é carregado no template. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-basic-syntax.xml b/trunk/docs/pt_BR/designers/language-basic-syntax.xml deleted file mode 100644 index 520df4ce..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Sintaxe Básica - - Todas as tags de template do Smarty contém delimitadores. Por padrão, - estes delimitadores são { e }, - mas eles podem ser alterados. - - - Para os exemplos à seguir, nós assumiremos que você está usando os delimitadores - padrão. Para o Smarty, todo o conteúdo fora dos delimitadores é mostrado como - conteúdo estático, ou inalterável. Quando o Smarty encontra tags de template, - ele tenta interpretá-las, e então mostra a saída 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/trunk/docs/pt_BR/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/pt_BR/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 7a59cd24..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - Escapando da interpretação do Smarty - - Algumas vezes é desejável ou mesmo necessário fazer o Smarty ignorar sessões - que em outro caso ele interpretaria. Um exemplo classico é embutindo Javascript ou - código CSS no template. O problema aparece porque estas linguagens usam os - caracteres { e } que são os - delimitadores padrão para o Smarty. - - - - A coisa mais simples é evitar a situação em sí separando o seu código Javascript e - CSS nos seus próprios arquivos e então usar os métodos padrões do HTML para acessa-los. - - - - Incluir conteúdo literal é possível 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 também escape modifier - - - diff --git a/trunk/docs/pt_BR/designers/language-basic-syntax/language-math.xml b/trunk/docs/pt_BR/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 3be77ebe..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - Matemática - - Matemática pode ser aplicada diretamente aos valores de variáveis. - - - Exemplos de matemática - -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/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 30c0c30c..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Atributos - - A maioria das funções contém atributos que especificam ou modificam - o seu comportamento. Atributos para funções do Smarty são muito parecidos - com atributos da HTML. Valores estáticos não precisam ficar entre aspas, - mas recomenda-se usar aspas para strings literais. Variáveis também podem - ser usadas, e não 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 funções - - -{html_options values=$vals selected=$selected output=$output} - -]]> - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 601d5626..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Comentários - - Os comentários do template ficam entre asteriscos dentro de delimitadores, - exemplo: {* este é um comentário *}. Comentários do Smarty não são - exibidos no resultado final do template. Eles são usados para fazer - anotações internas nos templates. - - - Comentários - - -{html_options values=$vals selected=$selected output=$output} - -]]> - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index fdcfe1d2..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - Funções - - Cada tag Smarty mostra uma - variável ou utiliza algum tipo de - função. Funções são processadas e exibidas colocando-se a função e seus - atributos entre delimitadores, exemplo: {funcname attr1="val" attr2="val"}. - - - Sintaxe de funções - -{$nome}! -{else} - Seja bem-vindo, {$nome}! -{/if} - -{include file="rodape.tpl"} -]]> - - - - Ambas as funções internas e as funções personalizadas tem a mesma sintaxe nos - templates. Funções internas são o funcionamento do Smarty, - tais como if, section e - strip. Elas não podem ser modificadas. Funções personalizadas - são funções adicionais implementadas por modo de plugins. Elas podem ser modificadas - como você quiser, ou você pode adionar novas. html_options e - html_select_date são exemplos de funções personalizadas. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 2d52176c..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - Colocando Variáveis em Aspas Duplas - - Smarty irá reconhecer variáveis definidas entre asplas duplas enquanto - as variáveis conterem apenas números, letras, sublinhados e conchetes []. - Com qualquer outro caractere (pontos, referência à objetos, etc.) a variável - deve estar entre apóstrofos. - - - Sintaxe entre aspas - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index ba35e3c5..00000000 --- a/trunk/docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - Variables - - Vaiaveis do template começam com o sinal de $dollar. Elas podem conter números, - letras e sublinhados, parecido com - variável PHP. - Você pode referenciar arrays - pelo índice número ou não numérico. Também pode - referenciar propriedades e metodos de objetos. - - Variáveis do arquivo de configuração - são excessões a sintaxe de $dollar - e são ao invés referenciadas com #cancelas#, ou - via a variável - $smarty.config. - - - Variáveis - -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} -]]> - - - - Variáveis de requisição como $_GET, $_SESSION etc estão disponíveis através - da variável reservada - $smarty. - - - - Veja também Variáveis reservadas do $smarty, - Variáveis da Configuração - {assign} - e - assign(). - - - - diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions.xml b/trunk/docs/pt_BR/designers/language-builtin-functions.xml deleted file mode 100644 index 5d7b22d5..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Funções internas - - O Smarty contém várias funções internas. Funções internas são parte integral - da linguagem de template. Você não pode criar funções personalizadas com o - mesmo nome de uma função interna, e também não pode modificar funções 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/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 5495984f..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - capture - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - name - string - Não - default - O nome do bloco capturado - - - assign - string - Não - n/a - O nome da variável para dar o valor da saída capturada - - - - - - capture é usado para coletar toda a saída do template em uma variável ao invés - de mostra-lo. Qualquer conteúdo entre {capture - name="foo"} e {/capture} coletado na variável especificada no atributo name. - O conteúdo capturado pode ser usado no template a partir da variável especial - $smarty.capture.foo aonde foo é o valor passado para o atributo name. Se você não - passar um atributo name, então 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 conteúdo capturado dentro da variável - chamada $return. A partir do 1.4.5, este funcionamento foi mudado - para usar o atributo name, então atualize os seus templates de acordo. - - - - - Tenha cuidado quando capturar a saída do comando insert. - Se você tiver o cache em on e você tiver comandos insert - que você espera que funcione com conteúdo do cache, - não capture este conteúdo. - - - - - capturando conteúdo do template - - - - {$smarty.capture.banner} - - -{/if} -]]> - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index b144887f..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - config_load - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - file - string - Sim - n/d - O nome do arquivo de configuração para incluir - - - section - string - Não - n/d - O nome da seção a carregar - - - scope - string - Não - local - - Como o escopo das variáveis carregadas é tratado, - o qual deve ser um entre local, parent ou global. local - indica que as variáveis são carregadas no contexto do - template local apenas. parent indica que as variáveis são carregadas - no contexto atual e no template que o chamou. global indica - que as variáveis estão - disponíveis para todos os templates. - - - - global - boolean - No - No - - Quando ou não as variáveis são 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 função é usada para carregar as variáveis de um arquivo de configuração - dentro de um template. Veja Arquivos de Configuração - para mais informações. - - -Função config_load - - - -{#tituloPagina#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Arquivos de configuração podem conter seções também. Você pode carregar - variáveis de uma seção adicionando o atributo - section. - - - NOTA: Config file sections e a função embutida de - template section não tem nada a ver um com o outro, - eles apenas tem uma mesma - convenção de nomes. - - -Função config_load com seções - - -{#tituloPagina#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      -
      - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 1c1443fd..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - - foreach,foreachelse - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - from - string - Sim - n/d - O nome da matriz que você estará pegando os elementos - - - item - string - Yes - n/d - O nome da variável - que é o elemento atual - - - key - string - Não - n/d - O nome da variável que é a chave atual - - - name - string - Não - n/d - O nome do loop foreach para acessar as - propriedades foreach - - - - - - Loops foreach são 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 parâmetros requeridos são - from e item. O nome do loop - foreach pode ser qualquer coisa que você queira, feito de letras, números - e sublinhados. Loops foreach - podem ser aninhados, e o nome dos loops aninhados devem ser diferentes - um dos outros. A variável from (normalmente uma - matriz de valores) determina o número de vezes do loop - foreach. - foreachelse é executado quando não houverem mais valores - na variável 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 também tem as suas próprias variáveis para manipilar as propriedades - foreach. Estas são indicadas assim: {$smarty.foreach.foreachname.varname} com - foreachname sendo o nome especificado no atributo - name do foreach. - - - - - iteration - - iteration é usado para mostrar a interação atual do loop. - - - Iteration sempre começa em 1 e - é incrementado um a um em cada interação. - - - - - first - - first é definido como true se a interação atual - do foreach for a primeira. - - - - - last - - last é definido como true se a interação atual - do foreach for a última. - - - - - show - - show é usado como parâmetro para o foreach. - show é um valor booleano, true ou false. Se - false, o foreach não será mostrado. Se tiver um foreachelse - presente, este será alternativamente mostrado. - - - - - total - - total é usado para mostrar o número de interações do - foreach. Isto pode ser usado dentro ou depois do foreach. - - - - - - - -
      - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 80845f13..00000000 --- a/trunk/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 características à mais para o sistema de template. - Todo if deve ter o seu - /if. else e - elseif também são permitidos. Todos os - condicionais do PHP são reconhecidos, tais como ||, or, &&, and, etc. - - - - A seguir está uma lsita dos qualificadores, que devem estar separados dos elementos - por espaço. Note que itens listado entre [conchetes] são opcionais. Os equivalentes - em PHP são mostrados quando aplicáveis. - - - - - - - - - - - Qualificador - Alternativas - Exemplo de sintaxe - Significado - Equivalente no PHP - - - - - == - eq - $a eq $b - iguais - == - - - != - ne, neq - $a neq $b - não 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 - negação (unary) - ! - - - % - mod - $a mod $b - módulo - % - - - is [not] div by - - $a is not div by 4 - divisível 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 também colocar funções 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 variável é divisível 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/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 2f2dd3a0..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - include_php - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - file - string - Sim - n/a - O nome do arquivo php a incluir - - - once - boolean - Não - true - Quando incluir ou não o arquivo php mais de uma vez se - incluído várias vezes - - - assign - string - Não - n/a - O nome da variável - que receberá a saída do arquivo php - - - - - - Nota Técnica - - include_php está quase sendo retirado do Smarty, você pode obter a mesma funcionalidade - usando uma função customizada em um template. A única razão para usar o include_php é - se você realmente precisar deixar função php fora do diretório de plugin ou código da - sua aplicação. Veja a seção - templates componentizados - para mais detalhes. - - - - Tags include_php são usadas para incluir um script php no seu template. - Se a segurança estiver ativada, então o script php deve estar localizado - no diretório especificado na variável $trusted_dir. A tag include_php - deve ter o atributo "file", o qual contém o caminho para o arquivo php - incluído, pode ser um camiho tanto absoluto ou relativo a $trusted_dir. - - - include_php é um bom meio de manipular templates componentizados, - e manter o código PHP separado dos arquivos de template. Digamos - que você tenha um template que mostre a navegação do seu site, o qual - é preenchido automaticamente a partir de um banco de dados. Você pode - manter a sua lógica PHP que obtém os dados em um diretório separado, - e inclui-la no topo do template. Agora você pode incluir este template - em qualquer lugar sem se preocupar se a informação do banco de dados foi - obtida antes de usar. - - - Por padrão, os arquivos php são incluídos apenas uma vez mesmo - se incluídos várias vezes no template. Você pode especificar que ele - seja incluído todas as vezes com o atributo once. - Definindo once para false irá incluir o script php a cada vez que - ele seja incluído no template. - - - Você pode opcionalmente passar o atributo assign, - o qual irá especificar uma variável de template a qual irá conter - toda a saída de - include_php em vez de mostra-la. - - - O objeto smarty esta disponível como $this dentro do - script php que você incluiu. - - -Função 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/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 98d96264..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - include - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - file - string - Sim - n/d - O nome do arquivo de template a incluir - - - assign - string - Não - n/d - O nome de uma variável que irá - conter toda a saída do template - - - [var ...] - [var type] - Não - n/d - Variável para passar localmente para o template - - - - - - Tags include são usadas para incluir outros templates no template - atual. Quaisquer variáveis disponíveis no template atual também estarão - disponíveis junto com template incluído. A tag include deve ter o atributo - "file", o qual contém o caminho do arquivo a incluir. - - - Você pode opcionalmente passar o atributo assign, - o qual irá especificar o nome de uma variável de template para a qual - conterá todo o conteúdo do include ao - invés de mostrá-lo. - - -function include - - - - - - Você pode também passar variáveis para o template incluído como atributos. - Quaisquer variáveis passadas para um template incluído como atributos - estão disponíveis somente dentro do escopo do template incluído. - As variáveis passadas como atributos sobrescrevem as variáveis de - template atuais, no caso de ambas terem o mesmo nome. - - -Função include passando variáveis - - - - - - Use a sintaxe de template resources para - incluir arquivos fora do diretório $template_dir. - - -Exemplos de recursos para a função include - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index a37ee81e..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - - insert - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - name - string - Sim - n/d - O nome da função insert (insert_name) - - - assign - string - Não - n/d - O nome da variável que - irá receber a saída - - - script - string - Não - n/d - O nome de um script php que será incluido - antes que a função insert seja chamada - - - [var ...] - [var type] - Não - n/d - Variável para passar para a função insert - - - - - - Tags insert funcionam parecido com as tags include, exceto que as tags - insert não vão para o cache quando caching esta ativado. Ela será - executada a cada invocação do template. - - - Digamos que você tenha um template com um banner no topo da página. O - banner pode conter uma mistura de html, imagens, flash, etc. - Assim nós não podemos usar um link estatico aqui, e nós não - queremos que este conteúdo fique no cache junto com a página. E aí que entra a tag - insert: o template conhece os valores #banner_location_id# e - #site_id# (obtidos de um arquivo de configuração), e precisa chamar - uma função para obter o conteúdo do banner. - - -função insert - -{* exemplo de como obter um banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - Neste exemplo, nós estamos usando o nome "getBanner" e passando os parâmetros - #banner_location_id# e #site_id#. O Smarty irá procurar por uma função chamada - insert_getBanner() na sua aplicação PHP, passando os valores de - #banner_location_id# e #site_id# como primeiro argumento em uma - matriz associativa. Todos os nomes de função insert em sua - aplicação devem ser precedidas por "insert_" para prevenir possíveis - problemas com nomes de funções repetidos. Sua função insert_getBanner() - deve fazer alguma coisa com os valores passados e retornar os resultados. - Estes resultados são mostrados no template no lugar da tag insert. - Neste exemplo, o Smarty irá chamar esta função: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - e mostrar o resultado retornado no lugar da tag insert. - - - Se você passar o atributo "assign", a saída da tag insert será - dada para esta variável ao invés de ser mostrada - no template. - - - Nota - - definir a saída para uma variável não é - útil quando o cache esta ativo. - - - - Se você passar o atributo "script", este script php será incluido - (apenas uma vez) antes da execução da função insert. Este - é o caso onde a função insert não existe ainda, e um script - php deve ser incluído antes para faze-la funcionar. O caminho pode - ser absoluto ou relativo à variável $trusted_dir. Quando a segurança esta - ativada, o script deve estar no local definido na variável $trusted_dir. - - - O objeto Smarty é passado como segundo argumento. Deste modo - você pode refenciar o objeto Smarty - de dentro da função. - - - Nota Tecnica - - É possível ter partes do template fora do cache. - se você tiver caching - ativado, tags insert não estarão no cache. Ela será executada - dinamicamente a cada vez que a página seja criada, mesmo com - páginas em cache. Isto funciona bem para coisas como banners, pesquisa, - previsões do tempo, resultados de pesquisa, áreas de opnião do usuário, etc. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 7400c1be..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - ldelim,rdelim - - ldelim e rdelim são 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 também {$smarty.ldelim} e {$smarty.rdelim} - - -ldelim, rdelim - - - -O exemplo acima exibirá: - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 726dcd10..00000000 --- a/trunk/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, - não é interpretado pelo Smarty. Isto é tipicamente usado com blocos de código - javascript ou folhas de estilo (stylesheet), que às vezes contém chaves - que podem entrar em conflito com o delimitador de sintaxe. Qualquer coisa entre - {literal}{/literal} não é 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/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 060a2ea8..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - php - - Tags php permitem que códigos php sejam embutidos diretamente nos templates. - Eles não serão interpretados, não importando a definição de - $php_handling. Esta opção é - somente para usuários avançados e normalmente não é necessária. - - -Tags php - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 224fdc08..00000000 --- a/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,629 +0,0 @@ - - - - - section,sectionelse - - - - - - - - - - Nome do atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - name - string - Sim - n/d - O nome da seção - - - loop - [$variable_name] - Sim - n/d - O nome da variável para determinar o - número de interações - - - start - integer - Não - 0 A posição - do índice que a seção vai começar. Se o valor - é negativo, a posição 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 inválidos (valores fora do - tamanho da matriz) são automaticamente corrigidos - para o valor válido mais próximo. - - - step - integer - Não - 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 trás para frente. - - - max - integer - Não - 1 - Define o número máximo de loops - para a section. - - - show - boolean - Não - true - Determina quando mostrar ou não esta section - - - - - - Os 'sections' de template são usados para percorrer os dados de uma matriz. - Todas as tags section devem ser finalizadas com /section. - Os parâmetros obrigatórios são name e loop. - O nome da 'section' pode ser o que você quiser, contendo letras, números e sublinhados. - As 'sections' podem ser aninhadas, e os nomes das sections devem ser únicos. A variável - 'loop' (normalmente uma matriz de valores) determina o número de vezes que a section - será percorrida. Quando estiver exibindo uma variável dentro de uma section, - o nome da section deve estar ao lado da variável dentro de conchetes []. - sectionelse é executado quando não houver valores na - variável 'loop'. - - -section - - -{/section} -]]> - -MOSTRA: - - -id: 1001
      -id: 1002
      -]]> -
      -
      - - -loop de variável section - - - nome: {$nome[consumidor]}
      - endereço: {$endereco[customer]}
      -

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

      -id: 1001
      -nome: Jack Jones
      -endereço: 417 Mulberry ln
      -

      -id: 1002
      -nome: Jane Munson
      -endereço: 5605 apple st
      -

      -]]> - - - - -Nomes de section - - - nome: {$nome[meusdados]}
      - endereço: {$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} - não há valores em $custid. -{/section} -]]> - - - - Sections também tem as suas próprias variáveis que manipulam as propriedades da section. - Estas são indicadas assim: {$smarty.section.nomesection.nomevariavel} - - - Nota - - A partir do Smarty 1.5.0, a sintaxe para as variáveis de propriedades da section - mudou de {%nomesecao.nomevariavel%} para {$smarty.section.nomesection.nomevariavel}. A - sintaxe antiga ainda é suportada, mas você verá referências somente à nova sintaxe no - manual. - - - - index - - index é usado para mostrar o índice atual do loop, começando em zero - (ou pelo atributo start caso tenha sido definido), e incrementado por um - (ou pelo atributo step caso tenha sido definido). - - - Nota Técnica: - - Se as propriedades 'start' e 'step' da section não foram modificadas, - elas irão funcionar da mesma maneira que a propriedade 'interation' da - section funcionam, exceto que ela começa do 0 ao invés 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 informação, $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 próximo indice do loop. No último loop, - isto ainda é um mais o índice atual( respeitando a definição - do atributo step, caso tenha sido definido.) - - - propriedade index_next section - - - {* Para sua informação, $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 interação atual do loop. - - - Nota: - - 'interation' não é afetado pelas propriedades start, step e max da section, - diferentemente da propriedade index. Interation diferente de 'index' começa - com 1 ao invés de 0. 'rownum' é um sinônimo de 'interation', eles exercem a - mesma função. - - - - propriedade interation da section - - - {$smarty.section.consumidor.index} id: {$custid[consumidor]}
      - {* Para sua informação, $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
      -interação atual do loop: 2 -7 id: 1001
      - O id do consumidor irá mudar
      -interação atual do loop: 3 -9 id: 1002
      - O id do consumidor irá mudar
      -]]> -
      -
      -
      - - first - - first é definido como true se a interação 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 interação 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 interação atual do loop, - começando em um. É um sinônimo de iteration, - eles exercem a mesma função. - - - propriedade rownum da section - - -{/section} -]]> - -MOSTRA: - - -2 id: 1001
      -3 id: 1002
      -]]> -
      -
      -
      - - loop - - loop é usado para exibir o número do último índice que a section percorreu. - Ele pode ser usado dentro ou após o término 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 parâmetro da section. show - é um valor booleano, verdadeiro ou falso. Caso seja falso, a section não 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 não foi mostrada. -{/if} -]]> - -MOSTRA: - - -2 id: 1001
      -3 id: 1002
      - -a section foi mostrada. -]]> -
      -
      -
      - - total - - total é usado para exibir o número de interações que esta section irá percorrer. - Ela pode ser usada dentro ou após 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/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/pt_BR/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 70f7565e..00000000 --- a/trunk/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 espaços em branco e - caracteres especiais (carriage returns) afetam a exibição do HTML - ("características" do navegador), assim você é obrigado à colocar todas - as suas tags juntas para obter os resultados esperados. Isso geralmente - acaba tornando o template ilegível ou não manipulável. - - - Tudo entre as tags {strip}{/strip} no Smarty tem seus espaços extras - ou caracteres especiais (carriage returns) removidos no início e fim das - linhas antes de elas serem exibidas. Deste modo você pode manter seu - template legível, e não se preocupar com espaços extras causando - problemas. - - - Nota Técnica - - {strip}{/strip} não afeta o conteúdo das variáveis de template. - Veja modificador strip. - - - -strip tags - - - - - - Isto é um teste - - - - -{/strip} -]]> - -MOSTRARÁ: - -Isto é um teste -]]> - - - - Observe que no exemplo acima, todas as linhas começam e terminam com tags HTML. - Esteja ciente para que todas as linhas fiquem juntas. - Se você tiver texto simples no início ou final de uma linha, - ele será juntado na hora da conversão e pode causar resultados - não desejados. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-combining-modifiers.xml b/trunk/docs/pt_BR/designers/language-combining-modifiers.xml deleted file mode 100644 index d1a21e97..00000000 --- a/trunk/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 variável. Eles serão 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/trunk/docs/pt_BR/designers/language-custom-functions.xml b/trunk/docs/pt_BR/designers/language-custom-functions.xml deleted file mode 100644 index 165b4076..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - Funções Personalizadas - - O Smarty contém várias funções 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 4690a3b4..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - assign - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - var - string - Sim - n/a - O nome da variável que está sendo definida - - - value - string - Yes - n/a - O valor que está sendo definido - - - - - - assign é usado para definir o valor de uma variável - de template durante a execução do template. - - -assign - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 65e16e02..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - counter - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - name - string - Não - default - O nome do contador - - - start - number - Não - 1 - O número no qual a contagem se inicia - - - skip - number - Não - 1 - O intervalo entre as contagens - - - direction - string - Não - up - A direção para contar (up/down) - - - print - boolean - Não - true - Quando mostrar ou não o valor - - - assign - string - Não - n/a - A variável de template que vai - receber a saída - - - - - - counter é usada para mostrar uma contagem. counter irá se lembrar de - count em cada interação. Você pode ajustar o número, o intervalo - e a direção da contagem, assim como detrminar quando - mostrar ou não a contagem. Você pode ter vários contadores ao - mesmo tempo, dando um nome único para cada um. Se você não der um nome, - o nome 'default' será usado. - - - Se você indicar o atributo especial "assign", a saída da função counter - será passada para essa variável de template ao invés de - ser mostrada no template. - - -counter - - -{counter}
      -{counter}
      -{counter}
      - -MOSTRA: - -2
      -4
      -6
      -8
      -]]> -
      -
      -
      - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 9287ed69..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - cycle - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - name - string - Não - default - O nome do ciclo - - - values - mixed - Sim - n/d - Os valores do ciclo, ou uma lista delimitada - por vírgula (veja o atributo delimiter), - ou uma matriz de valores. - - - print - boolean - Não - true - Quando mostrar ou não o valor - - - advance - boolean - Não - true - Quando avançar ou não para o próximo valor - - - delimiter - string - Não - , - O delimitador para usar no atributo 'values'. - - - assign - string - Não - n/d - A variável de template que - receberá a saída - - - - - - Cycle é usado para fazer um clico através de um conjunto de valores. - Isto torna fácil 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 não 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 próxima chamada para cycle irá mostrar o mesmo valor. - - - Se você indicar o atributo especial "assign", a saída da função - cycle será passada para uma variável de template ao invés de ser - mostrado diretamente no template. - - -cycle - - - {$data[rows]} - -{/section} - -MOSTRA: - - - 1 - - - 2 - - - 3 - -]]> - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 5ca6ec6c..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - debug - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - output - string - Não - html - Tipo de saída, html ou javascript - - - - - - {debug} mostra o console de debug na página. Ele funciona independente - da definição de debug. - Já que ele é executado em tempo de execução, ele é capaz apenas de - mostrar as variáveis definidas, e não os templates - que estão em uso. Mas você pode ver todas as variáveis - disponíveis no escopo do template. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 383a5717..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - eval - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - var - mixed - Sim - n/a - Variável (ou string) para avaliar - - - assign - string - Não - n/a - A variável de template que - receberá a saída - - - - - - eval é usado para avaliar uma variável como template. Isto pode ser usado para - coisas como embutir tags/variáveis de template dentro de variáveis - ou tags/variáveis dentro de variáveis em um arquivo de configuração. - - - Se você indicar o atributo especial "assign", a saída da função - eval irá para esta variável de template ao - invés de aparecer no template. - - - Nota Técnica - - Variáveis avaliadas são tratadas igual a templates. Elas seguem - o mesmo funcionamento para escapar e para segurança como - se fossem templates. - - - - Nota Técnica - - Variáveis avaliadas são compiladas a cada invocação, as versões - compiladas não são salvas. Entretando, se você tiver o cache ativado, - a saída 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 6a0d04d5..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - fetch - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - file - string - Sim - n/a - O arquivo, site http ou ftp para obter - - - assign - string - Não - n/a - A variável de template - que vai receber a saída - - - - - - fetch é usado para obter arquivos do sistema de arquivos local, - http ou ftp, e mostrar o seu conteúdo. Se o nome do arquivo começar - com "http://", a página do web site será obtida e mostrada. Se o - nome do arquivo começar 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 saída da função - fetch será passada para uma variável de template ao invés de - ser mostrado no template. (novo no Smarty 1.5.0) - - - Nota Técnica - - fetch não suporta redirecionamento http, tenha - certeza de incluir a barra no final aonde necessário. - - - - Nota Técnica - - Se a segurança do template esta ativada e você - estiver obtendo um arquivo do sistema de arquivos locais, fetch - irá funcionar apenas em arquivos de um dos diretórios - definidos como seguros. ($secure_dir) - - - -fetch - -{$weather} -{/if} -]]> - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index e3c67aed..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,151 +0,0 @@ - - - - - html_checkboxes - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - name - string - Não - 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 botões checkbox - - - output - array - Sim, a menos que estaja usando o atributo options - n/a - uma matriz de saída para os botões checkbox - - - selected - string/array - Não - 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 saída - - - separator - string - Não - empty - string de texto para separar cada checkbox - - - labels - boolean - Não - true - Adicionar tags <label> para na saída - - - - - - html_checkboxes é uma função personalizada que cria um grupo de - checkbox com os dados fornecidos. Ela cuida de qual(is) item(s) - estão selecionado(s) por padrão. Os atributos obrigatórios são - values e output, a menos que você use options. - Toda a saída é compatível com XHTML. - - - Todos os parâmetro que não estejam na lista acima são 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 267fce58..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - html_image - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - file - string - Sim - n/a - nome/caminho para a imagem - - - border - string - Não - 0 - tamanho da borda de contorno da imagem - - - height - string - Não - altura atual da imagem - altura com a qual a imagem deve ser mostrada - - - width - string - Não - largura atual da imagem - largura com a qual a imagem deve ser mostrada - - - basedir - string - Não - doc root do servidor - diretório de base a caminhos relativos - - - alt - string - Não - "" - descrição alternativa da imagem - - - href - string - Não - n/a - valor href para aonde a imagem será linkada - - - - - - html_image é uma função customizada que gera uma tag HTML para uma imagem. - A altura e a largura são automaticamente calculadas a partir do arquivo de imagem se - nenhum valor é fornecido. - - - basedir é o diretório base do qual caminhos relativos de imagens estão baseados. - Se não fornecido, o document root do servidor (variável de ambiente DOCUMENT_ROOT) é usada - como o diretório base. Se a segurança está habilitada, o caminho para a imagem deve estar dentro - de um diretório 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 Técnica - - html_image requer um acesso ao disco para ler a imagem e calcular - a altura e a largura. Se você não usa caching de template, normalmente é - melhor evitar html_image e deixar as tags de imagem estáticas 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: (possível) - - - - -]]> - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 616bea2e..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - - - html_options - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - 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 saída para o menu dropdown - - - selected - string/array - Não - 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 - Não - empty - nome do grupo selecionado - - - - - - html_options é uma função personalizada que cria um grupo html option com os dados fornecidos. - Ela está atenta de quais itens estão selecionados por padrão. Atributos obrigatórios são '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 saídas são compatíveis com XHTML. - - - Se o atributo opcional name é dado, as tags - <select name="groupname"></select> irão incluir a lista de opções dentro dela. - Caso contrário apenas a lista de opções é gerada. - - - Todos os parâmetros que não estão na lista acima são exibidos como - nome/valor dentro de <select>-tag. Eles são ignorados se o opcional - name não é 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index dd0965a1..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - html_radios - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - name - string - Não - 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 saída pra radio buttons - - - checked - string - Não - 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 - Não - empty - string de texto para separar cada item de radio - - - - - - html_radios é uma função personalizada que cria grupo de botões de radio html - com os dados fornecidos. Ele está atento para qual item está selecionado por padrão. - Atributos obrigatórios são 'values' e 'output', a menos que você use 'options' no lugar disso. Toda - saída é compatível com XHTML. - - - Todos os parâmetros que não estão na lista acima são 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index e105ba65..00000000 --- a/trunk/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 - Obrigatório - Padrão - Descrição - - - - - prefix - string - Não - Date_ - Com o que prefixar o nome da variável - - - time - timestamp/YYYY-MM-DD - Não - tempo atual no formato timestamp do unix ou YYYY-MM-DD - qual date/time usar - - - start_year - string - Não - ano atual - o primeiro ano no menu dropdown, ou o - número do ano, ou relativo ao ano atual (+/- N) - - - end_year - string - Não - da mesma forma que start_year - o último ano no menu dropdown, ou o - número do ano, ou relativo ao ano atual (+/- N) - - - display_days - boolean - Não - true - se mostra os dias ou não - - - display_months - boolean - No - true - se mostra os meses ou não - - - display_years - boolean - Não - true - se mostra os anos ou não - - - month_format - string - Não - %B - qual o formato do mês (strftime) - - - day_format - string - Não - %02d - a saída 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 - Não - false - se mostra ou não o ano como texto - - - reverse_years - booleano - Não - false - mostra os anos na ordem reversa - - - field_array - string - Não - null - - se um nome é dado, as caixas de seleção serão 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 - Não - null - adiciona o atributo de tamanho para a tag de select se for dada - - - year_size - string - Não - 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 - Não - null - adiciona atributos - extras para todas as tags select/input se forem dadas - - - month_extra - string - Não - null - adiciona atributos extras - para todas as tags select/input se forem dadas - - - year_extra - string - Não - null - adiciona atributos extras - para todas as tags select/input se forem dadas - - - field_order - string - Não - MDY - a ordem para se mostrar os campos - - - field_separator - string - Não - \n - string exibida entre os diferentes campos - - - month_value_format - string - Não - %m - formato strftime dos valores do mês, o padrão é - %m para número de mês. - - - year_empty - string - No - null - Se for fornecido então 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 não selecionado. - - - - month_empty - string - No - null - Caso fornecido então 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 não selecionados. - - - - day_empty - string - No - null - Caso fornecido então 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 não selecionados. - - - - - - - html_select_date é uma função 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index fa75ada3..00000000 --- a/trunk/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 - Obrigatório - Padrão - Descrição - - - - - prefix - string - Não - Time_ - com o que prefixar o nome da variável - - - time - timestamp - Não - tempo atual - qual date/time para usar - - - display_hours - booleano - Não - true - Exibir ou não as horas - - - display_minutes - booleano - Não - true - Exibir ou não os minutos - - - display_seconds - booleano - Não - true - Exibir ou não os segundos - - - display_meridian - booleano - Não - true - Exibir ou não no formato (am/pm) - - - use_24_hours - booleano - Não - true - Usar ou não relógio de 24 horas - - - minute_interval - inteiro - Não - 1 - intervalo dos números dos minutos do menu dropdown - - - second_interval - integer - Não - 1 - intervalo dos números dos segundos do menu dropdown - - - field_array - string - Não - n/a - exibe valores para o array deste nome - - - all_extra - string - Não - null - adiciona atributos - extras para tags select/input se fornecidas - - - hour_extra - string - Não - null - adiciona atributos - extras para tags select/input se fornecidas - - - minute_extra - string - Não - 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 - Não - null - adiciona atributos - extras para tags select/input se fornecidas - - - - - - html_select_time é uma função 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index c1ca80bb..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - html_table - - - - - - - - - - Nome do atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - loop - array - Sim - n/d - array de dados para ser feito o loop - - - cols - inteiro - Não - 3 - número de colunas na tabela - - - table_attr - string - Não - border="1" - atributos para a tag table - - - tr_attr - string - Não - empty - atributos para a tag tr (arrays estão em ciclo) - - - td_attr - string - Não - empty - atributos para a tag (arrays estão em ciclo) - - - trailpad - string - Não - &nbsp; - values to pad the trailing cells on last row with - (se algum) - - - - hdir - string - Não - right - direçao de uma linha para ser representada. Possíveis valores: left/right - - - vdir - string - Não - down - direção das colunas para serem representadas. Possíveis valores: up/down - - - - - - html_table é uma função 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 são arrays, eles entrarão 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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index b5afb557..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - mailto - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - address - string - Sim - n/d - O endereço de email - - - text - string - Não - n/d - O texto à ser exibido, o padrão - é o endereço de email - - - encode - string - Não - none - Como codificar o e-mail. - Pode ser none, - hex ou javascript. - - - cc - string - Não - n/d - Endereço de e-mail para mandar uma cópia carbono(cc). - Separe os endereços por vírgula. - - - bcc - string - Não - n/d - Endereço de e-mail para mandar uma cópia carbono cega(bcc). - Separe os endereços por vírgula. - - - subject - string - Não - n/d - Assunto do e-mail. - - - newsgroups - string - Não - n/d - newsgroup para postar. - Separe os endereços por vírgula. - - - followupto - string - Não - n/d - Endereço para acompanhar. - Separe os endereços por vírgula. - - - extra - string - Não - n/d - Qualquer outra informação que você - queira passar para o link, como - classes de planilhas de estilo - - - - - - mailto automatiza o processo de criação de links de e-mail e opcionalmente - codifica eles. Codificar o e-mail torna mais difícil para - web spiders pegarem endereços no seu site. - - - Nota Técnica - - javascript é provavelmente o meio de codificação mais - utilizado, entretanto você pode usar codificação hexadecimal também. - - - -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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-math.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index adf8fc44..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,150 +0,0 @@ - - - - - math - - - - - - - - - - Nome do atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - equation - string - Sim - n/a - a equação à ser executar - - - format - string - Não - n/a - o formato do resultado (sprintf) - - - var - numérico - Sim - n/a - valor da variável da equação - - - assign - string - Não - n/a - variável de template cuja saída será atribuida - - - [var ...] - numérica - Sim - n/a - valor da variável da equação - - - - - - math permite o desenhista de template fazer equações matemáticas no template. - Qualquer variável de template numérica pode ser usada nas equações, e o resultado - é exibido no lugar da tag. As variáveis usadas na equação são passadas como parâmetros, - que podem ser variáveis de template - ou valores estáticos. +, -, /, *, abs, ceil, cos, - exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt, - srans and tan são todos os operadores válidos. Verifique a documentação do PHP para - mais informações acerca destas funções matemáticas. - - - Se você fornece o atributo especial "assign", a saída da função matemática será - atribuído para esta variável - de template ao invés de ser exibida para o template. - - - Nota Técnica - - math é uma função de performance cara devido ao uso da função do php eval(). - Fazendo a matemática no PHP é muito mais eficiente, então sempre é possível fazer - os cálculos matemáticos no PHP e lançar os resultados para o template. Definitivamente - evite chamadas de funções de - matemáticas repetitivamente, como dentro de loops de section. - - - -math - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index ba32fb13..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - popup_init - - popup é uma integração com overLib, uma biblioteca usada para janelas - popup. Esta é usada para informações sensíveis ao contexto, como - janelas de ajuda ou dicas. popup_init deve ser usada uma vez ao - topo de cada página que você planeje usar a função popup. overLib - foi escrita por Erik Bosrup, e a página esta localizada em - http://www.bosrup.com/web/overlib/. - - - A partir da versão 2.1.2 do Smarty, overLib NÃO vem com a distribuição. - Baixe o overLib, coloque o arquivo overlib.js dentro da sua arvore de - documentos e indique o caminho relativo para o parâmetro "src" - de popup_init. - - -popup_init - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index f959aa70..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,430 +0,0 @@ - - - - - popup - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - text - string - Sim - n/d - O text/html para mostrar na janela popup - - - trigger - string - Não - onMouseOver - O que é usado para fazer a janela aparecer. Pode ser - onMouseOver ou onClick - - - sticky - boolean - Não - false - Faz a janela colar até que seja fechada - - - caption - string - Não - n/d - Define o texto para o título - - - fgcolor - string - Não - n/d - A cor usada dentro da caixa popup - - - bgcolor - string - Não - n/d - A cor da borda da caixa popup - - - textcolor - string - Não - n/d - Define a cor do texto dentro da caixa popup - - - capcolor - string - Não - n/d - Define a cor do título da caixa - - - closecolor - string - Não - n/d - Define a cor do texto para fechar - - - textfont - string - Não - n/d - Define a cor do texto para ser usado no texto principal - - - captionfont - string - Não - n/d - Define a fonte para ser usada no Título - - - closefont - string - Não - n/d - Define a fonte para o texto "Close" - - - textsize - string - Não - n/d - Define a fonte do texto principa - - - captionsize - string - Não - n/d - Define o tamanho da fonte do título - - - closesize - string - Não - n/d - Define o tamanho da fonte do texto "Close" - - - width - integer - Não - n/d - Define a largura da caixa - - - height - integer - Não - n/d - Define a altura da caixa - - - left - boolean - Não - false - Faz os popups irem para a esquerda do mouse - - - right - boolean - Não - false - Faz os popups ir para a diresita do mouse - - - center - boolean - Não - false - Faz os popups ir para o centro do mouse - - - above - boolean - Não - false - Faz os popups irem para acima do mouse. NOTA: somente - possível se height foi definido - - - below - boolean - Não - false - Faz os popups irem abaixo do mouse - - - border - integer - Não - n/d - Torna as bordas dos popups grossas ou finas - - - offsetx - integer - Não - n/d - A que distancia do mouse o popup irá - aparecer, horizontalmente - - - offsety - integer - Não - n/d - A que distancia do mouse o popup irá - aparecer, verticalmente - - - fgbackground - url para imagem - Não - n/d - Define uma imagem para usar ao invés de uma - cor dentro do popup. - - - bgbackground - url to image - Não - n/d - define uma imagem para ser usada como borda - ao invés de uma cor para o popup. Nota: você deve definir bgcolor - como "" ou a cor irá aparecer também. NOTA: quando tiver um - link "Close", o Netscape irá redesenhar as células da tabela, - fazendo as coisas aparecerem incorretamente - - - closetext - string - Não - n/d - Define o texto "Close" para qualquer outra coisa - - - noclose - boolean - Não - n/d - Não mostra o texto "Close" em coladas - com um título - - - status - string - Não - n/d - Define o texto na barra de status do browser - - - autostatus - boolean - Não - n/d - Define o texto da barra de status para o texto do popup. - NOTA: sobrescreve a definição de status - - - autostatuscap - string - Não - n/d - define o texto da barra de status como o texto do título - NOTA: sobrescreve o status e autostatus - - - inarray - integer - Não - n/d - Indica ao overLib para ler o texto deste índice - na matriz ol_text array, localizada em overlib.js. Este - parâmetro pode ser usado ao invés do texto - - - caparray - integer - Não - n/d - diz para overLib ler o título a partir deste índice - na matriz ol_caps - - - capicon - url - Não - n/d - Mostra a imagem antes do título - - - snapx - integer - Não - n/d - snaps the popup to an even position in a - horizontal grid - - - snapy - integer - Não - 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 - Não - n/d - Define uma imagem para ser usada como - fundo ao invés da tabela - - - padx - integer,integer - Não - n/d - Prenche a imagem de fundo com espaços em branco horizontal - para colocação do texto. Nota: este é um comando - de dois parâmetros - - - pady - integer,integer - Não - n/d - Prenche a imagem de fundo com espaços em branco vertical - para colocação do texto. Nota: este é um comando - de dois parâmetros - - - fullhtml - boolean - Não - n/d - Permite a você controlar o html sobre a figura - de fundo completamente. O código HTML é esperado - no atributo "text" - - - frame - string - Não - n/d - Controla popups em frames diferentes. Veja a página da - overlib para maiores informações sobre esta função - - - timeout - string - Não - n/d - Utiliza uma função e pega o valor de retorno - como texto que deva ser mostrado - na janela popup - - - delay - integer - Não - n/d - Faz com que o popup funcione como um tooltip. Irá - aparecer apenas após um certo atraso em milésimos de segundo - - - hauto - boolean - Não - n/d - Determina automaticamente se o popup deve aparecer - a esquerda ou direita do mouse. - - - vauto - boolean - Não - 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 página *} -{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/trunk/docs/pt_BR/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/pt_BR/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 42a07b72..00000000 --- a/trunk/docs/pt_BR/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,256 +0,0 @@ - - - - - textformat - - - - - - - - - - Nome do Atributo - Tipo - Obrigatório - Padrão - Descrição - - - - - style - string - Não - n/d - estilo pré-definido - - - indent - number - Não - 0 - O número de caracteres para endentar cada linha. - - - indent_first - number - Não - 0 - O número de caracteres para endentar a primeira linha - - - indent_char - string - Não - (single space) - O caractere (ou string de caracteres) para indenta - - - wrap - number - Não - 80 - Quantidade de caracteres antes de quebrar cada linha - - - wrap_char - string - Não - \n - O caractere (ou string de caracteres) para usar - para quebrar cada linha - - - wrap_cut - boolean - Não - 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 variável de template que irá - receber a saída - - - - - - textformat é uma função de bloco usada para formatar texto. Basicamente - ela remove espaços e caracteres especiais, e formata os parágrafos - quebrando o texto ao final de palavras e identando linhas. - - - Você pode definir os parâmetros explicitamente, ou usar um estilo pré-definido. - Atualmente o único estilo disponível é "email". - - -textformat - - - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-modifiers.xml b/trunk/docs/pt_BR/designers/language-modifiers.xml deleted file mode 100644 index e615935e..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - Modificadores de variáveis - - Modificadores de variáveis podem ser aplicados a variáveis, funções personalizadas - ou strings. Para aplicar um modificador, especifique o valor seguido por - |(pipe) e o nome do modificador. Um modificador aceita - parâmetros adicionais que afetam o seu comportamento. Estes parâmetros vem após - o nome do modificador e são separados por : (dois pontos). - - - Exemplo de modificador - -{$titulo|upper}

    - -{* Faz com que $topico use somente 40 caracteres, e coloca ... no fim da frase *} - -Tópico: {$topico|truncate:40:"..."} - -{* transforma a data em um formato legível *} -{"agora"|date_format:"%Y/%m/%d"} - -{* aplica um modificador à uma função personalizada *} -{mailto|upper address="eu@dominio.dom"} -]]> -
    -
    - - Se você aplicar um modificador à uma matriz ao invés de aplicar ao valor de uma variável, - 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 símbolo @ antes do - nome do modificador, como a seguir: {$tituloArtigo|@count} - (isto irá mostrar o número 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 funções php podem ser utiliadas como modificadores implicitamente. (O - exemplo do @count acima usa a função count do php e não - um modificador do Smarty). Usar funções do php como modificadores tem dois - pequenos problemas: Primeiro: às vezes a ordem dos parâmetros da função - não é 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 distribuição do Smarty). Segundo: com a variável - $security ativada em todas as funções do - php que são usadas como modificadores precisam ser declaradas como confiáveis (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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index ef044501..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - capitalize - - Isto é usado para converter para maiúsculas a primeira letra de todas as palavras em uma variável. - - - capitalize - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Police begin campaign to rundown jaywalkers.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|capitalize} - -SAÍDA: - -Police begin campaign to rundown jaywalkers. -Police Begin Campaign To Rundown Jaywalkers. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 0d4ecbac..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - cat - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - cat - Descrição - - - - - 1 - string - Não - empty - Este é o valor para concatenar com a variável dada. - - - - - - Este valor é concatenado com a variável 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 70e66d3d..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - count_characters - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - boolean - Não - false - Isto determina quando incluir ou não os espaços em - branco na contagem. - - - - - - Isto é usado para contar o número de caracteres em uma variável. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index aab1936f..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - count_paragraphs - - Isto é usado para contar o número de paragrafos em uma variável. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 19e4ad93..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - count_sentences - - Isto é usado para contar o número de sentenças em uma variável. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 26e99be8..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - count_words - - Isto é usado para contar o número de palavras em uma variável. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 2f1d7fd4..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - date_format - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - string - Não - %b %e, %Y - Este é o formato para a data mostrada. - - - 2 - string - Não - n/a - Esta é a data padrão 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 mês dia ano(interpretavel por strtotime). - Designers podem então usar date_format para ter um controle completo da formatação - da data. Se a data passada para date_format estiver vazia e um segundo parâmetro - 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 mês abreviado de acordo com o local atual - -%B - nome do mês inteiro de acordo com o local atual - -%c - representação preferencial de data e hora para o local atual - -%C - ano com dois dígitos (o ano dividido por 100 e truncado para um inteiro, intervalo de 00 a 99) - -%d - dia do mês como um número decimal (intervalo de 00 a 31) - -%D - o mesmo que %m/%d/%y - -%e - dia do mês como um número decimal, um único dígito é precedido por um -espaço (intervalo de 1 a 31) - -%g - ano baseado na semana, sem o século [00,99] - -%G - ano baseado na semana, incluindo o século [0000,9999] - -%h - o mesmo que %b - -%H - hora como um número decimal usando um relógio de 24 horas (intervalo de 00 a 23) - -%I - hora como um número decimal usando um relógio de 12 horas (intervalo de 01 a 12) - -%j - dia do ano como um número decimal (intervalo de 001 a 366) - -%k - hora (relógio de 24 horas) digítos únicos são precedidos por um espaço em branco (intervalo de 0 a 23) - -%l - hora como um número decimal usando um relógio de 12 horas, digítos unicos são precedidos -por um espaço em branco (intervalo de 1 a 12) - -%m - mês como número decimal (intervalo de 01 a 12) - -%M - minuto como um número 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 notação a.m. e p.m. - -%R - hora na notação de 24 horas - -%S - segundo como número decimal - -%t - caractere tab - -%T - hora atual, igual a %H:%M:%S - -%u - dia da semana como um número decimal [1,7], com 1 representando segunda-feira - -%U - número da semana do ano atual como um número decimal, começando com o primeiro domingo como primeiro dia da primeira semana - -%V - número da semana do ano atual como um número 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 - número da semana do ano atual como número decimal, começando com a primeira segunda como primeiro dia da primeira semana - -%x - representação preferencial da data para o local atualsem a hora - -%X - representação preferencial da hora para o local atual sem a data - -%y - ano como número decimal sem o século (intervalo de 00 a 99) - -%Y - ano como número decimal incluindo o século - -%Z - zona horária ou nome ou abreviação - -%% - um caractere `%' - - -NOTA PARA PROGRAMADORES: date_format é essencialmente um wrapper para a função strftime() do PHP. -Você deverá ter mais ou menos especificadores de conversão disponíveis de acordo com a -função strftime() do sistema operacional aonde o PHP foi compilado. De uma olhada -na página de manual do seu sistema para uma lista completa dos especificadores válidos. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 2ddfbb44..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - default - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - string - Não - vazio - Este é o valor padrão para mostrar se a variável - estiver vazia. - - - - - - Isto é usado para definir um valor padrão para uma variável. Se a variável estiver - vazia ou não for definida, o valor padrão 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 2c6b4143..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - escape - - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Valores Possíveis - Padrão - Descrição - - - - - 1 - string - Não - 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 variável que já não esteja - escapada, escapar hex, hexentity ou javascript. - Por padrão, é escapado - o html da variável. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 71090de4..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - indent - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - integer - Não - 4 - Isto define com quantos - caracteres endentar. - - - 2 - string - Não - (um espaço) - Isto define qual caractere usado para endentar. - - - - - - Isto endenta uma string em cada linha, o padrão é 4. Como - parâmetro opcional, você pode especificar o número de caracteres para - endentar. Como segundo parâmetro 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 02b75a5c..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - lower - - Isto é usado para converter para minúsculas uma variável. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 9c67c439..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - nl2br - - Todas as quebras de linha serão convertidas para <br /> na variável - data. Isto é equivalente a função 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index b40f29b1..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - regex_replace - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - string - Sim - n/a - Esta é a expressão regular a ser substituída. - - - 2 - string - Sim - n/a - Esta é a string que irá substituir a expressão regular. - - - - - - Uma expressão regular para localizar e substituir na variável. 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index b2b5c950..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - replace - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 9438e8aa..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - spacify - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - string - Não - um espaço - O que é inserido entre cada caractere - da variável. - - - - - - Insere um espaço entre cada caractere de uma variável. - 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index b7420cdd..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - string_format - - - - - - - - - - Posição do parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - string - Sim - n/a - Este é o formato para ser usado. (sprintf) - - - - - - Este é um meio para formatar strings, como números decimais e outros. - Use a sintaxe para sprintf para a formatação. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 23b7356a..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - strip_tags - - Isto retira as tags de marcação, 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index dad18594..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - strip - - Isto substitui todos os espaços repetidos, novas linhas e tabs por - um único espaço ou a string indicada. - - - Nota - - Se você quer substituir blocos de texto do template, use a função 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 19996063..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - truncate - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - integer - Não - 80 - Este determina para - quantos caracteres truncar. - - - 2 - string - Não - ... - Este é o texto para adicionar se truncar. - - - 3 - boolean - Não - false - Isto determina quando truncar ou não ao final de uma - palavra(false), ou no caractere exato (true). - - - - - - Isto trunca a variável para uma quantidade de caracteres, o padrão é 80. - Como segundo parâmetro opcional, você pode especificar uma string para mostrar - ao final se a variável foi truncada. Os caracteres da string são incluídos no tamanho - original para a truncagem. por padrão, truncate irá tentar cortar ao final de uma palavra. - Se você quizer cortar na quantidade exata de caracteres, passe o terceiro - parâmetro, 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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 4b14bcd6..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - upper - - Isto é usado para converter para maiúsculas uma variável. - - -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/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 387b351b..00000000 --- a/trunk/docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - wordwrap - - - - - - - - - - Posição do Parâmetro - Tipo - Requerido - Padrão - Descrição - - - - - 1 - integer - Não - 80 - Isto determina em - quantas colunas quebrar. - - - 2 - string - Não - \n - Esta é a string usada para quebrar. - - - 3 - boolean - Não - false - Isto determina quando quebrar ou não ao final de uma palavra - (false), ou no caractere exato (true). - - - - - - Isto quebra uma string para uma largura de coluna, o padrão é 80. - Como segundo parâmetro opcional, você pode especificar a string que será usada - para quebrar o texto para a próxima linha - (o padrão é um retorno de carro \n). - Por padrão, wordwrap irá tentar quebrar ao final de uma palavra. Se - você quiser quebrar no tamanho exato de caracteres, passe o terceiro parâmetro, 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/trunk/docs/pt_BR/designers/language-variables.xml b/trunk/docs/pt_BR/designers/language-variables.xml deleted file mode 100644 index 74e6e9c3..00000000 --- a/trunk/docs/pt_BR/designers/language-variables.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Variáveis - - No Smarty há vários tipos diferentes de variáveis. O tipo da variável depende do prefixo que - ela usa (ou do símbolo pelo qual ela está contida). - - - Variáveis no Smarty podem tanto serem exibidas diretamente ou usadas como argumentos - para atributos de funções e modificadores, dentro de expressões condicionais, etc. - Para que uma variável seja exibida o nome dela deve estar dentro dos delimitadores - e não 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/trunk/docs/pt_BR/designers/language-variables/language-assigned-variables.xml b/trunk/docs/pt_BR/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 0ec98a27..00000000 --- a/trunk/docs/pt_BR/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - Variáveis definidas do PHP - - Variáveis que são definidas do PHP são referenciadas precedendo elas - com um sinal de sifrão $. Variáveis definidas dentro do template - com a função assign - também são mostradas desta maneira. - - - - Variáveis 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ê também pode referenciar matrizes associativas que são definidas no PHP - especificando a chave depois do símbolo '.' - (ponto). - - -Acessando variáveis 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 símbolo '->'. - - -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/trunk/docs/pt_BR/designers/language-variables/language-config-variables.xml b/trunk/docs/pt_BR/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 6251cd3e..00000000 --- a/trunk/docs/pt_BR/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - Variáveis carregadas de arquivos de configuração - - Variáveis que são carregadas de arquivos de configuração são referenciadas - colocando-se elas entre cancelas (#), ou com a variável smarty - $smarty.config. - A segunda sintaxe é útil para coloca-las - entre aspas em um atributo. - - - -Variáveis de configuração - -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> - - -SAÍDA: (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> - - - Variáveis de um arquivo de configuração não podem ser usadas até - que sejam carregadas de um arquivo de configuração. Este procedimento - é explicado posteriormente neste documento em - config_load. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/designers/language-variables/language-variables-smarty.xml b/trunk/docs/pt_BR/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index f23254a4..00000000 --- a/trunk/docs/pt_BR/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - A variável reservada {$smarty} - - A variável reservada {$smarty} pode ser utilizada para acessar variáveis - especiais do template. Segue uma lista completa. - - - - Variáveis Request - - Variáveis request como get, post, cookies, server, - environment, e session podem ser acessadas como mostrado - nos exemplos abaixo: - - - - Mostrando váriáveis request - -{* mostra o valor de page da URL (GET) http://www.domain.com/index.php?page=foo *} -{$smarty.get.page} - -{* mostra a variável "page" de um formulário (POST) *} -{$smarty.post.page} - -{* mostra o valor do cookie "username" *} -{$smarty.cookies.username} - -{* mostra a variável do servidor "SERVER_NAME" *} -{$smarty.server.SERVER_NAME} - -{* mostra a variável de ambiente do sistema "PATH" *} -{$smarty.env.PATH} - -{* mostra a variável de session do php "id" *} -{$smarty.session.id} - -{* mostra a variável "username" da união de get/post/cookies/server/env *} -{$smarty.request.username} - - - - - {$smarty.now} - - O timestamp atual pode ser acessado com {$smarty.now}. - O número reflete o número 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 saída capturada via {capture}..{/capture} pode ser acessada usando a variável - {$smarty}. Veja a a seção sobre - capture para um exemplo. - - - - - {$smarty.config} - - A variável {$smarty} pode ser usada para referir variáveis de configuração carregadas. - {$smarty.config.foo} é um sinonimo para {#foo#}. Veja a seção sobre - config_load para um exemplo. - - - - - {$smarty.section}, {$smarty.foreach} - - A variável {$smarty} pode ser usada para se referir a propriedades 'section' e - 'foreach' de loop. Veja a documentação sobre - section e - foreach. - - - - - {$smarty.template} - - Esta variável contém 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/trunk/docs/pt_BR/getting-started.xml b/trunk/docs/pt_BR/getting-started.xml deleted file mode 100644 index 7e7788df..00000000 --- a/trunk/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 - fácil de controlar a separação da aplicação lógica e o conteúdo de sua apresentação. Isto é - melhor descrito em uma situação onde o programador da aplicação e o designer do template executam - diferentes funções, ou na maioria dos casos não são a mesma pessoa. - - - - Por exemplo, digamos que você - está criando uma página para web para mostrar um artigo de um jornal. O autor, a manchete, - a conclusão e o corpo do artigo são elementos de conteúdo, eles não contém informação alguma - sobre como eles devem ser mostrados. Ele são enviados ao Smarty pela aplicação, então o designer - do template edita o template e usa uma combinação de tags HTML e tags de templates para formatar - a apresentação 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 conteúdo do artigo é tratado (uma mudança na - lógica da aplicação). Esta mudança não afeta o design do template, o conteúdo será enviado ao template - exatamente da mesma forma. De modo semelhante, se o designer do template quiser redesenhar completamente - os templates, não é necessária nenhuma alteração na lógica da aplicação. Sendo assim, o programador - pode fazer mudanças na lógica da aplicação sem a necessidade de reestruturar os templates, e o designer - do template pode fazer mudanças nos templates sem alterar a lógica da aplicação. - - - Um objetivo do projeto Smarty é a separação da lógica do negócio e da lógica da apresentação. - Isto significa que os templates podem certamente conter a lógica sob a circunstância que é somente - para apresentação. Alguns exemplos são: a inclusão de outros templates, alternação de cores nas linhas - das tabelas, colocar o texto de uma variável em maiúsculo, percorrer uma matriz de dados e mostrá-la, etc. - são todos exemplos de apresentação lógica. Isto não significa que o Smarty força a separação da lógica de - negócios e da lógica de apresentação. O Smarty não tem conhecimento do que é o que em sua aplicação, portanto - colocar sua a lógica de negócio no template é problema seu. Caso você deseje que não haja nenhuma lógica - em seus templates você pode certamente fazer isso trocando o conteúdo para textos e variáveis somente. - - - - Um dos aspectos únicos do Smarty é seu sistema de compilação de templates. O Smarty lê os arquivos - de templates e cria scripts PHP à partir deles. Uma vez criados, eles são executados sem ser necessário - uma outra compilação do template novamente. Com isso, os arquivos de template não são 'parseados'(analisados) - toda vez que um template é solicitado, e cada template tem a total vantagem de soluções de cache do - compilador PHP, tais como: Zend Accelerator (&url.zend;) ou PHP Accelerator - (&url.ion-accel;). - - - Algumas das características do Smarty: - - - - - Ele é extremamente rápido. - - - - - Ele é eficiente visto que o interpretador do PHP faz o trabalho mais pesado. - - - - - Sem elevadas interpretações de template, apenas compila uma vez. - - - - - Ele está atento para só recompilar os arquivos de template que foram mudados. - - - - - Você pode fazer funções próprias - e seus próprios modificadores de variáveis, assim - a linguagem de templates é extremamente extensível. - - - - - Delimitadores de tag - configuráveis, sendo assim você pode usar {}, {{}}, <!--{}-->, etc. - - - - - Os construtores if/elseif/else/endif são passados - para o interpretador de PHP, assim a sintaxe de expressão {if ...} pode ser tanto simples quanto - complexa da forma que você queira. - - - - - Aninhamento ilimitado de sections, - ifs, etc. permitidos. - - - - - É possível embutir o código PHP diretamente em - seus arquivos de template, apesar de que isto pode não ser necessário (não recomendado) visto que a - ferramenta é tão customizável. - - - - - Suporte de caching embutido. - - - - - Fontes de template arbitrários. - - - - - Funções de manipulação - de cache customizadas. - - - - - Arquitetura de Plugin. - - - - - - Instalação - - - Requisitos - - Smarty requer um servidor web rodando o PHP 4.0.6 superior. - - - - - Instalação Básica - - Instale os arquivos da biblioteca do Smarty que estão no subdiretório /libs/ da - distribuição. Estes são os arquivos PHP que você NÃO PRECISA editar. Eles são comuns - a todas as aplicações e eles só são atualizados quando você atualiza para uma nova - versão do Smarty. - - - Arquivos da biblioteca do Smarty necessários - -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, talvés a sua pagina precise de apenas alguns) - - - - - O Smarty utiliza uma constante do PHP chamada - SMARTY_DIR que é o - caminho completo para o diretório 'libs/' do Smarty. - Basicamente, se sua aplicação puder encontrar o arquivo - Smarty.class.php, você não precisa - definir SMARTY_DIR, - o Smarty irá encontrar por si só. Entretanto, se - Smarty.class.php não estiver em seu include_path, ou você - não indicar um caminho absoluto para ele em sua aplicação, então você - deverá definir SMARTY_DIR manualmente. SMARTY_DIR deve incluir uma - barra ao final. - - - Aqui está um exemplo de como você cria uma instância do Smarty em seus scripts PHP: - - - - Cria uma instância 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 não pôde 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 diretório da biblioteca para o include_path do PHP - -// Edite o seu arquivo php.ini, adicione o diretório da biblioteca do Smarty -// para o include_path e reinicie o servidor web. -// Então o código 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 estão no lugar, é hora de configurar os diretórios - do Smarty para a sua aplicação. - - - O Smarty necessita de quatro diretórios, que são chamados - por padrão '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 diretórios para cada aplicação - que for usar o Smarty. - - - Certifique-se que você sabe a localização do 'document root' do seu servidor web. Em nosso exemplo, - o 'document root' é "/web/www.mydomain.com/docs/". Os diretórios do Smarty - só são acessados pela biblioteca do Smarty e nunca acessados diretamente pelo navegador. Então para - evitar qualquer preocupação com segurança, é recomendado colocar estes diretórios - fora do document root. - - - Para o nosso exemplo de instalação, nós estaremos configurando o ambiente do Smarty - para uma aplicação de livro de visitas. Nós escolhemos uma aplicação só para o propósito - de uma convenção de nomeação de diretório. Você pode usar o mesmo ambiente para qualquer - aplicação, apenas substitua "guestbook" com o nome de sua aplicação. Nós colocaremos nossos - diretórios 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. Nós chamamos nosso - script de "index.php", e o colocamos em um subdiretório dentro - do 'document root' chamado "/guestbook/". - - - - Nota Técnica - - É conveniente configurar o servidor web para que 'index.php' possa ser - idendificado como o índice padrão do diretório, 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 configuração DirectoryIndex - (separe cada item com um espaço.) 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 - (usuários de windows por favor ignorem) em - - $compile_dir e - - $cache_dir, - então tenha certesa que o usuário do servidor web possa escrever. - Este é geralmente o usuário "nobody" e o grupo "nobody" (ninguém). Para - SO com X usuários, o usuário padrão é "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 usuário e grupo estão sendo usados. - - - - Configurando permissões de arquivos - - - - - - - Nota Técnica - - chmod 770 será a segurança correta suficientemente restrita, só permite ao usuário "nobody" e - o grupo "nobody" acesso de leitura/escrita aos diretórios. Se você gostaria de abrir o acesso de leitura - para qualquer um (na maioria das vezes para sua própria conveniência de querer ver estes - arquivos), você pode usar o 775 ao invés do 770. - - - - - Nós 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 Técnica - - {* Smarty *} é um comentário - de template. Ele não é exigido, mas é uma prática boa - iniciar todos os seus arquivos de template com este com este comentário. Isto faz com - que o arquivo seja reconhecido sem levar em consideração a sua extensão. Por exemplo, - editores de texto poderiam reconhecer o arquivo e habilitar coloração de sintaxe especial. - - - - - Agora vamos editar 'index.php'. Nós vamos criar uma instancia do Smarty, - assign(definir) uma - variável 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 Técnica - - No nosso exemplo, nós estamos definindo caminhos absolutor para todos os diretórios - do Smarty. Se /web/www.example.com/smarty/guestbook/ - estiver dentro do seu include_path do PHP, então estas definições não são necessárias. - Entretando, é mais eficinte e (com experiência) causa - menos erros definir como caminhos absolutos. Isto faz ter certeza que o Smarty - esta lendo os arquivos dos diretórios que você quer. - - - - - Agora carregue o arquivo index.php em seu navegador. - Você veria "Olá, Thomas! bem vindo ao Smarty" - - - Você completou a configuração básica para o Smarty! - - - - Estendendo a configuração - - - Esta é uma continuação da instalação básica, - por favor leia a instalação básica primeiro! - - - Uma forma um pouco mais flexível de configurar o Smarty é estender a classe e inicializar seu ambiente de - Smarty. Então, ao invés de configurar caminhos de diretórios repetidamente, preencher as mesmas variáveis, - etc., nós podemos fazer isso para facilitar. Vamos criar um novo diretório "/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ê - também 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 instância do Smarty, apenas use - Smarty_GuestBook que automaticamente inicializa tudo para a nossa aplicação. - - - - - - diff --git a/trunk/docs/pt_BR/language-defs.ent b/trunk/docs/pt_BR/language-defs.ent deleted file mode 100644 index 45563de2..00000000 --- a/trunk/docs/pt_BR/language-defs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/trunk/docs/pt_BR/language-snippets.ent b/trunk/docs/pt_BR/language-snippets.ent deleted file mode 100644 index 5b0d5713..00000000 --- a/trunk/docs/pt_BR/language-snippets.ent +++ /dev/null @@ -1,28 +0,0 @@ - - - - Nota tecnica - - O parâmetro merge respeita as chaves de matrizes, assim se - você combinar duas matrizes com índices númericos, elas devem se sobrescrever - ou resultar em chaves não sequenciais. Isto é diferente da função - array_merge() - do PHP o qual elimina os índices números e colocas os números novamente. - -'> - - - Como o terceiro parâmetro opcional, você pode passar - $compile_id. - Isto é no caso de você querer compilar diferentes versões do mesmo - template, como ter templates separados compilados para - línguas 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 não - templates com o mesmo nome irão se sobrescrever. Você pode - também definir a variável $compile_id - ao invés de passar isto a cada chamada desta função. -'> \ No newline at end of file diff --git a/trunk/docs/pt_BR/livedocs.ent b/trunk/docs/pt_BR/livedocs.ent deleted file mode 100755 index 2541793f..00000000 --- a/trunk/docs/pt_BR/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - -'> -'> - - diff --git a/trunk/docs/pt_BR/make_chm_index.html b/trunk/docs/pt_BR/make_chm_index.html deleted file mode 100755 index 4eb37002..00000000 --- a/trunk/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 Conceição
    -
    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 versão atual.

    - -
    - -
    - diff --git a/trunk/docs/pt_BR/preface.xml b/trunk/docs/pt_BR/preface.xml deleted file mode 100644 index 14675d20..00000000 --- a/trunk/docs/pt_BR/preface.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - Prefácio - - Esta é sem dúvida uma das perguntas mais freqüentes nas listas de discussões sobre PHP: - como eu faço meus scripts em PHP independentes do layout? O PHP é vendido como sendo uma - "linguagem de script embutida no HTML", após escrever alguns projetos que misturam HTML e - PHP naturalmente vem uma idéia de que a separação da forma e conteúdo é uma boa prática [TM]. - Além disso, em muitas empresas os papéis de designer e programador são separados. - Conseqüentemente, a busca por um sistema de templates continua. - - - Na nossa empresa por exemplo, o desenvolvimento de uma aplicação é feito da seguinte - maneira: Após a documentação necessária estar pronta, o designer faz o esboço da interface - e entrega ao programador. O programador implementa as regras de negócio no PHP e usa o - esboço da interface para criar o esqueleto dos templates. O projeto então está nas mãos - da pessoa responsável pelo layout HTML da página que então transforma o esboço em um layout - realmente funcional. O projeto talvez vá e volte entre programação/designer HTML várias vezes. - Porém, é importante ter um bom suporte à templates porque os programadores não querem ter que - ficar mexendo com HTML e não querem que os designers estraguem seus códigos PHP. Os designers - precisam de ajuda para alterar os arquivos de configuração, blocos dinâmicos e outros - problemas relacionados à interface usada, mas eles não querem ocupar-se com as complexidades - da linguagem de programação PHP. - - - Analisando muitas das soluções de templates disponíveis para PHP hoje em dia, a - maioria somente disponibilizada uma forma rudimentar de substituição de variáveis - dentro dos templates e trabalham de forma limitada com as funcionalidades dos blocos - dinâmicos. Mas nossas necessidades necessitam de um pouco mais do que isso. Nós não - queríamos que programadores mexendo com layout em HTML, mas isso é praticamente inevitável. - Por exemplo, se um designer quiser que as cores de fundo se alternam em blocos dinâmicos, - isso tem que ser feito pelo programador antecipadamente. Nós também precisamos que os designers - possam usar seus próprios arquivos de configuração, e usar as variáveis definidas nestes arquivos - em seus templates. E a lista de necessidades continua... - - - Nós começamos à escrever as especificações para um sistema de templates por volta de 1999. - Após o término das especificações, nós começamos a escrever um sistema de template em C - que esperávamos ser aceito para rodar com o PHP. Não só esbarramos em muitas barreiras - técnicas, como também houve um enorme debate sobre o que exatamente um sistema de template - deveria ou não fazer. À partir desta experiência, nós 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, então nós escrevemos um sistema que fazia exatamente, foi aí que surgiu o - SmartTemplate (obs: esta classe nunca foi enviada ao público). - Foi uma classe que fez quase tudo que nós queríamos: substituição de variáveis, suporte à - inclusão de outros templates, integração com arquivos de configuração, código PHP embutido, - funcionalidades 'if' limitada e blocos dinâmicos muito mais robustos que poderiam ser aninhados - muitas vezes. Foi tudo feito usando expressões reguladores e códigos confusos, como diríamos, - impenetrável. Era um sistema também extremamente lento em grandes aplicativos por causa de todo - o trabalho que era feito pelas expressões regulares e o 'parsing'(interpretação) em cada chamada - ao aplicativo. O maior problema do ponto de vista de um programador foi o espantoso trabalho que - era necessário para configurar e processar os blocos dinâmicos dos templates. Como faríamos - esse sistema ser simples de usar? - - - Foi então que veio a visão do que hoje é conhecido como Smarty. Nós sabemos o quão - rápido é um código PHP sem o sobrecarregamento de um sistema de templates. Nós também - sabemos quão meticuloso e assustador é a linguagem PHP aos olhos de um designer atual, - e isso tudo poderia ser mascarado usando uma sintaxe simples nos templates. Então o que - acontece se nós combinarmos essas duas forças? Assim, nasceu o Smarty... - - diff --git a/trunk/docs/pt_BR/programmers/advanced-features.xml b/trunk/docs/pt_BR/programmers/advanced-features.xml deleted file mode 100644 index 2974da53..00000000 --- a/trunk/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/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 9ff60eb8..00000000 --- a/trunk/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 através de seus templates. Há duas formas de acessá-los. - Uma forma é registrar objetos para o template, então os acessa via sintaxe similar a funções - customizáveis. A outra forma é atribuir objetos para os templates e acessá-los como se fossem - uma variável atribuída. O primeiro método tem uma sintaxe de template muito mais legal. E também - mais segura, à medida que um objeto registrado pode ser restrito a certos métodos e - propriedades. Entretanto, um objeto registrado não pode ser - posto em loop ou ser atribuido em arrays de - objetos, etc. O método que você escolher será determinado pelas suas necessidades, mas use o - primeiro método se possível para - manter um mínimo de sintaxe no template. - - - Se a segurança está habilitada, nenhum dos métodos privados ou funções podem acessados - (começando com "_"). Se um método e propriedade de um mesmo nome existir, o método será - usado. - - - Você pode restringir os métodos e propriedades que podem ser acessados listando os em um array - como o terceiro parâmetro de registração. - - - Por definição, parâmetros passados para objetos através dos templates são passados da mesma - forma que funções customizáveis os obtém. Um array associativo é passado como o primeiro parâmetro, - e o objeto smarty como o segundo. Se você quer que os parâmetros passados um de cada vez - por cada argumento como passagem de parâmetro de objeto tradicional, defina o quarto parâmetro - de registração para falso. - - - O quinto parâmetro opcional só tem efeito com format - sendo true e contém - uma lista de métods de ob que seriam tratados como - blocos. Isso significa que estes métodos - tem uma tag de fechamento no template - ({foobar->meth2}...{/foobar->meth2}) e - os parâmetros para os métodos tem a mesma sinopse como os parâmetros para - block-function-plugins: Eles pegam 4 parâmetros - $params, - $content, - &$smarty e - &$repeat e eles também comportam-se como - block-function-plugins. - - - usando um objeto registrado ou atribuído - -<?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 referência) -$smarty->register_object("foobar",$myobj); -// Se você quer restringie acesso a certos métodos ou propriedades, liste-os -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// Se você quer usar o formato de parâmetro de objeto tradicional, passe um booleano de false -$smarty->register_object("foobar",$myobj,null,false); - -// Você pode também atribuir objetos. Atribua por referência quando possível. -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display("index.tpl"); -?> - -TEMPLATE: - -{* accessa nosso objeto registrado *} -{foobar->meth1 p1="foo" p2=$bar} - -{* você pode também atribuir a saída *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output} - -{* acessa nosso objeto atribuído *} -{$myobj->meth1("foo",$bar)} - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 06efa1d1..00000000 --- a/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Output Filters (Filtros de Saída) - - Quando o template é invocado via display() ou fetch(), sua saída pode ser enviada - através de um ou mais filtros de saída. Estes diferem dos postfilters porque postfilters - operam em templates compilados antes de serem salvos para o disco, e os filtros de saída - operam na saída do template quando - ele é executado. - - - - Filtros de Saída podem ser ou - registrado ou carregado - do diretório de plugins usando a função - load_filter() ou configurando a variável - $autoload_filters. - O Smarty passará a saída como o primeiro argumento, - e espera a função retornar o resultado - do processamento. - - - usando um filtro de saída de template - -<?php -// ponha isto em sua aplicação -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 ocorrência de um endereço de email na saída do template terá uma -// simples proteção contra spambots -?> - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 75a811b8..00000000 --- a/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - Postfilters - - Os postfilters de template são funções de PHP nas quais seus templates são rodados - imediatamente depois de serem compilados. Os postfilters podem ser ou - registradocarrgados do diretório de - plugins usando a função - load_filter() ou pela - variável de configuração - $autoload_filters. - O Smarty passará o código fonte do template compilado - como o primeiro argumento, e espera - a função retornar o resultado do processamento. - - - usando um postfilter de template - -<?php -// ponha isto em sua aplicação -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/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 2ff89c3c..00000000 --- a/trunk/docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - Prefilters - - Os prefilters de Template são funções de PHP nas quais seus templates são rodados - antes de serem compilados. Isto é bom para preprocessamento de seus templates para remover - comentários indesejados, mantendo o olho no que as pessoas estão colocando nos seus templates, - etc. Prefilters podem ser ou registrado - ou carregado do diretório de plugins usando a função - load_filter() - ou pela configuração da variável - $autoload_filters. - O Smarty passará o código fonte do template como o - primeiro argumeto, e espera a função retornar - o código fonte do template resultante. - - - Usando um prefilter de template - -<?php -// Ponha isto em sua aplicação -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/trunk/docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index ae5ad701..00000000 --- a/trunk/docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - Função Manipuladora de Cache - - Como uma alternativa ao uso do mecanismo de caching padrão baseado em arquivo, você pode - especificar uma função de manipulação de cache customizada que será usada para ler, escrever - e limpar arquivos de cache. - - - Crie uma função em sua aplicação que o Smarty usará como um manipulador de cache. Defina o - nome dela na variável de classe - $cache_handler_func. - O Smarty agora usará esta para manipular dados no cache. O primeiro argumento é a ação, - que é um desses 'read', 'write' e 'clear'. O segundo parâmetro é o objeto do Smarty. O - terceiro parâmetro é o conteúdo que está no cache. - No write, o Smarty passa o conteúdo em - cache nestes parâmetros. No 'read', o Smarty espera sua função aceitar este parâmetro por - referência e preenche ele com os dados em cache. No 'clear', passa uma variável simulacra aqui - visto que ela não é usada. O quarto parâmetro - é o nome do arquivo de template (necessário para - ler/escrever), o quinto parâmetro é a cache_id (opcional), - e o sexto é a compile_id (opcional). - - - Note que: O último parâmetro ($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/trunk/docs/pt_BR/programmers/advanced-features/template-resources.xml b/trunk/docs/pt_BR/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 4fbae390..00000000 --- a/trunk/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 não é dado explicitamente o valor de - $default_resource_type é assumido. - - - Templates partindo do $template_dir - - Templates a partir do $template_dir não exigem um recurso de template, - apesar de você usar o arquivo: resource for consistancy. - Apenas forneça o caminho para o template que você quer usar em relação ao diretório - 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 diretório - - 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 diretório - -// 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 máquina windows, caminhos de arquivos normalmente incluem uma letra - do drive (C:) no começo 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 possível de você acessar com PHP: banco - de dados, sockets, LDAP, e assim por diante. - Você faz isto escrevendo as funções de plugin - de recurso e registrando elas com o Smarty. - - - - Veja a seção plugins de recurso - para mais informação sobre as funções - que você deve fornecer. - - - - - Note que você pode ativar manualmente o recurso de arquivo embutido, mas não 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 customizáveis - -// no script PHP - -// ponha estas funções em algum lugar de sua aplicação -function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) -{ - // faça 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) -{ - // faça 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 são seguros - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // não 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"} - - - - - Função Manipuladora de Template Padrão - - Você pode especificar a função que é usada para devolver o conteúdo do template no evento - em que o template não pode ser devolvido de seu recurso. Um uso disto é para criar templates - que não existem "on-the-fly" - (templates cujo conteúdo flutua muito, bastante variável). - - - usando a função manipuladora de template padrão - -<?php -// ponha esta função em algum lugar de sua aplicação - -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 conteúdo. - $template_source = "This is a new template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name,$template_source); - return true; - } - } else { - // não é arquivo - return false; - } -} - -// defina a manipuladora padrão -$smarty->default_template_handler_func = 'make_template'; -?> - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions.xml b/trunk/docs/pt_BR/programmers/api-functions.xml deleted file mode 100644 index b91d4ffe..00000000 --- a/trunk/docs/pt_BR/programmers/api-functions.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Métodos -&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/trunk/docs/pt_BR/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/pt_BR/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index f186a75f..00000000 --- a/trunk/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 referência. - Se você adicionar uma variável por referência e então alterar este valor - o valor adicionado enxergará a alteração também. Para objetos, - append_by_ref() também evita uma cópia em memória do objeto adicionado. - Veja o manual do PHP em referenciando variáveis para uma melhor explanação sobre o assunto. - Se você passar o terceiro parâmetro opcional para true, - o valor irá ser mesclado com o array atual ao invés de adicioná-lo. - - - Notas Técnicas - - O parâmetro de união respeita a chave do array, então se você mesclar - dois índices númericos de arrays, eles devem sobrescrever-se um ao outro ou - em resultados não sequências de chave. Isso é diferente da função de PHP array_merge() - que apaga as chaves numéricas 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/trunk/docs/pt_BR/programmers/api-functions/api-append.xml b/trunk/docs/pt_BR/programmers/api-functions/api-append.xml deleted file mode 100644 index cf702c1f..00000000 --- a/trunk/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 então adicioná-lo. - Você pode explicitamente passar pares nomes/valores, ou arrays associativos - contendo o par nome/valor. Se você passar o terceiro parâmetro opcional para true, - o valor unir-se ao array atual - ao invés de ser adicionado. - - - Notas Técnicas - - O parâmetro de união respeita a chave do array, então se você - mesclar dois índices númericos de um array, eles devem sobrescrever-se - um ao outro ou em resultados não sequências de chave. Isso é diferente da função 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/trunk/docs/pt_BR/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/pt_BR/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index e779e4f7..00000000 --- a/trunk/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 referência ao invés de fazer uma cópia. - Veja o manual do PHP na parte sobre referência de variáveis para uma explanação mais detalhada. - - - Notas Técnicas - - Isso é usado para fixar valores para o template por referência. - Se você fixar uma variável por referência e então alterar o valor dela, - o valor fixado enxergará o valor alterado também. - Para objetos, assign_by_ref() também restringe uma cópia de objetos fixados - em memória. - Veja o manual do php em refereciando variáveis para uma melhor explanação. - - - - 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/trunk/docs/pt_BR/programmers/api-functions/api-assign.xml b/trunk/docs/pt_BR/programmers/api-functions/api-assign.xml deleted file mode 100644 index 8bcb9f3f..00000000 --- a/trunk/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/trunk/docs/pt_BR/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/pt_BR/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index 80d39d5d..00000000 --- a/trunk/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 variáveis fixadas. - - -clear_all_assign - -// clear all assigned variables -$smarty->clear_all_assign(); - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/pt_BR/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index b396ab92..00000000 --- a/trunk/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 parâmetro - opcional, você pode fornecer um ano mínimo 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/trunk/docs/pt_BR/programmers/api-functions/api-clear-assign.xml b/trunk/docs/pt_BR/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index d3b9bd78..00000000 --- a/trunk/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 variável 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/trunk/docs/pt_BR/programmers/api-functions/api-clear-cache.xml b/trunk/docs/pt_BR/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 30d1d09e..00000000 --- a/trunk/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 específico. Se você tem - múltiplos caches para este arquivo, você limpa o cache - específico fornecendo o cache id como o segundo parâmetro. - Você pode também passar um compile id como um terceiro parâmetro. - Você pode "agrupar" templates juntos e então eles podem ser removidos - como um grupo. Veja o caching section para maiores informações. Como um quarto - parâmetro opcional, você pode fornecer um ano mínimo 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/trunk/docs/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index b9eb6428..00000000 --- a/trunk/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 versão compilada do recurso de template especificado, - ou todos os arquivos de templates compilados se nenhum for especificado. - Essa função é para uso avançado somente, não normalmente necessária. - - -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/trunk/docs/pt_BR/programmers/api-functions/api-clear-config.xml b/trunk/docs/pt_BR/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index c9fb0ea4..00000000 --- a/trunk/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 variáveis de configuração fixadas. Se um nome de variável - é fornecido, somente esta variável é 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/trunk/docs/pt_BR/programmers/api-functions/api-config-load.xml b/trunk/docs/pt_BR/programmers/api-functions/api-config-load.xml deleted file mode 100644 index dd56c174..00000000 --- a/trunk/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 configuração de dados e fixa-o para o - template. Isso funciona idêntico a função - config_load. - - - Notas Técnicas - - À partir da Smarty 2.4.0, variáveis de template fixadas são - mantidas através de fetch() e display(). Variáveis de configuração carregadas - de config_load() são sempre de escopo global. Arquivos de configuração - também são compilados para execução rápida, e repeita o force_compile e compile_check parâmetros de configuração. - - - -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/trunk/docs/pt_BR/programmers/api-functions/api-display.xml b/trunk/docs/pt_BR/programmers/api-functions/api-display.xml deleted file mode 100644 index a2d843ce..00000000 --- a/trunk/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 válido template resource - tipo e path. Como um segundo parâmetro opcional, você pode passar - um cache id. Veja o caching - section para maiores informações. - - - Como um terceiro parâmetro opcional, você pode passar um compile id. - Isso está no evento que você quer compilar diferentes versões 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 irão sobrescrever-se um ao outro. - Você pode também setar a variável $compile_id ao invés 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 função 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/trunk/docs/pt_BR/programmers/api-functions/api-fetch.xml b/trunk/docs/pt_BR/programmers/api-functions/api-fetch.xml deleted file mode 100644 index c31a3bc1..00000000 --- a/trunk/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 saída do template ao invés de mostrá-lo. - Fornecendo um tipo ou path válido template resource. - Como um segundo parâmetro opcional, você pode passar o cache id. - Veja o caching - section para maiores informações. - - - Como um terceiro parâmetro opcional, você pode passar um compile id. - Isso está no evento que você quer compilar diferentes versões 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 irão sobrescrever-se uns aos outros. Você - pode também setar a variável $compile_id ao invés - 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/trunk/docs/pt_BR/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/pt_BR/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 3a5a8d6c..00000000 --- a/trunk/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 variável de configuração dada. - Se nenhum parâmetro é dado, um array de todas as variáveis dos arquivos de configurações é 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/trunk/docs/pt_BR/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/pt_BR/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 85e8c848..00000000 --- a/trunk/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 referência para um objeto registrado. - Isso é útil para dentro de uma função 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/trunk/docs/pt_BR/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/pt_BR/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index f8566773..00000000 --- a/trunk/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 variável fixada. Se nenhum parâmetro - é dado, um array de todas as variávels 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/trunk/docs/pt_BR/programmers/api-functions/api-is-cached.xml b/trunk/docs/pt_BR/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index db78b275..00000000 --- a/trunk/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 válido 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 também passar um cache id como um segundo parâmetro opcional - no caso você quer múltiplos 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/trunk/docs/pt_BR/programmers/api-functions/api-load-filter.xml b/trunk/docs/pt_BR/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 70a30f0d..00000000 --- a/trunk/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 função 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/trunk/docs/pt_BR/programmers/api-functions/api-register-block.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-block.xml deleted file mode 100644 index 749fc99f..00000000 --- a/trunk/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 funções de plugins. - Passe no bloco de nomes de função, seguido por uma chamada de função PHP - que implemente isso. - - - - A chamada de uma função-php impl pode ser (a) - uma string contendo o nome da função ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referência para um - objeto e $method sendo uma string - contendo o nome do método ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um - método desta classe. - - -$cacheable e $cache_attrs podem ser omitidos na maior parte dos casos. Veja Controlando modos de Saída de Cache dos Plugins para obter informações 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/trunk/docs/pt_BR/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index a3d3fd64..00000000 --- a/trunk/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 função de plugin compilador. - Passe no nome da função compilador, seguido pela função - PHP que implemente isso. - - - A chamada para função-php impl - pode ser uma string contendo o nome da função ou (b) um array - no formato array(&$object, $method) com - &$object sendo uma referência para um - objeto e $method sendo uma string - contendo o nome do método ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo o método - desta classe. - - - $cacheable pode ser omitido na maioria - dos casos. Veja Controlando modos de Saída de Cache dos Plugins - para obter informações apropriadas. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-register-function.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-function.xml deleted file mode 100644 index b31160fc..00000000 --- a/trunk/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 funções de plugins dinamicamente para o template. - Passe no template o nome da função, - seguido pelo nome da função PHP que implemente isso. - - - A chamada para função-php impl pode ser (a) - uma string contendo o nome da função ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referência para um - objeto e $method sendo uma string - contendo o nome do método ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um método - desta classe. - - -$cacheable e $cache_attrs podem ser omitidos na maioria dos casos. Veja Controlando modos de Saída Cache dos Plugins para obter informações 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/trunk/docs/pt_BR/programmers/api-functions/api-register-modifier.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index be57f1fa..00000000 --- a/trunk/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 função PHP - que implemente isso. - - - A chamada da função-php impl - pode ser (a) uma strin contendo o nome da função - ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referência para um - objeto e $method sendo uma string - contendo o nome do método ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um método 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/trunk/docs/pt_BR/programmers/api-functions/api-register-object.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 0017668e..00000000 --- a/trunk/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 - seção de objetos - do manual para examplos. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 1727454c..00000000 --- a/trunk/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 saída para operações - na saída do template antes de mostrá-lo. Veja - Filtros de Saída de Templates - para maiores informações de como configurar uma - função de filtro de saída. - - - A chamada da função-php function pode - ser (a) uma string contendo um nome de função ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referência para um - objeto e $method sendo uma string - contendo o nome do método ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um método - desta classe. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 5a729b03..00000000 --- a/trunk/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 pósfiltros para rodar templates - após eles terem sido compilados. Veja - pósfiltros de template para - maiores informações de como configurar funções de pósfiltragem. - - - A chamada da função-php function pode - ser (a) uma string contendo um nome de função ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referência para um - objeto e $method sendo uma string - contendo o nome do método ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um método - desta classe. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 5afb1518..00000000 --- a/trunk/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 préfiltros dinamicamente para rodar - templates antes deles serem compilados. Veja template prefilters para - maiores informações de como configurar uma função de préfiltragem. - - - A chamada da função-php function pode - ser (a) uma string contendo um nome de função ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referência para um - objeto e $method sendo uma string - contendo o nome do método ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um método - desta classe. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-register-resource.xml b/trunk/docs/pt_BR/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 5af2ca90..00000000 --- a/trunk/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 funções - PHP que implementam isso. Veja - template resources - para maiores informações de como configurar uma função para retornar - templates. - - - Notas Técnicas - - 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 função-php-array resource_funcs - deve ter 4 ou 5 elementos. Com 4 elementos os elementos são - as functions-callbacks para as respectivas funções "source", - "timestamp", "secure" e "trusted" de recurso. - Com 5 elementos o primeiro elemento tem que ser um objeto por referência - ou um nome de classe do objeto ou uma classe implementando o recurso e os 4 - elementos seguintes tem que ter os nomes de métodos - 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/trunk/docs/pt_BR/programmers/api-functions/api-template-exists.xml b/trunk/docs/pt_BR/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index bea3ece9..00000000 --- a/trunk/docs/pt_BR/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - template_exists - - - bool template_exists - string template - - - - Essa função 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/trunk/docs/pt_BR/programmers/api-functions/api-trigger-error.xml b/trunk/docs/pt_BR/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index fea779a6..00000000 --- a/trunk/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 função pode ser usada para saída de uma mensagem de erro usando Smarty. - O parâmetro level pode ser um dos valores usados - para a função de php trigger_error(), ex.: E_USER_NOTICE, - E_USER_WARNING, etc. Por padrão é E_USER_WARNING. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-unregister-block.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index afce2044..00000000 --- a/trunk/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 funções de plugin. - Passe no bloco o nome da função. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 453fc26a..00000000 --- a/trunk/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 função para desregistrar uma função de compilador. Passe - o nome da função de compilador. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-unregister-function.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 7c16c7be..00000000 --- a/trunk/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 função de plugin do template. - Passe no template o nome da função. - - -unregister_function - -// nós não queremos que designers template tenham acesso aos nossos arquivos do sistema - -$smarty->unregister_function("fetch"); - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 84640052..00000000 --- a/trunk/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 - -// nós não 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/trunk/docs/pt_BR/programmers/api-functions/api-unregister-object.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 1caba44a..00000000 --- a/trunk/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/trunk/docs/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 4be1f7f8..00000000 --- a/trunk/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 saída. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index fe2e857e..00000000 --- a/trunk/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 pósfiltro. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 732f2d65..00000000 --- a/trunk/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 préfiltro. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/pt_BR/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index a236b438..00000000 --- a/trunk/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 parâmetro nome o nome do recurso. - - -unregister_resource - -$smarty->unregister_resource("db"); - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables.xml b/trunk/docs/pt_BR/programmers/api-variables.xml deleted file mode 100644 index 44df0492..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - Variáveis - -&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/trunk/docs/pt_BR/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 76dc5471..00000000 --- a/trunk/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 variável e a Smarty irá - automaticamente carregá-los para você. A variável é um array associativo - onde as chaves são tipos de filtro e os valores são 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/trunk/docs/pt_BR/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 7dc1d7bb..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - $cache_dir - - Isso é o nome do diretório onde os caches do template são - armazenados. Por padrão isso é "./cache", significando que isso irá olhar - para o diretório de cache no mesmo diretório que executar scripts PHP. - Você pode tambe usar sua própria função customizada de manuseamento de cache - para manipular arquivos de cache, - que irão ignorar esta configuração. - - - Notas Técnicas - - Essa configuração deve ser ou um relativo - ou absoluto path. include_path não é usado para escrever em arquivos. - - - - Notas Técnicas - - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 747f7173..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $cache_handler_func - - Você pode fornecer uma função padrão para manipular arquivos de cache ao invés de - usar o método built-in usando o $cache_dir. Veja a - seção cache - handler function section para obter detalhes. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index a15fe3f2..00000000 --- a/trunk/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 é válido. - Uma vez que este tempo está expirado, o cache irá ser regerado. $caching deve - ser configurado para "true" para $cache_lifetime para ter algum propósito. Um valor de -1 - irá forçar o cache a nunca expirar. Um valor de 0 irá fazer com que o cache seja sempre regerado - (bom somente para testes, o método mais eficiente de desabilitar caching é setá-lo para - $caching = false.) - - - Se $force_compile está - habilitado, os arquivos de cache serão regerados todo o tempo, eficazmente - desativando caching. Você pode limpar todos os arquivos de cache com a função clear_all_cache(), ou - arquivos individuais de cache (ou grupos) com a função clear_cache(). - - - Notas Técnicas - - Se você quiser dar para certos templates seu próprio tempo de vida de um cache, - você poderia fazer isso configurando $caching = 2, - então configure $cache_lifetime para um único valor somente antes de chamar display() - ou fetch(). - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 4b1bc8b4..00000000 --- a/trunk/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 - não foi alterado desde a última visita, então um header "304 Not Modified" - irá ser enviado ao invés do conteúdo. Isso funciona somente em arquivos - de cache sem tags insert. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-caching.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-caching.xml deleted file mode 100644 index 55e8cb6d..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - $caching - - Isto diz à Smarty se há ou não saída de cache para o template. - Por padrão isso está setado para 0, ou desabilitado. Se seu template gerar - conteúdo redundante, é necessário ligar o caching. Isso - irá resultar num ganho significativo de performance. Você pode também ter múltiplos - caches para o mesmo template. Um valor de 1 ou 2 caching habilitados. 1 diz - à Smarty para usar a variável atual $cache_lifetime para determinar se o - cache expirou. Um valor 2 diz à Smarty para usar o valor cache_lifetime - então 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 também is_cached. - - - Se $compile_check está habilitado, o conteúdo do cache irá ser regerado se - algum dos templates ou arquivos de configuração que são parte deste cache estiverem - alterados. Se $force_compile está habilitado, o conteúdo do cache irá sempre ser - regerado. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-compile-check.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 5a118156..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - $compile_check - - Em cima de cada requisição da aplicação PHP , Smarty testa para ver se o - template atual foi alterado (diferentes time stamp) desde a última - compilação. Se isso foi alterado, ele irá recompilar o template. Se o template - não foi compilado, ele irá compilar de qualquer maneira dessa configuração. - Por padrão esta variável é setada como true. Uma vez que a aplicação está - em produção (templates não serão alterados), o passo compile_check - não é necessário. 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ê *não* irá ver a alteração desde que - o template seja recompilado. Se caching está habilitado e - compile_check está habilitado, então os arquivos de cache não serão regerados se - um complexo arquivo de ou um arquivo de configuração foi atualizado. Veja $force_compile ou clear_compiled_tpl. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index f9905394..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $compile_dir - - Esse é o nome do diretório onde os template compilados estão localizados - Por padrão isso é "./templates_c", significando que isso irá - olhar para o diretório de templates no mesmo diretório que está executando - o script PHP. - - - Notas Técnicas - - Essa configuração deve ser um path relativo ou um path absoluto. - include_path não é usado para escrever em arquivos. - - - - Notas Técnicas - - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-compile-id.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 06b6ec75..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $compile_id - - Identificador de compilação persistente. Como uma alternativa - para passar o mesmo compile_id para cada chamada de função, você - pode setar este compile_id e isso irá ser usado implicitamente após isso. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index ad6101b5..00000000 --- a/trunk/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 padrão é 'Smarty_Compiler'. - Para usuários avançados somente. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index fb4a3918..00000000 --- a/trunk/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 configuração 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 condição {if} irá executar. true por padrão. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-config-dir.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index a2b0283d..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - $config_dir - - Este é o diretório usado para armazenar arquivos de configuração usados nos - templates. O padrão é "./configs", significando que isso irá - olhar para o diretório de templates no mesmo diretório que está executando - o script PHP. - - - Notas Técnicas - - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index 525bb1a4..00000000 --- a/trunk/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 configuração serão - convertidos para \n quando eles forem interpretados. true é o padrão. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 2e3df9bc..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $config_overwrite - - Se configurado para true, variáveis lidas no arquivo de configurações irão sobrescrever - uma a outra. Do contrário, as variáveis serão guardadas em um array. Isso é - útil se você quer armazenar arrays de dados em arquivos de configuração, somente lista - tempos de cada elemento múltiplo. true por padrão. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 85c52985..00000000 --- a/trunk/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 seções (nomes de seções começados com um período) - no arquivo de configuração podem ser lidos do template. Tipicamente você deixaria - isto como false, desta forma você pode armazenar dados sensitivos no arquivo de configuração - como um parâmetro de banco de - dados e sem preocupar-se sobre o template carregá-los. false é o padrão. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index afce619f..00000000 --- a/trunk/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 padrão, é nomeado como debug.tpl e está localizado no SMARTY_DIR. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index a56fa82c..00000000 --- a/trunk/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 não significa - que métodos alternativos são 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/trunk/docs/pt_BR/programmers/api-variables/variable-debugging.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 9a1e31d1..00000000 --- a/trunk/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 incluídos e variáveis - destinadas para a página de template atual. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index e1b339ac..00000000 --- a/trunk/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 - variável no template. Por Exemplo, para cada variável HTML-escape por padrão, - use o array('escape:"htmlall"'); Para fazer a variável isenta para modificadores - padrão, passe o modificador especial "smarty" com um valor de parâmetro "nodefaults" - modificando isso, como - {$var|smarty:nodefaults}. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index f56c3059..00000000 --- a/trunk/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 padrão é 'file', significando que $smarty->display('index.tpl'); e - $smarty->display('file:index.tpl'); são idênticos no significado. - Veja o capítulo resource para detalhes. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index fe39ab32..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $default_template_handler_func - - Essa função é chamada quando um template não pode ser obtido - de seu recurso. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index d285e8ea..00000000 --- a/trunk/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 não nulo, o seu valor é usado como o nível de - error_reporting - do php dentro de display() - e fetch(). Quando debugging esta ativado este valor - é ignorado e o nível de erro é mantido intocado. - - - Veja também - trigger_error(), - debugging - e - Troubleshooting. - - - - diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-force-compile.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 3f170c6b..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $force_compile - - Isso força Smarty para (re)compilar templates a cada requisição. - Essa configuração sobreescreve $compile_check. Por padrão - isso está desabilitado. Isso é útil para desenvolvimento e debug. - Isso nunca deve ser usado em ambiente de produção. Se caching - está habilitado, os arquivo(s) de cache serão regerados à todo momento. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-global-assign.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-global-assign.xml deleted file mode 100644 index 950cb6fc..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-global-assign.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $global_assign - - Essa é a lista de variáveis que estão sempre implicitamente fixadas - para o template engine. Isso está acessível para fazer variáveis - globais ou variáveis do servidor disponíveis para todo o template - sem ter que fixá-las manualmente. Cada elemento em - $global_assign deve ser um nome de uma variável global, - ou um par de chave/valor, onde a chave é o nome do array global - array e o valor é o array de variáveis fixadas deste array global. $SCRIPT_NAME é - globalmente fixado por padrão - para $HTTP_SERVER_VARS. - - - Notas Técnicas - - Variáveis de servidor podem ser acessadas através da variável - $smarty, como {$smarty.server.SCRIPT_NAME}. Veja a seção - da variável - $smarty. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 5dadfb43..00000000 --- a/trunk/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 padrão é "{". - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-php-handling.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index af203d86..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - $php_handling - - Isso diz à Smarty como manipular códigos PHP contido nos - templates. Há quatro possíveis configurações, padrão sendo - SMARTY_PHP_PASSTHRU. Note que isso NÃO fará efeito com códigos 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 códigos PHP. - - - NOTE: Usando códigos PHP code dentro de templates é altamente desencorajado. - Use custom functions ou - modifiers ao invés disso. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 521a7d50..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - $plugins_dir - - Esse é o diretório onde Smarty irá procurar por plugins que são necessários. - O Padrão é "plugins" sob o SMARTY_DIR. Se vocêes especificar um - path relativo, Smarty irá primeiro procurar sob o SMARTY_DIR, então - relativo para o cwd (current working directory), então relativo para cada - entrada no seu PHP include path. - - - Notas técnicas - - Para uma melhor performance, não 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/trunk/docs/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 07e6d4df..00000000 --- a/trunk/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 variáveis globais do php $HTTP_*_VARS[] - ($request_use_auto_globals=false que é o valor padrão) ou - $_*[] ($request_use_auto_globals=true). Isso afeta templates - que fazem uso do {$smarty.request.*}, {$smarty.get.*} etc. . - Atenção: Se você setar $request_use_auto_globals para true, variable.request.vars.order - não terão efeito mas valores de configurações do php - gpc_order são usados. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index afbf4766..00000000 --- a/trunk/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 variáveis requeridas serão registradas, similar ao - variables_order no php.ini - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 90a4a9c4..00000000 --- a/trunk/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 padrão é "}". - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index c7c2bd68..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $secure_dir - - Isso é um array de todos os diretórios locais que são considerados - seguros. {include} e {fetch} usam estes (diretórios) quando security está habilitado. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-security-settings.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index b3b4d867..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - $security_settings - - Essas configurações são usadas para cancelar ou especificar configurações - de segurança quando security está habilitado. Estas possuem as seguintes configurações possíveis: - - - PHP_HANDLING - true/false. Se setado para true, - a configuração de $php_handling não é checada para security. - IF_FUNCS - Isso é um array de nomes de funções PHP permitidas - nos blocos IF. - INCLUDE_ANY - true/false. Se setado para true, algum - template pode ser incluído 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} - são permitidas nos templates. - MODIFIER_FUNCS - Isso é um array de nomes de funções PHP permitidas - usadas como modificadores de variável. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-security.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-security.xml deleted file mode 100644 index be03682c..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - $security - - $security true/false, o padrão é false. Security é bom para situações - quando você tem partes inconfiáveis editando o template - (via ftp por exemplo) e você quer reduzir os riscos de comprometimento - da segurança do sistema através 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 - Funçõs PHP não são permitidas em blocos IF, - exceto estes especificados no $security_settings - templates podem ser somente incluidos no diretório - listado em $secure_dir array - Arquivos locais podem ser somente trazidos do diretório - listado em $secure_dir usando no array {fetch} - Estas tags {php}{/php} não são permitidas - Funções PHP não são permitidas como modificadores, exceto - estes especificados no $security_settings - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-template-dir.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 0684a4e9..00000000 --- a/trunk/docs/pt_BR/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - $template_dir - - Este é o nome padrão do diretório de template. Se você não fornecer - um tipo de recurso quando incluir arquivos, então ele irá ser encontrado aqui. - Por padrão isso é "./templates", significando que isso irá - olhar para o diretório de templates no mesmo diretório que está executando - o script PHP. - - - Notas Técnicas - - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index de8ae64d..00000000 --- a/trunk/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 diretórios que são considerados confiáveis. Diretórios confiáveis - são onde você irá deixar seus scripts php que são executados diretamente para o - template com {include_php}. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-undefined.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-undefined.xml deleted file mode 100644 index c578d254..00000000 --- a/trunk/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 padrão é null. - Atualmente isso é somente usado para setar variáveis indefinidas em - $global_assign para o valor padrão. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 1cec10f0..00000000 --- a/trunk/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 não permite a criação de - subdiretórios pela Smarty. Subdiretórios são muito eficientes, então use-os se você - conseguir. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/caching.xml b/trunk/docs/pt_BR/programmers/caching.xml deleted file mode 100644 index b212a3a5..00000000 --- a/trunk/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 saída. Se há uma versão - de cache disponível para a chamada, isso é mostrado ao invés de regerar a saída de dados. - Caching pode fazer coisas tremendamente rápidas, - especialmente templates com longo tempo computacional. Desde a saída de dados do - display() ou fetch() está em cache, um arquivo de cache poderia ser composto por - diversos arquivos de templates, arquivos de configuração, etc. - - - Desde que templates sejam dinâmicos, é importante isso ter cuidado com - o que você está fazendo cache e por quanto tempo. Por exemplo, se você está mostrando - a página principal do seu website na qual as alterações de conteúdo são muito frequentes, - isso funciona bem para cache dessa por uma hora ou mais. Um outro modo, se você está - mostrando uma página com um mapa do tempo contendo novas informações por minuto, não - faz sentido fazer cache nesta página. - -&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/trunk/docs/pt_BR/programmers/caching/caching-cacheable.xml b/trunk/docs/pt_BR/programmers/caching/caching-cacheable.xml deleted file mode 100644 index eaa08f04..00000000 --- a/trunk/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 parâmetro para register_block, -register_compiler_function e register_function é chamado -$cacheable e o padrão para true que é também -o comportamento de plugins na versão da Smarty antecessores à 2.6.0 - - - -Quando registrando um plugin com $cacheable=false o plugin é chamado todo o tempo na página que está sendo mostrada, sempre se a página vier do cache. A função de plugin tem um comportamento levemente como uma função insert. - - - -Em contraste para {insert} o atributo para o plugin não está em cache por padrão. Eles podem ser declarados para serem cacheados com o quarto parâmetro $cache_attrs. $cache_attrs é um array de nomes de atributos que devem ser cacheados, então a função de plugin pega o valor como isso sendo o tempo que a página foi escrita para o cache todo o tempo isso é buscado do cache. - - - - Prevenindo uma saída 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 número de segundos até que o endtime de $obj alcança alterações em cada display de página, mesmo que a página esteja em cache. Desde o atributo endtime esteja em cache o objeto somente tem que ser puxado do banco de dados quando a página está escrita para o cache mas não em requisições subsequentes da página. - - - - - - 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 página que você irá notar que ambas as datas diferem. Uma é "dinâmica" e uma é "estática". Você pode fazer qualquer coisa entre as tags {dynamic}...{/dynamic} e ter certeza que isso não irá ficar em cache como o restante da página. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/caching/caching-groups.xml b/trunk/docs/pt_BR/programmers/caching/caching-groups.xml deleted file mode 100644 index 96da13ad..00000000 --- a/trunk/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 separação 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 Técnicas - - O agrupamento de cache id NÃO use o path do template como alguma parte do cache_id. - Por exemplo, se você tem display('themes/blue/index.tpl'), você não pode limpar o cache - para tudo que estiver sob o diretório "themes/blue". Se você quiser fazer isso, você deve - agrupá-los no cache_id, como display('themes/blue/index.tpl','themes|blue'); Então - 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/trunk/docs/pt_BR/programmers/caching/caching-multiple-caches.xml b/trunk/docs/pt_BR/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index ea4561d8..00000000 --- a/trunk/docs/pt_BR/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Multiple Caches Per Page - - Você pode ter múltiplos arquivos de cache para uma simples chamada de display() - ou fetch(). Vamos dizer que uma chamada para display('index.tpl') deve ter vários - conteúdo de saída diferentes dependendo de alguma condição, e você quer separar - os caches para cada um. Você pode fazer isso passando um cache_id como um - segundo parâmetro para a chamada da função. - - - 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, nós estamos passando a variável $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 Técnicas - - Tenha muito cuidado quando passar valores do cliente (web brownser) dentro - da Smarty (ou alguma aplicação PHP.) Embora o exemplo acima usando o article_id - vindo de uma URL pareça fácil, isso poderia ter consequências ruins. O - cache_id é usado para criar um diretório no sistema de arquivos, então se o usuário - decidir passar um valor extremamente largo para article_id, ou escrever um script - que envia article_ids randômicos em um ritmo rápido, isso poderia possivelmente causar - problemas em nível de servidor. Tenha certeza de limpar algum dado passado antes de usar isso. Nessa instãncia, talvez você - saiba que o article_id tem um comprimento de 10 caracteres e isso é constituído somente - de alfa-numéricos, e deve ser um - article_id válido no database. Verifique isso! - - - - Tenha certeza de passar o mesmo cache_id como o segundo - parâmetro 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 parâmetro 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/trunk/docs/pt_BR/programmers/caching/caching-setting-up.xml b/trunk/docs/pt_BR/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 7069d3c4..00000000 --- a/trunk/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 configuração $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 função display('index.tpl') irá trazer - o template como usual, mas também - salva uma cópia disso para o arquivo de saída (uma cópia de cache) in the $cache_dir. - Na próxima chamada de display('index.tpl'), a cópia em cache será usada - ao invés de trazer novamente o template. - - - Notas Técnicas - - Os arquivos no $cache_dir são nomeados com similaridade ao nome do arquivo de template. - Embora eles terminem com a extensão ".php", eles não são realmente scripts executáveis de php. - Não edite estes arquivos! - - - - Cada página em cache tem um período de tempo limitado determinado por $cache_lifetime. O padrão do valor é - 3600 segundos, ou 1 hora. Após o tempo expirar, o cache é regerado. - É possível dar tempos individuais para caches com seu próprio tempo - de expiração pela configuração $caching = 2. Veja a documentação 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 configuração que está envolvido com o arquivo em cache - é checado por modificações. Se algum destes arquivos foi modificado desde que o último cache - foi gerado, o cache é imediatamente regerado. - Isso é ligeiramente uma forma de optimização 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 irão sempre ser regerados. Isso é efetivamente desativar caching. - $force_compile é usualmente para propósitos de debug somente, um caminho mais - eficiente de desativar caching é setar o $caching = false (ou 0.) - - - A função is_cached() - pode ser usada para testar se um template tem um cache válido ou não. - 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 página dinâmica com a função de template insert. - Vamos dizer que sua página inteira pode ter cache exceto para um banner que é - mostrado abaixo do lado direito da sua página. Usando uma função insert para o banner, - você pode deixar esse elemento dinâmico dentro do conteúdo de cache. Veja a documentação - em insert para - detalhes e exemplos. - - - Você pode limpar todos os arquivos de cache com a função clear_all_cache(), ou - arquivos de cache individuais (ou grupos) com a função 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/trunk/docs/pt_BR/programmers/plugins.xml b/trunk/docs/pt_BR/programmers/plugins.xml deleted file mode 100644 index 5380636b..00000000 --- a/trunk/docs/pt_BR/programmers/plugins.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - Extendendo a Smarty com Plugins - - A Versão 2.0 introduziu a arquitetura de plugin que é usada para quase todas as - funcionalidades customizáveis da Smarty. Isto inclui: - - funções - modificadores - funções de bloco - funções de compilador - prefiltros - posfiltros - filtros de saída - recursos - inserir - - Com a exceção de recursos, a compatibilidade com a forma antiga de funções de - manipulador de registro via register_* API é preservada. Se você não usou o API mas no lugar disso - modificou as variáveis de classe $custom_funcs, $custom_mods, e - outras diretamente, então 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/trunk/docs/pt_BR/programmers/plugins/plugins-block-functions.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index bf85bf17..00000000 --- a/trunk/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 - - - - Funções de Block são funções da forma: {func} .. {/func}. Em outras palavras, ele enclausura - um bloco de template e opera no conteúdo deste bloco. Funções de Block tem precedência sobre - funções customizadas com mesmo nome, - assim, você não pode ter ambas, função customizável {func} e - função de Bloco {func} .. {/func}. - - - Por definição a implementação de sua função é 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 função de bloco pode ter atributos. - Todos os atributos passados para as funções de - template estão 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 símbolo. Os atributos da tag de - abertura são também acessíveis a sua função - quando processando a tag de fechamento. - - - O valor da variável $content - depende de que se sua função é 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 conteúdo do bloco de template. - Note que o bloco de template já terá sido processado pela - Smarty, então tudo que você receberá é saída do template, não o template original. - - - - O parâmetro &$repeat é passado por - referência para a função de implementação - e fornece uma possibilidade para ele controlar quantas - vezes o bloco é mostrado. Por definição - $repeat é true na primeira chamada da block-function - (a tag de abertura do bloco) e false - em todas as chamadas subsequentes à função de bloco - (a tag de fechamento do bloco). Cada vez que a - implementação da função retorna com o &$repeat - sendo true, o conteúdo entre {func} .. {/func} é avaliado - e a implementação da função é chamada novamente com - o novo conteúdo do bloco no parâmetro $content. - - - - - Se você tem funções de bloco aninhadas, é possível - descobrir qual é a função de bloco pai acessando - a variável $smarty->_tag_stack. Apenas faça um var_dump() - nela e a estrutura estaria visível. - - - See also: - register_block(), - unregister_block(). - - - função 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/trunk/docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index 5556cd06..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - -Funções Compiladoras - - Funções compiladoras só são chamadas durante a compilação do template. - Elas são úteis para injeção de código PHP ou conteúdo estático time-sensitive - dentro do template. Se há ambos, uma função - compiladora e uma função customizável - registrada sob o mesmo nome, a função compiladora tem precedência. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - À função compiladora são passados dois parâmetros: - a tag string de argumento da tag - basicamente, tudo a partir - do nome da função até o delimitador de fechamento, e o objeto da Smarty. É suposto que retorna o código PHP - para ser injetado dentro do template compilado. - - - See also - register_compiler_function(), - unregister_compiler_function(). - - - função 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 função pode ser chamada em um template da seguinte forma: - - -{* esta função é executada somente no tempo de compilação *} -{tplheader} - - O código 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/trunk/docs/pt_BR/programmers/plugins/plugins-functions.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-functions.xml deleted file mode 100644 index ee1ecad8..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - -Funções de Template - - - void smarty_function_name - array $params - object &$smarty - - - - Todos os atributos passados para as funções de template a - partir do template estão 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 símbolo. - - - A saída (valor de retorno) da função será substituída no lugar da tag da função no template - (a função fetch, por exemplo). Alternativamente, a função pode simplesmente executar - alguma outra tarefa sem ter alguma saída - (a função assign). - - - Se a função precisa passar valores a algumas variáveis para o template ou utilizar alguma outra funcionalidade - fornecida com a Smarty, ela pode usar - o objeto $smarty fornecido para fazer isso. - - - Veja também: - register_function(), - unregister_function(). - - - - função de plugin com saída - -<?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: Nós sempre teremos tempo para viajar? -Resposta: {eightball}. - - - função de plugin sem saída - -<?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/trunk/docs/pt_BR/programmers/plugins/plugins-howto.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 50748324..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - Como os Plugins Funcionam - - Plugins são sempre lidos quando requisitados. Apenas os modificadores específicos, - funções, recursos, etc convocados em scripts de template serão lidos. Além disso, cada plugin - é lido apenas uma vez, mesmo se você tem várias instâncias diferentes da Smarty rodando na mesma - requisição. - - - Pre/posfiltros e filtros de saída são uma parte de um caso especial. Visto que eles não são mencionados - nos templates, eles devem ser registrados ou lidos explicitamente via funções de API antes do template - ser processado. - A ordem em que multiplos filtros do mesmo - tipo são executados dependem da ordem em que eles são registrados ou lidos. - - - O diretório 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 diretórios e a Smarty irá usá-lo automaticamente. - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/plugins/plugins-inserts.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 7f48e7c2..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - -Inserts - - Plugins Insert são usados para implementar funções que são invocadas por tags - insert - no template. - - - - string smarty_insert_name - array $params - object &$smarty - - - - O primeiro parâmetro para a função é 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 símbolo. - - - A função insert deve retornar o - resultado que será substituído 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/trunk/docs/pt_BR/programmers/plugins/plugins-modifiers.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 97bccee3..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - -Modifiers - - Modificadores são funções que são aplicadas a uma variável 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 parâmetro para o plugin midificador é o valor em que o modificador é suposto - operar. O resto dos parâmetros podem ser opcionais, - dependendo de qual tipo de operação é para - ser executada. - - - O modificador deve retornar o resultado de seu processamento. - - - Veja também: - register_modifier(), - unregister_modifier(). - - - Plugin modificador simples - - Este plugin basiamente é um alias de uma - função do PHP. Ele não tem nenhum parâmetro 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/trunk/docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index c5f14e36..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - Convenções de Aparência - - Arquivos e funções de Plugin devem seguir uma convenção de aparência muito específica - 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 válido (letras, - números, e underscores apenas). - - - Alguns exemplos: function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - As funções de plugin dentro dos arquivos do plugin devem ser nomeadas da seguinte forma: -
    - - smarty_tipo_nome - -
    -
    - - O significado de tipo e - nome são os mesmos de antes. - - - A Smarty mostrará mensagens de erro apropriadas se o arquivo de plugins que é necessário não é encontrado, - ou se o arquivo ou a função de plugin - estão nomeadas inadequadamente. - -
    - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 769538a8..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - -Filtros de saída - - Filtros de saída operam na saída do template, depois que o template é lido e executado, mas - antes a saída é mostrada. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - O primeiro parâmetro para a função do filtro de saída é a saída do template que precisa ser processada, e - o segundo parâmetro é a instância 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/trunk/docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 673b4c90..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - Prefiltros/Posfiltros - - Plugins Prefilter e postfilter são muito similares - em conceito; onde eles diferem é na execução -- mais - precisamente no tempo de suas execuções. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Prefilters são usados para processar o fonte do template - imediatamente antes da compilação. O primeiro parâmetro da - função de prefilter é o fonte do template, possivelmente modificado por alguns outros prefilters. O Plugin - é suposto retornar o fonte modificado. Note que este fonte não é salvo em lugar nenhum, ele só é usado para - a compilação. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Postfilters são usados para processar a saída compilada do template (o código PHP) imediatamente após - a compilação ser feita e antes do template compilado ser - salvo no sistema de arquivo. O primeiro parâmetro - para a função postfilter é o código do template compilado, - possivelmente modificado por outros postfilters. - O plugin é suposto retornar a versão modificada deste código. - - - 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/trunk/docs/pt_BR/programmers/plugins/plugins-resources.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 2ac6bc4f..00000000 --- a/trunk/docs/pt_BR/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - -Recursos (Resources) - - Os plugins de Recursos são como uma forma genérica de fornecer códigos fontes de template - ou componentes de script PHP para a Smarty. Alguns exemplos de recursos: - banco de dados, LDAP, memória compartilhada, sockets, e assim por diante. - - - - Há um total de 4 funções que precisam estar registradas - para cada tipo de recurso. Cada função receberá - o recurso requisitado como o primeiro parâmetro e o objeto da Smarty como o último parâmetro. O resto - dos parâmetros dependem da função. - - - - - 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 função deve devolver o recurso. Seu segundo parâmetro é uma variável passada por - referência onde o resultado seria armazenado. - A função deve retornar true se - ela está apta a devolver com sucesso o recurso e - caso contrário retorna false. - - - - A segunda função deve devolver a última modificação do - recurso requisitado (como um timestamp Unix). - O segundo parâmetro é uma variável passada por referência onde o timestamp seria armazenado. - A função deve retornar true - se o timestamp poderia ser determinado com sucesso, - e caso contrário retornaria false. - - - - A terceira função deve retornar true ou - false, dependendo do recurso requisitado - está seguro ou não. Esta função é usada - apenas para recursos de template mas ainda assim seria definida. - - - - A quarta função deve retornar true - ou false, dependendo - do recurso requisitado ser confiável ou não. - Esta função é 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 também: - 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 são seguros - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // não usado para templates -} -?> - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/plugins/plugins-writing.xml b/trunk/docs/pt_BR/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 586e2f34..00000000 --- a/trunk/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 execução via uma das funções - de API register_* . Eles podem também ser - com o uso da função API unregister_* . - - - Para os plugins que são registrados no tempo de execução, o nome da(s) função(ões) de plugin - não têm que seguir a convenção de aparência. - - - Se um plugin depende de alguma funcionalidade fornecida por um outro plugin (como é o caso com alguns - plugins embutidos com a Smarty), - então a forma apropriada para ler o plugin necessário é 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 parâmetro - (com duas exceções: modificadores não passam o objeto da Smarty em tudo e blocks passam - &$repeat depois do objeto da Smarty - para manter compatibilidade a antigas - versões da Smarty). - - - \ No newline at end of file diff --git a/trunk/docs/pt_BR/programmers/smarty-constants.xml b/trunk/docs/pt_BR/programmers/smarty-constants.xml deleted file mode 100644 index ccb4560a..00000000 --- a/trunk/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 localização dos arquivos de classe da Smarty. - Se isso não for definido, então 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/trunk/docs/pt_BR/translation.xml b/trunk/docs/pt_BR/translation.xml deleted file mode 100644 index e143848a..00000000 --- a/trunk/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/trunk/docs/ru/appendixes/bugs.xml b/trunk/docs/ru/appendixes/bugs.xml deleted file mode 100644 index 85ccd07d..00000000 --- a/trunk/docs/ru/appendixes/bugs.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Ошибки - - Смотрите файл BUGS, который поÑтавлÑетÑÑ Ð²Ð¼ÐµÑте Ñ - Ñтандартной поÑтавкой Smarty или ищите ÑпиÑок на Ñайте. - - - diff --git a/trunk/docs/ru/appendixes/resources.xml b/trunk/docs/ru/appendixes/resources.xml deleted file mode 100644 index 1e9d425e..00000000 --- a/trunk/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/trunk/docs/ru/appendixes/tips.xml b/trunk/docs/ru/appendixes/tips.xml deleted file mode 100644 index 6346b71e..00000000 --- a/trunk/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/trunk/docs/ru/appendixes/troubleshooting.xml b/trunk/docs/ru/appendixes/troubleshooting.xml deleted file mode 100644 index c93dda70..00000000 --- a/trunk/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/trunk/docs/ru/bookinfo.xml b/trunk/docs/ru/bookinfo.xml deleted file mode 100755 index 540d4343..00000000 --- a/trunk/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/trunk/docs/ru/designers/chapter-debugging-console.xml b/trunk/docs/ru/designers/chapter-debugging-console.xml deleted file mode 100644 index e573b5ae..00000000 --- a/trunk/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/trunk/docs/ru/designers/config-files.xml b/trunk/docs/ru/designers/config-files.xml deleted file mode 100644 index 09154918..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-basic-syntax.xml b/trunk/docs/ru/designers/language-basic-syntax.xml deleted file mode 100644 index b3b2c248..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-basic-syntax/language-escaping.xml b/trunk/docs/ru/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 5819c882..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-basic-syntax/language-math.xml b/trunk/docs/ru/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 15d3f0a8..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-basic-syntax/language-syntax-attributes.xml b/trunk/docs/ru/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 6fb94f83..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-basic-syntax/language-syntax-comments.xml b/trunk/docs/ru/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 0a828766..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-basic-syntax/language-syntax-functions.xml b/trunk/docs/ru/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index d3159ae7..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-basic-syntax/language-syntax-quotes.xml b/trunk/docs/ru/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 21af5047..00000000 --- a/trunk/docs/ru/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - Внедренные переменные в двойных кавычках - - - - - Smarty раÑпознает - приÑвоенные - переменные, - еÑли они вÑтречаютÑÑ Ð² Ñтроках, заключенных в "двойные кавычки", - еÑли имена переменных ÑоÑтоÑÑ‚ из цифр, букв, знака под_Ñ‡Ñ‘Ñ€ÐºÐ¸Ð²Ð°Ð½Ð¸Ñ Ð¸ - квадратных Ñкобок[]. - См. также Переменные. - - - - - - Ð’ Ñлучае, еÑли Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ñодержит другие Ñимволы, например - точки, ÑÑылки на объекты и Ñ‚.д., переменную необходимо заключить - в `обратные кавычки`. - Ð’ данном Ñлучае вы не можете иÑпользовать - модификаторы, - их Ñледует применÑть вне кавычек. - - - - - - Ð’Ñ‹ не можете иÑпользовать - модификаторы - подобным образом - они вÑегда должны применÑтьÑÑ Ð·Ð° пределами кавычек. - - - - - - Примеры ÑинтакÑиÑа - - - - - - - ПрактичеÑкие примеры - - - - - - - См. также - escape. - - - diff --git a/trunk/docs/ru/designers/language-basic-syntax/language-syntax-variables.xml b/trunk/docs/ru/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index adbe62a8..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions.xml b/trunk/docs/ru/designers/language-builtin-functions.xml deleted file mode 100644 index 0740f221..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-capture.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 53768d04..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-config-load.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 56e84c8a..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-foreach.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 481b2f63..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-if.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index dcbf598f..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-include-php.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 329fc5c2..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-include.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index cd79ecec..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-insert.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 5a98378c..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-ldelim.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 22e8ff2a..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-literal.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 5c0a6a96..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-php.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 874bdaa5..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-section.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 0a0ff5cf..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-builtin-functions/language-function-strip.xml b/trunk/docs/ru/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 66a60042..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-combining-modifiers.xml b/trunk/docs/ru/designers/language-combining-modifiers.xml deleted file mode 100644 index be3b7621..00000000 --- a/trunk/docs/ru/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - Комбинирование модификаторов - - Можно применÑть любое количеÑтво модификаторов к переменной. Они будут - применÑтьÑÑ Ð² порÑдке их ÑƒÐ¿Ð¾Ð¼Ð¸Ð½Ð°Ð½Ð¸Ñ Ñлева направо. Модификаторы должны - быть разделены Ñимволом | (Ð²ÐµÑ€Ñ‚Ð¸ÐºÐ°Ð»ÑŒÐ½Ð°Ñ Ñ‡ÐµÑ€Ñ‚Ð°). - - - Комбинирование модификаторов - -assign('articleTitle', 'ÐšÐ°Ð¿Ð»Ñ Ð½Ð¸ÐºÐ¾Ñ‚Ð¸Ð½Ð° убивает лошадь, хомÑчка разрывает на куÑки.'); - -?> -]]> - - - Содержимое шаблона: - - - - - - Результат Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ примера: - - - - - - - diff --git a/trunk/docs/ru/designers/language-custom-functions.xml b/trunk/docs/ru/designers/language-custom-functions.xml deleted file mode 100644 index 3df1235b..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-assign.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 1b3b1fa0..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-counter.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index be8bfe96..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-cycle.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index cecd32f0..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-debug.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 2ebd51b7..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-eval.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 03481703..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-fetch.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 7d526708..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index e9d83db5..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-html-image.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 6dfb2402..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-html-options.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 3e9ff4e2..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-html-radios.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index c7ae3034..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-html-select-date.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index b3305f89..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-html-select-time.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 85163405..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-html-table.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 79f6a232..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-mailto.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index bbd9e127..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-math.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index e262b349..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-popup-init.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index eb90063a..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-popup.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index 76471545..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-custom-functions/language-function-textformat.xml b/trunk/docs/ru/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 61d8cc59..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers.xml b/trunk/docs/ru/designers/language-modifiers.xml deleted file mode 100644 index 6e2290d2..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-capitalize.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 9509066b..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-cat.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index e3a0050f..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-count-characters.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index fa2b27b3..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-count-paragraphs.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index 4329aac5..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-count-sentences.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index c47f68ce..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-count-words.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index a9d3a3a6..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-date-format.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 098c32aa..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-default.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 5a175656..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-escape.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 3f1d8af4..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-indent.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 81aadb6c..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-lower.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index efb68035..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-nl2br.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 13fddef9..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-regex-replace.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index 99c50d65..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-replace.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 540e9cc4..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-spacify.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index d8d4ce8d..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-string-format.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 7afe9e81..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-strip-tags.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 730b9ad1..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-strip.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 52d6170c..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-truncate.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index e9d6dfaf..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-upper.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 9fd29a39..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-modifiers/language-modifier-wordwrap.xml b/trunk/docs/ru/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index e7ad15f5..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-variables.xml b/trunk/docs/ru/designers/language-variables.xml deleted file mode 100644 index d92c017d..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-variables/language-assigned-variables.xml b/trunk/docs/ru/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 54511004..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-variables/language-config-variables.xml b/trunk/docs/ru/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 9e11acf2..00000000 --- a/trunk/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/trunk/docs/ru/designers/language-variables/language-variables-smarty.xml b/trunk/docs/ru/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 24d32663..00000000 --- a/trunk/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/trunk/docs/ru/getting-started.xml b/trunk/docs/ru/getting-started.xml deleted file mode 100644 index 74e00480..00000000 --- a/trunk/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/trunk/docs/ru/language-defs.ent b/trunk/docs/ru/language-defs.ent deleted file mode 100644 index 61d624ad..00000000 --- a/trunk/docs/ru/language-defs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/trunk/docs/ru/language-snippets.ent b/trunk/docs/ru/language-snippets.ent deleted file mode 100644 index 85ec1e5c..00000000 --- a/trunk/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/trunk/docs/ru/livedocs.ent b/trunk/docs/ru/livedocs.ent deleted file mode 100644 index eca78c7b..00000000 --- a/trunk/docs/ru/livedocs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - -'> -'> - - diff --git a/trunk/docs/ru/make_chm_index.html b/trunk/docs/ru/make_chm_index.html deleted file mode 100644 index cc6395ba..00000000 --- a/trunk/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/trunk/docs/ru/preface.xml b/trunk/docs/ru/preface.xml deleted file mode 100644 index 56797111..00000000 --- a/trunk/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/trunk/docs/ru/programmers/advanced-features.xml b/trunk/docs/ru/programmers/advanced-features.xml deleted file mode 100644 index c4890edb..00000000 --- a/trunk/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/trunk/docs/ru/programmers/advanced-features/advanced-features-objects.xml b/trunk/docs/ru/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index b14bf734..00000000 --- a/trunk/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/trunk/docs/ru/programmers/advanced-features/advanced-features-outputfilters.xml b/trunk/docs/ru/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 106e3303..00000000 --- a/trunk/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/trunk/docs/ru/programmers/advanced-features/advanced-features-postfilters.xml b/trunk/docs/ru/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index fbba6127..00000000 --- a/trunk/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/trunk/docs/ru/programmers/advanced-features/advanced-features-prefilters.xml b/trunk/docs/ru/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 14293dd6..00000000 --- a/trunk/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/trunk/docs/ru/programmers/advanced-features/section-template-cache-handler-func.xml b/trunk/docs/ru/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index d72f7dc3..00000000 --- a/trunk/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/trunk/docs/ru/programmers/advanced-features/template-resources.xml b/trunk/docs/ru/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 07a482bb..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions.xml b/trunk/docs/ru/programmers/api-functions.xml deleted file mode 100644 index 9484720c..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-append-by-ref.xml b/trunk/docs/ru/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index e18154d2..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-append.xml b/trunk/docs/ru/programmers/api-functions/api-append.xml deleted file mode 100644 index a9f17e53..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-assign-by-ref.xml b/trunk/docs/ru/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 1eec7b51..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-assign.xml b/trunk/docs/ru/programmers/api-functions/api-assign.xml deleted file mode 100644 index 9bf91dde..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-clear-all-assign.xml b/trunk/docs/ru/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index bcc30e90..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-clear-all-cache.xml b/trunk/docs/ru/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 5cd285a4..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-clear-assign.xml b/trunk/docs/ru/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index 7119a880..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-clear-cache.xml b/trunk/docs/ru/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 5b68e894..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-clear-compiled-tpl.xml b/trunk/docs/ru/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index e961d518..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-clear-config.xml b/trunk/docs/ru/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 20bde371..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-config-load.xml b/trunk/docs/ru/programmers/api-functions/api-config-load.xml deleted file mode 100644 index aca0743c..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-display.xml b/trunk/docs/ru/programmers/api-functions/api-display.xml deleted file mode 100644 index e7128b90..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-fetch.xml b/trunk/docs/ru/programmers/api-functions/api-fetch.xml deleted file mode 100644 index 88bedce9..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-get-config-vars.xml b/trunk/docs/ru/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index a2374f9b..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-get-registered-object.xml b/trunk/docs/ru/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 1eb1a07f..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-get-template-vars.xml b/trunk/docs/ru/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 0ff4adf9..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-is-cached.xml b/trunk/docs/ru/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 6be3096c..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-load-filter.xml b/trunk/docs/ru/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index be105192..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-block.xml b/trunk/docs/ru/programmers/api-functions/api-register-block.xml deleted file mode 100644 index 06b4f073..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-compiler-function.xml b/trunk/docs/ru/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 4375a1f1..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-function.xml b/trunk/docs/ru/programmers/api-functions/api-register-function.xml deleted file mode 100644 index f651be5c..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-modifier.xml b/trunk/docs/ru/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index 6963cb39..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-object.xml b/trunk/docs/ru/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 370bbd95..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-outputfilter.xml b/trunk/docs/ru/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 7c26b5b3..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-postfilter.xml b/trunk/docs/ru/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 2cef10e5..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-prefilter.xml b/trunk/docs/ru/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 35a2ae1b..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-register-resource.xml b/trunk/docs/ru/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index dbb9672b..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-template-exists.xml b/trunk/docs/ru/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 1d5ad2cf..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-trigger-error.xml b/trunk/docs/ru/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 60893deb..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-block.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index ba712119..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-compiler-function.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 80269db3..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-function.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 039c9a20..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-modifier.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 49ef9a8b..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-object.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 207f7ef4..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-outputfilter.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 0489d83f..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-postfilter.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 4ee1fdeb..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-prefilter.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 5dcd8187..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-functions/api-unregister-resource.xml b/trunk/docs/ru/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 7c637db2..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables.xml b/trunk/docs/ru/programmers/api-variables.xml deleted file mode 100644 index db32eea7..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-autoload-filters.xml b/trunk/docs/ru/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 0a75879e..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-cache-dir.xml b/trunk/docs/ru/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index d5e3adfe..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - $cache_dir - - Ð˜Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°, в котором хранитÑÑ ÐºÑш шаблонов. По умолчанию - уÑтановлено в "./cache". Это означает, что поиÑк каталога Ñ ÐºÑшем - будет производитьÑÑ Ð² том же каталоге, в котором выполнÑетÑÑ - Ñкрипт. Ð’Ñ‹ также можете иÑпользовать ÑобÑтвенную функцию-обработчик - Ð´Ð»Ñ ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ кÑша, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð±ÑƒÐ´ÐµÑ‚ игнорировать Ñтот параметр. - - - ТехничеÑкое замечание - - При уÑтановке Ñтого параметра можно иÑпользовать как отноÑительные, - так и абÑолютные пути. Ð”Ð»Ñ Ñоздаваемых файлов include_path не иÑпользуетÑÑ. - - - - ТехничеÑкое замечание - - Ðе рекомендуетÑÑ Ð¿Ð¾Ð¼ÐµÑ‰Ð°Ñ‚ÑŒ Ñтот каталог внутри корневого каталога документов - веб-Ñервера. - - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-cache-handler-func.xml b/trunk/docs/ru/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 51745a3d..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $cache_handler_func - - Ð’Ñ‹ можете добавить ÑобÑтвенную функцию Ð´Ð»Ñ ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ кÑша - вмеÑто вызовов вÑтроенного метода, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ $cache_dir. - За дополнительной информацией обратитеÑÑŒ к разделу - Управление - кÑшированием. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-cache-lifetime.xml b/trunk/docs/ru/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index b6058db8..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-cache-modified-check.xml b/trunk/docs/ru/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index abab974b..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-caching.xml b/trunk/docs/ru/programmers/api-variables/variable-caching.xml deleted file mode 100644 index c82d6ebe..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-compile-check.xml b/trunk/docs/ru/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 92c3de3e..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-compile-dir.xml b/trunk/docs/ru/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index af583165..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $compile_dir - - Ð˜Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°, в котором хранÑÑ‚ÑÑ ÐºÐ¾Ð¼Ð¿Ð¸Ð»Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ñ‹Ðµ шаблоны. По - умолчанию уÑтановлено в "./templates_c", Ñ‚.е. поиÑк каталога Ñ - компилированными шаблонами будет производитьÑÑ Ð² том же каталоге, - в котором выполнÑетÑÑ Ñкрипт. - - - ТехничеÑкое замечание - - При уÑтановке Ñтого параметра можно иÑпользовать как отноÑительные, - так и абÑолютные пути. Ð”Ð»Ñ Ñоздаваемых файлов include_path не иÑпользуетÑÑ. - - - - ТехничеÑкое замечание - - Ðе рекомендуетÑÑ Ð¿Ð¾Ð¼ÐµÑ‰Ð°Ñ‚ÑŒ Ñтот каталог внутри корневого каталога документов - веб-Ñервера. - - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-compile-id.xml b/trunk/docs/ru/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index c1778b5d..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-compiler-class.xml b/trunk/docs/ru/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index c60512cd..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $compiler_class - - Задает Ð¸Ð¼Ñ ÐºÐ»Ð°ÑÑа-компилÑтора, который Smarty будет иÑпользовать - Ð´Ð»Ñ ÐºÐ¾Ð¼Ð¿Ð¸Ð»Ñции шаблонов. По умолчанию Ñто 'Smarty_Compiler'. Только - Ð´Ð»Ñ Ð¿Ñ€Ð¾Ð´Ð²Ð¸Ð½ÑƒÑ‚Ñ‹Ñ… пользователей. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-config-booleanize.xml b/trunk/docs/ru/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index 1b3b4f41..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-config-dir.xml b/trunk/docs/ru/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 8dc38865..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - $config_dir - - Каталог Ð´Ð»Ñ Ñ…Ñ€Ð°Ð½ÐµÐ½Ð¸Ñ ÐºÐ¾Ð½Ñ„Ð¸Ð³ÑƒÑ€Ð°Ñ†Ð¸Ð¾Ð½Ð½Ñ‹Ñ… файлов, иÑпользуемых - в шаблонах. По умолчанию уÑтановлено в "./configs", Ñ‚.е. поиÑк - каталога Ñ ÐºÐ¾Ð½Ñ„Ð¸Ð³ÑƒÑ€Ð°Ñ†Ð¸Ð¾Ð½Ð½Ñ‹Ð¼Ð¸ файлами будет производитьÑÑ Ð² том - же каталоге, в котором выполнÑетÑÑ Ñкрипт. - - - ТехничеÑкое замечание - - Ðе рекомендуетÑÑ Ð¿Ð¾Ð¼ÐµÑ‰Ð°Ñ‚ÑŒ Ñтот каталог внутри корневого каталога документов - веб-Ñервера. - - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml b/trunk/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index cd4a688d..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-config-overwrite.xml b/trunk/docs/ru/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index bc8f6e40..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $config_overwrite - - ЕÑли уÑтановлено в true, переменные, полученные из конфигурационных файлов, - будут перекрывать вÑе оÑтальные. Ð’ лбом Ñлучае, перемнные будут помещены в - маÑÑив. Это удобно, когда вы хотите хранить маÑÑив данных в конфигурационном - файле - проÑто задавайте каждый Ñлемент много раз. По умолчанию true. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-config-read-hidden.xml b/trunk/docs/ru/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index cba1ef6f..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-debug-tpl.xml b/trunk/docs/ru/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 61c3cb46..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml b/trunk/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index 4737c199..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-debugging.xml b/trunk/docs/ru/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index c18cde78..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $debugging - - Ðктивирует debugging - console - порожденное при помощи javascript окно браузера, - Ñодержащее информацию о подключенных шаблонах и загруженных - переменных Ð´Ð»Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ¹ Ñтраницы. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-default-modifiers.xml b/trunk/docs/ru/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index 36d824fe..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-default-resource-type.xml b/trunk/docs/ru/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 387687b5..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml b/trunk/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index d4d049ce..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $default_template_handler_func - - ФункциÑ, Ð²Ñ‹Ð·Ñ‹Ð²Ð°ÐµÐ¼Ð°Ñ Ð² Ñлучае, еÑли шаблон не был получен из - Ñвоего иÑточника. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-error-reporting.xml b/trunk/docs/ru/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index 70254ccd..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - $error_reporting - - ЕÑли Ñто ÑвойÑтво имеет ненулевое значние, то оно иÑпользуетÑÑ - в качеÑтве Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ error_reporting внутри - display() и - fetch(). - При включенном режиме отладки Ñто значение - игнорируетÑÑ Ð¸ уровень обработки ошибок не менÑетÑÑ. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-force-compile.xml b/trunk/docs/ru/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 844d0a6d..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $force_compile - - Указывает Smarty (пере)компилировать шаблоны при каждом вызове. - Этот параметр перекрывает дейÑтвие $compile_check и по умолчанию - не активирован. ДейÑтвие параметра удобно иÑпользовать в процеÑÑе - разработки и отладки, однако никогда не иÑпользуйте его в уÑловиÑÑ… - реальной ÑкÑплуатации: еÑли кÑширование активировано, файл(Ñ‹) кÑша - будут каждый раз перезапиÑыватьÑÑ. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-left-delimiter.xml b/trunk/docs/ru/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 7b85a1f9..00000000 --- a/trunk/docs/ru/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $left_delimiter - - Левый разделитель, иÑпользуемый в Ñзыке шаблонов. - По умолчанию равно "{". - - - См. также - $right_delimiter. - - - diff --git a/trunk/docs/ru/programmers/api-variables/variable-php-handling.xml b/trunk/docs/ru/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 24378c3e..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-plugins-dir.xml b/trunk/docs/ru/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index ac36d580..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-request-use-auto-globals.xml b/trunk/docs/ru/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 12f1a6c7..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-request-vars-order.xml b/trunk/docs/ru/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 8e7103cf..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-right-delimiter.xml b/trunk/docs/ru/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 2b737036..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-secure-dir.xml b/trunk/docs/ru/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 289fdddf..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-security-settings.xml b/trunk/docs/ru/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index c984a40f..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-security.xml b/trunk/docs/ru/programmers/api-variables/variable-security.xml deleted file mode 100644 index 8b2da3b5..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-template-dir.xml b/trunk/docs/ru/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 7b9899e1..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-trusted-dir.xml b/trunk/docs/ru/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 5882aa5f..00000000 --- a/trunk/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/trunk/docs/ru/programmers/api-variables/variable-use-sub-dirs.xml b/trunk/docs/ru/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 5a0c0b32..00000000 --- a/trunk/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/trunk/docs/ru/programmers/caching.xml b/trunk/docs/ru/programmers/caching.xml deleted file mode 100644 index 7ac589ed..00000000 --- a/trunk/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/trunk/docs/ru/programmers/caching/caching-cacheable.xml b/trunk/docs/ru/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 2479671e..00000000 --- a/trunk/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/trunk/docs/ru/programmers/caching/caching-groups.xml b/trunk/docs/ru/programmers/caching/caching-groups.xml deleted file mode 100644 index 1b06d475..00000000 --- a/trunk/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/trunk/docs/ru/programmers/caching/caching-multiple-caches.xml b/trunk/docs/ru/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index e71d7f37..00000000 --- a/trunk/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/trunk/docs/ru/programmers/caching/caching-setting-up.xml b/trunk/docs/ru/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 5be82b89..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins.xml b/trunk/docs/ru/programmers/plugins.xml deleted file mode 100644 index b28bf116..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-block-functions.xml b/trunk/docs/ru/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index c5770693..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-compiler-functions.xml b/trunk/docs/ru/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index e49a6536..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-functions.xml b/trunk/docs/ru/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 3006eb78..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-howto.xml b/trunk/docs/ru/programmers/plugins/plugins-howto.xml deleted file mode 100644 index ec206f97..00000000 --- a/trunk/docs/ru/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - Как работают плагины - - Плагины загружаютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ по необходимоÑти. Только те модификаторы, - функции, реÑурÑÑ‹ и Ñ‚.д., которые иÑпользуютÑÑ Ð² шаблоне, будут - загружены. К тому же, каждый плагин загружаетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ один раз, - даже еÑли у Ð²Ð°Ñ ÐµÑть неÑколько ÑкземплÑров Smarty, работающих - в пределах одного запроÑа. - - - Пре/поÑтфильтры и фильтры вывода заÑлуживают отдельного упоминаниÑ. - Так как они не упоминаютÑÑ Ð² шаблонах, они должны быть зарегиÑтрированы - и загружены неÑвно через API-функции ещё до обработки шаблона. - ПорÑдок Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð½ÐµÑкольких фильтров одного типа завиÑит от - порÑдка, в котором они региÑтрировалиÑÑŒ или загружалиÑÑŒ. - - - Ð”Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð¿Ð»Ð°Ð³Ð¸Ð½Ð¾Ð² - может быть Ñтрокой, Ñодержащей путь, или маÑÑивом, Ñодержащим - множеÑтво путей. Чтобы уÑтановить плагин, проÑто помеÑтите его - в одну из Ñтих директорий и Smarty автоматичеÑки будет его иÑпользовать. - - - - diff --git a/trunk/docs/ru/programmers/plugins/plugins-inserts.xml b/trunk/docs/ru/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index b2258d0b..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-modifiers.xml b/trunk/docs/ru/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 72308f04..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-naming-conventions.xml b/trunk/docs/ru/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index b7d49078..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-outputfilters.xml b/trunk/docs/ru/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 542c61c3..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-prefilters-postfilters.xml b/trunk/docs/ru/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 0ec4f359..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-resources.xml b/trunk/docs/ru/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 054a4b78..00000000 --- a/trunk/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/trunk/docs/ru/programmers/plugins/plugins-writing.xml b/trunk/docs/ru/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 4ee8c898..00000000 --- a/trunk/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/trunk/docs/ru/programmers/smarty-constants.xml b/trunk/docs/ru/programmers/smarty-constants.xml deleted file mode 100644 index 739e36b3..00000000 --- a/trunk/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/trunk/docs/scripts/.cvsignore b/trunk/docs/scripts/.cvsignore deleted file mode 100755 index 8c9f575e..00000000 --- a/trunk/docs/scripts/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -file-entities.php diff --git a/trunk/docs/scripts/file-entities.php.in b/trunk/docs/scripts/file-entities.php.in deleted file mode 100644 index 193701b4..00000000 --- a/trunk/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/trunk/docs/scripts/generate_web.php b/trunk/docs/scripts/generate_web.php deleted file mode 100755 index 49edfb3e..00000000 --- a/trunk/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/trunk/docs/scripts/html_syntax.php b/trunk/docs/scripts/html_syntax.php deleted file mode 100755 index ccfe1b66..00000000 --- a/trunk/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/trunk/docs/scripts/revcheck.php b/trunk/docs/scripts/revcheck.php deleted file mode 100755 index 2e1ed038..00000000 --- a/trunk/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 Schöfbeck - 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/trunk/docs/xsl/common.xsl b/trunk/docs/xsl/common.xsl deleted file mode 100644 index 184030c1..00000000 --- a/trunk/docs/xsl/common.xsl +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (void) - - - - - - - - - - - - - - ( - - [ - - - - - - - - [, - - - , - - - - - - - ] - - - - ] - - ) - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/BUGS b/trunk/docs/xsl/docbook/BUGS deleted file mode 100755 index 5723ffd3..00000000 --- a/trunk/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/trunk/docs/xsl/docbook/PHPDOC-NOTE b/trunk/docs/xsl/docbook/PHPDOC-NOTE deleted file mode 100755 index 699ccb41..00000000 --- a/trunk/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/trunk/docs/xsl/docbook/README b/trunk/docs/xsl/docbook/README deleted file mode 100755 index a7190b38..00000000 --- a/trunk/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/trunk/docs/xsl/docbook/VERSION b/trunk/docs/xsl/docbook/VERSION deleted file mode 100755 index d0ad7437..00000000 --- a/trunk/docs/xsl/docbook/VERSION +++ /dev/null @@ -1,6 +0,0 @@ - - -1.60.1 - - diff --git a/trunk/docs/xsl/docbook/common/ChangeLog b/trunk/docs/xsl/docbook/common/ChangeLog deleted file mode 100755 index d9bb6cb2..00000000 --- a/trunk/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'
      'type' attribute) - to 'circle', which is supported. - Both are already supported in FO stylesheet. - -2002-07-06 Norman Walsh - - * targets.xsl: The default.encoding parameter has been renamed chunker.output.encoding - -2002-07-05 Robert Stayton - - * labels.xsl, titles.xsl: Added 'verbose' parameter to default templates in - title.markup mode and label.markup mode, and made - the error message conditional on that parameter. The - default value is 1, so the message will still be - there for normal usage. But the targets.xsl - stylesheet sets verbose to 0 when trolling for - cross reference targets to eliminate useless noise - on elements that have an id attribute but no title or label. - - * targetdatabase.dtd: New file. - - * targets.xsl: New file. - -2002-06-11 Norman Walsh - - * common.xsl: Augmented debugging message (commented out) - - * gentext.xsl: Experimental support for xrefstyle; support for %d in templates - - * l10n.xsl: Experimental support for xrefstyle - - * titles.xsl: Support refsynopsisdiv in title.markup mode - -2002-05-23 Norman Walsh - - * common.xsl: Support for SVG in HTML - -2002-05-21 Norman Walsh - - * gentext.xsl: Whitespace - - * labels.xsl: Don't generate '. ' after QandA labels - -2002-05-12 Norman Walsh - - * common.xsl: Fix bugs in extension checking in mediaobject.filename - - * l10n.xsl: Reworked test in gentext.template; should have no user-visible changes - - * table.xsl: Removed some obsolete templates; reworked inheritance for improved border support (still implements old DocBook semantics which aren't quite CALS) - - * titles.xsl: Improved error message - -2002-04-21 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Add support for Hebrew localization - -2002-03-24 Norman Walsh - - * common.xsl: Change comment: personname is no longer experimental - -2002-03-18 Norman Walsh - - * common.xsl: Replace generate.*.toc and generate.*.lot with single generate.toc parameter. - -2002-03-18 Robert Stayton - - * gentext.xsl: Replaced the substitute-markup template with one - using simpler logic. Added params for the content - to be substituted so it can be used with olinks - where the content is supplied from a data file. - -2002-03-14 Norman Walsh - - * common.xsl: Handle revisionflag a little better on copyrights - - * common.xsl, gentext.xsl, l10n.xsl, labels.xsl, subtitles.xsl, table.xsl, titles.xsl: - Whitespace only: change CR/LF back to LF. Norm was a total moron. - - * common.xsl, gentext.xsl, l10n.xsl, labels.xsl, subtitles.xsl, table.xsl, titles.xsl: - Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr. - -2002-03-07 Robert Stayton - - * titles.xsl: refentry title in title.markup mode now follows $allow-anchors setting - to prevent index entries from appearing in the TOC. - -2002-01-28 Norman Walsh - - * l10n.dtd, l10n.xml: Tweaks to the l10n.dtd to make it as namespace aware as DTDs can be - -2002-01-25 Norman Walsh - - * table.xsl: Fix bug that caused rowsep and colsep to be ignored on empty cells - -2002-01-10 Norman Walsh - - * l10n.xsl: Don't rely on the order of attribute nodes cause they don't have one - -2002-01-03 Norman Walsh - - * .cvsignore, Makefile: Added Thai localization - - * common.xsl: Calculate itemized list symbol based on depth analagous to orderedlist numeration - - * gentext.xsl: Use unnumbered gentext keys appropriately - -2001-12-15 Jirka Kosek - - * common.xsl: Improved support for TeX math inside equations. - -2001-12-04 Norman Walsh - - * labels.xsl: Bug #435320: Poor enumeration of LoTs and LoFs - - * titles.xsl: Bug! Can't put HTML here. But what does this break? - -2001-12-02 Norman Walsh - - * titles.xsl: Make no.anchor.mode 'sticky'. This is really necessary because otherwise title inlines effectively turn it off - -2001-12-01 Norman Walsh - - * labels.xsl: Improve FAQ labeling - -2001-11-29 Robert Stayton - - * l10n.xsl: Fixed error message for missing localization so that if - missing in en.xml, it doesn't say 'using en'. - -2001-11-28 Norman Walsh - - * common.xsl: Added punct.honorific parameter - - * l10n.xsl: Removed crufty gentext.xref.text template - -2001-11-15 Norman Walsh - - * common.xsl: Support experimental personname wrapper - -2001-11-14 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Added Basque - -2001-11-12 Norman Walsh - - * common.xsl: Support well-formed documents, use key() instead of id() - -2001-11-09 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Added Nynorsk - -2001-11-06 Norman Walsh - - * labels.xsl: Why did I assume sections should always be labelled in articles? - -2001-11-02 Norman Walsh - - * common.xsl: Support FAMILY Given style personal names - -2001-10-30 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Added Xhosa - -2001-10-16 Norman Walsh - - * table.xsl: Table support improvements - -2001-10-15 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Added Ukranian - - * table.xsl: Fix calculation of rowsep and colsep; added experimental support for table.borders.with.css in HTML; calculation of alignments needs to be added along the same lines - -2001-10-14 Norman Walsh - - * table.xsl: New file. - -2001-09-25 Norman Walsh - - * common.xsl: Support automatic collation of year ranges in copyright - - * l10n.xsl: Fix gentext.nav.* templates - -2001-09-22 Norman Walsh - - * gentext.xsl: Rewrote substitute-markup to support %p - - * gentext.xsl, labels.xsl: Bug #463033: allow xref to list items (in orderedlists) and varlistentrys - - * titles.xsl: Support title.markup for legal notices - -2001-08-29 Norman Walsh - - * common.xsl: Fix orderedlist numerations - -2001-08-14 Norman Walsh - - * l10n.xsl: Calculation of the dingbat nodeset was simply broken - -2001-08-13 Norman Walsh - - * Makefile: Added stylesheet as a dependency - -2001-08-04 Norman Walsh - - * l10n.dtd: Rename internationalization to i18n, localization to l10n - - * l10n.xml: Rename internationalization to i18n, localization to l10n, add namespace declaration - - * l10n.xsl: Support a local i18n override, rename internationalization to i18n, localization to l10n, add namespace declaration - - * labels.xsl: PartIntros never get a label - -2001-08-01 Norman Walsh - - * gentext.xsl: Pass allow-anchors through properly - - * labels.xsl: Fix question labelling - - * titles.xsl: Output anchors for titles if the titles have ids - -2001-07-31 Robert Stayton - - * l10n.xsl: Reverted the change from [last()] to [1] back to [last()] - because that is the correct code. - - * l10n.xsl: Added code to the "l10n.language" template to fall - back to the two-letter lang code if a longer lang - does not have a .xml localization file. - And it falls back to the default lang if it can't - find that either. - - Also fixed a bug for finding the lang attribute. - It was using the last() function, but in an - ancestor-or-self node set you want the first ancestor - (closest) with a lang value. - - 49c49 - < |ancestor-or-self::*/@xml:lang)[last()]"/> - --- - > |ancestor-or-self::*/@xml:lang)[1]"/> - -2001-07-17 Jirka Kosek - - * common.xsl: Fixed bug #442160. Parameter graphic.default.extension is now used also for and not only for . - -2001-07-08 Norman Walsh - - * gentext.xsl, titles.xsl: Support xref to bridgehead - -2001-07-04 - - * .cvsignore, Makefile, l10n.xml: Added support for Turkish - - * .cvsignore, Makefile, l10n.xml: Added Afrikaans - - * common.xsl, titles.xsl: Bug #429011, fix xref to qandset elements - - * labels.xsl: Bug #426188, fix question/answer labels - -2001-06-21 Norman Walsh - - * common.xsl, gentext.xsl, labels.xsl, titles.xsl: Use common code to calculate step numbers; support xref to procedures and steps; added formal.procedures parameter - -2001-06-20 Norman Walsh - - * l10n.xsl: Xalan debugging; harmless changes - -2001-06-14 Norman Walsh - - * subtitles.xsl: Support subtitle on article - -2001-05-23 Norman Walsh - - * common.xsl: Fix dup. template bug with is.graphic.* - - * gentext.xsl: Workaround article/appendix formatting bug (HACK) - - * labels.xsl: Label appendixes correctly in books and articles - -2001-05-21 Norman Walsh - - * labels.xsl: Tweak for section labels in articles - -2001-05-12 Norman Walsh - - * common.xsl: Added refsect* to the section.level template - -2001-05-04 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Add Serbian localization - -2001-04-21 Norman Walsh - - * common.xsl: My first crude attempts at support for qandaset - -2001-04-19 Norman Walsh - - * gentext.xsl, titles.xsl: Fix bug #417193, make sure allow-anchors is properly propagated through substitute-markup - -2001-04-18 Norman Walsh - - * titles.xsl: Suppress indexterms in no.anchor.mode - -2001-04-17 Norman Walsh - - * labels.xsl: Move label.from.part parameter into param.xsl; default it to 0 so that chapters and appendixes are numbered monotonically throughout a book by default. Moved param.xsl up in the include list, just for good measure - -2001-04-16 Norman Walsh - - * gentext.xsl: Fix bug in processing of subtitle content - - * labels.xsl: Only label.from.part if there actually is a part - - * titles.xsl: Don't put ulink, link, olink, or xref in titles if anchor's aren't allowed - -2001-04-15 Norman Walsh - - * gentext.xsl: Localize the textonly calculations by creating a object.title.markup.textonly mode - -2001-04-03 Norman Walsh - - * gentext.xsl, labels.xsl, titles.xsl: Fix bug 412487, make XSL-generated callout marks honor callout mark parameters - - * titles.xsl: Restore no.anchor.mode and suppress footnotes in no.anchor.mode - -2001-04-02 Norman Walsh - - * .cvsignore, Makefile: New file. - - * common.xsl, gentext.xsl, l10n.xml, l10n.xsl, labels.xsl, subtitles.xsl, titles.xsl: - New file. - - * gentext.xsl: Commented out debugging messages - - * l10n.dtd: New file. - diff --git a/trunk/docs/xsl/docbook/common/af.xml b/trunk/docs/xsl/docbook/common/af.xml deleted file mode 100755 index e219733a..00000000 --- a/trunk/docs/xsl/docbook/common/af.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/bg.xml b/trunk/docs/xsl/docbook/common/bg.xml deleted file mode 100755 index ed2c2922..00000000 --- a/trunk/docs/xsl/docbook/common/bg.xml +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/ca.xml b/trunk/docs/xsl/docbook/common/ca.xml deleted file mode 100755 index bff2c939..00000000 --- a/trunk/docs/xsl/docbook/common/ca.xml +++ /dev/null @@ -1,428 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/common.xsl b/trunk/docs/xsl/docbook/common/common.xsl deleted file mode 100755 index 8dc139cd..00000000 --- a/trunk/docs/xsl/docbook/common/common.xsl +++ /dev/null @@ -1,1590 +0,0 @@ - - - - - - - - -$Id$ - -Walsh -Norman -19992000 -Norman Walsh - - -Common Template Reference - - -
      Introduction - -This is technical reference documentation for the DocBook XSL -Stylesheets; it documents (some of) the parameters, templates, and -other elements of the stylesheets. - -This is not intended to be user documentation. -It is provided for developers writing customization layers for the -stylesheets, and for anyone who's interested in how it -works. - -Although I am trying to be thorough, this documentation is known -to be incomplete. Don't forget to read the source, too :-) -
      -
      - -
      - - - - - - - - - - - -Tests if a given node is a component-level element - - -This template returns '1' if the specified node is a component -(Chapter, Appendix, etc.), and '0' otherwise. - - - - -node - -The node which is to be tested. - - - - - - -This template returns '1' if the specified node is a component -(Chapter, Appendix, etc.), and '0' otherwise. - - - - - - - 1 - 0 - - - - - - -Tests if a given node is a section-level element - - -This template returns '1' if the specified node is a section -(Section, Sect1, Sect2, etc.), and '0' otherwise. - - - - -node - -The node which is to be tested. - - - - - - -This template returns '1' if the specified node is a section -(Section, Sect1, Sect2, etc.), and '0' otherwise. - - - - - - - 1 - 0 - - - - - - -Returns the hierarchical level of a section. - - -This template calculates the hierarchical level of a section. -The element sect1 is at level 1, sect2 is -at level 2, etc. - -Recursive sections are calculated down to the fifth level. - - - - -node - -The section node for which the level should be calculated. -Defaults to the context node. - - - - - - -The section level, 1, 2, etc. - - - - - - - - 1 - 2 - 3 - 4 - 5 - - - 5 - 4 - 3 - 2 - 1 - - - 1 - 2 - 3 - - - 5 - 4 - 3 - 2 - 1 - - - - - 2 - 3 - 4 - 5 - 5 - - - 5 - 4 - 3 - 2 - - - 1 - - - 1 - - - - -Returns the hierarchical level of a QandASet. - - -This template calculates the hierarchical level of a QandASet. - - - - -The level, 1, 2, etc. - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - question - answer - qandadiv - qandaset - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [FAMILY Given] - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ -] -{ -} - - -[ -] -... - - - | -4pi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Selects and processes an appropriate media object from a list - - -This template takes a list of media objects (usually the -children of a mediaobject or inlinemediaobject) and processes -the "right" object. - -This template relies on a template named -"select.mediaobject.index" to determine which object -in the list is appropriate. - -If no acceptable object is located, nothing happens. - - - - -olist - -The node list of potential objects to examine. - - - - - - -Calls <xsl:apply-templates> on the selected object. - - - - - - - - - - - - - - - - - - - - - -Selects the position of the appropriate media object from a list - - -This template takes a list of media objects (usually the -children of a mediaobject or inlinemediaobject) and determines -the "right" object. It returns the position of that object -to be used by the calling template. - -If the parameter use.role.for.mediaobject -is nonzero, then it first checks for an object with -a role attribute of the appropriate value. It takes the first -of those. Otherwise, it takes the first acceptable object -through a recursive pass through the list. - -This template relies on a template named "is.acceptable.mediaobject" -to determine if a given object is an acceptable graphic. The semantics -of media objects is that the first acceptable graphic should be used. - - -If no acceptable object is located, no index is returned. - - - - -olist - -The node list of potential objects to examine. - - -count - -The position in the list currently being considered by the -recursive process. - - - - - - -Returns the position in the original list of the selected object. - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - 0 - - - - 1 - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Returns '1' if the specified media object is recognized. - - -This template examines a media object and returns '1' if the -object is recognized as a graphic. - - - - -object - -The media object to consider. - - - - - - -0 or 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - 1 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - . - - - - - - - - - - - - - - - - -Warn users about references to non-unique IDs - -If passed an ID in linkend, -check.id.unique prints -a warning message to the user if either the ID does not exist or -the ID is not unique. - - - - - - - - - - - - Error: no ID for constraint linkend: - - . - - - - - - - Warning: multiple "IDs" for constraint linkend: - - . - - - - - - -Warn users about incorrectly typed references - -If passed an ID in linkend, -check.idref.targets makes sure that the element -pointed to by the link is one of the elements listed in -element-list and warns the user otherwise. - - - - - - - - - - - - - - Error: linkend ( - - ) points to " - - " not (one of): - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unexpected context in procedure.step.numeration: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - loweralpha - lowerroman - upperalpha - upperroman - arabic - arabic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - circle - square - disc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Print a set of years with collapsed ranges - - -This template prints a list of year elements with consecutive -years printed as a range. In other words: - -1992 -1993 -1994]]> - -is printed 1992-1994, whereas: - -1992 -1994]]> - -is printed 1992, 1994. - -This template assumes that all the year elements contain only -decimal year numbers, that the elements are sorted in increasing -numerical order, that there are no duplicates, and that all the years -are expressed in full century+year -(1999 not 99) notation. - - - - -years - -The initial set of year elements. - - -print.ranges - -If non-zero, multi-year ranges are collapsed. If zero, all years -are printed discretely. - - -single.year.ranges - -If non-zero, two consecutive years will be printed as a range, -otherwise, they will be printed discretely. In other words, a single -year range is 1991-1992 but discretely it's -1991, 1992. - - - - - - -This template returns the formatted list of years. - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - , - - , - - - - - - - , - - - - - - - - - - - - - - - - -Search in a table for the "best" match for the node - - -This template searches in a table for the value that most-closely -(in the typical best-match sense of XSLT) matches the current (element) -node location. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      - diff --git a/trunk/docs/xsl/docbook/common/cs.xml b/trunk/docs/xsl/docbook/common/cs.xml deleted file mode 100755 index b821b311..00000000 --- a/trunk/docs/xsl/docbook/common/cs.xml +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/da.xml b/trunk/docs/xsl/docbook/common/da.xml deleted file mode 100755 index 5ea7aa3d..00000000 --- a/trunk/docs/xsl/docbook/common/da.xml +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/de.xml b/trunk/docs/xsl/docbook/common/de.xml deleted file mode 100755 index a2d7e6ab..00000000 --- a/trunk/docs/xsl/docbook/common/de.xml +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/el.xml b/trunk/docs/xsl/docbook/common/el.xml deleted file mode 100755 index 1ae59c4f..00000000 --- a/trunk/docs/xsl/docbook/common/el.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/en.xml b/trunk/docs/xsl/docbook/common/en.xml deleted file mode 100755 index e6283a1d..00000000 --- a/trunk/docs/xsl/docbook/common/en.xml +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/es.xml b/trunk/docs/xsl/docbook/common/es.xml deleted file mode 100755 index 6e5bd40c..00000000 --- a/trunk/docs/xsl/docbook/common/es.xml +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/et.xml b/trunk/docs/xsl/docbook/common/et.xml deleted file mode 100755 index bacec99e..00000000 --- a/trunk/docs/xsl/docbook/common/et.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/eu.xml b/trunk/docs/xsl/docbook/common/eu.xml deleted file mode 100755 index 2b6dea4c..00000000 --- a/trunk/docs/xsl/docbook/common/eu.xml +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/fi.xml b/trunk/docs/xsl/docbook/common/fi.xml deleted file mode 100755 index f15abd2a..00000000 --- a/trunk/docs/xsl/docbook/common/fi.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/fr.xml b/trunk/docs/xsl/docbook/common/fr.xml deleted file mode 100755 index b1fcea3d..00000000 --- a/trunk/docs/xsl/docbook/common/fr.xml +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/gentext.xsl b/trunk/docs/xsl/docbook/common/gentext.xsl deleted file mode 100755 index 46458a74..00000000 --- a/trunk/docs/xsl/docbook/common/gentext.xsl +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .formal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Xref is only supported to listitems in an - orderedlist: - - - ??? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - Attempt to use %d in gentext with no referrer! - - - - - - - % - - - % - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/he.xml b/trunk/docs/xsl/docbook/common/he.xml deleted file mode 100755 index 1ed762a5..00000000 --- a/trunk/docs/xsl/docbook/common/he.xml +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/hu.xml b/trunk/docs/xsl/docbook/common/hu.xml deleted file mode 100755 index 4e8cd3be..00000000 --- a/trunk/docs/xsl/docbook/common/hu.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/id.xml b/trunk/docs/xsl/docbook/common/id.xml deleted file mode 100755 index 16b0a404..00000000 --- a/trunk/docs/xsl/docbook/common/id.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/it.xml b/trunk/docs/xsl/docbook/common/it.xml deleted file mode 100755 index 5b74276f..00000000 --- a/trunk/docs/xsl/docbook/common/it.xml +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/ja.xml b/trunk/docs/xsl/docbook/common/ja.xml deleted file mode 100755 index 3b30f0d5..00000000 --- a/trunk/docs/xsl/docbook/common/ja.xml +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/ko.xml b/trunk/docs/xsl/docbook/common/ko.xml deleted file mode 100755 index 06d0db84..00000000 --- a/trunk/docs/xsl/docbook/common/ko.xml +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/l10n.dtd b/trunk/docs/xsl/docbook/common/l10n.dtd deleted file mode 100755 index b6fd0c1d..00000000 --- a/trunk/docs/xsl/docbook/common/l10n.dtd +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/l10n.xml b/trunk/docs/xsl/docbook/common/l10n.xml deleted file mode 100755 index d74e0b6c..00000000 --- a/trunk/docs/xsl/docbook/common/l10n.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - -⁡ -&bg; -&ca; -&cs; -&da; -&de; -⪙ -&en; -&es; -&et; -&eu; -&fi; -&fr; -&he; -&hu; -&id; -⁢ -&ja; -&ko; -&lit; -&nl; -&nn; -&no; -&pl; -&pt; -&pt_br; -&ro; -&ru; -&sk; -&sl; -&sr; -&sv; -&th; -&tr; -&uk; -&vi; -&xh; -&zh_cn; -&zh_tw; - diff --git a/trunk/docs/xsl/docbook/common/l10n.xsl b/trunk/docs/xsl/docbook/common/l10n.xsl deleted file mode 100755 index 4164afa8..00000000 --- a/trunk/docs/xsl/docbook/common/l10n.xsl +++ /dev/null @@ -1,462 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _ - - - - - - - - - - - - - - - - - - - - No localization exists for " - - " or " - - ". Using default " - - ". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No " - - " localization of " - - " exists - - - . - - - ; using "en". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bullet - - - - - - - - - - - - - - - - - - No " - - " localization of dingbat - - exists; using "en". - - - - - - - - - - startquote - - - - - - endquote - - - - - - nestedstartquote - - - - - - nestedendquote - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No " - - " localization exists. - - - - - - - - - - No context named " - - " exists in the " - - " localization. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No template for " - - " (or any of its leaves) exists -in the context named " - - " in the " - - " localization. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - 1 - - - - - - - - - - - - - - 0 - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/labels.xsl b/trunk/docs/xsl/docbook/common/labels.xsl deleted file mode 100755 index cfe6ef8c..00000000 --- a/trunk/docs/xsl/docbook/common/labels.xsl +++ /dev/null @@ -1,607 +0,0 @@ - - - - - - - -Provides access to element labels - -Processing an element in the -label.markup mode produces the -element label. -Trailing punctuation is not added to the label. - - - - - - . - - - - - - - Request for label of unexpected element: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - label.markup: this can't happen! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - a - i - A - I - - - - Unexpected numeration: - - - - - - - - - - - - - - - - - - - - - - -Returns true if $section should be labelled - -Returns true if the specified section should be labelled. -By default, this template simply returns $section.autolabel, but -custom stylesheets may override it to get more selective behavior. - - - - - - diff --git a/trunk/docs/xsl/docbook/common/lt.xml b/trunk/docs/xsl/docbook/common/lt.xml deleted file mode 100755 index 01104397..00000000 --- a/trunk/docs/xsl/docbook/common/lt.xml +++ /dev/null @@ -1,424 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/nl.xml b/trunk/docs/xsl/docbook/common/nl.xml deleted file mode 100755 index 840065eb..00000000 --- a/trunk/docs/xsl/docbook/common/nl.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/nn.xml b/trunk/docs/xsl/docbook/common/nn.xml deleted file mode 100755 index 2aa36f26..00000000 --- a/trunk/docs/xsl/docbook/common/nn.xml +++ /dev/null @@ -1,431 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/no.xml b/trunk/docs/xsl/docbook/common/no.xml deleted file mode 100755 index 39726c8f..00000000 --- a/trunk/docs/xsl/docbook/common/no.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/pl.xml b/trunk/docs/xsl/docbook/common/pl.xml deleted file mode 100755 index 630e7e72..00000000 --- a/trunk/docs/xsl/docbook/common/pl.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/pt.xml b/trunk/docs/xsl/docbook/common/pt.xml deleted file mode 100755 index 13792005..00000000 --- a/trunk/docs/xsl/docbook/common/pt.xml +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/pt_br.xml b/trunk/docs/xsl/docbook/common/pt_br.xml deleted file mode 100755 index 5068508e..00000000 --- a/trunk/docs/xsl/docbook/common/pt_br.xml +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/ro.xml b/trunk/docs/xsl/docbook/common/ro.xml deleted file mode 100755 index a920585f..00000000 --- a/trunk/docs/xsl/docbook/common/ro.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/ru.xml b/trunk/docs/xsl/docbook/common/ru.xml deleted file mode 100755 index b8535764..00000000 --- a/trunk/docs/xsl/docbook/common/ru.xml +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/sk.xml b/trunk/docs/xsl/docbook/common/sk.xml deleted file mode 100755 index 5cd7a09a..00000000 --- a/trunk/docs/xsl/docbook/common/sk.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/sl.xml b/trunk/docs/xsl/docbook/common/sl.xml deleted file mode 100755 index 0f3eaff7..00000000 --- a/trunk/docs/xsl/docbook/common/sl.xml +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/sr.xml b/trunk/docs/xsl/docbook/common/sr.xml deleted file mode 100755 index ddd426d4..00000000 --- a/trunk/docs/xsl/docbook/common/sr.xml +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/subtitles.xsl b/trunk/docs/xsl/docbook/common/subtitles.xsl deleted file mode 100755 index 973e87c1..00000000 --- a/trunk/docs/xsl/docbook/common/subtitles.xsl +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - -Provides access to element subtitles - -Processing an element in the -subtitle.markup mode produces the -subtitle of the element. - - - - - - - Request for subtitle of unexpected element: - - - ???SUBTITLE??? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/sv.xml b/trunk/docs/xsl/docbook/common/sv.xml deleted file mode 100755 index 9ede04cf..00000000 --- a/trunk/docs/xsl/docbook/common/sv.xml +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/table.xsl b/trunk/docs/xsl/docbook/common/table.xsl deleted file mode 100755 index 416d346f..00000000 --- a/trunk/docs/xsl/docbook/common/table.xsl +++ /dev/null @@ -1,429 +0,0 @@ - - - - - - - 0: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0: - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - -Determine the column number in which a given entry occurs - -If an entry has a -colname or -namest attribute, this template -will determine the number of the column in which the entry should occur. -For other entrys, nothing is returned. - - - -entry - -The entry-element which is to be tested. - - - - - - -This template returns the column number if it can be determined, -or 0 (the empty string) - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/targetdatabase.dtd b/trunk/docs/xsl/docbook/common/targetdatabase.dtd deleted file mode 100755 index 13b72c40..00000000 --- a/trunk/docs/xsl/docbook/common/targetdatabase.dtd +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/targets.xsl b/trunk/docs/xsl/docbook/common/targets.xsl deleted file mode 100755 index f9568da1..00000000 --- a/trunk/docs/xsl/docbook/common/targets.xsl +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - - -Collects information for potential cross reference targets - -Processing the root element in the -collect.targets mode produces -a set of target database elements that can be used by -the olink mechanism to resolve external cross references. -The collection process is controlled by the -collect.xref.targets parameter, which can be -yes to collect targets and process -the document for output, only to -only collect the targets, and no -(default) to not collect the targets and only process the document. - - -A targets.filename parameter must be -specified to receive the output if -collect.xref.targets is -set to yes so as to -redirect the target data to a file separate from the -document output. - - - - - - - - - - - Must specify a $targets.filename parameter when - $collect.xref.targets is set to 'yes'. - The xref targets were not collected. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - - - - - - - - - -
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      diff --git a/trunk/docs/xsl/docbook/common/th.xml b/trunk/docs/xsl/docbook/common/th.xml deleted file mode 100755 index a993a702..00000000 --- a/trunk/docs/xsl/docbook/common/th.xml +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/titles.xsl b/trunk/docs/xsl/docbook/common/titles.xsl deleted file mode 100755 index ae91ed71..00000000 --- a/trunk/docs/xsl/docbook/common/titles.xsl +++ /dev/null @@ -1,544 +0,0 @@ - - - - - - - -Provides access to element titles - -Processing an element in the -title.markup mode produces the -title of the element. This does not include the label. - - - - - - - - - - - - - - - - - - - - - - Request for title of element with no title: - - - (id=" - - ") - - - - ???TITLE??? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - REFENTRY WITHOUT TITLE??? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Note - Important - Caution - Warning - Tip - - - - - - - - - - Question - - - - - Answer - - - - - Question - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/tr.xml b/trunk/docs/xsl/docbook/common/tr.xml deleted file mode 100755 index 12e5674f..00000000 --- a/trunk/docs/xsl/docbook/common/tr.xml +++ /dev/null @@ -1,429 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/uk.xml b/trunk/docs/xsl/docbook/common/uk.xml deleted file mode 100755 index b6675dfb..00000000 --- a/trunk/docs/xsl/docbook/common/uk.xml +++ /dev/null @@ -1,455 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/vi.xml b/trunk/docs/xsl/docbook/common/vi.xml deleted file mode 100755 index 9156a14c..00000000 --- a/trunk/docs/xsl/docbook/common/vi.xml +++ /dev/null @@ -1,424 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/xh.xml b/trunk/docs/xsl/docbook/common/xh.xml deleted file mode 100755 index 56d39312..00000000 --- a/trunk/docs/xsl/docbook/common/xh.xml +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/zh_cn.xml b/trunk/docs/xsl/docbook/common/zh_cn.xml deleted file mode 100755 index b3ffd769..00000000 --- a/trunk/docs/xsl/docbook/common/zh_cn.xml +++ /dev/null @@ -1,418 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/common/zh_tw.xml b/trunk/docs/xsl/docbook/common/zh_tw.xml deleted file mode 100755 index 53cd0377..00000000 --- a/trunk/docs/xsl/docbook/common/zh_tw.xml +++ /dev/null @@ -1,419 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/ChangeLog b/trunk/docs/xsl/docbook/fo/ChangeLog deleted file mode 100755 index 8341075a..00000000 --- a/trunk/docs/xsl/docbook/fo/ChangeLog +++ /dev/null @@ -1,1227 +0,0 @@ -2003-01-23 Norman Walsh - - * autotoc.xsl: Fix bugs associated with toc-context parameter in division.toc - - * division.xsl: Generate Part ToCs - - * pagesetup.xsl: Use proportional-column-width() for header/footer tables; suppress relative-align when when using FOP - -2003-01-22 Norman Walsh - - * formal.xsl: Handle alignment correctly when screenshot is used in figure - - * xref.xsl: Format chapter and appendix titles consistently in xrefs - -2003-01-21 Norman Walsh - - * formal.xsl: Attempt to support multiple tgroups (by making multiple tables and placing them right next to each other) - - * lists.xsl: Bug #653344: Output fo:table-columns in simplelist tables - -2003-01-20 Norman Walsh - - * autoidx.xsl, index.xsl: Use titlepage templates for indexdiv title formatting - - * biblio.xsl: Bug #640762: Support new biblioentry elements - - * component.xsl: Use titleabbrev in markers; use titlepage templates for subtitles; delete bogus component.separator template. - - * footnote.xsl: Support {table.}footnote.number.{format,symbols} - - * glossary.xsl: Use titlepage templates for glossdiv formatting; support glossentry.show.acronyms - - * pagesetup.xsl: Suppress draft page-masters when draft.mode=no - - * pagesetup.xsl: Bug #669765: Make blank pages verso not recto - - * param.ent, param.xweb: Support xref.with.number.and.title - - * param.ent, param.xweb: Added {table.}footnote.number.{format,symbols}, glossentry.show.acronym, and ulink.footnote.number.format - - * param.xweb: Fix missing fragref - - * qandaset.xsl: QandASet titles use section.title for convenience. Now they don't output fo:markers for those titles. - - * sections.xsl: Support titleabbrev for running headers/footers; don't force a section ToC for refentrys - - * titlepage.templates.xml: SIGNIFICANT changes to the titlepage template setup. See RELEASE-NOTES. - - * titlepage.xsl: Add property sets for glossdiv, bibliodiv, and indexdiv. Improve formatting of authors. - - * verbatim.xsl: Arrange to use only a single fo:block for shading to avoid a bug in earlier versions of XEP - - * xref.xsl: Improve formatting of ulink footnotes; provide template to override formatting; use ulink.footnote.number.format; support xref to glossentry - - * xref.xsl: Change formatting of URL footnotes - -2003-01-17 Norman Walsh - - * lists.xsl: Output IDs for the first-paras in a listitem - - * pagesetup.xsl: Fix bugs in page numbering when double.sided=1 - - * pagesetup.xsl: Remove region-name from region-body on blank pages - - * xref.xsl: Remove duplicated IDs when endterm is used on xref - -2003-01-13 Robert Stayton - - * math.xsl: Added @align value to fo:block containing mediaobject in equation. - -2003-01-12 Norman Walsh - - * autoidx.xsl: Make sure that indexdivs are properly scoped. I've done this by adding a test to suppress the division if it contains no terms. It seems like there might be a better way, but I can't see it just at the moment - -2003-01-08 Robert Stayton - - * xref.xsl: In olink, use document($target.database.document, /) so the - olink target database location is relative to the document - instead of the stylesheet. - -2003-01-06 Robert Stayton - - * autoidx.xsl, index.xsl: Removed the unnecessary generate-index-from-terms template - in favor of generate-index, called with scope parameter. - -2003-01-02 Norman Walsh - - * autoidx.xsl, index.xsl: Rework indexing to avoid XSLT limitation/Saxon bug with context dependencies; finish porting Bob's changes from FO to HTML - - * index.xsl, titlepage.templates.xml, titlepage.xsl: Support setindex (there were all sorts of things wrong with it) - -2003-01-01 Norman Walsh - - * autoidx.xsl, index.xsl: Make index elements always index the book that contains them (if there is one, otherwise the whole document); setindex always indexes the whole document - - * autotoc.xsl, division.xsl, titlepage.templates.xml, titlepage.xsl: - Support List of Procedures - - * formal.xsl: Support separate property sets for figures, examples, equations, tables, and procedures. This way, they can have different border and other formatting properties. - - * graphics.xsl: Support ignore.image.scaling parameter - - * param.ent, param.xweb: New parameters - - * xref.xsl: Use titleabbrev instead of title in xrefs - -2002-12-31 Norman Walsh - - * inline.xsl: Make lineannotations italic - - * pagesetup.xsl: Added blank.page.content template to allow 'This Page Intentionally Left Blank' blank pages. - -2002-12-30 - - * lists.xsl: Fixed spacing problem where step numbers don't line up with the corresponding text. - -2002-12-28 Norman Walsh - - * xref.xsl: Now that xrefstyle is official; make it take priority even when use.role.as.xrefstyle is non-zero. - - * xref.xsl: Make endterm on xref higher priority than xreflabel on the target - -2002-12-24 Robert Stayton - - * division.xsl: Fixes bug #655587 to restart page numbering - after a preface. - -2002-12-18 Robert Stayton - - * autoidx.xsl: Changed sort to fold uppercase and lowercase together to fix - odd indexdiv sort order. - - * graphics.xsl: Add graphic/@align value to fo:block text-align property - since text-align on external-graphic doesn't seem to work. - -2002-12-17 Robert Stayton - - * formal.xsl, graphics.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-12-17 Jirka Kosek - - * param.xweb: Build fixes. - -2002-12-17 Robert Stayton - - * titlepage.templates.xml: Made list.of.tables specifications the same as other list.of.*. - -2002-12-13 Robert Stayton - - * glossary.xsl: Handles missing otherterm target in glosssee and glosseealso. - - * inline.xsl: Added the author et al special cases similar to - the HTML inline.xsl templates. - -2002-12-12 Robert Stayton - - * autoidx.xsl: An index now contains only indexterms within its scope - (within its parent element). - - * autotoc.xsl, index.xsl: Make sure $generate.index controls whether the index is processed. - - * formal.xsl: Change formal.object template to pass $placement parameter - to formal.object.heading template. - - * lists.xsl: Fixed bug in segmentedlist title when segmentedlist.as.table set. - -2002-12-06 Robert Stayton - - * block.xsl: Fixed epigraph template so it processes all of its allowed - children, not just para. - - * graphics.xsl, param.ent, param.xweb: Enabled support for selecting imageobject using the role attribute. - -2002-12-04 Robert Stayton - - * autotoc.xsl, component.xsl, sections.xsl: Added empty component.toc.separator and section.toc.separator templates - to provide customization opportunity between toc and first content. - -2002-11-29 Norman Walsh - - * pagesetup.xsl: Don't output a footnote-separator for FOP - -2002-11-16 Norman Walsh - - * biblio.xsl: Support abstract in bibliomixed - - * biblio.xsl, xref.xsl: Support bibliosource; improve numbered bibliography entries and cross-references to them - - * pagesetup.xsl: Added template to create footnote separator rule (if supported by your favorite FO processor) - - * sections.xsl: Use value-of instead of copy-of for fo:marker because I haven't thought of a better way to avoid footnotes in markers which are illegal - -2002-11-15 Robert Stayton - - * admon.xsl: Changed graphical.admonition template from an fo:table - to an fo:list-block, so it works in both FOP and XEP. - - * lists.xsl: Fixed two bugs in longest.term template that prevented proper - calculation of longest term width in variablelist. - -2002-11-15 Norman Walsh - - * table.xsl: Add support for xsltproc adjustColumnWidths extension - -2002-11-14 Norman Walsh - - * biblio.xsl: Use xreflabel (if it's present) on bibliography entries - - * component.xsl: Don't restart page numbers on the first preface - - * table.xsl: Support entrytbl - -2002-11-08 Robert Stayton - - * pagesetup.xsl: Corrected left and right page margins for even page masters: - inner and outer were reversed from what they should have been. - -2002-10-31 Norman Walsh - - * autoidx.xsl: Support spanning index terms (endofrange/startref) - - * lists.xsl: Put para spacing around tabular simplelists - -2002-10-21 Norman Walsh - - * glossary.xsl: Bug #577798: glossentry with multiple glossdefs creates broken FO - - * pagesetup.xsl: Updated header/footer properties to avoid missmatched margins caused by title.margin.left - -2002-10-20 Norman Walsh - - * inline.xsl: Bug #619474: support errortext element - -2002-10-19 Norman Walsh - - * pagesetup.xsl, param.ent, param.xweb: Added property sets to control page header and footer content formatting - -2002-10-18 Robert Stayton - - * param.xweb: Corrected the wording describing the placement of - the header and footer in the region-before and - region-after to match the diagram and stylesheet changes. - -2002-10-17 Norman Walsh - - * refentry.xsl: Fix bug where refentrys in parts were not in a page sequence - -2002-10-11 Robert Stayton - - * inline.xsl: glossterm and firstterm in text now use italicseq - to match the html formatting. - -2002-10-09 Norman Walsh - - * table.xsl: Removed debug code. - -2002-10-04 Norman Walsh - - * autotoc.xsl, sections.xsl: Support optional title on section ToCs. Optional titles for components, books, and sets will be trickier. - - * formal.xsl, param.ent, param.xweb, table.xsl: Made separate parameters for table frame and table cell border properties - -2002-10-02 Norman Walsh - - * lists.xsl: Support continuation of orderedlists and inherited numeration in FO - -2002-10-01 Robert Stayton - - * qandaset.xsl, refentry.xsl, sections.xsl: Changed section.level template to return number that matches - the section level (sect1 = 1, etc.), and adjusted templates - that use section.level accordingly to produce same output - as before. - -2002-09-27 Norman Walsh - - * autoidx.xsl: Bug #496294: don't index endofrangeentries. They're no longer indexed, but they aren't handled quite right yet either, they don't generate ranges - - * autotoc.xsl, sections.xsl: Support section ToCs - - * block.xsl, titlepage.xsl: Bug #582192: support revdescription - - * formal.xsl: Bug #497603: fixed and added default.float.class - - * param.ent, param.xweb: Use new parameters - - * synop.xsl: Fix sbr - -2002-09-20 Norman Walsh - - * docbook.xsl: Add context to error message about a missing template - - * synop.xsl: Bug #605150: process arg correctly even when it's in a group - -2002-09-19 Robert Stayton - - * formal.xsl: Removed 'keep-with-next' from 'formal.title.properties' attribute set now - that the stylesheets support the option of putting such - titles below the object. Now the $placement value determines - if 'keep-with-next' or 'keep-with-previous' is used in the - title block. - -2002-09-19 Norman Walsh - - * xref.xsl: Use fo-external-image (badly named) to wrap url() around external-destinations - -2002-09-15 Norman Walsh - - * table.xsl: Support a PI to rotate table cells - -2002-09-08 - - * lists.xsl: Bug #445750: Adding a keep-together and keep-with-next to the block that wraps terms in a varlistentry to keep terms from being orphaned/widowed when variablelists are formatted as blocks. - -2002-09-06 - - * component.xsl: Changing the mode in the apply-templates from title.markup to object.title.markup so that appendixes in articles can be formatted as specified in the appropriate lang.xml file. - -2002-09-05 Norman Walsh - - * division.xsl: Restart all books on page 1 - -2002-09-04 Norman Walsh - - * param.ent, param.xweb: Reference the l10n.* parameters - -2002-09-03 Norman Walsh - - * graphics.xsl: Support textdata in textobject - - * table.xsl: Make sure row-level colsep and rowsep values are 'inherited' onto missing cells - -2002-09-01 Norman Walsh - - * graphics.xsl: Put the url()/no-url() test for external graphics into a named template - - * pagesetup.xsl: Add SVG to the list of XEP graphics formats; use the url()/no-url() named template for draft.watermark.image - -2002-08-28 Norman Walsh - - * table.xsl: Make inherited attributes work for 'missing' table cells - -2002-08-26 Norman Walsh - - * autoidx.xsl: Handle endofrange indexterms properly - - * graphics.xsl: Make graphics formats FO-processor aware; support SVG when FOP is being used - - * pdf2index: Support page ranges (generated by startofrang/endofrange index entries) - -2002-08-22 Norman Walsh - - * autoidx.xsl: Fix serious indexing bug that caused many index terms to be missing from the automatically generated index - -2002-08-21 Norman Walsh - - * autoidx.xsl: Support make.index.markup parameter - - * index.xsl: Support make.index.markup parameter and hand-crafted indexes - - * lists.xsl: Attempt to workaround bug in FOP handling of step content - - * param.ent, param.xweb: Remove unused table.entry.padding parameter; add new make.index.markup parameter - - * pdf2index: New file. - -2002-08-20 - - * block.xsl: Adding missing template for simplemsgentry - -2002-08-11 Robert Stayton - - * pagesetup.xsl: Changed running header/footer rule line dimension from 1px to - 0.5pt so passivetex doesn't gack. - -2002-08-08 Robert Stayton - - * autotoc.xsl: Fixed toc.line for FOP to align numbers - by adding leader-pattern-width property - as suggested by Nicolas Nieswandt. Was able to remove - the fop.extensions choose/when structure because - it works for all processors. The numbers in fop - align left rather than right, but at least they - line up. - -2002-07-26 Norman Walsh - - * pagesetup.xsl: A little more tweaking to make things equivalent to the old scheme - - * pagesetup.xsl: Bob's reworked page header/footer ideas. I think there are still some rough edges. - -2002-07-24 Robert Stayton - - * sections.xsl: Moved for section heading to be first child - of its parent block, per bug #586005 (and the XSL-FO spec). - -2002-07-19 Norman Walsh - - * biblio.xsl, param.ent, param.xweb: Support bibliography.numbered - - * inline.xsl, param.ent, param.xweb: Use monospace.properties for inline monospaced items - - * inline.xsl, param.ent, param.xweb: Support menuchoice.menu.separator and menuchoice.separator - - * param.ent, param.xweb, sections.xsl: Support section.title.levelN.properties to remove hard coding of font sizes in section headings - -2002-07-17 Norman Walsh - - * biblio.xsl: Add keep to bibliodiv titles--they still need more work - - * pagesetup.xsl: Add a touch of padding between the page-footer rule and the footer text - - * table.xsl: Make header entries bold by default - -2002-07-16 Norman Walsh - - * biblio.xsl, component.xsl, division.xsl, glossary.xsl, index.xsl, refentry.xsl, sections.xsl, toc.xsl: - Use basic initial-page-number property instead of extended force-page-count property to get components to start on odd pages in double.sided mode; call format.page.number to set the page number format for all page sequences - - * division.xsl: Don't include equations w/o titles in the LOT for equations - - * pagesetup.xsl: Added foot.empty and page.number.format named templates - -2002-07-15 Norman Walsh - - * pagesetup.xsl: Use named-templates for headers/footers to make customization easier - -2002-07-09 Norman Walsh - - * biblio.xsl: Don't output square brackets if there's no biblioentry label - - * synop.xsl: Bug #573726: fix cmdsynopsisref formatting - -2002-07-08 Norman Walsh - - * autoidx.xsl: Bug #574841: trim leading and trailing whitespace from primary/secondary/tertiary index terms - - * autoidx.xsl: Bug #574840: fix bug where some symbol index terms got lost - - * block.xsl, param.ent, param.xweb: Add sidebar.properties to control presentation of Sidebar elements - - * graphics.xsl: Work-around bug in xsltproc: explicitly cast scale to a number() before comparing it to 1.0 - -2002-07-07 Norman Walsh - - * footnote.xsl, formal.xsl: Fix footnotes in table titles - - * lists.xsl: Fix ugly bug: make sure premables to orderedlist and itemizedlist elements are actually formatted - -2002-07-06 Norman Walsh - - * xref.xsl: Added missing parameter to olink.hottext; added missing olink.outline template - -2002-07-06 Robert Stayton - - * xref.xsl: Commented out call to olink.outline for old - style olinks, in case Norm wants to add - support for them. - - * xref.xsl: Bug fix: move xsl:param in olink template to be first child. - -2002-07-05 Robert Stayton - - * param.ent, param.xweb: Added four parameters to support new stylesheet olink system: - target.database.document.xml - use.local.olink.style.xml - current.docid.xml - olink.doctitle.xml - - * xref.xsl: Modified for the new stylesheet olink system. - Modfified olink template to support the new - targetdoc and targetptr attributes. - Loads target database into keys for fast lookup. - -2002-07-04 Norman Walsh - - * block.xsl, xref.xsl: Feature req #525507: support xref to para by using the nearest containing section as the generated text - - * fop.xsl: Patch #530026: suppress whitespace in FOP bookmarks - - * glossary.xsl: Fix page number citation code - -2002-07-03 Norman Walsh - - * division.xsl, index.xsl, pagesetup.xsl, param.ent, param.xweb: - More hacking on page headers and footers: added toggles for rules and headers on blank pages - - * docbook.xsl: Feature Req #502932: added root.messages template for user defined messages - - * pagesetup.xsl: Remove silly debugging message - - * xref.xsl: Support insert.xref.page.number parameter - -2002-07-02 Norman Walsh - - * component.xsl, division.xsl, index.xsl, pagesetup.xsl, param.ent, param.xweb, sections.xsl: - Completely rewrote pagesetup.xsl: more page models, more logical page margin setup - -2002-06-29 Norman Walsh - - * formal.xsl, lists.xsl: Make list/procedure titles use gentext and have consisten formatting - - * table.xsl: Patch #514664: keep-together for table-cell if xep - -2002-06-27 Norman Walsh - - * glossary.xsl, param.ent, param.xweb: Make glossary parameters properly documented parameters; support glossary.as.blocks - -2002-06-26 Norman Walsh - - * table.xsl: Make sure we don't attempt to set the table width more than once if a table has multiple tgroups - -2002-06-11 Norman Walsh - - * autoidx.xsl, fo-patch-for-fop.xsl, fo-rtf.xsl, pagesetup.xsl, titlepage.templates.xml: - Add CVS Ids - - * biblio.xsl: Add spacing before bibliodivs - - * pagesetup.xsl: Put a titlepage at the beginning of the oneside sequence - - * param.ent, param.xweb: Added refentry.title.properties, section.title.properties, and use.role.as.xrefstyle - - * refentry.xsl: Use titlepage system for refentry (refsynopsisdiv, refsect*) titles - - * sections.xsl: Use section.title.properties - - * titlepage.templates.xml: Added refentry titlepage elements; tweaked font sizes and some spacing - - * titlepage.xsl: Fix copyright year formatting; add *.style attribute sets for refentry elements - - * xref.xsl: Experimental support for xrefstyle - -2002-06-09 Norman Walsh - - * index.xsl: Fix bug #496453: make sure comments don't contain illegal chars - -2002-06-09 Jirka Kosek - - * lists.xsl: Fixed bug #547163. Paragraph after formal paragraph in listitem gets correct spacing. - - * refentry.xsl: Fixed bug #554159. Added empty template for refentryinfo - -2002-06-03 Jirka Kosek - - * Makefile: Added dependencies for profiling stylesheets - -2002-06-02 Norman Walsh - - * lists.xsl: Support title on step in procedure - -2002-06-01 Norman Walsh - - * inline.xsl: Bug #560808 make systemitem formatting consistent - -2002-05-23 Norman Walsh - - * param.ent, param.xweb: Support for SVG in HTML - -2002-05-21 Norman Walsh - - * qandaset.xsl: Output '. ' in some contexts (this is a hack) - -2002-05-14 Norman Walsh - - * footnote.xsl: Format footnotes with format.footnote.mark named template for easy customization - -2002-05-13 Norman Walsh - - * lists.xsl, param.ent, param.xweb: Support spacing=compact on itemizedlist and orderedlist (Bug #501063) - -2002-05-12 Norman Walsh - - * block.xsl: Make sure IDs get generated for blockquote and epigraph - - * formal.xsl, table.xsl: Make border-collapse='collapse' explicitly (that's the only model that works for CALS tables) - - * graphics.xsl: Reworked support for graphic attributes; now support DocBook 4.2CR1 attributes - - * lists.xsl: Bug #511965: add formal.title.properties to calloutlist titles - - * math.xsl: Support MathML by passing it silently through to the FO result - - * sections.xsl: Allow anchors in section titles; improve efforts to prevent page/column breaks immediately after section titles - - * xref.xsl: Support xref to refnamediv and all elements with titles (at least when they have titles) - -2002-05-06 Norman Walsh - - * admon.xsl: Fix url() in admonition graphics - - * callout.xsl: Fix url() in callout graphics - -2002-04-30 Norman Walsh - - * biblio.xsl: Use title.font.family in bibliodiv - -2002-04-20 Norman Walsh - - * param.ent, param.xweb, verbatim.xsl: Support shade.verbatim in FO; stop using vendor test to decide what extension function to call for line numbering - -2002-03-28 Norman Walsh - - * autotoc.xsl: Attempt to fix duplicate-id problem in ToC generation - - * xep.xsl: Make XEP point to ToC pages for books, parts, etc. from PDF bookmarks - -2002-03-26 Norman Walsh - - * lists.xsl: Set maxlength of termlength to 12 - - * param.xweb: Documentation fix - -2002-03-25 Norman Walsh - - * component.xsl: Handle prefaceinfo - - * formal.xsl: Handle textobject in tables - - * graphics.xsl: Add template for mediaobjectco - - * inline.xsl: Support personname - - * math.xsl: Handle alt - - * xref.xsl: Support xrefs to editor, othercredit, and personname - -2002-03-22 Norman Walsh - - * titlepage.xsl: Output blocks instead of wrappers around authors - -2002-03-21 Norman Walsh - - * biblio.xsl, titlepage.xsl: Support biblioid - -2002-03-20 Norman Walsh - - * xep.xsl: Don't output a link to the book title if the book has no title - -2002-03-19 Norman Walsh - - * autotoc.xsl: Make sure ToC elements have IDs for links from the PDF ToC - -2002-03-18 Norman Walsh - - * Makefile, component.xsl, division.xsl, fop.xsl, param.ent, param.xweb, xep.xsl: - Replace generate.*.toc and generate.*.lot with single generate.toc parameter. - - * block.xsl: Support RevHistory in content; support AckNo in article - - * fop.xsl, xep.xsl: Don't generate ToC links if there's nothing to go in the ToC - -2002-03-15 Norman Walsh - - * synop.xsl, verbatim.xsl: Support classsynopsis and friends - -2002-03-14 Norman Walsh - - * .cvsignore: Ignore profiling stylesheets - - * admon.xsl, autoidx.xsl, autotoc.xsl, biblio.xsl, block.xsl, callout.xsl, component.xsl, division.xsl, docbook.xsl, ebnf.xsl, fo-patch-for-fop.xsl, fo-rtf.xsl, fo.xsl, footnote.xsl, fop.xsl, formal.xsl, glossary.xsl, graphics.xsl, index.xsl, info.xsl, inline.xsl, keywords.xsl, lists.xsl, math.xsl, pagesetup.xsl, param.ent, param.xweb, passivetex.xsl, pi.xsl, qandaset.xsl, refentry.xsl, sections.xsl, synop.xsl, table.xsl, titlepage.templates.xml, titlepage.xsl, toc.xsl, verbatim.xsl, xep.xsl, xref.xsl: - Whitespace only: change CR/LF back to LF. Norm was a total moron. - - * admon.xsl, autoidx.xsl, autotoc.xsl, biblio.xsl, block.xsl, callout.xsl, component.xsl, division.xsl, docbook.xsl, ebnf.xsl, fo-patch-for-fop.xsl, fo-rtf.xsl, fo.xsl, footnote.xsl, fop.xsl, formal.xsl, glossary.xsl, graphics.xsl, index.xsl, info.xsl, inline.xsl, keywords.xsl, lists.xsl, math.xsl, pagesetup.xsl, param.ent, param.xweb, passivetex.xsl, pi.xsl, qandaset.xsl, refentry.xsl, sections.xsl, synop.xsl, table.xsl, titlepage.templates.xml, titlepage.xsl, toc.xsl, verbatim.xsl, xep.xsl, xref.xsl: - Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr. - - * docbook.xsl, fo-rtf.xsl, footnote.xsl, formal.xsl: Improve formatting of table footnotes and fix numeration of table/non-table footnotes - - * formal.xsl, lists.xsl, param.ent, param.xweb: Support formal.title.placement - -2002-03-13 Norman Walsh - - * formal.xsl: Fix FO markup for rotated tables - - * inline.xsl: Support other roles on emphasis; support nested emphasis - - * sections.xsl: Give wrapped section titles a hanging indent - - * titlepage.templates.xml: Don't shift the margin on article titles; they're supposed to be centered - - * verbatim.xsl: Don't force verbatim environments to be start aligned; they should inherit the current text alignment - -2002-03-11 Jirka Kosek - - * inline.xsl: Fixed bug #522900. Content of is not outputted twice. - -2002-03-03 Jirka Kosek - - * param.ent, param.xweb: Added new stylesheet parameters for profiling. - -2002-03-01 Jirka Kosek - - * Makefile: First portion of new profiling code. New stylesheet parameters will come later. - -2002-03-01 Norman Walsh - - * autotoc.xsl: Use alternate TOC format for FOP - - * docbook.xsl: Move stylesheet.result.type out of param and put it explicitly in each stylesheet because it has to be different - - * footnote.xsl: Make footnote numbers smaller and superscripted - - * formal.xsl, table.xsl: Improve table border handling - - * graphics.xsl: Handle the case where graphics in inlineequations are inline - - * graphics.xsl: Support TIFF images - - * pagesetup.xsl: Don't put watermarks on FOP; FOP doesn't understand them - - * param.ent, param.xweb: Renamed table.border.padding and removed stylesheet.result.type - -2002-02-21 Jirka Kosek - - * math.xsl, param.ent, param.xweb: Better control over delimiters for TeX equations. Added parameter tex.math.delims, when is set to 0, no delimiters (like $ and $$) are output. Same can be done for single equation by . - -2002-02-20 Norman Walsh - - * formal.xsl: Bug #429331: center figure title if image is centered - - * lists.xsl: Commented out a debugging message - -2002-02-11 Norman Walsh - - * component.xsl, index.xsl, pagesetup.xsl, param.ent, param.xweb, titlepage.templates.xml: - Patch #510996: add support for two-colum indexes - - * inline.xsl: Patch #514007: prevent hyphenation of email addresses - -2002-02-07 Norman Walsh - - * autotoc.xsl: Make title a link - - * docbook.xsl: Reworked FOP outline mode - - * fop.xsl: Reworked outline mode - - * formal.xsl, param.ent, param.xweb: Added informal.object.properties - -2002-01-29 Norman Walsh - - * pagesetup.xsl, param.ent, param.xweb: Support 'draft' watermark - -2002-01-28 Norman Walsh - - * biblio.xsl: Allow bibliography to be a root element - - * formal.xsl: Make landscape tables actually landscape---if your FO processor supports changes to the reference-orientation - - * param.ent, param.xweb, xref.xsl: Provide option to allow URLs to be conditionally hyphenated - -2002-01-25 Norman Walsh - - * table.xsl: Fix bug that caused rowsep and colsep to be ignored on empty cells - -2002-01-10 Norman Walsh - - * fo-patch-for-fop.xsl: Allow the fox: prefix; this isn't the right fix, but it's easy and this file is only a workaround for FOP - - * inline.xsl: Support emphasis role=bold in FO - - * pagesetup.xsl: Set display-alignment on region-before and -after; output warning if the master-references is unrecognized when calculating the page header - - * param.ent, param.xweb: Added documentation about page layout and ulink.footnotes and ulink.show - - * xref.xsl: Use the ulink.show parameter when rendering ulinks - -2002-01-09 Norman Walsh - - * glossary.xsl: Bug fix: don't generate duplicate IDs on glossentrys - -2002-01-04 Norman Walsh - - * glossary.xsl: Make glossary.collection (usually) work when chunking is used; allow the use of glossdivs to be toggled in the document - - * glossary.xsl, inline.xsl, param.ent, param.xweb: First cut at supporting a glossary.collection file - -2002-01-03 Norman Walsh - - * lists.xsl: Rework variablelist formatting; support lists vs. blocks with new parameters and calculate term-width reasonably - - * param.ent, param.xweb: Replace format.variablelist.as.list with variablelist.as.blocks - -2002-01-01 Norman Walsh - - * .cvsignore: Added Makefile.param - - * Makefile.param: Autogenerated - - * block.xsl: Use blockquote.properties - - * lists.xsl: Attempt to support alternate symbols on itemizedlists - - * param.ent, param.xweb: Use new parameters: refentry.generate.title and blockquote.properties - - * refentry.xsl: Improve formatting of reference pages - - * titlepage.xsl: Simplify match pattern; add space in editor formatting - -2001-12-15 Jirka Kosek - - * math.xsl: Improved support for TeX math inside equations. - -2001-12-06 Jirka Kosek - - * Makefile.param, math.xsl, param.ent, param.xweb: Added support for TeX math in alt element. When using PassiveTeX, TeX equations can be directly passed to TeX. When using HTML, TeX file with code necessary to produce image equivalents of equations is generated. - -2001-12-04 Norman Walsh - - * Makefile: Fix chunking parameter errors - - * Makefile, Makefile.param, param.ent, param.xweb: New parameters; reorganized xweb file; and some checking for consistent param files - - * admon.xsl: Feature #454323: customizable font in admonitions - - * autotoc.xsl: Feature #445713 TOC customization - - * division.xsl: Added set TOC and moved book TOC after dedication - - * docbook.xsl: Features #457872 and #479011 language and line-height - - * glossary.xsl, inline.xsl: Support glossterm.auto.link - - * refentry.xsl, xref.xsl: Feature #481793: support xref to refentry - - * xep.xsl: Add bookmark for TOC - -2001-12-02 Norman Walsh - - * component.xsl: Allow inlines and anchors in titles - -2001-12-01 Norman Walsh - - * autoidx.xsl: Patch #468462: hot page numbers in the index - - * division.xsl: Patch #470480: make part title formatting obey localization rules - - * docbook.xsl, xep.xsl: Make sure bookmarks are never empty - - * formal.xsl, table.xsl: Bug #487576: table/indexterm problems - - * synop.xsl: Patch #462556: Improve func synopsis - - * titlepage.templates.xml: Don't offset margin when using 'center' alignment - - * xep.xsl: Fix bug in TOC title formatting - -2001-11-30 Norman Walsh - - * component.xsl, division.xsl: Bug #451265: page number of first part is wrong - -2001-11-29 Norman Walsh - - * fo-patch-for-fop.xsl: New file. - - * lists.xsl: Patch #482482: margin-start should be margin-left - - * lists.xsl: Patch #478068: procedures with one step - - * xep.xsl: Patch #479140: bookmarks w/xep missing - - * xep.xsl: Fix it the right way: always test for top-level elements - - * xep.xsl: Patch #479145: top-level bookmarks in xep - -2001-11-28 Norman Walsh - - * lists.xsl, param.ent, param.xweb: Support formatting segmented lists as tables - - * pagesetup.xsl: Bug #483364: wrong inner/outer margins - - * param.ent, param.xweb: Added punct.honorific parameter - - * pi.xsl: Use common pi-attribute template - -2001-11-21 Norman Walsh - - * biblio.xsl, component.xsl, division.xsl, glossary.xsl, index.xsl, pagesetup.xsl, refentry.xsl, sections.xsl, toc.xsl: - Updated master-name/master-reference per the XSL 1.0 Recommendation - -2001-11-15 Jirka Kosek - - * docbook.xsl, passivetex.xsl: When passivetex.extensions=1 character ​ is inserted between all occurences of --. This stops TeX ligature mechanism which converted all -- to endash and --- to emdash (this is ill especially in source code listings containing XML comments or decrementation operator). Performance cost of evaluating condition for each text node is under 5 %. This shouldn't annoy anyone. - -2001-11-12 Norman Walsh - - * docbook.xsl, ebnf.xsl, footnote.xsl, lists.xsl, synop.xsl, xref.xsl: - Support well-formed documents, use key() instead of id() - -2001-11-10 Norman Walsh - - * formal.xsl: Moved table frame code to a common named template; handle frame=none - - * pagesetup.xsl: Added message if the master-name is unrecognized - -2001-11-09 Norman Walsh - - * param.xweb: Move the obvious ID value from the src:fragment to the refentry in parameter reference pages - -2001-11-03 Norman Walsh - - * biblio.xsl, inline.xsl: Support pubwork=article on citetitle - - * formal.xsl, table.xsl: Table updates - - * synop.xsl: Added block wrapper around paramdef in kr mode - - * xref.xsl: Remove anchor name on anchor; it erroneously duplicates the html anchor template - -2001-10-16 Norman Walsh - - * table.xsl: Table support improvements - -2001-10-15 Norman Walsh - - * inline.xsl: Fix formatting of keycombo - - * param.ent, param.xweb, table.xsl: Fix calculation of rowsep and colsep; added experimental support for table.borders.with.css in HTML; calculation of alignments needs to be added along the same lines - -2001-10-14 Norman Walsh - - * table.xsl: Fixed a number of significant outstanding table problems; I think HTML and FO now format all combinations of spans and missing cells correctly. But the border drawing isn't perfect on FO tables yet. - -2001-10-12 Norman Walsh - - * biblio.xsl: Tweaked bibliography formatting to include the labels - - * block.xsl: Improve formatting of block quotes - - * param.xweb: Fixed bogus attribute name - -2001-10-11 Norman Walsh - - * autoidx.xsl, docbook.xsl, index.xsl: Always use automatic indexing - -2001-10-09 Norman Walsh - - * Makefile: Fix typo - - * titlepage.templates.xml, titlepage.xsl: Make sure authorgroup doesn't output IDs on both recto and verso pages - -2001-10-08 Norman Walsh - - * .cvsignore, Makefile, param.ent, param.xsl, param.xweb: - Removed param.xsl; it's now generated from param.xweb - - * fo.xsl: Added an anchor named template - - * table.xsl: Moved several params to param.xsl; also changed hyphens to periods for consistency - - * titlepage.templates.xml: Made margin-left a parameter so it's easier to tweak along with page.margin.outer - - * titlepage.xsl: Keep section titles together with their sections - - * xref.xsl: Added names to the link templates - -2001-09-25 Norman Walsh - - * param.xsl, titlepage.xsl: Support automatic collation of year ranges in copyright - -2001-09-24 Norman Walsh - - * lists.xsl: Whitespace changes - -2001-09-23 Norman Walsh - - * lists.xsl: Patch #460123, fix for s 2 ff. in - -2001-09-22 Norman Walsh - - * xref.xsl: Bug #462830: allow %p in templates - - * xref.xsl: Bug #463033: allow xref to list items (in orderedlists) and varlistentrys - -2001-09-09 Norman Walsh - - * formal.xsl: Added keep-together.within-column - -2001-08-29 Norman Walsh - - * lists.xsl: Fix orderedlist numerations - -2001-08-09 Norman Walsh - - * component.xsl, titlepage.templates.xml, titlepage.xsl: - Support colophon - - * graphics.xsl: Forgot curly braces in AVT for height/width - - * inline.xsl: Remark|comment must be formatted as a block in case it appears at the paragraph-level in a component - -2001-08-05 Norman Walsh - - * callout.xsl, param.xsl: Removed the FormatDingbatCallout classes, they were the same as the FormatUnicodeCallout classes but with a font wrapper. Added a callout.unicode.font parameter to wrap Unicode callouts - -2001-08-02 Robert Stayton - - * xref.xsl: Changed with endterm to process the children nodes - and not just the text by calling a new mode="endterm" template. - - Also changed to process its endterm if the element content - is empty. - - Also changed the first use of name() to local-name() to - match the others in the file and in html/xref.xsl. - -2001-08-01 Norman Walsh - - * graphics.xsl: Use mediaobject.filename to calculate graphic reference - - * inline.xsl: Changed vertical-align to baseline-shift; vertical-align is a shortcut - - * sections.xsl: Added templates to suppress titleabbrev - - * table.xsl: Support table widths - - * titlepage.templates.xml, titlepage.xsl: Present othercredit on titlepages - -2001-07-31 Norman Walsh - - * fop.xsl, xep.xsl: Fixes for PDF bookmarks by Pavel Zampach - -2001-07-21 Norman Walsh - - * block.xsl, param.xsl: Fix title-end punctuation problems on formalparas - -2001-07-16 Norman Walsh - - * table.xsl: Add template for tfoot - - * table.xsl: Process thead/tbody/tfoot in the right order (thead/tfoot/tbody) - -2001-07-15 Norman Walsh - - * graphics.xsl: Fixed graphic height/width calculations - - * table.xsl: Output column number when namest is used - - * titlepage.xsl: Fix duplicate template bug - -2001-07-08 Norman Walsh - - * qandaset.xsl: Improve QandA formatting; make question bold if defaultlabel=none (FR #419315) - - * sections.xsl, xref.xsl: Support xref to bridgehead - -2001-07-05 Norman Walsh - - * lists.xsl, param.xsl: Added format.variablelist.as.list parameter - -2001-07-04 - - * biblio.xsl, param.xsl, xref.xsl: Support an external bibliography collection - - * docbook.xsl: Turn of indentation - - * fo.xsl, param.xsl: Added dingbat.font.family - - * qandaset.xsl: Bug #426166, fix duplicate id on qandaentry formatting - - * qandaset.xsl, xref.xsl: Bug #429011, fix xref to qandset elements - - * sections.xsl: Removed debugging messages; added prio for section title template - - * titlepage.templates.xml, titlepage.xsl: Remove internal references to *.titlepage.recto.mode and *.titlepage.verso.mode - -2001-06-22 Norman Walsh - - * docbook.xsl, ebnf.xsl: Support EBNF - - * docbook.xsl, xep.xsl: Fix XEP support for pdf bookmarks - - * inline.xsl: Support linkend to glossentry on glossterm - - * param.xsl, xep.xsl: Initial cut at bookmark and info support for RenderX's XEP--doesn't work yet - - * synop.xsl: Support SBR - - * xref.xsl: Support anchor - -2001-06-21 Norman Walsh - - * lists.xsl, param.xsl, xref.xsl: Use common code to calculate step numbers; support xref to procedures and steps; added formal.procedures parameter - -2001-06-20 Norman Walsh - - * refentry.xsl: Bug 434102: fix refentry inside of chapter and fix refsynopsisdiv formatting in both FO and HTML - - * titlepage.xsl, xref.xsl: Use person.name.list to generate author lists; put IDs on authors and author groups if appropriate; support xref to authorgroup - -2001-06-19 Norman Walsh - - * formal.xsl, param.xsl: Fix formatting of formal object titles. - -2001-06-15 Norman Walsh - - * graphics.xsl: Remove file:; why was I doing this? - -2001-06-14 Norman Walsh - - * sections.xsl: Bug fix: section autolabelling wasn't working in division bodies - - * titlepage.templates.xml: Changed text-alignment on centered titles to be 'center' rather than 'justify' - - * xref.xsl: Added anchor template - -2001-06-13 Norman Walsh - - * graphics.xsl, param.xsl: Support Arbortext extensions--at the moment, just to turn off the url() stuff in external graphic references - - * titlepage.xsl: Bug fix: make a single author in an authorgroup work correctly - -2001-06-08 Norman Walsh - - * callout.xsl, inline.xsl, synop.xsl: Fixed some unparameterized references to specific font families - -2001-06-04 Norman Walsh - - * block.xsl: Made blockquote indent more reasonable - - * graphics.xsl: Omit the url() wrapper around external-graphic srcs for FOP and PT - -2001-05-23 Norman Walsh - - * graphics.xsl: Fix dup. template bug with is.graphic.* - - * titlepage.xsl: Add template for publisher - -2001-05-21 Norman Walsh - - * callout.xsl, verbatim.xsl: Move calculation of linenumber.* parameters into the number.rtf.lines template - - * titlepage.templates.xml: Reworked titlepage template processing to support use of more interesting - predicates. - - Note: in previous versions, at most one title, subtitle, or titleabbrev - element would be processed for each title page. In the new design, if you - have multiple title, subtitle, or titleabbrev elements inside an info - wrapper (you shouldn't!), they will all be processed. - -2001-05-18 Norman Walsh - - * sections.xsl: Fix subtitle bug - -2001-05-12 Norman Walsh - - * sections.xsl: Calculate the heading level for bridgeheads - -2001-05-04 Norman Walsh - - * docbook.xsl: Replace hardcoded values on fo:root with parameters - -2001-05-03 Norman Walsh - - * biblio.xsl: Render author names correctly in bibliomixed mode - - * graphics.xsl: Tweak available graphics formats - -2001-05-03 Jirka Kosek - - * inline.xsl: Added support for class="xmlpi" and "emptytag". - Rendering of attributes is in sync with HTML stylesheet (monospace instead of normal). - -2001-05-03 Norman Walsh - - * param.xsl, verbatim.xsl: Created verbatim and monospace.verbatim property sets - - * table.xsl: Process head/body/foot in the right order - -2001-04-26 Norman Walsh - - * lists.xsl: Improve procedure step/substep enumeration - -2001-04-21 Norman Walsh - - * qandaset.xsl: My first crude attempts at support for qandaset - -2001-04-20 Norman Walsh - - * autoidx.xsl: Remove variable references from key functions; use entities instead. - -2001-04-19 Norman Walsh - - * inline.xsl: Add template for constant - -2001-04-17 Norman Walsh - - * component.xsl, division.xsl: Add templates for partinfo, chapterinfo, and appendixinfo - - * component.xsl, pagesetup.xsl: Use the new gentext scheme for component titles and running headers - - * docbook.xsl: Print warning message when an unhandled tag is encountered - - * docbook.xsl, param.xsl: Move label.from.part parameter into param.xsl; default it to 0 so that chapters and appendixes are numbered monotonically throughout a book by default. Moved param.xsl up in the include list, just for good measure - -2001-04-16 Norman Walsh - - * glossary.xsl: Improve formatting of glossseealso - - * table.xsl: Fix typo: used xsl:param where xsl:variable was required - -2001-04-15 Norman Walsh - - * division.xsl: Use new toc/lot parameters - - * docbook.xsl: Removed unused variable declaration - - * formal.xsl: Fixed typo - - * param.xsl: Added some new parameters - - * toc.xsl: Support DocBook toc markup - -2001-04-03 Norman Walsh - - * callout.xsl: Fix bug 412487, make XSL-generated callout marks honor callout mark parameters - - * param.xsl: Documentation fixes - -2001-04-02 Norman Walsh - - * .cvsignore, Makefile, admon.xsl, autoidx.xsl, autotoc.xsl, biblio.xsl, block.xsl, callout.xsl, component.xsl, division.xsl, docbook.xsl, fo.xsl, footnote.xsl, fop.xsl, formal.xsl, glossary.xsl, graphics.xsl, index.xsl, info.xsl, inline.xsl, keywords.xsl, lists.xsl, math.xsl, pagesetup.xsl, param.xsl, pi.xsl, qandaset.xsl, refentry.xsl, sections.xsl, synop.xsl, table.xsl, titlepage.templates.xml, titlepage.xsl, toc.xsl, verbatim.xsl, xref.xsl: - New file. - - * Makefile: Use the cvstools version of saxon - diff --git a/trunk/docs/xsl/docbook/fo/admon.xsl b/trunk/docs/xsl/docbook/fo/admon.xsl deleted file mode 100755 index 0f6f7c5d..00000000 --- a/trunk/docs/xsl/docbook/fo/admon.xsl +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - 36pt - - - - - - - - - note - warning - caution - tip - important - note - - - - - - - - - - url( - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/autoidx.xsl b/trunk/docs/xsl/docbook/fo/autoidx.xsl deleted file mode 100755 index f4a720da..00000000 --- a/trunk/docs/xsl/docbook/fo/autoidx.xsl +++ /dev/null @@ -1,792 +0,0 @@ - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - - - - - ) - - - - - - - - ( - - - - - - ) - - - - - - - - - - - - - <index> - - <indexdiv> - <title> - - - - </title> - - - - - </indexdiv> - - - - - - - </index> - - - - - - < - - > - - - - - - - - - <indexdiv> - <title> - - </title> - - - - - - </indexdiv> - - - - - - - - - - - - - - - - - - - <indexentry> - <primaryie> - <phrase> - - - - </phrase> - , - - - - - - - - - </primaryie> - - - - - - - - - - - - - - - - - - </indexentry> - - - - - - - - - <secondaryie> - <phrase> - - - - </phrase> - , - - - - - - - - - </secondaryie> - - - - - - - - - - - - - - - - - - - - - - - - <tertiaryie> - <phrase> - - - - </phrase> - , - - - - - - - - - </tertiaryie> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <phrase role="pageno"> - <link linkend=" - - "> - - - - - - - </link> - </phrase> - - - <phrase role="pageno"> - - <link linkend=" - - "> - - - - - - </link> - - </phrase> - - - - - - - - - - - - - - - - - - - - - <phrase fole="pageno"> - - <link linkend=" - - "> - - - - - - </link> - - </phrase> - - - - - - - - - - - - - - - - - <phrase role="pageno"> - - <link linkend=" - - "> - - - - - - </link> - - </phrase> - - - - - - - - <seeie> - <phrase> - - - - </phrase> - </seeie> - - - - - - - <seealsoie> - <phrase> - - - - </phrase> - </seealsoie> - - - - - - - - - - - - - &lt; - - - - - - - - &amp; - - - - - - - - &lt; - - - - - - - - &amp; - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/autotoc.xsl b/trunk/docs/xsl/docbook/fo/autotoc.xsl deleted file mode 100755 index bcc94cb0..00000000 --- a/trunk/docs/xsl/docbook/fo/autotoc.xsl +++ /dev/null @@ -1,522 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/biblio.xsl b/trunk/docs/xsl/docbook/fo/biblio.xsl deleted file mode 100755 index 5ebdb2f9..00000000 --- a/trunk/docs/xsl/docbook/fo/biblio.xsl +++ /dev/null @@ -1,1080 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No bibliography entry: - - found in - - - - Error: no bibliography entry: - - found in - - - - - - - - - - - - - - - - - - - - - - - - - - - No bibliography entry: - - found in - - - - Error: no bibliography entry: - - found in - - - - - - - - - - - - - - - - - - - - [ - - ] - - - [ - - ] - - - [ - - ] - - - [ - - ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copyright - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/block.xsl b/trunk/docs/xsl/docbook/fo/block.xsl deleted file mode 100755 index a5a4613e..00000000 --- a/trunk/docs/xsl/docbook/fo/block.xsl +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/callout.xsl b/trunk/docs/xsl/docbook/fo/callout.xsl deleted file mode 100755 index e6f9935a..00000000 --- a/trunk/docs/xsl/docbook/fo/callout.xsl +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Don't know how to do callouts with - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - url( - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - Don't know how to generate Unicode callouts - when $callout.unicode.start.character is - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/component.xsl b/trunk/docs/xsl/docbook/fo/component.xsl deleted file mode 100755 index afbe92a7..00000000 --- a/trunk/docs/xsl/docbook/fo/component.xsl +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - all - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/division.xsl b/trunk/docs/xsl/docbook/fo/division.xsl deleted file mode 100755 index 58f3734e..00000000 --- a/trunk/docs/xsl/docbook/fo/division.xsl +++ /dev/null @@ -1,563 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/docbook.xsl b/trunk/docs/xsl/docbook/fo/docbook.xsl deleted file mode 100755 index 715e4d66..00000000 --- a/trunk/docs/xsl/docbook/fo/docbook.xsl +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - encountered - - in - - - , but no template matches. - - - < - - > - - </ - - > - - - - - - - - - - - - - - [could not find document title] - - - - - - - - - - - - - - - - - - - - ID ' - - ' not found in document. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Making - - pages on - - paper ( - - x - - ) - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/ebnf.xsl b/trunk/docs/xsl/docbook/fo/ebnf.xsl deleted file mode 100755 index 43e9d499..00000000 --- a/trunk/docs/xsl/docbook/fo/ebnf.xsl +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - - -$Id$ - -Walsh -Norman -199920002001 -Norman Walsh - - -HTML EBNF Reference - - -
      Introduction - -This is technical reference documentation for the DocBook XSL -Stylesheets; it documents (some of) the parameters, templates, and -other elements of the stylesheets. - -This reference describes the templates and parameters relevant -to formatting EBNF markup. - -This is not intended to be user documentation. -It is provided for developers writing customization layers for the -stylesheets, and for anyone who's interested in how it -works. - -Although I am trying to be thorough, this documentation is known -to be incomplete. Don't forget to read the source, too :-) -
      -
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ - - ] - - - - - - - - - - - - - - - - - - - - - - ::= - - - - - - - - - - - - - - - - -   - - - - - - - - - - - - - - Error: no ID for productionrecap linkend: - - . - - - - - - Warning: multiple "IDs" for productionrecap linkend: - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - production - - - - - - - - - Non-terminals with no content must point to - production elements in the current document. - - - Invalid xpointer for empty nt: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ??? - - - - - - - - - - - - - /*  - -  */ - - - - - - - - - - constraintdef - - - - - - - - - - - - - - - - - - - : - - - - - - - : - - - - - - - - - -  ] - - - - - - - - - - - - - - - - - -
      diff --git a/trunk/docs/xsl/docbook/fo/fo-patch-for-fop.xsl b/trunk/docs/xsl/docbook/fo/fo-patch-for-fop.xsl deleted file mode 100755 index 246609fc..00000000 --- a/trunk/docs/xsl/docbook/fo/fo-patch-for-fop.xsl +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/fo-rtf.xsl b/trunk/docs/xsl/docbook/fo/fo-rtf.xsl deleted file mode 100755 index 83a11d35..00000000 --- a/trunk/docs/xsl/docbook/fo/fo-rtf.xsl +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/fo.xsl b/trunk/docs/xsl/docbook/fo/fo.xsl deleted file mode 100755 index 828e2b4b..00000000 --- a/trunk/docs/xsl/docbook/fo/fo.xsl +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - bullet - - - o - © - - - ® - (SM) - " - " - ' - ' - -- - - - o - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/footnote.xsl b/trunk/docs/xsl/docbook/fo/footnote.xsl deleted file mode 100755 index dbb6c02e..00000000 --- a/trunk/docs/xsl/docbook/fo/footnote.xsl +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: footnote number may not be generated - correctly; - - unexpected as first child of footnote. - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/fop.xsl b/trunk/docs/xsl/docbook/fo/fop.xsl deleted file mode 100755 index 9520dfae..00000000 --- a/trunk/docs/xsl/docbook/fo/fop.xsl +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/formal.xsl b/trunk/docs/xsl/docbook/fo/formal.xsl deleted file mode 100755 index 413fbfaa..00000000 --- a/trunk/docs/xsl/docbook/fo/formal.xsl +++ /dev/null @@ -1,680 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - always - - - always - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - before - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - before - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - all - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - none - none - none - - - - - - - - - - - - - - - - - - none - none - - - - - - - - - - - - - - - none - none - - - - none - - - - - - - - - none - none - - - - - - - - - - - - - - - - - - - - - none - none - none - none - - - - Impossible frame on table: - - - none - none - none - none - - - - - - - - - - - - - - - - - before - - - - - - - - - - - - - - - - - - - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - fixed - - - - - - - - - - - - - - - - - - - - - - - - - - - - all - none - - - - - - - - - - - - all - none - - - - - - - - - - - - - - - - - - before - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - fixed - - - - - - - - - - - - - - - - - - - - - all - none - - - - - - - - - - - - all - none - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/glossary.xsl b/trunk/docs/xsl/docbook/fo/glossary.xsl deleted file mode 100755 index b881436b..00000000 --- a/trunk/docs/xsl/docbook/fo/glossary.xsl +++ /dev/null @@ -1,811 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: processing automatic glossary - without a glossary.collection file. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: processing automatic glossary - without a glossary.collection file. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: processing automatic glossary - without a glossary.collection file. - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 1 - - - - - - - - - - - - ( - - ) - - - - - - - - - - - - ( - - ) - - - - - - - - - - - - - - - - - - - - , - - - - - , - - - - - , - - - - - - - - - - - - - - - - - - - - - - Warning: glosssee @otherterm reference not found: - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: glossseealso @otherterm reference not found: - - - - - - - - - - - - . - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 1 - - - - - - - - - - ( - - ) - - - - - - - - - - - - ( - - ) - - - - - - - - - - - - - - - - - - - , - - - - - , - - - - - , - - - - - - - - - - - - - - - - - - Warning: glosssee @otherterm reference not found: - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Warning: glossseealso @otherterm reference not found: - - - - - - - - - - - - . - - - , - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/graphics.xsl b/trunk/docs/xsl/docbook/fo/graphics.xsl deleted file mode 100755 index 5e6c0013..00000000 --- a/trunk/docs/xsl/docbook/fo/graphics.xsl +++ /dev/null @@ -1,520 +0,0 @@ - - - - - - - - - - - - - PNG PDF JPG JPEG linespecific - - - SVG PNG PDF JPG JPEG linespecific - - - PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF BMP - - - SVG PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF BMP - - - PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF BMP - - - - - - - 1 - - - - - - - png pdf jpg jpeg - - - svg png pdf jpg jpeg - - - png pdf jpg jpeg gif tif tiff bmp - - - svg png pdf jpg jpeg gif tif tiff bmp - - - png pdf jpg jpeg gif tif tiff bmp - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 0 - 0 - - 1 - 0 - - - - - - 0 - 1.0 - - - - 1.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto - - - - - - - - - - auto - - - - - - auto - - - - - - - - - - auto - - - - - - auto - - - - - - - - - - - - % - - auto - - - - - - auto - - - - - - - - - - - - % - - auto - - - - - - - - - - - - - - - - - - - before - center - after - auto - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Don't know how to insert files with - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Don't know how to insert files with - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No insertfile extension available. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/index.xsl b/trunk/docs/xsl/docbook/fo/index.xsl deleted file mode 100755 index 1d59cdc0..00000000 --- a/trunk/docs/xsl/docbook/fo/index.xsl +++ /dev/null @@ -1,326 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - body - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - body - index - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - , - - - - - - - - - - - - - - - - - - - - - - ( - - - - - - ) - - - - - - - - - ( - - - - - - ) - - - - - - - - - ( - - - - - - ) - - - - - - - - - - - - - - - 3pc - 2pc - 1pc - - - ( - - - - - - ) - - - - diff --git a/trunk/docs/xsl/docbook/fo/info.xsl b/trunk/docs/xsl/docbook/fo/info.xsl deleted file mode 100755 index bca6ce08..00000000 --- a/trunk/docs/xsl/docbook/fo/info.xsl +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/inline.xsl b/trunk/docs/xsl/docbook/fo/inline.xsl deleted file mode 100755 index 8eb9ca49..00000000 --- a/trunk/docs/xsl/docbook/fo/inline.xsl +++ /dev/null @@ -1,872 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - XLink to nonexistent id: - - - ??? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - ) - - - - - - - - - - - , - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - There's no entry for - - in - - - - - - - gl. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Error: no glossentry for glossterm: - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - element - - - - - - - - - - - - - - - - - </ - - > - - - - - - - & - - ; - - - - - - - &# - - ; - - - - - - - % - - ; - - - - - - - <? - - > - - - - - - - <? - - ?> - - - - - - - < - - > - - - - - - - < - - /> - - - - - - - <!-- - - --> - - - - - - - - - - - - - - < - - > - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - ( - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ - - ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/keywords.xsl b/trunk/docs/xsl/docbook/fo/keywords.xsl deleted file mode 100755 index 2303b35d..00000000 --- a/trunk/docs/xsl/docbook/fo/keywords.xsl +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/lists.xsl b/trunk/docs/xsl/docbook/fo/lists.xsl deleted file mode 100755 index eba1da51..00000000 --- a/trunk/docs/xsl/docbook/fo/lists.xsl +++ /dev/null @@ -1,917 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.5em - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2em - - - - - - - - - - - - - - - - 1. - a. - i. - A. - I. - - - - Unexpected numeration: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - em - - - - - - - - - - em - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - 1 - 1 - - - - - - - - - - - - - - - - - - - - 1 - 1 - - 1 - - - - - - - - - - - - - - - - - - - - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - 1 - 1 - 1 - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - before - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - : ??? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ??? - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/math.xsl b/trunk/docs/xsl/docbook/fo/math.xsl deleted file mode 100755 index f71c979f..00000000 --- a/trunk/docs/xsl/docbook/fo/math.xsl +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $ - - - - $ - - - - - - - - - - - - - $$ - - - - $$ - - - - - - - - - Your equation is misplaced. It should be in inlineequation, equation or informalequation. - - - - - - - - - - - - - - 0 - 0 - 1 - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/pagesetup.xsl b/trunk/docs/xsl/docbook/fo/pagesetup.xsl deleted file mode 100755 index 4b21364c..00000000 --- a/trunk/docs/xsl/docbook/fo/pagesetup.xsl +++ /dev/null @@ -1,1699 +0,0 @@ - - - - - - - - - - - - - - blank-body - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - fixed - no-repeat - center - center - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lot - front - front - back - back - back - index - back - body - - - - - -draft - - - - - - -draft - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.5pt - solid - black - - - - - - 0.5pt - solid - black - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - baseline - - - - - - - - - - - - - baseline - - - - - - - - - - - - - baseline - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - baseline - - - - - - - - - - - - - baseline - - - - - - - - - - - - - baseline - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - i - i - i - 1 - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/param.ent b/trunk/docs/xsl/docbook/fo/param.ent deleted file mode 100755 index 2fe857e4..00000000 --- a/trunk/docs/xsl/docbook/fo/param.ent +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/param.xml b/trunk/docs/xsl/docbook/fo/param.xml deleted file mode 100755 index cbb8b6ad..00000000 --- a/trunk/docs/xsl/docbook/fo/param.xml +++ /dev/null @@ -1,6068 +0,0 @@ - - - - - - -FO Parameter Reference - -$Id$ - - - Walsh - Norman - - - 1999 - 2000 - 2001 - Norman Walsh - - - -Introduction - -This is technical reference documentation for the DocBook XSL -Stylesheets; it documents (some of) the parameters, templates, and -other elements of the stylesheets. - -This reference describes each of the HTML Stylesheet parameters. -These are the easily customizable parts of the stylesheet. -If you want to specify an alternate value for one or more of these -parameters, you can do so in a driver stylesheet. - -For example, if you want to change the html.stylesheet -to reference.css, you might create a driver -stylesheet like this: - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version='1.0'> - - <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/> - - <xsl:param name="html.stylesheet">reference.css</xsl:param> - -</xsl:stylesheet> - -Naturally, you have to change the -href attribute on -<xsl:import> to point to -docbook.xsl on your system. (Or -chunk.xsl, if you're using chunking.) - -This is not intended to be user documentation. -It is provided for developers writing customization layers for the -stylesheets, and for anyone who's interested in how it -works. - -Although I am trying to be thorough, this documentation is known -to be incomplete. Don't forget to read the source, too :-) - - -Admonitions - - -admon.graphics -boolean - - -admon.graphics -Use graphics in admonitions? - - - -<xsl:param name="admon.graphics" - select="0"/> - - -Description - -If true (non-zero), admonitions are presented in an alternate style that uses -a graphic. Default graphics are provided in the distribution. - - - - - - - -admon.graphics.extension -string - - -admon.graphics.extension -Extension for admonition graphics - - - -<xsl:param name="admon.graphics.extension" - select="'.png'"/> - - -Description - -Sets the extension to use on admonition graphics. - - - - - - -admon.graphics.path -string - - -admon.graphics.path -Path to admonition graphics - - - -<xsl:param name="admon.graphics.path">images/</xsl:param> - - -Description - -Sets the path, probably relative to the directory where the HTML -files are created, to the admonition graphics. - - - - - - - -admonition.title.properties -To set the style for admonitions titles. - - - -<xsl:attribute-set name="admonition.title.properties"> - <xsl:attribute name="font-size">14pt</xsl:attribute> - <xsl:attribute name="font-weight">bold</xsl:attribute> - <xsl:attribute name="hyphenate">false</xsl:attribute> - <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> -</xsl:attribute-set> - -Description -How do you want admonitions titles styled? -Set the font-size, weight etc to the style required. - - - - - - -admonition.properties -To set the style for admonitions. - - - -<xsl:attribute-set name="admonition.properties"/> - -Description -How do you want admonitions styled? -Set the font-size, weight, etc. to the style required - - - - - - -Callouts - - -callout.defaultcolumn -integer - - -callout.defaultcolumn -Indicates what column callouts appear in by default - - - -<xsl:param name="callout.defaultcolumn" - select="'60'"/> - - -Description - -If a callout does not identify a column (for example, if it uses -the linerange unit), -it will appear in the default column. - - - - - - - -callout.graphics -boolean - - -callout.graphics -Use graphics for callouts? - - - -<xsl:param name="callout.graphics" - select="'1'"/> - - -Description - -If non-zero, callouts are presented with graphics (e.g., reverse-video -circled numbers instead of "(1)", "(2)", etc.). -Default graphics are provided in the distribution. - - - - - - - -callout.graphics.extension -string - - -callout.graphics.extension -Extension for callout graphics - - - -<xsl:param name="callout.graphics.extension" - select="'.png'"/> - - -Description - -Sets the extension to use on callout graphics. - - - - - - -callout.graphics.number.limit -integer - - -callout.graphics.number.limit -Number of the largest callout graphic - - - -<xsl:param name="callout.graphics.number.limit" - select="'10'"/> - - -Description - -If callout.graphics -is non-zero, 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. - - - - - - - -callout.graphics.path -string - - -callout.graphics.path -Path to callout graphics - - - -<xsl:param name="callout.graphics.path" - select="'images/callouts/'"/> - - -Description - -Sets the path, probably relative to the directory where the HTML -files are created, to the callout graphics. - - - - - - - -callout.unicode -boolean - - -callout.unicode -Use Unicode characters rather than images for callouts. - - - -<xsl:param name="callout.unicode" - select="0"/> - - -Description - -The stylesheets can use either an image of the numbers one to ten, or the single Unicode character which represents the numeral, in white on a black background. Use this to select the Unicode character option. - - - - - - - -callout.unicode.font - - - -callout.unicode.font -Specify a font for Unicode glyphs - - - -<xsl:param name="callout.unicode.font" - select="'ZapfDingbats'"/> - - -Description - -The name of the font to specify around Unicode callout glyphs. -If set to the empty string, no font change will occur. - - - - - - - -callout.unicode.number.limit -integer - - -callout.unicode.number.limit -Number of the largest callout graphic - - - -<xsl:param name="callout.unicode.number.limit" - select="'10'"/> - - -Description - -If callout.unicode -is non-zero, unicode characters are used to represent -callout numbers. The value of -callout.unicode.number.limit -is -the largest number for which a unicode character exists. If the callout number -exceeds this limit, the default presentation "(nnn)" will always -be used. - - - - - - - -callout.unicode.start.character -integer - - -callout.unicode.start.character -First Unicode character to use, decimal value. - - - -<xsl:param name="callout.unicode.start.character" - select="10102"/> - - -Description - -If callout.graphics is zero and callout.unicode -is non-zero, unicode characters are used to represent -callout numbers. The value of -callout.unicode.start.character -is the decimal unicode value used for callout number one. Currently, -only 10102 is supported in the stylesheets for this parameter. - - - - - - - -callouts.extension -boolean - - -callouts.extension -Enable the callout extension - - - -<xsl:param name="callouts.extension" - select="'1'"/> - - -Description - -The callouts extension processes areaset -elements in ProgramListingCO and other text-based -callout elements. - - - - - - - -ToC/LoT/Index Generation - - -autotoc.label.separator -string - - -autotoc.label.separator -Separator between labels and titles in the ToC - - - -<xsl:param name="autotoc.label.separator" - select="'. '"/> - - -Description - -String to use to seperate labels and title in a table of contents. - - - - - - -process.empty.source.toc -boolean - - -process.empty.source.toc -FIXME: - - - -<xsl:param name="process.empty.source.toc" - select="0"/> - - -Description - -FIXME: - - - - - - - -process.source.toc -boolean - - -process.source.toc -FIXME: - - - -<xsl:param name="process.source.toc" - select="0"/> - - -Description - -FIXME: - - - - - - - -generate.toc -table - - -generate.toc -Control generation of ToCs and LoTs - - - - -<xsl:param name="generate.toc"> -/appendix toc,title -article/appendix nop -/article toc,title -book toc,title,figure,table,example,equation -/chapter toc,title -part toc,title -/preface toc,title -qandadiv toc -qandaset toc -reference toc,title -/sect1 toc -/sect2 toc -/sect3 toc -/sect4 toc -/sect5 toc -/section toc -set toc,title -</xsl:param> - - -Description - -This parameter has a structured value. It is a table of space-delimited -path/value pairs. Each path identifies some element in the source document -using a restricted subset of XPath (only the implicit child axis, no wildcards, -no predicates). Paths can be either relative or absolute. - -When processing a particular element, the stylesheets consult this table to -determine if a ToC (or LoT(s)) should be generated. - -For example, consider the entry: - -book toc,figure - -This indicates that whenever a book is formatted, a -Table Of Contents and a List of Figures should be generated. Similarly, - -/chapter toc - -indicates that whenever a document that has a root -of chapter is formatted, a Table of -Contents should be generated. The entry chapter would match -all chapters, but /chapter matches only chapter -document elements. - -Generally, the longest match wins. So, for example, if you want to distinguish -articles in books from articles in parts, you could use these two entries: - -book/article toc,figure -part/article toc - -Note that an article in a part can never match a book/article, -so if you want nothing to be generated for articles in parts, you can simply leave -that rule out. - -If you want to leave the rule in, to make it explicit that you're turning -something off, use the value nop. For example, the following -entry disables ToCs and LoTs for articles: - -article nop - -Do not simply leave the word article in the file -without a matching value. That'd be just begging the silly little -path/value parser to get confused. - -Section ToCs are further controlled by the -generate.section.toc.level parameter. -For a given section level to have a ToC, it must have both an entry in -generate.toc and be within the range enabled by -generate.section.toc.level. - - - - - -generate.index -boolean - - -generate.index -Do you want an index? - - - -<xsl:param name="generate.index" - select="1"/> - - -Description - -Specify if an index should be generated. - - - - - - -make.index.markup -boolean - - -make.index.markup -Generate XML index markup in the index? - - - -<xsl:param name="make.index.markup" - select="0"/> - - -Description - -This parameter enables a very neat trick for getting properly -merged, collated back-of-the-book indexes. G. Ken Holman suggested -this trick at Extreme Markup Languages 2002 and I'm indebted to him -for it. - -Jeni Tennison's excellent code in -autoidx.xsl does a great job of merging and -sorting indexterms in the document and building a -back-of-the-book index. However, there's one thing that it cannot -reasonably be expected to do: merge page numbers into ranges. (I would -not have thought that it could collate and suppress duplicate page -numbers, but in fact it appears to manage that task somehow.) - -Ken's trick is to produce a document in which the index at the -back of the book is displayed in XML. Because the index -is generated by the FO processor, all of the page numbers have been resolved. -It's a bit hard to explain, but what it boils down to is that instead of having -an index at the back of the book that looks like this: - -
      -A -ap1, 1, 2, 3 - -
      - -you get one that looks like this: - -
      -<indexdiv>A</indexdiv> -<indexentry> -<primaryie>ap1</primaryie>, -<phrase role="pageno">1</phrase>, -<phrase role="pageno">2</phrase>, -<phrase role="pageno">3</phrase> -</indexentry> -
      - -After building a PDF file with this sort of odd-looking index, you can -extract the text from the PDF file and the result is a proper index expressed in -XML. - -Now you have data that's amenable to processing and a simple Perl script -(such as fo/pdf2index) can -merge page ranges and generate a proper index. - -Finally, reformat your original document using this literal index instead of -an automatically generated one and bingo! - -
      -
      - - - -toc.section.depth -integer - - -toc.section.depth -How deep should recursive sections appear -in the TOC? - - - -<xsl:param name="toc.section.depth">2</xsl:param> - - -Description - -Specifies the depth to which recursive sections should appear in the -TOC. - - - - - - - -toc.indent.width -float - - -toc.indent.width -Amount of indentation for TOC entries - - - -<xsl:param name="toc.indent.width" - select="24"/> - - -Description - -Specifies, in points, the distance by which each level of the -TOC is indented from its parent. - -This value is expressed in points, without -a unit (in other words, it is a bare number). Using a bare number allows the stylesheet -to perform calculations that would otherwise have to be performed by the FO processor -because not all processors support expressions. - - - - - - -toc.margin.properties -Margin properties used on Tables of Contents - - - -<xsl:attribute-set name="toc.margin.properties"> - <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute> - <xsl:attribute name="space-before.optimum">1em</xsl:attribute> - <xsl:attribute name="space-before.maximum">2em</xsl:attribute> - <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute> - <xsl:attribute name="space-after.optimum">1em</xsl:attribute> - <xsl:attribute name="space-after.maximum">2em</xsl:attribute> -</xsl:attribute-set> - - -Description -This attribute set is used on Tables of Contents. These attributes are set -on the wrapper that surrounds the ToC block, not on each individual lines. - - - - - -bridgehead.in.toc -boolean - - -bridgehead.in.toc -Should bridgehead elements appear in the TOC? - - - -<xsl:param name="bridgehead.in.toc" - select="0"/> - - -Description - -If non-zero, bridgeheads appear in the TOC. Note that this option -is not fully supported and may be removed in a future version of the -stylesheets. - - - - - - - -generate.section.toc.level -integer - - -generate.section.toc.level -Control depth of TOC generation in sections - - - -<xsl:param name="generate.section.toc.level" - select="0"/> - - -Description - -The generate.section.toc.level parameter -controls the depth of section in which TOCs will be generated. Note -that this is related to, but not the same as -toc.section.depth, which controls the depth to -which TOC entries will be generated in a given TOC. -If, for example, generate.section.toc.level -is 3, TOCs will be generated in first, second, and third -level sections, but not in fourth level sections. - - - - - - - - -
      - -Processor Extensions - - -arbortext.extensions -boolean - - -arbortext.extensions -Enable Arbortext extensions? - - - -<xsl:param name="arbortext.extensions" - select="0"/> - - -Description - -If non-zero, -Arbortext -extensions will be used. - - - - - - - -fop.extensions -boolean - - -fop.extensions -Enable FOP extensions? - - - -<xsl:param name="fop.extensions" - select="0"/> - - -Description - -If non-zero, -FOP -extensions will be used. At present, this consists of PDF bookmarks. - - - - - - - -passivetex.extensions -boolean - - -passivetex.extensions -Enable PassiveTeX extensions? - - - -<xsl:param name="passivetex.extensions" - select="0"/> - - -Description - -If non-zero, -PassiveTeX -extensions will be used. At present, this consists of PDF bookmarks -and sorted index terms. - - - - - - - -tex.math.in.alt -string - - -tex.math.in.alt -TeX notation used for equations - - - -<xsl:param name="tex.math.in.alt" - select="''"/> - - -Description - -If you want type math directly in TeX notation in equations, -this parameter specifies notation used. Currently are supported two -values -- plain and latex. Empty -value means that you are not using TeX math at all. - -Preferred way for including TeX alternative of math is inside of -textobject element. Eg.: - -<inlineequation> -<inlinemediaobject> -<imageobject> -<imagedata fileref="eq1.gif"/> -</imageobject> -<textobject><phrase>E=mc squared</phrase></textobject> -<textobject role="tex"><phrase>E=mc^2</phrase></textobject> -</inlinemediaobject> -</inlineequation> - -If you are using graphic element, you can -store TeX inside alt element: - -<inlineequation> -<alt role="tex">a^2+b^2=c^2</alt> -<graphic fileref="a2b2c2.gif"/> -</inlineequation> - -If you want use this feature, you should process your FO with -PassiveTeX, which only supports TeX math notation. When calling -stylsheet, don't forget to specify also -passivetex.extensions=1. - -If you want equations in HTML, just process generated file -tex-math-equations.tex by TeX or LaTeX. Then run -dvi2bitmap program on result DVI file. You will get images for -equations in your document. - - - - - - -tex.math.delims -boolean - - -tex.math.delims -Should be equations outputed for processing by TeX -automatically surrounded by math mode delimiters - - - -<xsl:param name="tex.math.delims" - select="'1'"/> - - -Description - -For compatibility with DSSSL based DBTeXMath from Allin Cottrell -you should set this parameter to 0. - - - - - - -xep.extensions -boolean - - -xep.extensions -Enable XEP extensions? - - - -<xsl:param name="xep.extensions" - select="0"/> - - -Description - -If non-zero, -XEP -extensions will be used. XEP extensions consists of PDF bookmarks and document information. - - - - - - - -Stylesheet Extensions - - -linenumbering.everyNth -integer - - -linenumbering.everyNth -Indicate which lines should be numbered - - - -<xsl:param name="linenumbering.everyNth" - select="'5'"/> - - -Description - -If line numbering is enabled, everyNth line will be numbered. - - - - - - - -linenumbering.extension -boolean - - -linenumbering.extension -Enable the line numbering extension - - - -<xsl:param name="linenumbering.extension" - select="'1'"/> - - -Description - -If true, verbatim environments (elements that have the -format='linespecific' notation attribute: address, literallayout, -programlisting, screen, synopsis) that specify line numbering will -have, surprise, line numbers. - - - - - - - -linenumbering.separator -string - - -linenumbering.separator -Specify a separator between line numbers and lines - - - -<xsl:param name="linenumbering.separator" - select="' '"/> - - -Description - -The separator is inserted between line numbers and lines in -the verbatim environment. - - - - - - - -linenumbering.width -integer - - -linenumbering.width -Indicates the width of line numbers - - - -<xsl:param name="linenumbering.width" - select="'3'"/> - - -Description - -If line numbering is enabled, line numbers will appear right -justified in a field "width" characters wide. - - - - - - - -tablecolumns.extension -boolean - - -tablecolumns.extension -Enable the table columns extension function - - - -<xsl:param name="tablecolumns.extension" - select="'1'"/> - - -Description - -The table columns extension function adjusts the widths of table -columns in the HTML result to more accurately reflect the specifications -in the CALS table. - - - - - - - -textinsert.extension -boolean - - -textinsert.extension -Enable the textinsert extension element - - - -<xsl:param name="textinsert.extension" - select="'1'"/> - - -Description - -The textinsert extension element inserts the contents of a -a file into the result tree (as text). - - - - - - - -use.extensions -boolean - - -use.extensions -Enable extensions - - - -<xsl:param name="use.extensions" - select="'0'"/> - - -Description - -If non-zero, extensions may be used. Each extension is -further controlled by its own parameter. But if -use.extensions is zero, no extensions will -be used. - - - - - - - -Automatic labelling - - -appendix.autolabel -boolean - - -appendix.autolabel -Are Appendixes automatically enumerated? - - - -<xsl:param name="appendix.autolabel" - select="1"/> - - -Description - -If true (non-zero), unlabeled appendixes will be -enumerated. - - - - - - - -chapter.autolabel -boolean - - -chapter.autolabel -Are chapters automatically enumerated? - - - -<xsl:param name="chapter.autolabel" - select="1"/> - - -Description - -If true (non-zero), unlabeled chapters will be enumerated. - - - - - - - -part.autolabel -boolean - - -part.autolabel -Are parts and references enumerated? - - - -<xsl:param name="part.autolabel" - select="1"/> - - -Description - -If true (non-zero), unlabeled parts and references will be enumerated. - - - - - - - -preface.autolabel -boolean - - -preface.autolabel -Are prefaces enumerated? - - - -<xsl:param name="preface.autolabel" - select="0"/> - - -Description - -If true (non-zero), unlabeled prefaces will be enumerated. - - - - - - - -section.autolabel -boolean - - -section.autolabel -Are sections enumerated? - - - -<xsl:param name="section.autolabel" - select="0"/> - - -Description - -If true (non-zero), unlabeled sections will be enumerated. - - - - - - - -section.label.includes.component.label -boolean - - -section.label.includes.component.label -Do section labels include the component label? - - - -<xsl:param name="section.label.includes.component.label" - select="0"/> - - -Description - -If true (non-zero), section labels are prefixed with the label of the -component that contains them. - - - - - - - -label.from.part -boolean - - -label.from.part -Renumber chapters in each part? - - - -<xsl:param name="label.from.part" - select="'0'"/> - - -Description - -If label.from.part is non-zero, components -(chapters, appendixes, etc.) -will be numbered from 1 in each part. Otherwise, -they will be numbered monotonically throughout each -book. - - - - - - - -XSLT Processing - - -rootid -string - - -rootid -Specify the root element to format - - - -<xsl:param name="rootid" - select="''"/> - - -Description - -If rootid is specified, it must be the -value of an ID that occurs in the document being formatted. The entire -document will be loaded and parsed, but formatting will begin at the -element identified, rather than at the root. For example, this allows -you to process only chapter 4 of a book. -Because the entire document is available to the processor, automatic -numbering, cross references, and other dependencies are correctly -resolved. - - - - - - -Meta/*Info - - -make.single.year.ranges -boolean - - -make.single.year.ranges -Print single-year ranges (e.g., 1998-1999) - - - -<xsl:param name="make.single.year.ranges" - select="0"/> - - -Description - -If non-zero, year ranges that span a single year will be printed -in range notation (1998-1999) instead of discrete notation -(1998, 1999). - - - - - - -make.year.ranges -boolean - - -make.year.ranges -Collate copyright years into ranges? - - - -<xsl:param name="make.year.ranges" - select="0"/> - - -Description - -If non-zero, copyright years will be collated into ranges. - - - - - - -author.othername.in.middle -boolean - - -author.othername.in.middle -Is othername in author a -middle name? - - - -<xsl:param name="author.othername.in.middle" - select="1"/> - - -Description - -If true (non-zero), the othername of an author -appears between the firstname and -surname. Otherwise, othername -is suppressed. - - - - - - - -Reference Pages - - -funcsynopsis.decoration -boolean - - -funcsynopsis.decoration -Decorate elements of a FuncSynopsis? - - - -<xsl:param name="funcsynopsis.decoration" - select="1"/> - - -Description - -If true (non-zero), 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. - - - - - - - -funcsynopsis.style -list -ansi -kr - - -funcsynopsis.style -What style of 'FuncSynopsis' should be generated? - - - -<xsl:param name="funcsynopsis.style">kr</xsl:param> - - -Description - -If funcsynopsis.style is ansi, -ANSI-style function synopses are generated for a -funcsynopsis, otherwise K&R-style -function synopses are generated. - - - - - - - -function.parens -boolean - - -function.parens -Generate parens after a function? - - - -<xsl:param name="function.parens">0</xsl:param> - - -Description - -If not 0, the formatting of -a function element will include -generated parenthesis. - - - - - - - -refentry.generate.name -boolean - - -refentry.generate.name -Output NAME header before 'RefName'(s)? - - - -<xsl:param name="refentry.generate.name" - select="1"/> - - -Description - -If true (non-zero), a "NAME" section title is output before the list -of 'RefName's. This parameter and -refentry.generate.title are mutually -exclusive. This means that if you change this parameter to zero, you -should set refentry.generate.title to 1 unless -you want get quite strange output. - - - - - - - -refentry.generate.title -boolean - - -refentry.generate.title -Output title before 'RefName'(s)? - - - -<xsl:param name="refentry.generate.title" - select="0"/> - - -Description - -If true (non-zero), the reference page title or first name is -output before the list of 'RefName's. This parameter and -refentry.generate.name are mutually exclusive. -This means that if you change this parameter to 1, you -should set refentry.generate.name to 0 unless -you want get quite strange output. - - - - - - - -refentry.title.properties -attribute set - - -refentry.title.properties -Title properties for a refentry title - - - -<xsl:attribute-set name="refentry.title.properties"> - <xsl:attribute name="font-family"> - <xsl:value-of select="$title.font.family"/> - </xsl:attribute> - <xsl:attribute name="font-size">18pt</xsl:attribute> - <xsl:attribute name="font-weight">bold</xsl:attribute> - <xsl:attribute name="space-after">1em</xsl:attribute> - <xsl:attribute name="hyphenate">false</xsl:attribute> - <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> - <xsl:attribute name="space-after.optimum">0.5em</xsl:attribute> - <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute> - <xsl:attribute name="space-after.maximum">0.6em</xsl:attribute> -</xsl:attribute-set> - - -Description - -FIXME: - - - - - - -refentry.xref.manvolnum -boolean - - -refentry.xref.manvolnum -Output manvolnum as part of -refentry cross-reference? - - - -<xsl:param name="refentry.xref.manvolnum" - select="1"/> - - -Description - -if true (non-zero), the manvolnum is used when cross-referencing -refentrys, either with xref -or citerefentry. - - - - - - - -Tables - - -default.table.width -length - - -default.table.width -The default width of tables - - - -<xsl:param name="default.table.width" - select="''"/> - - -Description - -If specified, this value will be used for the WIDTH attribute on -tables that do not specify an alternate width (with the dbhtml processing -instruction). - - - - - - -nominal.table.width -length - - -nominal.table.width -The (absolute) nominal width of tables - - - -<xsl:param name="nominal.table.width" - select="'6in'"/> - - -Description - -In order to convert CALS column widths into HTML column widths, it -is sometimes necessary to have an absolute table width to use for conversion -of mixed absolute and relative widths. This value must be an absolute -length (not a percentag). - - - - - - -table.cell.padding - - - -table.cell.padding - - - - -<xsl:attribute-set name="table.cell.padding"> - <xsl:attribute name="padding-left">2pt</xsl:attribute> - <xsl:attribute name="padding-right">2pt</xsl:attribute> - <xsl:attribute name="padding-top">2pt</xsl:attribute> - <xsl:attribute name="padding-bottom">2pt</xsl:attribute> -</xsl:attribute-set> - - -Description - -FIXME: - - - - - - -table.frame.border.thickness - - - -table.frame.border.thickness -Specifies the thickness of the frame border - - - -<xsl:param name="table.frame.border.thickness" - select="'0.5pt'"/> - - -Description - -Specifies the thickness of the border on the table's frame. - - - - - - -table.frame.border.style - - - -table.frame.border.style - - - - -<xsl:param name="table.frame.border.style" - select="'solid'"/> - - -Description - -FIXME: - - - - - - -table.frame.border.color - - - -table.frame.border.color - - - - - -<xsl:param name="table.frame.border.color" - select="'black'"/> - - -Description - -FIXME: - - - - - - -table.cell.border.thickness - - - -table.cell.border.thickness - - - - -<xsl:param name="table.cell.border.thickness" - select="'0.5pt'"/> - - -Description - -FIXME: - - - - - - -table.cell.border.style - - - -table.cell.border.style - - - - -<xsl:param name="table.cell.border.style" - select="'solid'"/> - - -Description - -FIXME: - - - - - - -table.cell.border.color - - - -table.cell.border.color - - - - - -<xsl:param name="table.cell.border.color" - select="'black'"/> - - -Description - -FIXME: - - - - - - -Linking - - -target.database.document -uri - - -target.database.document -Name of master database file for resolving -olinks - - <xsl:param name="target.database.document" - select="''"/> - - -Description - -To resolve olinks between documents, the stylesheets use -a master database document that identifies the target datafiles for all the documents within the scope -of the olinks. This parameter value is the URI of -the master document to be read during processing to resolve olinks. -The default value is olinkdb.xml. -The data structure of the file is defined in the targetdatabase.dtd DTD. The database file provides the high level elements to record the identifiers, locations, and relationships of documents. The cross reference data for individual documents is generally pulled into the database using system entity references or XIncludes. See also targets.filename. - - - - - - - -use.local.olink.style -boolean - - -use.local.olink.style -Process olinks using xref style of current -document - - <xsl:param name="use.local.olink.style" - select="0"/> - - -Description -When cross reference data is collected for use by olinks, the data for each potential target includes one field containing a completely assembled cross reference string, as if it were an xref generated in that document. Other fields record the separate title, number, and element name of each target. When an olink is formed to a target from another document, the olink resolves to that preassembled string by default. If the use.local.olink.style parameter is set to non-zero, then instead the cross -reference string is formed again from the target title, number, and -element name, using the stylesheet processing the targeting document. -Then olinks will match the xref style in the targeting document -rather than in the target document. If both documents are processed -with the same stylesheet, then the results will be the same. - - - - - -current.docid -string - - -current.docid -targetdoc identifier for the document being -processed - - <xsl:param name="current.docid" - select="''"/> - - -Description -When olinks between documents are resolved for HTML output, the stylesheet can compute the relative path between the current document and the target document. The stylesheet needs to know the targetdoc identifiers for both documents, as they appear in the target.database.document database file. This parameter passes to the stylesheet -the targetdoc identifier of the current document, since that -identifier does not appear in the document itself. -This parameter can also be used for print output. If an olink's targetdoc id differs from the current.docid, then the stylesheet can append the target document's title to the generated olink text. That identifies to the reader that the link is to a different document, not the current document. See also olink.doctitle to enable that feature. - - - - - -olink.doctitle -boolean - - -olink.doctitle -show the document title for external olinks? - - - <xsl:param name="olink.doctitle" - select="0"/> - - -Description -When olinks between documents are resolved for print output, the generated text may not make it clear that the reference is to another document. It is possible for the stylesheets to append the other document's title to external olinks. For this to happen, two parameters must be set. The olink.doctitle parameter should be set to nonzero to enable this -feature. And you should set the current.docid parameter to the document id for the document currently -being processed for output. If an olink's targetdoc id differs from the current.docid, then the stylesheet can append the target document's -title to the generated olink text. - - - - - -QAndASet - - -qandadiv.autolabel -boolean - - -qandadiv.autolabel -Are divisions in QAndASets enumerated? - - - -<xsl:param name="qandadiv.autolabel" - select="1"/> - - -Description - -If true (non-zero), unlabeled qandadivs will be enumerated. - - - - - - - -qanda.inherit.numeration -boolean - - -qanda.inherit.numeration -Does enumeration of QandASet components inherit the numeration of parent elements? - - - -<xsl:param name="qanda.inherit.numeration" - select="1"/> - - -Description - -If true (non-zero), numbered QandADiv elements and Questions and Answers inherit -the numeration of the ancestors of the QandASet. - - - - - - - -Bibliography - - -biblioentry.item.separator -string - - -biblioentry.item.separator -Text to separate bibliography entries - - - -<xsl:param name="biblioentry.item.separator">. </xsl:param> - - -Description - -Text to separate bibliography entries - - - - - - - -bibliography.collection -string - - -bibliography.collection -Name of the bibliography collection file - - - -<xsl:param name="bibliography.collection" - select="'http://docbook.sourceforge.net/release/bibliography/bibliography.xml'"/> - - -Description - -Maintaining bibliography entries across a set of documents is tedious, time -consuming, and error prone. It makes much more sense, usually, to store all of -the bibliography entries in a single place and simply extract -the ones you need in each document. - -That's the purpose of the -bibliography.collection parameter. To setup a global -bibliography database, follow these steps: - -First, create a stand-alone bibliography document that contains all of -the documents that you wish to reference. Make sure that each bibliography -entry (whether you use biblioentry or bibliomixed) -has an ID. - -My global bibliography, ~/bibliography.xml begins -like this: - - -<!DOCTYPE bibliography - PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<bibliography><title>References</title> - -<bibliomixed id="xml-rec"><abbrev>XML 1.0</abbrev>Tim Bray, -Jean Paoli, C. M. Sperberg-McQueen, and Eve Maler, editors. -<citetitle><ulink url="http://www.w3.org/TR/REC-xml">Extensible Markup -Language (XML) 1.0 Second Edition</ulink></citetitle>. -World Wide Web Consortium, 2000. -</bibliomixed> - -<bibliomixed id="xml-names"><abbrev>Namespaces</abbrev>Tim Bray, -Dave Hollander, -and Andrew Layman, editors. -<citetitle><ulink url="http://www.w3.org/TR/REC-xml-names/">Namespaces in -XML</ulink></citetitle>. -World Wide Web Consortium, 1999. -</bibliomixed> - -<!-- ... --> -</bibliography> - - - -When you create a bibliography in your document, simply -provide empty bibliomixed -entries for each document that you wish to cite. Make sure that these -elements have the same ID as the corresponding real -entry in your global bibliography. - -For example: - - -<bibliography><title>Bibliography</title> - -<bibliomixed id="xml-rec"/> -<bibliomixed id="xml-names"/> -<bibliomixed id="DKnuth86">Donald E. Knuth. <citetitle>Computers and -Typesetting: Volume B, TeX: The Program</citetitle>. Addison-Wesley, -1986. ISBN 0-201-13437-3. -</bibliomixed> -<bibliomixed id="relaxng"/> - -</bibliography> - - -Note that it's perfectly acceptable to mix entries from your -global bibliography with normal entries. You can use -xref or other elements to cross-reference your -bibliography entries in exactly the same way you do now. - -Finally, when you are ready to format your document, simply set the -bibliography.collection parameter (in either a -customization layer or directly through your processor's interface) to -point to your global bibliography. - -The stylesheets will format the bibliography in your document as if -all of the entries referenced appeared there literally. - - - - - - -bibliography.numbered -boolean - - -bibliography.numbered -Should bibliography entries be numbered? - - - -<xsl:param name="bibliography.numbered" - select="0"/> - - -Description - -If non-zero bibliography entries will be numbered - - - - - - -Glossary - - -glossterm.auto.link -boolean - - -glossterm.auto.link -Generate links from glossterm to glossentry automaticaly? - - - -<xsl:param name="glossterm.auto.link" - select="'0'"/> - - -Description - -If true, a link will be automatically created from glossterm -to glossentry for that glossary term. This is usefull when your -glossterm names are consistent and you don't want to add links -manually. -If there is linkend on -glossterm then is used instead of autogeneration of -link. - - - - - - -firstterm.only.link -boolean - - -firstterm.only.link -Does automatic glossterm linking only apply to firstterms? - - - -<xsl:param name="firstterm.only.link" - select="0"/> - - -Description - -If true, only firstterms will be automatically linked -to the glossary. If glossary linking is not enabled, this parameter -has no effect. - - - - - - -glossary.collection -string - - -glossary.collection -Name of the glossary collection file - - - -<xsl:param name="glossary.collection" - select="''"/> - - -Description - -Glossaries maintained independently across a set of documents -are likely to become inconsistent unless considerable effort is -expended to keep them in sync. It makes much more sense, usually, to -store all of the glossary entries in a single place and simply -extract the ones you need in each document. - -That's the purpose of the -glossary.collection parameter. To setup a global -glossary database, follow these steps: - -Setting Up the Glossary Database - -First, create a stand-alone glossary document that contains all of -the entries that you wish to reference. Make sure that each glossary -entry has an ID. - -Here's an example glossary: - - - -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE glossary - PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<glossary> -<glossaryinfo> -<editor><firstname>Eric</firstname><surname>Raymond</surname></editor> -<title>Jargon File 4.2.3 (abridged)</title> -<releaseinfo>Just some test data</releaseinfo> -</glossaryinfo> - -<glossdiv><title>0</title> - -<glossentry> -<glossterm>0</glossterm> -<glossdef> -<para>Numeric zero, as opposed to the letter `O' (the 15th letter of -the English alphabet). In their unmodified forms they look a lot -alike, and various kluges invented to make them visually distinct have -compounded the confusion. If your zero is center-dotted and letter-O -is not, or if letter-O looks almost rectangular but zero looks more -like an American football stood on end (or the reverse), you're -probably looking at a modern character display (though the dotted zero -seems to have originated as an option on IBM 3270 controllers). If -your zero is slashed but letter-O is not, you're probably looking at -an old-style ASCII graphic set descended from the default typewheel on -the venerable ASR-33 Teletype (Scandinavians, for whom /O is a letter, -curse this arrangement). (Interestingly, the slashed zero long -predates computers; Florian Cajori's monumental "A History of -Mathematical Notations" notes that it was used in the twelfth and -thirteenth centuries.) If letter-O has a slash across it and the zero -does not, your display is tuned for a very old convention used at IBM -and a few other early mainframe makers (Scandinavians curse <emphasis>this</emphasis> -arrangement even more, because it means two of their letters collide). -Some Burroughs/Unisys equipment displays a zero with a <emphasis>reversed</emphasis> -slash. Old CDC computers rendered letter O as an unbroken oval and 0 -as an oval broken at upper right and lower left. And yet another -convention common on early line printers left zero unornamented but -added a tail or hook to the letter-O so that it resembled an inverted -Q or cursive capital letter-O (this was endorsed by a draft ANSI -standard for how to draw ASCII characters, but the final standard -changed the distinguisher to a tick-mark in the upper-left corner). -Are we sufficiently confused yet?</para> -</glossdef> -</glossentry> - -<glossentry> -<glossterm>1TBS</glossterm> -<glossdef> -<para role="accidence"> -<phrase role="pronounce"></phrase> -<phrase role="partsofspeach">n</phrase> -</para> -<para>The "One True Brace Style"</para> -<glossseealso>indent style</glossseealso> -</glossdef> -</glossentry> - -<!-- ... --> - -</glossdiv> - -<!-- ... --> - -</glossary> - - - - -Marking Up Glossary Terms - -That takes care of the glossary database, now you have to get the entries -into your document. Unlike bibliography entries, which can be empty, creating -placeholder glossary entries would be very tedious. So instead, -support for glossary.collection relies on implicit linking. - -In your source document, simply use firstterm and -glossterm to identify the terms you wish to have included -in the glossary. The stylesheets assume that you will either set the -baseform attribute correctly, or that the -content of the element exactly matches a term in your glossary. - -If you're using a glossary.collection, don't -make explicit links on the terms in your document. - -So, in your document, you might write things like this: - - -<para>This is dummy text, without any real meaning. -The point is simply to reference glossary terms like <glossterm>0</glossterm> -and the <firstterm baseform="1TBS">One True Brace Style (1TBS)</firstterm>. -The <glossterm>1TBS</glossterm>, as you can probably imagine, is a nearly -religious issue.</para> - - -If you set the firstterm.only.link parameter, -only the terms marked with firstterm will be links. -Otherwise, all the terms will be linked. - - - -Marking Up the Glossary - -The glossary itself has to be identified for the stylesheets. For lack -of a better choice, the role is used. -To identify the glossary as the target for automatic processing, set -the role to auto. The title of this -glossary (and any other information from the glossaryinfo -that's rendered by your stylesheet) will be displayed, but the entries will -come from the database. - - -Unfortunately, the glossary can't be empty, so you must put in -at least one glossentry. The content of this entry -is irrelevant, it will not be rendered: - - -<glossary role="auto"> -<glossentry> -<glossterm>Irrelevant</glossterm> -<glossdef> -<para>If you can see this, the document was processed incorrectly. Use -the <parameter>glossary.collection</parameter> parameter.</para> -</glossdef> -</glossentry> -</glossary> - - -What about glossary divisions? If your glossary database has glossary -divisions and your automatic glossary contains at least -one glossdiv, the automic glossary will have divisions. -If the glossdiv is missing from either location, no divisions -will be rendered. - -Glossary entries (and divisions, if appropriate) in the glossary will -occur in precisely the order they occur in your database. - - - -Formatting the Document - -Finally, when you are ready to format your document, simply set the -glossary.collection parameter (in either a -customization layer or directly through your processor's interface) to -point to your global glossary. - -The stylesheets will format the glossary in your document as if -all of the entries implicilty referenced appeared there literally. - - -Limitations - -Glossary cross-references within the glossary are -not supported. For example, this will not work: - - -<glossentry> -<glossterm>gloss-1</glossterm> -<glossdef><para>A description that references <glossterm>gloss-2</glossterm>.</para> -<glossseealso>gloss-2</glossseealso> -</glossdef> -</glossentry> - - -If you put glossary cross-references in your glossary that way, -you'll get the cryptic error: Warning: -glossary.collection specified, but there are 0 automatic -glossaries. - -Instead, you must do two things: - - - -Markup your glossary using glossseealso: - - -<glossentry> -<glossterm>gloss-1</glossterm> -<glossdef><para>A description that references <glossterm>gloss-2</glossterm>.</para> -<glossseealso>gloss-2</glossseealso> -</glossdef> -</glossentry> - - - - -Make sure there is at least one glossterm reference to -gloss-2 in your document. The -easiest way to do that is probably within a remark in your -automatic glossary: - - -<glossary role="auto"> -<remark>Make sure there's a reference to <glossterm>gloss-2</glossterm>.</remark> -<glossentry> -<glossterm>Irrelevant</glossterm> -<glossdef> -<para>If you can see this, the document was processed incorrectly. Use -the <parameter>glossary.collection</parameter> parameter.</para> -</glossdef> -</glossentry> -</glossary> - - - - - - - - - - -glossterm.separation -length - - -glossterm.separation -Separation between glossary terms and descriptions in list mode - - - -<xsl:param name="glossterm.separation" - select="'0.25in'"/> - - -Description - -Specifies the separation between glossary terms and descriptions when -glossarys are presented using lists. - - - - - - -glossterm.width -length - - -glossterm.width -Width of glossterm in list presentation mode - - - -<xsl:param name="glossterm.width" - select="'2in'"/> - - -Description - -This parameter specifies the width reserved for glossary terms when -a list presentation is used. - - - - - - -glossary.as.blocks -boolean - - -glossary.as.blocks -Present glossarys using blocks instead of lists? - - - -<xsl:param name="glossary.as.blocks" - select="0"/> - - -Description - -If non-zero, glossarys will be formatted as -blocks. - -If you have long glossterms, proper list -markup in the FO case may produce unattractive lists. By setting this -parameter, you can force the stylesheets to produce block markup -instead of proper lists. - -You can override this setting with a processing instruction as the -child of glossary: dbfo -glossary-presentation="blocks" or dbfo -glossary-presentation="list" - - - - - - -glosslist.as.blocks -boolean - - -glosslist.as.blocks -Use blocks for glosslists? - - - -<xsl:param name="glosslist.as.blocks" - select="0"/> - - -Description - -See glossary.as.blocks. - - - - - - -glossentry.show.acronym -list - - -glossentry.show.acronym -Display glossentry acronyms? - - - -<xsl:param name="glossentry.show.acronym" - select="'no'"/> - - -Description - -A setting of yes means they should be displayed; -no means they shouldn't. If primary is used, -then they are shown as the primary text for the entry. - - -This setting controls both acronym and -abbrev elements in the glossentry. - - - - - - - -Miscellaneous - - -formal.procedures -boolean - - -formal.procedures -Selects formal or informal procedures - - - -<xsl:param name="formal.procedures" - select="1"/> - - -Description - -Formal procedures are numbered and always have a title. - - - - - - - -formal.title.placement - - - -formal.title.placement - - - - -<xsl:param name="formal.title.placement"> -figure before -example before -equation before -table before -procedure before -</xsl:param> - - -Description - -Specifies where formal object titles should occur. For each formal object -type (figure, -example, -equation, -table, and procedure) -you can specify either the keyword -before or -after. - - - - - - -runinhead.default.title.end.punct -string - - -runinhead.default.title.end.punct -Default punctuation character on a run-in-head - - - -<xsl:param name="runinhead.default.title.end.punct" - select="'.'"/> - - -Description - -FIXME: - - - - - - - -runinhead.title.end.punct -string - - -runinhead.title.end.punct -Characters that count as punctuation on a run-in-head - - - -<xsl:param name="runinhead.title.end.punct" - select="'.!?:'"/> - - -Description - -FIXME: - - - - - - - -show.comments -boolean - - -show.comments -Display comment elements? - - - -<xsl:param name="show.comments">1</xsl:param> - - -Description - -If true (non-zero), 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 XML comments (<-- like this -->) which are unavailable. - - - - - - - -punct.honorific -string - - -punct.honorific -Punctuation after an honorific in a personal name. - - - -<xsl:param name="punct.honorific" - select="'.'"/> - - -Description - -This parameter specifies the punctuation that should be added after an -honorific in a personal name. - - - - - - -segmentedlist.as.table -boolean - - -segmentedlist.as.table -Format segmented lists as tables? - - - -<xsl:param name="segmentedlist.as.table" - select="0"/> - - -Description - -If non-zero, segmentedlists will be formatted as -tables. - - - - - - -variablelist.as.blocks -boolean - - -variablelist.as.blocks -Format variablelists lists as blocks? - - - -<xsl:param name="variablelist.as.blocks" - select="0"/> - - -Description - -If non-zero, variablelists will be formatted as -blocks. - -If you have long terms, proper list markup in the FO case may produce -unattractive lists. By setting this parameter, you can force the stylesheets -to produce block markup instead of proper lists. - -You can override this setting with a processing instruction as the -child of variablelist: dbfo -list-presentation="blocks" or dbfo -list-presentation="list" - - <variablelist> - <?dbfo list-presentation="list"?> - <varlistentry> - <term>list</term> - <listitem> - <para> - Formatted as a list even if variablelist.as.blocks is set to 1. - </para> - </listitem> - </varlistentry> - </variablelist> - - - - - - -blockquote.properties -To set the style for block quotations. - - - -<xsl:attribute-set name="blockquote.properties"> -<xsl:attribute name="start-indent">0.5in</xsl:attribute> -<xsl:attribute name="end-indent">0.5in</xsl:attribute> -<xsl:attribute name="space-after.minimum">0.5em</xsl:attribute> -<xsl:attribute name="space-after.optimum">1em</xsl:attribute> -<xsl:attribute name="space-after.maximum">2em</xsl:attribute> -</xsl:attribute-set> - - -Description - -The blockquote.properties attribute set specifies -the formating properties of block quotations. - - - - - - -ulink.show -boolean - - -ulink.show -Display URLs after ulinks? - - - -<xsl:param name="ulink.show" - select="1"/> - - -Description - -If non-zero, the URL of each ULink will -appear after the text of the link. If the text of the link and the URL -are identical, the URL is suppressed. - - - - - - -ulink.footnotes -boolean - - -ulink.footnotes -Generate footnotes for ULinks? - - - -<xsl:param name="ulink.footnotes" - select="0"/> - - -Description - -If non-zero, the URL of each ULink will -appear as a footnote. - - - - - - - -ulink.footnote.number.format -string - - -ulink.footnote.number.format -Identifies the format used for ulink footnote numbers - - - -<xsl:param name="ulink.footnote.number.format" - select="'1'"/> - - -Description - -The ulink.footnote.number.format specifies the format -to use for footnote numeration (1, i, I, a, or A). - - - - - - -ulink.hyphenate -string - - -ulink.hyphenate -Allow URLs to be automatically hyphenated - - - -<xsl:param name="ulink.hyphenate" - select="''"/> - - -Description - -If not empty, the specified character (or more generally, content) is -added to URLs after every /. If the character specified is a -Unicode soft hyphen (0x00AD) or Unicode zero-width space (0x200B), some FO -processors will be able to reasonably hyphenate long URLs. - -As of 28 Jan 2002, discretionary hyphens are more widely and correctly -supported than zero-width spaces for this purpose. - - - - - - -shade.verbatim -boolean - - -shade.verbatim -Should verbatim environments be shaded? - - - -<xsl:param name="shade.verbatim" - select="0"/> - - -Description - -FIXME: - - - - - - -shade.verbatim.style - - - -shade.verbatim.style -Properties that specify the style of shaded verbatim listings - - - - -<xsl:attribute-set name="shade.verbatim.style"> - <xsl:attribute name="background-color">#E0E0E0</xsl:attribute> -</xsl:attribute-set> - - -Description - -FIXME: - - - - - - -use.svg -boolean - - -use.svg -Allow SVG in the result tree? - - - -<xsl:param name="use.svg" - select="1"/> - - -Description - -If non-zero, SVG will be considered an acceptable image format. SVG -is passed through to the result tree, so correct rendering of the resulting -diagram depends on the formatter (FO processor or web browser) that is used -to process the output from the stylesheet. - - - - - - -use.role.as.xrefstyle -boolean - - -use.role.as.xrefstyle -Use role attribute for -xrefstyle on xref? - - - -<xsl:param name="use.role.as.xrefstyle" - select="1"/> - - -Description - -If non-zero, the role attribute on -xref will be used to select the cross reference style. -The DocBook -Technical Committee recently added an -xrefstyle attribute for this purpose. -If the xrefstyle attribute -is present, role will be ignored, regardless -of this setting. - -Until an official DocBook release that includes the new -attribute, this flag allows role -to serve that purpose. - - - -Example - -The following small stylesheet shows how to configure the stylesheets to make -use of the cross reference style: - -<?xml version="1.0"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="1.0"> - -<xsl:import href="../xsl/html/docbook.xsl"/> - -<xsl:output method="html"/> - -<xsl:param name="local.l10n.xml" select="document('')"/> -<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> - <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en"> - <l:context name="xref"> - <l:template name="chapter" style="title" text="Chapter %n, %t"/> - <l:template name="chapter" text="Chapter %n"/> - </l:context> - </l:l10n> -</l:i18n> - -</xsl:stylesheet> - -With this stylesheet, the cross references in the following document: - -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> -<book id="book"><title>Book</title> - -<preface> -<title>Preface</title> - -<para>Normal: <xref linkend="ch1"/>.</para> -<para>Title: <xref xrefstyle="title" linkend="ch1"/>.</para> - -</preface> - -<chapter id="ch1"> -<title>First Chapter</title> - -<para>Irrelevant.</para> - -</chapter> -</book> - -will appear as: - - -Normal: Chapter 1. -Title: Chapter 1, First Chapter. - - - - - - - -menuchoice.separator - - - -menuchoice.separator - - - - -<xsl:param name="menuchoice.separator" - select="'+'"/> - - -Description - -Separator used to connect items of a menuchoice other -than guimenuitem and guisubmenu. The latter -elements are linked with menuchoice.menu.separator. - - - - - - - -menuchoice.menu.separator - - - -menuchoice.menu.separator - - - - -<xsl:param name="menuchoice.menu.separator" - select="'->'"/> - - -Description - -Separator used to connect items of a menuchoice with -guimenuitem or guisubmenu. Other elements -are linked with menuchoice.separator. - - - - - - - -default.float.class -string - - -default.float.class -Specifies the default float class - - - -<xsl:param name="default.float.class" - select="'before'"/> - - -Description - -FIXME: - - - - - - -footnote.number.format -string - - -footnote.number.format -Identifies the format used for footnote numbers - - - -<xsl:param name="footnote.number.format" - select="'1'"/> - - -Description - -The footnote.number.format specifies the format -to use for footnote numeration (1, i, I, a, or A). - - - - - - -table.footnote.number.format -string - - -table.footnote.number.format -Identifies the format used for footnote numbers in tables - - - -<xsl:param name="table.footnote.number.format" - select="'a'"/> - - -Description - -The table.footnote.number.format specifies the format -to use for footnote numeration (1, i, I, a, or A) in tables. - - - - - - -footnote.number.symbols - - - -footnote.number.symbols - - - - -<xsl:param name="footnote.number.symbols" - select="''"/> - - -Description - -If footnote.number.symbols is not the empty string, -footnotes will use the characters it contains as footnote symbols. For example, -*&#x2020;&#x2021;&#x25CA;&#x2720; will identify -footnotes with *, †, ‡, -◊, and ✠. If there are more footnotes -than symbols, the stylesheets will fall back to numbered footnotes using -footnote.number.format. - -The use of symbols for footnotes depends on the ability of your -processor (or browser) to render the symbols you select. Not all systems are -capable of displaying the full range of Unicode characters. If the quoted characters -in the preceding paragraph are not displayed properly, that's a good indicator -that you may have trouble using those symbols for footnotes. - - - - - - -table.footnote.number.symbols - - - -table.footnote.number.symbols - - - - -<xsl:param name="table.footnote.number.symbols" - select="''"/> - - -Description - -If table.footnote.number.symbols is not the empty string, -table footnotes will use the characters it contains as footnote symbols. For example, -*&#x2020;&#x2021;&#x25CA;&#x2720; will identify -footnotes with *, †, ‡, -◊, and ✠. If there are more footnotes -than symbols, the stylesheets will fall back to numbered footnotes using -table.footnote.number.format. - -The use of symbols for footnotes depends on the ability of your -processor (or browser) to render the symbols you select. Not all systems are -capable of displaying the full range of Unicode characters. If the quoted characters -in the preceding paragraph are not displayed properly, that's a good indicator -that you may have trouble using those symbols for footnotes. - - - - - - -xref.with.number.and.title -boolean - - -xref.with.number.and.title -Use number and title in cross references - - - -<xsl:param name="xref.with.number.and.title" - select="1"/> - - -Description - -FIXME: - - - - - - -Graphics - - -graphic.default.extension -string - - -graphic.default.extension -Default extension for graphic filenames - - - -<xsl:param name="graphic.default.extension"/> - - -Description - -If a graphic or mediaobject -includes a reference to a filename that does not include an extension, -and the format attribute is -unspecified, the default extension will be used. - - - - - - - -default.image.width -length - - -default.image.width -The default width of images - - - -<xsl:param name="default.image.width" - select="''"/> - - -Description - -If specified, this value will be used for the -width attribute on -images that do not specify any -viewport -dimensions. - - - - - - -preferred.mediaobject.role - - -preferred.mediaobject.role -Select which mediaobject to use based on -this value of an object's role attribute. - - - - -<xsl:param name="preferred.mediaobject.role"/> - - -Description - -A mediaobject may contain several objects such as imageobjects. -If the parameter use.role.for.mediaobject -is non-zero, then the role attribute on -imageobjects and other objects within a mediaobject container will be used to select which object will be -used. If one of the objects has a role value that matches the -preferred.mediaobject.role parameter, then it has first -priority for selection. If more than one has such a -role value, the first one is used. - - -See the use.role.for.mediaobject parameter -for the sequence of selection. - - - - - -use.role.for.mediaobject -boolean - - -use.role.for.mediaobject -Use role attribute -value for selecting which of several objects within a mediaobject to use. - - - - -<xsl:param name="use.role.for.mediaobject" - select="1"/> - - -Description - -If non-zero, the role attribute on -imageobjects or other objects within a mediaobject container will be used to select which object will be -used. - - -The order of selection when then parameter is non-zero is: - - - - If the stylesheet parameter preferred.mediaojbect.role has a value, then the object whose role equals that value is selected. - - -Else if an object's role attribute has a value of -html for HTML processing or -fo for FO output, then the first -of such objects is selected. - - - -Else the first suitable object is selected. - - - -If the value of -use.role.for.mediaobject -is zero, then role attributes are not considered -and the first suitable object -with or without a role value is used. - - - - - - -ignore.image.scaling -boolean - - -ignore.image.scaling -Tell the stylesheets to ignore the author's image scaling attributes - - - -<xsl:param name="ignore.image.scaling" - select="0"/> - - -Description - -If non-zero, the scaling attributes on graphics and media objects are -ignored. - - - - - - -Pagination and General Styles - -
      Understanding XSL FO Margins - -In order for the parameters in this section to make sense, it is useful to -consider . - -
      - - - - -Figure showing page margins - -This figure shows the physical page with the various FO page regions -identified. - - -
      - -First, let's consider the regions on the page. - -The white region is the physical page. Its dimensions are determined by -the page.height and page.width -parameters. - -The yellow region is the region-body. The size and placement of -the region body is constrained by the dimensions labelled in the -figure. - -The pink region at the top of the page is the region-before. The -darker area inside the region-before is the header text. In XSL, the default -display alignment for a region is before, but the -DocBook stylesheets still explicitly make it before. That's -why the darker area is at the top. - -The pink region at the bottom of the page is the region-after. -The darker area is the footer text. In XSL, the default display -alignment for a region is before, -but the DocBook stylesheets explicitly make it -after. That's why the darker area is at the bottom. - -The dimensions in the figure are: - - -The page-master margin-top. - -The region-before extent. - -The region-body margin-top. - -The region-after extent. - -The page-master margin-bottom. - -The region-body margin-bottom. - -The sum of the page-master margin-left and the -region-body margin-left. In DocBook, the region-body margin-left is -zero by default, so this is simply the page-master region-left. - -The sum of the page-master margin-right and the -region-body margin-right. In DocBook, the region-body margin-right is -zero by default, so this is simply the page-master region-left. - - - -
      -
      - - - -page.height - - - -page.height -The height of the physical page - - - -<xsl:param name="page.height"> - <xsl:choose> - <xsl:when test="$page.orientation = 'portrait'"> - <xsl:value-of select="$page.height.portrait"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$page.width.portrait"/> - </xsl:otherwise> - </xsl:choose> -</xsl:param> - - -Description - -The page height is generally calculated from the -paper.type and -page.orientation. - - - - - - - -page.height.portrait - - - -page.height.portrait -Specify the physical size of the long edge of the page - - - -<xsl:param name="page.height.portrait"> - <xsl:choose> - <xsl:when test="$paper.type = 'A4landscape'">210mm</xsl:when> - <xsl:when test="$paper.type = 'USletter'">11in</xsl:when> - <xsl:when test="$paper.type = 'USlandscape'">8.5in</xsl:when> - <xsl:when test="$paper.type = '4A0'">2378mm</xsl:when> - <xsl:when test="$paper.type = '2A0'">1682mm</xsl:when> - <xsl:when test="$paper.type = 'A0'">1189mm</xsl:when> - <xsl:when test="$paper.type = 'A1'">841mm</xsl:when> - <xsl:when test="$paper.type = 'A2'">594mm</xsl:when> - <xsl:when test="$paper.type = 'A3'">420mm</xsl:when> - <xsl:when test="$paper.type = 'A4'">297mm</xsl:when> - <xsl:when test="$paper.type = 'A5'">210mm</xsl:when> - <xsl:when test="$paper.type = 'A6'">148mm</xsl:when> - <xsl:when test="$paper.type = 'A7'">105mm</xsl:when> - <xsl:when test="$paper.type = 'A8'">74mm</xsl:when> - <xsl:when test="$paper.type = 'A9'">52mm</xsl:when> - <xsl:when test="$paper.type = 'A10'">37mm</xsl:when> - <xsl:when test="$paper.type = 'B0'">1414mm</xsl:when> - <xsl:when test="$paper.type = 'B1'">1000mm</xsl:when> - <xsl:when test="$paper.type = 'B2'">707mm</xsl:when> - <xsl:when test="$paper.type = 'B3'">500mm</xsl:when> - <xsl:when test="$paper.type = 'B4'">353mm</xsl:when> - <xsl:when test="$paper.type = 'B5'">250mm</xsl:when> - <xsl:when test="$paper.type = 'B6'">176mm</xsl:when> - <xsl:when test="$paper.type = 'B7'">125mm</xsl:when> - <xsl:when test="$paper.type = 'B8'">88mm</xsl:when> - <xsl:when test="$paper.type = 'B9'">62mm</xsl:when> - <xsl:when test="$paper.type = 'B10'">44mm</xsl:when> - <xsl:when test="$paper.type = 'C0'">1297mm</xsl:when> - <xsl:when test="$paper.type = 'C1'">917mm</xsl:when> - <xsl:when test="$paper.type = 'C2'">648mm</xsl:when> - <xsl:when test="$paper.type = 'C3'">458mm</xsl:when> - <xsl:when test="$paper.type = 'C4'">324mm</xsl:when> - <xsl:when test="$paper.type = 'C5'">229mm</xsl:when> - <xsl:when test="$paper.type = 'C6'">162mm</xsl:when> - <xsl:when test="$paper.type = 'C7'">114mm</xsl:when> - <xsl:when test="$paper.type = 'C8'">81mm</xsl:when> - <xsl:when test="$paper.type = 'C9'">57mm</xsl:when> - <xsl:when test="$paper.type = 'C10'">40mm</xsl:when> - <xsl:otherwise>11in</xsl:otherwise> - </xsl:choose> -</xsl:param> - - -Description - -The portrait page height is the length of the long -edge of the physical page. - - - - - - - -page.margin.bottom - - - -page.margin.bottom -The bottom margin of the page - - - -<xsl:param name="page.margin.bottom" - select="'0.5in'"/> - - -Description - -The bottom page margin is the distance from the bottom of the region-after -to the physical bottom of the page. - - - - - - - -page.margin.inner - - - -page.margin.inner -The inner page margin - - - -<xsl:param name="page.margin.inner"> - <xsl:choose> - <xsl:when test="$double.sided != 0">1.25in</xsl:when> - <xsl:otherwise>1in</xsl:otherwise> - </xsl:choose> -</xsl:param> - - -Description - -The inner page margin is the distance from binding edge of the -page to the first column of text. In the left-to-right, top-to-bottom writing -direction, this is the left margin of recto pages. -The inner and outer margins are usually the same unless the output -is double-sided. - - - - - - - -page.margin.outer - - - -page.margin.outer -The outer page margin - - - -<xsl:param name="page.margin.outer"> - <xsl:choose> - <xsl:when test="$double.sided != 0">0.75in</xsl:when> - <xsl:otherwise>1in</xsl:otherwise> - </xsl:choose> -</xsl:param> - - -Description - -The outer page margin is the distance from non-binding edge of the -page to the last column of text. In the left-to-right, top-to-bottom writing -direction, this is the right margin of recto pages. -The inner and outer margins are usually the same unless the output -is double-sided. - - - - - - - -page.margin.top - - - -page.margin.top -The top margin of the page - - - -<xsl:param name="page.margin.top" - select="'0.5in'"/> - - -Description - -The top page margin is the distance from the physical top of the -page to the top of the region-before. - - - - - - -page.orientation - - - -page.orientation -Select the page orientation - - - -<xsl:param name="page.orientation" - select="'portrait'"/> - - -Description - -In portrait orientation, the short edge is horizontal; in -landscape orientation, it is vertical. - - - - - - - -page.width - - - -page.width -The width of the physical page - - - -<xsl:param name="page.width"> - <xsl:choose> - <xsl:when test="$page.orientation = 'portrait'"> - <xsl:value-of select="$page.width.portrait"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$page.height.portrait"/> - </xsl:otherwise> - </xsl:choose> -</xsl:param> - - -Description - -The page width is generally calculated from the -paper.type and page.orientation. - - - - - - - -page.width.portrait - - - -page.width.portrait -Specify the physical size of the short edge of the page - - - -<xsl:param name="page.width.portrait"> - <xsl:choose> - <xsl:when test="$paper.type = 'USletter'">8.5in</xsl:when> - <xsl:when test="$paper.type = '4A0'">1682mm</xsl:when> - <xsl:when test="$paper.type = '2A0'">1189mm</xsl:when> - <xsl:when test="$paper.type = 'A0'">841mm</xsl:when> - <xsl:when test="$paper.type = 'A1'">594mm</xsl:when> - <xsl:when test="$paper.type = 'A2'">420mm</xsl:when> - <xsl:when test="$paper.type = 'A3'">297mm</xsl:when> - <xsl:when test="$paper.type = 'A4'">210mm</xsl:when> - <xsl:when test="$paper.type = 'A5'">148mm</xsl:when> - <xsl:when test="$paper.type = 'A6'">105mm</xsl:when> - <xsl:when test="$paper.type = 'A7'">74mm</xsl:when> - <xsl:when test="$paper.type = 'A8'">52mm</xsl:when> - <xsl:when test="$paper.type = 'A9'">37mm</xsl:when> - <xsl:when test="$paper.type = 'A10'">26mm</xsl:when> - <xsl:when test="$paper.type = 'B0'">1000mm</xsl:when> - <xsl:when test="$paper.type = 'B1'">707mm</xsl:when> - <xsl:when test="$paper.type = 'B2'">500mm</xsl:when> - <xsl:when test="$paper.type = 'B3'">353mm</xsl:when> - <xsl:when test="$paper.type = 'B4'">250mm</xsl:when> - <xsl:when test="$paper.type = 'B5'">176mm</xsl:when> - <xsl:when test="$paper.type = 'B6'">125mm</xsl:when> - <xsl:when test="$paper.type = 'B7'">88mm</xsl:when> - <xsl:when test="$paper.type = 'B8'">62mm</xsl:when> - <xsl:when test="$paper.type = 'B9'">44mm</xsl:when> - <xsl:when test="$paper.type = 'B10'">31mm</xsl:when> - <xsl:when test="$paper.type = 'C0'">917mm</xsl:when> - <xsl:when test="$paper.type = 'C1'">648mm</xsl:when> - <xsl:when test="$paper.type = 'C2'">458mm</xsl:when> - <xsl:when test="$paper.type = 'C3'">324mm</xsl:when> - <xsl:when test="$paper.type = 'C4'">229mm</xsl:when> - <xsl:when test="$paper.type = 'C5'">162mm</xsl:when> - <xsl:when test="$paper.type = 'C6'">114mm</xsl:when> - <xsl:when test="$paper.type = 'C7'">81mm</xsl:when> - <xsl:when test="$paper.type = 'C8'">57mm</xsl:when> - <xsl:when test="$paper.type = 'C9'">40mm</xsl:when> - <xsl:when test="$paper.type = 'C10'">28mm</xsl:when> - <xsl:otherwise>8.5in</xsl:otherwise> - </xsl:choose> -</xsl:param> - - -Description - -The portrait page width is the length of the short -edge of the physical page. - - - - - - - -paper.type - - - -paper.type -Select the paper type - - - -<xsl:param name="paper.type" - select="'USletter'"/> - - -Description - -The paper type is a convenient way to specify the paper size. -The list of known paper sizes includes USletter and most of the A, -B, and C sizes. See page.width.portrait, for example. - - - - - - - -double.sided - - - -double.sided -Is the document to be printed double sided? - - - -<xsl:param name="double.sided" - select="0"/> - - -Description - -Double-sided documents are printed with a slightly wider margin -on the binding edge of the page. - -FIXME: The current set of parameters does not take writing direction -into account. - - - - - - -body.margin.bottom - - - -body.margin.bottom -The bottom margin of the body text - - - -<xsl:param name="body.margin.bottom" - select="'0.5in'"/> - - -Description - -The body bottom margin is the distance from the last line of text -in the page body to the bottom of the region-after. - - - - - - - -body.margin.top - - - -body.margin.top -To specify the size of the top margin of a page - - - -<xsl:param name="body.margin.top" - select="'0.5in'"/> - - -Description - -The body top margin is the distance from the top of the region-before -to the first line of text in the page body. - - - - - - - -alignment - - - -alignment -Specify the default text alignment - - - -<xsl:param name="alignment">justify</xsl:param> - - -Description - -The default text alignment is used for most body text. - - - - - - - -hyphenate - - - -hyphenate -Specify hyphenation behavior - - - -<xsl:param name="hyphenate">true</xsl:param> - - -Description - -If true, words may be hyphenated. Otherwise, they may not. - - - - - - - -line-height -string - - -line-height -Specify the line-height property - - - -<xsl:param name="line-height" - select="'normal'"/> - - -Description - -Sets the line-height property. - - - - - - -column.count.back -integer - - -column.count.back -Number of columns on back matter pages - - - -<xsl:param name="column.count.back" - select="1"/> - - -Description - -Number of columns on back matter (appendix, glossary, etc.) pages. - - - - - - -column.count.body -integer - - -column.count.body -Number of columns on body pages - - - -<xsl:param name="column.count.body" - select="1"/> - - -Description - -Number of columns on body pages. - - - - - - -column.count.front -integer - - -column.count.front -Number of columns on front matter pages - - - -<xsl:param name="column.count.front" - select="1"/> - - -Description - -Number of columns on front matter (dedication, preface, etc.) pages. - - - - - - -column.count.index -integer - - -column.count.index -Number of columns on index pages - - - -<xsl:param name="column.count.index" - select="2"/> - - -Description - -Number of columns on index pages. - - - - - - -column.count.lot -integer - - -column.count.lot -Number of columns on a 'List-of-Titles' page - - - -<xsl:param name="column.count.lot" - select="1"/> - - -Description - -Number of columns on a page sequence containing the Table of Contents, -List of Figures, etc. - - - - - - -column.count.titlepage -integer - - -column.count.titlepage -Number of columns on a title page - - - -<xsl:param name="column.count.titlepage" - select="1"/> - - -Description - -Number of columns on a title page - - - - - - -region.after.extent - - - -region.after.extent -Specifies the height of the footer. - - - -<xsl:param name="region.after.extent" - select="'0.4in'"/> - - -Description - -The region after extent is the height of the area where footers -are printed. - - - - - - - -region.before.extent - - - -region.before.extent -Specifies the height of the header - - - -<xsl:param name="region.before.extent" - select="'0.4in'"/> - - -Description - -The region before extent is the height of the area where headers -are printed. - - - - - - - -default.units -list -cm -mm -in -pt -pc -px -em - - -default.units -Default units for an unqualified dimension - - - -<xsl:param name="default.units" - select="'pt'"/> - - -Description - -If an unqualified dimension is encountered (for example, in a -graphic width), the default-units will be used for the -units. Unqualified dimensions are not allowed in XSL Formatting Objects. - - - - - - - -normal.para.spacing -What space do you want between normal paragraphs - - - -<xsl:attribute-set name="normal.para.spacing"> - <xsl:attribute name="space-before.optimum">1em</xsl:attribute> - <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute> - <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> -</xsl:attribute-set> - -Description -Specify the spacing required between normal paragraphs - - - - - -body.font.master - - - -body.font.master -Specifies the default point size for body text - - - -<xsl:param name="body.font.master">10</xsl:param> - - -Description - -The body font size is specified in two parameters -(body.font.master and body.font.size) -so that math can be performed on the font size by XSLT. - - - - - - - -body.font.size - - - -body.font.size -Specifies the default font size for body text - - - -<xsl:param name="body.font.size"> - <xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text> -</xsl:param> - - -Description - -The body font size is specified in two parameters -(body.font.master and body.font.size) -so that math can be performed on the font size by XSLT. - - - - - - - -footnote.font.size - - - -footnote.font.size -The font size for footnotes - - - -<xsl:param name="footnote.font.size"> - <xsl:value-of select="$body.font.master * 0.8"/><xsl:text>pt</xsl:text> -</xsl:param> - - -Description - -The footnote font size is used for...footnotes! - - - - - - - -title.margin.left - - - -title.margin.left -Adjust the left margin for titles - - - -<xsl:param name="title.margin.left" - select="'-4pc'"/> - - -Description - -This parameter adjusts the left margin for titles. - - - - - - - -draft.mode -list - - -draft.mode -Select draft mode - - - -<xsl:param name="draft.mode" - select="'maybe'"/> - - -Description - -Selects draft mode. If draft.mode is -yes, the entire document will be treated -as a draft. If it is no, the entire document -will be treated as a final copy. If it is maybe, -individual sections will be treated as draft or final independently, depending -on how their status attribute is set. - - - - - - - -draft.watermark.image -uri - - -draft.watermark.image -The URI of the image to be used for draft watermarks - - - -<xsl:param name="draft.watermark.image" - select="'http://docbook.sourceforge.net/release/images/draft.png'"/> - - -Description - -The image to be used for draft watermarks. - - - - - - -headers.on.blank.pages -boolean - - -headers.on.blank.pages -Put headers on blank pages? - - - -<xsl:param name="headers.on.blank.pages" - select="1"/> - - -Description - -If non-zero, headers will be placed on blank pages. - - - - - - -footers.on.blank.pages -boolean - - -footers.on.blank.pages -Put footers on blank pages? - - - -<xsl:param name="footers.on.blank.pages" - select="1"/> - - -Description - -If non-zero, footers will be placed on blank pages. - - - - - - -header.rule -boolean - - -header.rule -Rule under headers? - - - -<xsl:param name="header.rule" - select="1"/> - - -Description - -If non-zero, a rule will be drawn below the page headers. - - - - - - -footer.rule -boolean - - -footer.rule -Rule over footers? - - - -<xsl:param name="footer.rule" - select="1"/> - - -Description - -If non-zero, a rule will be drawn above the page footers. - - - - - - -header.content.properties - - - -header.content.properties - - - - -<xsl:attribute-set name="header.content.properties"> - <xsl:attribute name="font-family"> - <xsl:value-of select="$body.font.family"/> - </xsl:attribute> - <xsl:attribute name="margin-left"> - <xsl:value-of select="$title.margin.left"/> - </xsl:attribute> - <xsl:attribute name="margin-right"> - <xsl:value-of select="$title.margin.left"/> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -Properties of page header content. - - - - - - -footer.content.properties - - - -footer.content.properties - - - - -<xsl:attribute-set name="footer.content.properties"> - <xsl:attribute name="font-family"> - <xsl:value-of select="$body.font.family"/> - </xsl:attribute> - <xsl:attribute name="margin-left"> - <xsl:value-of select="$title.margin.left"/> - </xsl:attribute> - <xsl:attribute name="margin-right"> - <xsl:value-of select="$title.margin.left"/> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -Properties of page footer content. - - - - -
      - -Font Families - - -body.font.family - - - -body.font.family -The default font family for body text - - - -<xsl:param name="body.font.family" - select="'serif'"/> - - -Description - -The body font family is the default font used for text in the page body. - - - - - - - -dingbat.font.family - - - -dingbat.font.family -The font family for copyright, quotes, and other symbols - - - -<xsl:param name="dingbat.font.family" - select="'serif'"/> - - -Description - -The dingbat font family is used for dingbats. If it is defined -as the empty string, no font change is effected around dingbats. - - - - - - - -monospace.font.family - - - -monospace.font.family -The default font family for monospace environments - - - -<xsl:param name="monospace.font.family" - select="'monospace'"/> - - -Description - -The monospace font family is used for verbatim environments -(program listings, screens, etc.). - - - - - - - -sans.font.family - - - -sans.font.family -The default sans-serif font family - - - -<xsl:param name="sans.font.family" - select="'sans-serif'"/> - - -Description - -The default sans-serif font family. At the present, this isn't -actually used by the stylesheets. - - - - - - - -title.font.family - - - -title.font.family -The default font family for titles - - - -<xsl:param name="title.font.family" - select="'sans-serif'"/> - - -Description - -The title font family is used for titles (chapter, section, figure, -etc.) - - - - - - - -Lists - - -list.block.spacing -What spacing do you want before and after lists? - - - -<xsl:attribute-set name="list.block.spacing"> - <xsl:attribute name="space-before.optimum">1em</xsl:attribute> - <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute> - <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> - <xsl:attribute name="space-after.optimum">1em</xsl:attribute> - <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute> - <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute> -</xsl:attribute-set> - -Description -Specify the spacing required before and after a list. It is necessary to specify the space after a list block because lists can come inside of paras. - - - - - -list.item.spacing -What space do you want between list items? - - - -<xsl:attribute-set name="list.item.spacing"> - <xsl:attribute name="space-before.optimum">1em</xsl:attribute> - <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute> - <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> -</xsl:attribute-set> - -Description -Specify what spacing you want between each list item. - - - - - -compact.list.item.spacing -What space do you want between list items (when spacing=compact)? - - - -<xsl:attribute-set name="compact.list.item.spacing"> - <xsl:attribute name="space-before.optimum">0em</xsl:attribute> - <xsl:attribute name="space-before.minimum">0em</xsl:attribute> - <xsl:attribute name="space-before.maximum">0.2em</xsl:attribute> -</xsl:attribute-set> - -Description -Specify what spacing you want between each list item when -spacing is -compact. - - - - - -Cross References - - -insert.xref.page.number -boolean - - -insert.xref.page.number -Turns page numbers in xrefs on and off - - - -<xsl:param name="insert.xref.page.number" - select="0"/> - - -Description - -If non-zero, cross references (xrefs) will -include page number citations. - - - - - - - -xref.properties -Properties associated with cross-reference text - - - -<xsl:attribute-set name="xref.properties"> -</xsl:attribute-set> - - -Description - -This attribute set is used on cross reference text. - - - - - - -Property Sets - - -component.title.properties -Specify the styling for the title elements of a component. - - - -<xsl:attribute-set name="component.title.properties"> - <xsl:attribute name="space-before.optimum">2em</xsl:attribute> - <xsl:attribute name="space-before.minimum">1.8em</xsl:attribute> - <xsl:attribute name="space-before.maximum">2.2em</xsl:attribute> - <xsl:attribute name="font-weight">bold</xsl:attribute> - <xsl:attribute name="font-size">18pt</xsl:attribute> - <xsl:attribute name="space-after.optimum">1.5em</xsl:attribute> - <xsl:attribute name="space-after.minimum">1.3em</xsl:attribute> - <xsl:attribute name="space-after.maximum">1.8em</xsl:attribute> - <xsl:attribute name="hyphenate">false</xsl:attribute> - <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> -</xsl:attribute-set> - -Description - -A set of attributes are used to style the title of a -component (chapters, appendixes, articles, etc.). Components are usually -printed in the title.font.family. -Spacing before and after, font size etc are specified -using this parameter. - - - - - - -formal.object.properties -Properties associated with a formal object such as a figure, or other component that has a title - - - -<xsl:attribute-set name="formal.object.properties"> - <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute> - <xsl:attribute name="space-before.optimum">1em</xsl:attribute> - <xsl:attribute name="space-before.maximum">2em</xsl:attribute> - <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute> - <xsl:attribute name="space-after.optimum">1em</xsl:attribute> - <xsl:attribute name="space-after.maximum">2em</xsl:attribute> -</xsl:attribute-set> - - -Description - -The styling for formal objects in docbook. Specify the spacing -before and after the object. - - - - - - -formal.title.properties -Style the title element of formal object such as a figure. - - - -<xsl:attribute-set name="formal.title.properties" - use-attribute-sets="normal.para.spacing"> - <xsl:attribute name="font-weight">bold</xsl:attribute> - <xsl:attribute name="font-size"> - <xsl:value-of select="$body.font.master * 1.2"/> - <xsl:text>pt</xsl:text> - </xsl:attribute> - <xsl:attribute name="hyphenate">false</xsl:attribute> - <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute> - <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute> - <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute> -</xsl:attribute-set> - -Description -Specify how the title should be styled. Specify the font size and weight of the title of the formal object. - - - - - -informal.object.properties -Properties associated with a formal object such as a figure, or other component that has a title - - - -<xsl:attribute-set name="informal.object.properties"> - <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute> - <xsl:attribute name="space-before.optimum">1em</xsl:attribute> - <xsl:attribute name="space-before.maximum">2em</xsl:attribute> - <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute> - <xsl:attribute name="space-after.optimum">1em</xsl:attribute> - <xsl:attribute name="space-after.maximum">2em</xsl:attribute> -</xsl:attribute-set> - -Description -The styling for informal objects in docbook. Specify the spacing before and after the object. - - - - - -monospace.properties -attribute set - - -monospace.properties -Properties of monospaced content - - - -<xsl:attribute-set name="monospace.properties"> - <xsl:attribute name="font-family"> - <xsl:value-of select="$monospace.font.family"/> - </xsl:attribute> - <xsl:attribute name="font-size">0.9em</xsl:attribute> -</xsl:attribute-set> - - -Description - -Specifies the font name and size for monospaced output. - - - - - - -verbatim.properties -Properties associated with verbatim text - - - -<xsl:attribute-set name="verbatim.properties"> - <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute> - <xsl:attribute name="space-before.optimum">1em</xsl:attribute> - <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> - <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute> - <xsl:attribute name="space-after.optimum">1em</xsl:attribute> - <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute> -</xsl:attribute-set> - - -Description -This attribute set is used on all verbatim environments. - - - - - - -monospace.verbatim.properties -What font and size do you want for monospaced content? - - - -<xsl:attribute-set name="monospace.verbatim.properties" - use-attribute-sets="verbatim.properties monospace.properties"> - <xsl:attribute name="text-align">start</xsl:attribute> -</xsl:attribute-set> - -Description -Specify the font name and size you want for monospaced output - - - - - -sidebar.properties -attribute set - - -sidebar.properties -Attribute set for sidebar properties - - - -<xsl:attribute-set name="sidebar.properties" - use-attribute-sets="formal.object.properties"> - <xsl:attribute name="border-style">solid</xsl:attribute> - <xsl:attribute name="border-width">1pt</xsl:attribute> - <xsl:attribute name="border-color">black</xsl:attribute> - <xsl:attribute name="background-color">#DDDDDD</xsl:attribute> - <xsl:attribute name="padding-left">12pt</xsl:attribute> - <xsl:attribute name="padding-right">12pt</xsl:attribute> - <xsl:attribute name="padding-top">6pt</xsl:attribute> - <xsl:attribute name="padding-bottom">6pt</xsl:attribute> -<!-- - <xsl:attribute name="margin-left">12pt</xsl:attribute> - <xsl:attribute name="margin-right">12pt</xsl:attribute> - <xsl:attribute name="margin-top">6pt</xsl:attribute> - <xsl:attribute name="margin-bottom">6pt</xsl:attribute> ---> -</xsl:attribute-set> - - -Description - -The styling for sidebars. - - - - - - -section.title.properties -attribute set - - -section.title.properties -Properties for section titles - - - -<xsl:attribute-set name="section.title.properties"> - <xsl:attribute name="font-family"> - <xsl:value-of select="$title.font.family"/> - </xsl:attribute> - <xsl:attribute name="font-weight">bold</xsl:attribute> - <!-- font size is calculated dynamically by section.heading template --> - <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> - <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute> - <xsl:attribute name="space-before.optimum">1.0em</xsl:attribute> - <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> -</xsl:attribute-set> - - -Description - -The properties common to all section titles. - - - - - - -section.title.level1.properties -attribute set - - -section.title.level1.properties -Properties for level-1 section titles - - - -<xsl:attribute-set name="section.title.level1.properties"> - <xsl:attribute name="font-size"> - <xsl:value-of select="$body.font.master * 2.0736"/> - <xsl:text>pt</xsl:text> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -The properties of level-1 section titles. - - - - - - -section.title.level2.properties -attribute set - - -section.title.level2.properties -Properties for level-1 section titles - - - -<xsl:attribute-set name="section.title.level2.properties"> - <xsl:attribute name="font-size"> - <xsl:value-of select="$body.font.master * 1.728"/> - <xsl:text>pt</xsl:text> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -The properties of level-2 section titles. - - - - - - -section.title.level3.properties -attribute set - - -section.title.level3.properties -Properties for level-1 section titles - - - -<xsl:attribute-set name="section.title.level3.properties"> - <xsl:attribute name="font-size"> - <xsl:value-of select="$body.font.master * 1.44"/> - <xsl:text>pt</xsl:text> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -The properties of level-3 section titles. - - - - - - -section.title.level4.properties -attribute set - - -section.title.level4.properties -Properties for level-1 section titles - - - -<xsl:attribute-set name="section.title.level4.properties"> - <xsl:attribute name="font-size"> - <xsl:value-of select="$body.font.master * 1.2"/> - <xsl:text>pt</xsl:text> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -The properties of level-4 section titles. - - - - - - -section.title.level5.properties -attribute set - - -section.title.level5.properties -Properties for level-1 section titles - - - -<xsl:attribute-set name="section.title.level5.properties"> - <xsl:attribute name="font-size"> - <xsl:value-of select="$body.font.master"/> - <xsl:text>pt</xsl:text> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -The properties of level-5 section titles. - - - - - - -section.title.level6.properties -attribute set - - -section.title.level6.properties -Properties for level-1 section titles - - - -<xsl:attribute-set name="section.title.level6.properties"> - <xsl:attribute name="font-size"> - <xsl:value-of select="$body.font.master"/> - <xsl:text>pt</xsl:text> - </xsl:attribute> -</xsl:attribute-set> - - -Description - -The properties of level-6 section titles. This property set is actually -used for all titles below level 5. - - - - - - -figure.properties -Properties associated with a figure - - - -<xsl:attribute-set name="figure.properties" - use-attribute-sets="formal.object.properties"/> - - -Description - -The styling for figures. - - - - - - -example.properties -Properties associated with a example - - - -<xsl:attribute-set name="example.properties" - use-attribute-sets="formal.object.properties"/> - - -Description - -The styling for examples. - - - - - - -equation.properties -Properties associated with a equation - - - -<xsl:attribute-set name="equation.properties" - use-attribute-sets="formal.object.properties"/> - - -Description - -The styling for equations. - - - - - - -table.properties -Properties associated with a table - - - -<xsl:attribute-set name="table.properties" - use-attribute-sets="formal.object.properties"/> - - -Description - -The styling for tables. - - - - - - -procedure.properties -Properties associated with a procedure - - - -<xsl:attribute-set name="procedure.properties" - use-attribute-sets="formal.object.properties"/> - - -Description - -The styling for procedures. - - - - - - -Profiling - -Following parameters can be used for attribute value based -profiling of your document. For more info about profiling look at -http://docbook.sourceforge.net/projects/xsl/doc/tools/profiling.html. - - - -profile.arch -string - - -profile.arch -Target profile for arch -attribute - - - -<xsl:param name="profile.arch" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.condition -string - - -profile.condition -Target profile for condition -attribute - - - -<xsl:param name="profile.condition" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.conformance -string - - -profile.conformance -Target profile for conformance -attribute - - - -<xsl:param name="profile.conformance" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.lang -string - - -profile.lang -Target profile for lang -attribute - - - -<xsl:param name="profile.lang" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.os -string - - -profile.os -Target profile for os -attribute - - - -<xsl:param name="profile.os" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.revision -string - - -profile.revision -Target profile for revision -attribute - - - -<xsl:param name="profile.revision" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.revisionflag -string - - -profile.revisionflag -Target profile for revisionflag -attribute - - - -<xsl:param name="profile.revisionflag" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.role -string - - -profile.role -Target profile for role -attribute - - - -<xsl:param name="profile.role" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - -Note that role is often -used for other purposes than profiling. For example it is commonly -used to get emphasize in bold font: - -<emphasis role="bold">very important</emphasis> - -If you are using role for -these purposes do not forget to add values like bold to -value of this parameter. If you forgot you will get document with -small pieces missing which are very hard to track. - -For this reason it is not recommended to use role attribute for profiling. You should -rather use profiling specific attributes like userlevel, os, arch, condition, etc. - - - - - - - -profile.security -string - - -profile.security -Target profile for security -attribute - - - -<xsl:param name="profile.security" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.userlevel -string - - -profile.userlevel -Target profile for userlevel -attribute - - - -<xsl:param name="profile.userlevel" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.vendor -string - - -profile.vendor -Target profile for vendor -attribute - - - -<xsl:param name="profile.vendor" - select="''"/> - - -Description - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.attribute -string - - -profile.attribute -Name of user-specified profiling attribute - - - -<xsl:param name="profile.attribute" - select="''"/> - - -Description - -This parameter is used in conjuction with profile.value. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.value -string - - -profile.value -Target profile for user-specified attribute - - - -<xsl:param name="profile.value" - select="''"/> - - -Description - -When you are using this parameter you must also specify name of -profiling attribute with parameter profile.attribute. - -Value of this parameter specifies profiles which should be -included in the output. You can specify multiple profiles by -separating them by semicolon. You can change separator character by -profile.separator -parameter. - -This parameter has effect only when you are using profiling -stylesheets (profile-docbook.xsl, -profile-chunk.xsl, …) instead of normal -ones (docbook.xsl, -chunk.xsl, …). - - - - - - -profile.separator -string - - -profile.separator -Separator character for compound profile values - - - -<xsl:param name="profile.separator" - select="';'"/> - - -Description - -Separator character for compound profile values. - - - - - - -Localization - - -l10n.gentext.language -string - - -l10n.gentext.language -Sets the gentext language - - - -<xsl:param name="l10n.gentext.language" - select="''"/> - - -Description - -If this parameter is set to any value other than the empty string, its -value will be used as the value for the language when generating text. Setting -l10n.gentext.language overrides any settings within the -document being formatted. - -It's much more likely that you might want to set the -l10n.gentext.default.language parameter. - - - - - - -l10n.gentext.default.language -string - - -l10n.gentext.default.language -Sets the default language for generated text - - - -<xsl:param name="l10n.gentext.default.language" - select="'en'"/> - - -Description - -The value of the l10n.gentext.default.language -parameter is used as the language for generated text if no setting is provided -in the source document. - - - - - - -l10n.gentext.use.xref.language -boolean - - -l10n.gentext.use.xref.language -Use the language of target when generating cross-reference text? - - - -<xsl:param name="l10n.gentext.use.xref.language" - select="0"/> - - -Description - -If non-zero, the language of the target will be used when -generating cross reference text. Usually, the current -language is used when generating text (that is, the language of the -element that contains the cross-reference element). But setting this parameter -allows the language of the element pointed to to control -the generated text. - -Consider the following example: - - -<para lang="en">See also <xref linkend="chap3"/>.</para> - - - -Suppose that Chapter 3 happens to be written in German. -If l10n.gentext.use.xref.language is non-zero, the -resulting text will be something like this: - -
      -See also Kapital 3. -
      - -Where the more traditional rendering would be: - -
      -See also Chapter 3. -
      - -
      -
      - -
      - - - -The Stylesheet - -The param.xsl stylesheet is just a wrapper -around all these parameters. - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - exclude-result-prefixes="src" - version="1.0"> - -<!-- This file is generated from param.xweb; do not edit this file! --> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - ******************************************************************** --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</xsl:stylesheet> - - - -
      \ No newline at end of file diff --git a/trunk/docs/xsl/docbook/fo/param.xsl b/trunk/docs/xsl/docbook/fo/param.xsl deleted file mode 100755 index 5481708f..00000000 --- a/trunk/docs/xsl/docbook/fo/param.xsl +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - - - -images/ - - - 14pt - bold - false - always - -justify - - - - -. - - - -0.5in -0.5in -0.5em -1em -2em - - -10 - - pt - - - - - - - - - - - - - - - - - - - - - - - 0em - 0em - 0.2em - - - 2em - 1.8em - 2.2em - bold - 18pt - 1.5em - 1.3em - 1.8em - false - always - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pt - - - - - - 0.5em - 1em - 2em - 0.5em - 1em - 2em - - - -figure before -example before -equation before -table before -procedure before - - - bold - - - pt - - false - 0.4em - 0.6em - 0.8em - - -kr -0 - - - - -/appendix toc,title -article/appendix nop -/article toc,title -book toc,title,figure,table,example,equation -/chapter toc,title -part toc,title -/preface toc,title -qandadiv toc -qandaset toc -reference toc,title -/sect1 toc -/sect2 toc -/sect3 toc -/sect4 toc -/sect5 toc -/section toc -set toc,title - - - - - - - - - - - - - - - - - - - - - - -true - - - 0.5em - 1em - 2em - 0.5em - 1em - 2em - - - - - - - - - - - - - 1em - 0.8em - 1.2em - 1em - 0.8em - 1.2em - - - 1em - 0.8em - 1.2em - - - - - - - - - - - - 0.9em - - - start - - - - 1em - 0.8em - 1.2em - - - - - - - - - - - - - - - 210mm - 11in - 8.5in - 2378mm - 1682mm - 1189mm - 841mm - 594mm - 420mm - 297mm - 210mm - 148mm - 105mm - 74mm - 52mm - 37mm - 1414mm - 1000mm - 707mm - 500mm - 353mm - 250mm - 176mm - 125mm - 88mm - 62mm - 44mm - 1297mm - 917mm - 648mm - 458mm - 324mm - 229mm - 162mm - 114mm - 81mm - 57mm - 40mm - 11in - - - - - - 1.25in - 1in - - - - - 0.75in - 1in - - - - - - - - - - - - - - - - - 8.5in - 1682mm - 1189mm - 841mm - 594mm - 420mm - 297mm - 210mm - 148mm - 105mm - 74mm - 52mm - 37mm - 26mm - 1000mm - 707mm - 500mm - 353mm - 250mm - 176mm - 125mm - 88mm - 62mm - 44mm - 31mm - 917mm - 648mm - 458mm - 324mm - 229mm - 162mm - 114mm - 81mm - 57mm - 40mm - 28mm - 8.5in - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 18pt - bold - 1em - false - always - 0.5em - 0.4em - 0.6em - - - - - - - - - - - - - - pt - - - - - - pt - - - - - - pt - - - - - - pt - - - - - - pt - - - - - - pt - - - - - - - bold - - always - 0.8em - 1.0em - 1.2em - - - - - - #E0E0E0 - -1 - - solid - 1pt - black - #DDDDDD - 12pt - 12pt - 6pt - 6pt - - - - - - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - - - - - - - - - - - 0.5em - 1em - 2em - 0.5em - 1em - 2em - -2 - - - - - - - - - - - - 0.8em - 1em - 1.2em - 0.8em - 1em - 1.2em - - - - - - - \ No newline at end of file diff --git a/trunk/docs/xsl/docbook/fo/param.xweb b/trunk/docs/xsl/docbook/fo/param.xweb deleted file mode 100755 index f22bc686..00000000 --- a/trunk/docs/xsl/docbook/fo/param.xweb +++ /dev/null @@ -1,644 +0,0 @@ - -%param.ent; -]> - - -FO Parameter Reference - -$Id$ - - - Walsh - Norman - - - 1999 - 2000 - 2001 - Norman Walsh - - - -Introduction - -This is technical reference documentation for the DocBook XSL -Stylesheets; it documents (some of) the parameters, templates, and -other elements of the stylesheets. - -This reference describes each of the HTML Stylesheet parameters. -These are the easily customizable parts of the stylesheet. -If you want to specify an alternate value for one or more of these -parameters, you can do so in a driver stylesheet. - -For example, if you want to change the html.stylesheet -to reference.css, you might create a driver -stylesheet like this: - - - - - - reference.css - -]]> - -Naturally, you have to change the -href attribute on -<xsl:import> to point to -docbook.xsl on your system. (Or -chunk.xsl, if you're using chunking.) - -This is not intended to be user documentation. -It is provided for developers writing customization layers for the -stylesheets, and for anyone who's interested in how it -works. - -Although I am trying to be thorough, this documentation is known -to be incomplete. Don't forget to read the source, too :-) - - -Admonitions -&admon.graphics; -&admon.graphics.extension; -&admon.graphics.path; -&admonition.title.properties; -&admonition.properties; - - -Callouts -&callout.defaultcolumn; -&callout.graphics; -&callout.graphics.extension; -&callout.graphics.number.limit; -&callout.graphics.path; -&callout.unicode; -&callout.unicode.font; -&callout.unicode.number.limit; -&callout.unicode.start.character; -&callouts.extension; - - -ToC/LoT/Index Generation -&autotoc.label.separator; -&process.empty.source.toc; -&process.source.toc; -&generate.toc; -&generate.index; -&make.index.markup; -&toc.section.depth; -&toc.indent.width; -&toc.margin.properties; -&bridgehead.in.toc; -&generate.section.toc.level; - - - - - -Processor Extensions -&arbortext.extensions; -&fop.extensions; -&passivetex.extensions; -&tex.math.in.alt; -&tex.math.delims; -&xep.extensions; - - -Stylesheet Extensions -&linenumbering.everyNth; -&linenumbering.extension; -&linenumbering.separator; -&linenumbering.width; -&tablecolumns.extension; -&textinsert.extension; -&use.extensions; - - -Automatic labelling -&appendix.autolabel; -&chapter.autolabel; -&part.autolabel; -&preface.autolabel; -§ion.autolabel; -§ion.label.includes.component.label; -&label.from.part; - - -XSLT Processing -&rootid; - - -Meta/*Info -&make.single.year.ranges; -&make.year.ranges; -&author.othername.in.middle; - - -Reference Pages -&funcsynopsis.decoration; -&funcsynopsis.style; -&function.parens; -&refentry.generate.name; -&refentry.generate.title; -&refentry.title.properties; -&refentry.xref.manvolnum; - - -Tables -&default.table.width; -&nominal.table.width; -&table.cell.padding; -&table.frame.border.thickness; -&table.frame.border.style; -&table.frame.border.color; -&table.cell.border.thickness; -&table.cell.border.style; -&table.cell.border.color; - - -Linking -&target.database.document; -&use.local.olink.style; -¤t.docid; -&olink.doctitle; - - -QAndASet -&qandadiv.autolabel; -&qanda.inherit.numeration; - - -Bibliography -&biblioentry.item.separator; -&bibliography.collection; -&bibliography.numbered; - - -Glossary -&glossterm.auto.link; -&firstterm.only.link; -&glossary.collection; -&glossterm.separation; -&glossterm.width; -&glossary.as.blocks; -&glosslist.as.blocks; -&glossentry.show.acronym; - - -Miscellaneous -&formal.procedures; -&formal.title.placement; -&runinhead.default.title.end.punct; -&runinhead.title.end.punct; -&show.comments; -&punct.honorific; -&segmentedlist.as.table; -&variablelist.as.blocks; -&blockquote.properties; -&ulink.show; -&ulink.footnotes; -&ulink.footnote.number.format; -&ulink.hyphenate; -&shade.verbatim; -&shade.verbatim.style; -&use.svg; -&use.role.as.xrefstyle; -&menuchoice.separator; -&menuchoice.menu.separator; -&default.float.class; -&footnote.number.format; -&table.footnote.number.format; -&footnote.number.symbols; -&table.footnote.number.symbols; -&xref.with.number.and.title; - - -Graphics -&graphic.default.extension; -&default.image.width; -&preferred.mediaobject.role; -&use.role.for.mediaobject; -&ignore.image.scaling; - - -Pagination and General Styles - -
      Understanding XSL FO Margins - -In order for the parameters in this section to make sense, it is useful to -consider . - -
      - - - - -Figure showing page margins - -This figure shows the physical page with the various FO page regions -identified. - - -
      - -First, let's consider the regions on the page. - -The white region is the physical page. Its dimensions are determined by -the page.height and page.width -parameters. - -The yellow region is the region-body. The size and placement of -the region body is constrained by the dimensions labelled in the -figure. - -The pink region at the top of the page is the region-before. The -darker area inside the region-before is the header text. In XSL, the default -display alignment for a region is before, but the -DocBook stylesheets still explicitly make it before. That's -why the darker area is at the top. - -The pink region at the bottom of the page is the region-after. -The darker area is the footer text. In XSL, the default display -alignment for a region is before, -but the DocBook stylesheets explicitly make it -after. That's why the darker area is at the bottom. - -The dimensions in the figure are: - - -The page-master margin-top. - -The region-before extent. - -The region-body margin-top. - -The region-after extent. - -The page-master margin-bottom. - -The region-body margin-bottom. - -The sum of the page-master margin-left and the -region-body margin-left. In DocBook, the region-body margin-left is -zero by default, so this is simply the page-master region-left. - -The sum of the page-master margin-right and the -region-body margin-right. In DocBook, the region-body margin-right is -zero by default, so this is simply the page-master region-left. - - - -
      -
      - -&page.height; -&page.height.portrait; -&page.margin.bottom; -&page.margin.inner; -&page.margin.outer; -&page.margin.top; -&page.orientation; -&page.width; -&page.width.portrait; -&paper.type; -&double.sided; -&body.margin.bottom; -&body.margin.top; -&alignment; -&hyphenate; -&line-height; -&column.count.back; -&column.count.body; -&column.count.front; -&column.count.index; -&column.count.lot; -&column.count.titlepage; -®ion.after.extent; -®ion.before.extent; -&default.units; -&normal.para.spacing; -&body.font.master; -&body.font.size; -&footnote.font.size; -&title.margin.left; -&draft.mode; -&draft.watermark.image; -&headers.on.blank.pages; -&footers.on.blank.pages; -&header.rule; -&footer.rule; -&header.content.properties; -&footer.content.properties; -
      - -Font Families -&body.font.family; -&dingbat.font.family; -&monospace.font.family; -&sans.font.family; -&title.font.family; - - -Lists -&list.block.spacing; -&list.item.spacing; -&compact.list.item.spacing; - - -Cross References -&insert.xref.page.number; -&xref.properties; - - -Property Sets -&component.title.properties; -&formal.object.properties; -&formal.title.properties; -&informal.object.properties; -&monospace.properties; -&verbatim.properties; -&monospace.verbatim.properties; -&sidebar.properties; -§ion.title.properties; -§ion.title.level1.properties; -§ion.title.level2.properties; -§ion.title.level3.properties; -§ion.title.level4.properties; -§ion.title.level5.properties; -§ion.title.level6.properties; -&figure.properties; -&example.properties; -&equation.properties; -&table.properties; -&procedure.properties; - - -Profiling - -Following parameters can be used for attribute value based -profiling of your document. For more info about profiling look at -http://docbook.sourceforge.net/projects/xsl/doc/tools/profiling.html. - -&profile.arch; -&profile.condition; -&profile.conformance; -&profile.lang; -&profile.os; -&profile.revision; -&profile.revisionflag; -&profile.role; -&profile.security; -&profile.userlevel; -&profile.vendor; -&profile.attribute; -&profile.value; -&profile.separator; - - -Localization -&l10n.gentext.language; -&l10n.gentext.default.language; -&l10n.gentext.use.xref.language; - - - - -The Stylesheet - -The param.xsl stylesheet is just a wrapper -around all these parameters. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      diff --git a/trunk/docs/xsl/docbook/fo/passivetex.xsl b/trunk/docs/xsl/docbook/fo/passivetex.xsl deleted file mode 100755 index a8e14bfb..00000000 --- a/trunk/docs/xsl/docbook/fo/passivetex.xsl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/pdf2index b/trunk/docs/xsl/docbook/fo/pdf2index deleted file mode 100755 index c5296398..00000000 --- a/trunk/docs/xsl/docbook/fo/pdf2index +++ /dev/null @@ -1,140 +0,0 @@ -#!/usr/bin/perl -- # -*- Perl -*- - -# this needs some cleanup... - -my $PSTOTEXT = "pstotext"; - -my $pdf = shift @ARGV; - -my $index = ""; -my $inindex = 0; -open (F, "$PSTOTEXT $pdf |"); -while () { - if (/^<\/index/) { - $index .= $_; - $inindex = 0; - } - $inindex = 1 if /^.*?<\/phrase>\s*)+)/s) { - $cindex .= $1; - $_ = $2; - $index = $'; # ' - - my @pages = m/.*?<\/phrase>\s*/sg; - - # Expand ranges - if ($#pages >= 0) { - my @mpages = (); - foreach my $page (@pages) { - my $pageno = &pageno($page); - if ($pageno =~ /^([0-9]+)[^0-9]([0-9]+)$/) { # funky - - for (my $count = $1; $count <= $2; $count++) { - push (@mpages, "$count"); - } - } else { - push (@mpages, $page); - } - } - @pages = sort rangesort @mpages; - } - - # Remove duplicates... - if ($#pages > 0) { - my @mpages = (); - my $current = ""; - foreach my $page (@pages) { - my $pageno = &pageno($page); - if ($pageno ne $current) { - push (@mpages, $page); - $current = $pageno; - } - } - @pages = @mpages; - } - - # Collapse ranges... - if ($#pages > 1) { - my @cpages = (); - while (@pages) { - my $count = 0; - my $len = &rangelen($count, @pages); - if ($len <= 2) { - my $page = shift @pages; - push (@cpages, $page); - } else { - my $fpage = shift @pages; - my $lpage = ""; - while ($len > 1) { - $lpage = shift @pages; - $len--; - } - my $fpno = &pageno($fpage); - my $lpno = &pageno($lpage); - $fpage =~ s/>$fpno${fpno}-$lpno//; - $page =~ s/^//; - - return $1 if $page =~ /^([^<>]+)/; - return "?"; -} - -sub rangesort { - my $apno = &pageno($a); - my $bpno = &pageno($b); - - # Make sure roman pages come before arabic ones, otherwise sort them in order - return -1 if ($apno !~ /^\d+/ && $bpno =~ /^\d+/); - return 1 if ($apno =~ /^\d+/ && $bpno !~ /^\d+/); - return $apno cmp $bpno; -} - -sub rangelen { - my $count = shift; - my @pages = @_; - my $len = 1; - my $inrange = 1; - - my $current = &pageno($pages[$count]); - while ($count < $#pages && $inrange) { - $count++; - my $next = &pageno($pages[$count]); - if ($current + 1 eq $next) { - $current = $next; - $inrange = 1; - $len++; - } else { - $inrange = 0; - } - } - - return $len; -} diff --git a/trunk/docs/xsl/docbook/fo/pi.xsl b/trunk/docs/xsl/docbook/fo/pi.xsl deleted file mode 100755 index 77fb5930..00000000 --- a/trunk/docs/xsl/docbook/fo/pi.xsl +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - filename - - - - - - - - - - - - filename - - - - - - - - dir - - - - - - - - - - - - - - -
      - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - - - - No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep? - - - -
      - - - -
      -
      - - - - - - - - - - - - -
      - - - - - - - - - - - - - - - - - - - - -
      - - - - - -
      -
      -
      - - - - - - No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep? - - - -
      - - - -
      -
      - - - - diff --git a/trunk/docs/xsl/docbook/fo/profile-docbook.xsl b/trunk/docs/xsl/docbook/fo/profile-docbook.xsl deleted file mode 100755 index 0168db7b..00000000 --- a/trunk/docs/xsl/docbook/fo/profile-docbook.xsl +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - encountered - - in - - - , but no template matches. - - - < - - > - - </ - - > - - - - - - - - - - - - - - [could not find document title] - - - - - - - - - - - - - - - - - - - - ID ' - - ' not found in document. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Making - - pages on - - paper ( - - x - - ) - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/qandaset.xsl b/trunk/docs/xsl/docbook/fo/qandaset.xsl deleted file mode 100755 index f9875c76..00000000 --- a/trunk/docs/xsl/docbook/fo/qandaset.xsl +++ /dev/null @@ -1,231 +0,0 @@ - - - - - -number - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/refentry.xsl b/trunk/docs/xsl/docbook/fo/refentry.xsl deleted file mode 100755 index d47b0249..00000000 --- a/trunk/docs/xsl/docbook/fo/refentry.xsl +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - em-dash - - - - - - - - - - - - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/sections.xsl b/trunk/docs/xsl/docbook/fo/sections.xsl deleted file mode 100755 index 41f9dc50..00000000 --- a/trunk/docs/xsl/docbook/fo/sections.xsl +++ /dev/null @@ -1,502 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - 2 - - - - - - 2 - 3 - 4 - 5 - 6 - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/synop.xsl b/trunk/docs/xsl/docbook/fo/synop.xsl deleted file mode 100755 index 6ab561c3..00000000 --- a/trunk/docs/xsl/docbook/fo/synop.xsl +++ /dev/null @@ -1,903 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - ) - -   - - - - - - - - - - - - - - ( - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (void); - - - (); - - - - - - (...); - - - - - - - ( - - - - - - - - - - - , - - - ); - - - - - - - - - - - - - - - , - - - - - - - ; - - - - - ( - - ) - - - - -java - - - - - - - - - - - - - - process in - - - - - - - - - - - - - - - - - Unrecognized language on - - : - - - - - - - - - - - - &RE; - - - - - - - - - - extends - - - &RE;     - - - - implements - - - &RE;     - - - - throws - - -  {&RE; - - } - - - - - - - - - - - , - - - - - - - - - - -   - - - - - , - - - - - - - , - - - - - - - , - - - - - - -    - - ; - - - - - - -   - - - - -   - - - - - - - - - void  - - - - - - - - 0 - - ,&RE; - - -   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ( - - - - ) - - &RE;    throws  - - - ; - - - - - - - - - - - : - - - &RE;     - - - - implements - - - &RE;     - - - - throws - - -  {&RE; - - } - - - - - - - - - - , - - - - - - -   - - - - - , - - - - - - - , - - - - - - - , - - - - - - -    - - ; - - - - - - -   - - - - -   - - - - - - - - - void  - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - ( - - ) - - &RE;    throws  - - - ; - - - - - - - - - interface - - - : - - - &RE;     - - - - implements - - - &RE;     - - - - throws - - -  {&RE; - - } - - - - - - - - - - , - - - - - - -   - - - - - , - - - - - - - , - - - - - - - , - - - - - - -    - - ; - - - - - - -   - - - - -   - - - - - - - - - void  - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - ( - - ) - - &RE;    raises( - - ) - - ; - - - - - - - - - package - - ;&RE; - - - @ISA = ( - - );&RE; - - - - - - - - - - - - - , - - - - - - -   - - - - - , - - - - - - - , - - - - - - - , - - - - - - -    - - ; - - - - - - -   - - - - -   - - - - - - - - - void  - - - - - - - - - , - - - - - - - - - - - - - - sub - - - { ... }; - - - - - - - diff --git a/trunk/docs/xsl/docbook/fo/table.xsl b/trunk/docs/xsl/docbook/fo/table.xsl deleted file mode 100755 index ec04b687..00000000 --- a/trunk/docs/xsl/docbook/fo/table.xsl +++ /dev/null @@ -1,984 +0,0 @@ - - - - - - - - - - -$Id$ - -Walsh -Norman -19992000 -Norman Walsh - - -Formatting Object Table Reference - - -
      Introduction - -This is technical reference documentation for the DocBook XSL -Stylesheets; it documents (some of) the parameters, templates, and -other elements of the stylesheets. - -This is not intended to be user documentation. -It is provided for developers writing customization layers for the -stylesheets, and for anyone who's interested in how it -works. - -Although I am trying to be thorough, this documentation is known -to be incomplete. Don't forget to read the source, too :-) -
      -
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - always - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 100% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No adjustColumnWidths function available. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bold - - - - - - - - - - - - - - -   - - - - - - fixed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - always - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - before - center - after - - - Unexpected valign value: - - , center used. - - center - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - : - - - - - - - - 0: - - - - - - - - - - - - - - - 0 - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - 1* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Calculate an XSL FO table column width specification from a -CALS table column width specification. - - -CALS expresses table column widths in the following basic -forms: - - - -99.99units, a fixed length specifier. - - -99.99, a fixed length specifier without any units. - - -99.99*, a relative length specifier. - - -99.99*+99.99units, a combination of both. - - - -The CALS units are points (pt), picas (pi), centimeters (cm), -millimeters (mm), and inches (in). These are the same units as XSL, -except that XSL abbreviates picas "pc" instead of "pi". If a length -specifier has no units, the CALS default unit (pt) is assumed. - -Relative length specifiers are represented in XSL with the -proportional-column-width() function. - -Here are some examples: - - - -"36pt" becomes "36pt" - - -"3pi" becomes "3pc" - - -"36" becomes "36pt" - - -"3*" becomes "proportional-column-width(3)" - - -"3*+2pi" becomes "proportional-column-width(3)+2pc" - - -"1*+2" becomes "proportional-column-width(1)+2pt" - - - - - - -colwidth - -The CALS column width specification. - - - - - - -The XSL column width specification. - - - - - 1* - - - - - - - - - - - proportional-column-width( - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pc - pt - - - - - - -
      diff --git a/trunk/docs/xsl/docbook/fo/titlepage.templates.xml b/trunk/docs/xsl/docbook/fo/titlepage.templates.xml deleted file mode 100755 index 3523f6dc..00000000 --- a/trunk/docs/xsl/docbook/fo/titlepage.templates.xml +++ /dev/null @@ -1,1225 +0,0 @@ - - - - - - - - - - - - -]> - - - - - - - - - - - - - <subtitle/> - - <corpauthor space-before="0.5em" - font-size="&hsize2;"/> - <authorgroup space-before="0.5em" - font-size="&hsize2;"/> - <author space-before="0.5em" - font-size="&hsize2;"/> - - <othercredit space-before="0.5em"/> - <releaseinfo space-before="0.5em"/> - <copyright space-before="0.5em"/> - <legalnotice text-align="start" - margin-left="0.5in" - margin-right="0.5in" - font-family="{$body.font.family}"/> - <pubdate space-before="0.5em"/> - <revision space-before="0.5em"/> - <revhistory space-before="0.5em"/> - <abstract space-before="0.5em" - text-align="start" - margin-left="0.5in" - margin-right="0.5in" - font-family="{$body.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="set" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="division.title" - param:node="ancestor-or-self::set[1]" - text-align="center" - font-size="&hsize5;" - space-before="&hsize5space;" - font-weight="bold" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}" - text-align="center"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="book" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="division.title" - param:node="ancestor-or-self::book[1]" - text-align="center" - font-size="&hsize5;" - space-before="&hsize5space;" - font-weight="bold" - font-family="{$title.font.family}"/> - <subtitle - text-align="center" - font-size="&hsize4;" - space-before="&hsize4space;" - font-family="{$title.font.family}"/> - <corpauthor font-size="&hsize3;" - keep-with-next="always" - space-before="2in"/> - <authorgroup space-before="2in"/> - <author font-size="&hsize3;" - space-before="&hsize2space;" - keep-with-next="always"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - <title - t:named-template="book.verso.title" - font-size="&hsize2;" - font-weight="bold" - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup t:named-template="verso.authorgroup"/> - <author/> - <othercredit/> - <pubdate space-before="1em"/> - <copyright/> - <abstract/> - <legalnotice font-size="8pt"/> - </t:titlepage-content> - - <t:titlepage-separator> - <fo:block break-after="page"/> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - <fo:block break-after="page"/> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="part" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="division.title" - param:node="ancestor-or-self::part[1]" - text-align="center" - font-size="&hsize5;" - space-before="&hsize5space;" - font-weight="bold" - font-family="{$title.font.family}"/> - <subtitle - text-align="center" - font-size="&hsize4;" - space-before="&hsize4space;" - font-weight='bold' - font-style='italic' - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="partintro" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - text-align="center" - font-size="&hsize5;" - font-weight="bold" - space-before="1em" - font-family="{$title.font.family}"/> - <subtitle - text-align="center" - font-size="&hsize2;" - font-weight="bold" - font-style="italic" - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="reference" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="division.title" - param:node="ancestor-or-self::reference[1]" - text-align="center" - font-size="&hsize5;" - space-before="&hsize5space;" - font-weight="bold" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}" - text-align="center"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsynopsisdiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsection" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsect1" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsect2" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refsect3" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="dedication" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::dedication[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="preface" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::preface[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="chapter" t:wrapper="fo:block" - font-family="{$title.font.family}"> - <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}"> - <title t:named-template="component.title" - param:node="ancestor-or-self::chapter[1]" - font-size="&hsize5;" - font-weight="bold"/> - - <subtitle space-before="0.5em" - font-style="italic" - font-size="&hsize2;" - font-weight="bold"/> - - <corpauthor space-before="0.5em" - space-after="0.5em" - font-size="&hsize2;"/> - - <authorgroup space-before="0.5em" - space-after="0.5em" - font-size="&hsize2;"/> - - <author space-before="0.5em" - space-after="0.5em" - font-size="&hsize2;"/> - - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="appendix" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="component.title" - param:node="ancestor-or-self::appendix[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-weight="bold" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="section" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect1" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect2" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect3" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect4" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect5" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="simplesect" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - margin-left="{$title.margin.left}" - font-family="{$title.font.family}"/> - <subtitle - font-family="{$title.font.family}"/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - <abstract/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="bibliography" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::bibliography[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="bibliodiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title t:named-template="component.title" - param:node="ancestor-or-self::bibliodiv[1]" - margin-left="{$title.margin.left}" - font-size="&hsize4;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="glossary" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::glossary[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="glossdiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title t:named-template="component.title" - param:node="ancestor-or-self::glossdiv[1]" - margin-left="{$title.margin.left}" - font-size="&hsize4;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="index" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::index[1]" - param:pagewide="1" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <!-- The indexdiv.title template is used so that manual and --> - <!-- automatically generated indexdiv titles get the same --> - <!-- formatting. --> - - <t:titlepage t:element="indexdiv" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title t:force="1" - t:named-template="indexdiv.title" - param:title="title"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="setindex" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::setindex[1]" - param:pagewide="1" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="colophon" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::colophon[1]" - margin-left="{$title.margin.left}" - font-size="&hsize5;" - font-family="{$title.font.family}" - font-weight="bold"/> - <subtitle - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="table.of.contents" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'TableofContents'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.tables" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofTables'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.figures" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofFigures'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.examples" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofExamples'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.equations" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofEquations'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.procedures" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofProcedures'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - - <t:titlepage t:element="list.of.unknowns" t:wrapper="fo:block"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="gentext" - param:key="'ListofUnknown'" - space-before.minimum="1em" - space-before.optimum="1.5em" - space-before.maximum="2em" - space-after="0.5em" - margin-left="{$title.margin.left}" - font-size="&hsize3;" - font-weight="bold" - font-family="{$title.font.family}"/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> - </t:titlepage> - -<!-- ==================================================================== --> - -</t:templates> diff --git a/trunk/docs/xsl/docbook/fo/titlepage.templates.xsl b/trunk/docs/xsl/docbook/fo/titlepage.templates.xsl deleted file mode 100755 index 2a9aa80a..00000000 --- a/trunk/docs/xsl/docbook/fo/titlepage.templates.xsl +++ /dev/null @@ -1,3649 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - -<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. --> - -<xsl:template name="article.titlepage.recto"> - <xsl:choose> - <xsl:when test="articleinfo/title"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/> - </xsl:when> - <xsl:when test="artheader/title"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="articleinfo/subtitle"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/> - </xsl:when> - <xsl:when test="artheader/subtitle"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract"/> -</xsl:template> - -<xsl:template name="article.titlepage.verso"> -</xsl:template> - -<xsl:template name="article.titlepage.separator"> -</xsl:template> - -<xsl:template name="article.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="article.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="article.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.font.family}"> - <fo:block text-align="center"> - <xsl:call-template name="article.titlepage.before.recto"/> - <xsl:call-template name="article.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="article.titlepage.before.verso"/> - <xsl:call-template name="article.titlepage.verso"/> - </fo:block> - <xsl:call-template name="article.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="article.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="article.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" keep-with-next="always" font-size="24.8832pt" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::article[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" font-size="14.4pt"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" font-size="14.4pt"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" font-size="14.4pt"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.font.family}"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="article.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.font.family}"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="set.titlepage.recto"> - <xsl:choose> - <xsl:when test="setinfo/title"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="setinfo/subtitle"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/> -</xsl:template> - -<xsl:template name="set.titlepage.verso"> -</xsl:template> - -<xsl:template name="set.titlepage.separator"> -</xsl:template> - -<xsl:template name="set.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="set.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="set.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="set.titlepage.before.recto"/> - <xsl:call-template name="set.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="set.titlepage.before.verso"/> - <xsl:call-template name="set.titlepage.verso"/> - </fo:block> - <xsl:call-template name="set.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="set.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="set.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="division.title"> -<xsl:with-param name="node" select="ancestor-or-self::set[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" font-family="{$title.font.family}" text-align="center"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="set.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="book.titlepage.recto"> - <xsl:choose> - <xsl:when test="bookinfo/title"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="bookinfo/subtitle"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/> -</xsl:template> - -<xsl:template name="book.titlepage.verso"> - <xsl:choose> - <xsl:when test="bookinfo/title"> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor"/> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/> - <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/> -</xsl:template> - -<xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/> -</xsl:template> - -<xsl:template name="book.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/> -</xsl:template> - -<xsl:template name="book.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="book.titlepage.before.recto"/> - <xsl:call-template name="book.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="book.titlepage.before.verso"/> - <xsl:call-template name="book.titlepage.verso"/> - </fo:block> - <xsl:call-template name="book.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="book.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="book.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="book.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="division.title"> -<xsl:with-param name="node" select="ancestor-or-self::book[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" keep-with-next="always" space-before="2in"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2in"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="book.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next="always"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="title" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="book.verso.title"> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style"> -<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style"> -<xsl:call-template name="verso.authorgroup"> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style"> -<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style"> -<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em"> -<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style"> -<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style"> -<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="book.titlepage.verso.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt"> -<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="part.titlepage.recto"> - <xsl:choose> - <xsl:when test="partinfo/title"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="partinfo/subtitle"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="part.titlepage.verso"> -</xsl:template> - -<xsl:template name="part.titlepage.separator"> -</xsl:template> - -<xsl:template name="part.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="part.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="part.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="part.titlepage.before.recto"/> - <xsl:call-template name="part.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="part.titlepage.before.verso"/> - <xsl:call-template name="part.titlepage.verso"/> - </fo:block> - <xsl:call-template name="part.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="part.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="part.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="part.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="division.title"> -<xsl:with-param name="node" select="ancestor-or-self::part[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="partintro.titlepage.recto"> - <xsl:choose> - <xsl:when test="partintroinfo/title"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="partintroinfo/subtitle"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract"/> -</xsl:template> - -<xsl:template name="partintro.titlepage.verso"> -</xsl:template> - -<xsl:template name="partintro.titlepage.separator"> -</xsl:template> - -<xsl:template name="partintro.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="partintro.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="partintro.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="partintro.titlepage.before.recto"/> - <xsl:call-template name="partintro.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="partintro.titlepage.before.verso"/> - <xsl:call-template name="partintro.titlepage.verso"/> - </fo:block> - <xsl:call-template name="partintro.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="partintro.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="partintro.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="24.8832pt" font-weight="bold" space-before="1em" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="14.4pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="reference.titlepage.recto"> - <xsl:choose> - <xsl:when test="referenceinfo/title"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="referenceinfo/subtitle"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/othercredit"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/abstract"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/abstract"/> -</xsl:template> - -<xsl:template name="reference.titlepage.verso"> -</xsl:template> - -<xsl:template name="reference.titlepage.separator"> -</xsl:template> - -<xsl:template name="reference.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="reference.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="reference.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="reference.titlepage.before.recto"/> - <xsl:call-template name="reference.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="reference.titlepage.before.verso"/> - <xsl:call-template name="reference.titlepage.verso"/> - </fo:block> - <xsl:call-template name="reference.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="reference.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="reference.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="division.title"> -<xsl:with-param name="node" select="ancestor-or-self::reference[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" font-family="{$title.font.family}" text-align="center"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="refsynopsisdiv.titlepage.recto"> - <xsl:choose> - <xsl:when test="refsynopsisdivinfo/title"> - <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="refsynopsisdivinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="refsynopsisdiv.titlepage.verso"> -</xsl:template> - -<xsl:template name="refsynopsisdiv.titlepage.separator"> -</xsl:template> - -<xsl:template name="refsynopsisdiv.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="refsynopsisdiv.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="refsynopsisdiv.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="refsynopsisdiv.titlepage.before.recto"/> - <xsl:call-template name="refsynopsisdiv.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="refsynopsisdiv.titlepage.before.verso"/> - <xsl:call-template name="refsynopsisdiv.titlepage.verso"/> - </fo:block> - <xsl:call-template name="refsynopsisdiv.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="refsynopsisdiv.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="refsynopsisdiv.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="refsynopsisdiv.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="refsynopsisdiv.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="refsection.titlepage.recto"> - <xsl:choose> - <xsl:when test="refsectioninfo/title"> - <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="refsectioninfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="refsection.titlepage.verso"> -</xsl:template> - -<xsl:template name="refsection.titlepage.separator"> -</xsl:template> - -<xsl:template name="refsection.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="refsection.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="refsection.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="refsection.titlepage.before.recto"/> - <xsl:call-template name="refsection.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="refsection.titlepage.before.verso"/> - <xsl:call-template name="refsection.titlepage.verso"/> - </fo:block> - <xsl:call-template name="refsection.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="refsection.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="refsection.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="refsection.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsection.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="refsection.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="refsect1.titlepage.recto"> - <xsl:choose> - <xsl:when test="refsect1info/title"> - <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="refsect1info/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="refsect1.titlepage.verso"> -</xsl:template> - -<xsl:template name="refsect1.titlepage.separator"> -</xsl:template> - -<xsl:template name="refsect1.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="refsect1.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="refsect1.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="refsect1.titlepage.before.recto"/> - <xsl:call-template name="refsect1.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="refsect1.titlepage.before.verso"/> - <xsl:call-template name="refsect1.titlepage.verso"/> - </fo:block> - <xsl:call-template name="refsect1.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="refsect1.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="refsect1.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="refsect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect1.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="refsect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="refsect2.titlepage.recto"> - <xsl:choose> - <xsl:when test="refsect2info/title"> - <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="refsect2info/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="refsect2.titlepage.verso"> -</xsl:template> - -<xsl:template name="refsect2.titlepage.separator"> -</xsl:template> - -<xsl:template name="refsect2.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="refsect2.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="refsect2.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="refsect2.titlepage.before.recto"/> - <xsl:call-template name="refsect2.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="refsect2.titlepage.before.verso"/> - <xsl:call-template name="refsect2.titlepage.verso"/> - </fo:block> - <xsl:call-template name="refsect2.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="refsect2.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="refsect2.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="refsect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect2.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="refsect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="refsect3.titlepage.recto"> - <xsl:choose> - <xsl:when test="refsect3info/title"> - <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="refsect3info/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="refsect3.titlepage.verso"> -</xsl:template> - -<xsl:template name="refsect3.titlepage.separator"> -</xsl:template> - -<xsl:template name="refsect3.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="refsect3.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="refsect3.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="refsect3.titlepage.before.recto"/> - <xsl:call-template name="refsect3.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="refsect3.titlepage.before.verso"/> - <xsl:call-template name="refsect3.titlepage.verso"/> - </fo:block> - <xsl:call-template name="refsect3.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="refsect3.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="refsect3.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="refsect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect3.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="refsect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="dedication.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="dedicationinfo/subtitle"> - <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="dedication.titlepage.verso"> -</xsl:template> - -<xsl:template name="dedication.titlepage.separator"> -</xsl:template> - -<xsl:template name="dedication.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="dedication.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="dedication.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="dedication.titlepage.before.recto"/> - <xsl:call-template name="dedication.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="dedication.titlepage.before.verso"/> - <xsl:call-template name="dedication.titlepage.verso"/> - </fo:block> - <xsl:call-template name="dedication.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="dedication.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="dedication.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="preface.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::preface[1]"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="prefaceinfo/subtitle"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/> -</xsl:template> - -<xsl:template name="preface.titlepage.verso"> -</xsl:template> - -<xsl:template name="preface.titlepage.separator"> -</xsl:template> - -<xsl:template name="preface.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="preface.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="preface.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="preface.titlepage.before.recto"/> - <xsl:call-template name="preface.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="preface.titlepage.before.verso"/> - <xsl:call-template name="preface.titlepage.verso"/> - </fo:block> - <xsl:call-template name="preface.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="preface.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="preface.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="chapter.titlepage.recto"> - <xsl:choose> - <xsl:when test="chapterinfo/title"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="chapterinfo/subtitle"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract"/> -</xsl:template> - -<xsl:template name="chapter.titlepage.verso"> -</xsl:template> - -<xsl:template name="chapter.titlepage.separator"> -</xsl:template> - -<xsl:template name="chapter.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="chapter.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="chapter.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="{$title.font.family}"> - <fo:block margin-left="{$title.margin.left}"> - <xsl:call-template name="chapter.titlepage.before.recto"/> - <xsl:call-template name="chapter.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="chapter.titlepage.before.verso"/> - <xsl:call-template name="chapter.titlepage.verso"/> - </fo:block> - <xsl:call-template name="chapter.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="chapter.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="chapter.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" font-size="24.8832pt" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" font-style="italic" font-size="14.4pt" font-weight="bold"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" space-after="0.5em" font-size="14.4pt"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="appendix.titlepage.recto"> - <xsl:choose> - <xsl:when test="appendixinfo/title"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="appendixinfo/subtitle"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract"/> -</xsl:template> - -<xsl:template name="appendix.titlepage.verso"> -</xsl:template> - -<xsl:template name="appendix.titlepage.separator"> -</xsl:template> - -<xsl:template name="appendix.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="appendix.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="appendix.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="appendix.titlepage.before.recto"/> - <xsl:call-template name="appendix.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="appendix.titlepage.before.verso"/> - <xsl:call-template name="appendix.titlepage.verso"/> - </fo:block> - <xsl:call-template name="appendix.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="appendix.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="appendix.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="section.titlepage.recto"> - <xsl:choose> - <xsl:when test="sectioninfo/title"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sectioninfo/subtitle"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/> -</xsl:template> - -<xsl:template name="section.titlepage.verso"> -</xsl:template> - -<xsl:template name="section.titlepage.separator"> -</xsl:template> - -<xsl:template name="section.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="section.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="section.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="section.titlepage.before.recto"/> - <xsl:call-template name="section.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="section.titlepage.before.verso"/> - <xsl:call-template name="section.titlepage.verso"/> - </fo:block> - <xsl:call-template name="section.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="section.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="section.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="section.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="sect1.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect1info/title"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect1info/subtitle"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/> -</xsl:template> - -<xsl:template name="sect1.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect1.titlepage.separator"> -</xsl:template> - -<xsl:template name="sect1.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect1.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect1.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="sect1.titlepage.before.recto"/> - <xsl:call-template name="sect1.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="sect1.titlepage.before.verso"/> - <xsl:call-template name="sect1.titlepage.verso"/> - </fo:block> - <xsl:call-template name="sect1.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="sect1.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect1.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="sect2.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect2info/title"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect2info/subtitle"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/> -</xsl:template> - -<xsl:template name="sect2.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect2.titlepage.separator"> -</xsl:template> - -<xsl:template name="sect2.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect2.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect2.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="sect2.titlepage.before.recto"/> - <xsl:call-template name="sect2.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="sect2.titlepage.before.verso"/> - <xsl:call-template name="sect2.titlepage.verso"/> - </fo:block> - <xsl:call-template name="sect2.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="sect2.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect2.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="sect3.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect3info/title"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect3info/subtitle"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/> -</xsl:template> - -<xsl:template name="sect3.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect3.titlepage.separator"> -</xsl:template> - -<xsl:template name="sect3.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect3.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect3.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="sect3.titlepage.before.recto"/> - <xsl:call-template name="sect3.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="sect3.titlepage.before.verso"/> - <xsl:call-template name="sect3.titlepage.verso"/> - </fo:block> - <xsl:call-template name="sect3.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="sect3.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect3.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="sect4.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect4info/title"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect4info/subtitle"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/> -</xsl:template> - -<xsl:template name="sect4.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect4.titlepage.separator"> -</xsl:template> - -<xsl:template name="sect4.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect4.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect4.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="sect4.titlepage.before.recto"/> - <xsl:call-template name="sect4.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="sect4.titlepage.before.verso"/> - <xsl:call-template name="sect4.titlepage.verso"/> - </fo:block> - <xsl:call-template name="sect4.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="sect4.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect4.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="sect4.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="sect5.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect5info/title"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect5info/subtitle"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/> -</xsl:template> - -<xsl:template name="sect5.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect5.titlepage.separator"> -</xsl:template> - -<xsl:template name="sect5.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect5.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect5.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="sect5.titlepage.before.recto"/> - <xsl:call-template name="sect5.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="sect5.titlepage.before.verso"/> - <xsl:call-template name="sect5.titlepage.verso"/> - </fo:block> - <xsl:call-template name="sect5.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="sect5.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect5.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="simplesect.titlepage.recto"> - <xsl:choose> - <xsl:when test="simplesectinfo/title"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="simplesectinfo/subtitle"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract"/> -</xsl:template> - -<xsl:template name="simplesect.titlepage.verso"> -</xsl:template> - -<xsl:template name="simplesect.titlepage.separator"> -</xsl:template> - -<xsl:template name="simplesect.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="simplesect.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="simplesect.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="simplesect.titlepage.before.recto"/> - <xsl:call-template name="simplesect.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="simplesect.titlepage.before.verso"/> - <xsl:call-template name="simplesect.titlepage.verso"/> - </fo:block> - <xsl:call-template name="simplesect.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="simplesect.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="simplesect.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="bibliography.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="bibliographyinfo/subtitle"> - <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="bibliography.titlepage.verso"> -</xsl:template> - -<xsl:template name="bibliography.titlepage.separator"> -</xsl:template> - -<xsl:template name="bibliography.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="bibliography.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="bibliography.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="bibliography.titlepage.before.recto"/> - <xsl:call-template name="bibliography.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="bibliography.titlepage.before.verso"/> - <xsl:call-template name="bibliography.titlepage.verso"/> - </fo:block> - <xsl:call-template name="bibliography.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="bibliography.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="bibliography.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="bibliodiv.titlepage.recto"> - <xsl:choose> - <xsl:when test="bibliodivinfo/title"> - <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="bibliodivinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="bibliodivinfo/subtitle"> - <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="bibliodivinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="bibliodiv.titlepage.verso"> -</xsl:template> - -<xsl:template name="bibliodiv.titlepage.separator"> -</xsl:template> - -<xsl:template name="bibliodiv.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="bibliodiv.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="bibliodiv.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="bibliodiv.titlepage.before.recto"/> - <xsl:call-template name="bibliodiv.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="bibliodiv.titlepage.before.verso"/> - <xsl:call-template name="bibliodiv.titlepage.verso"/> - </fo:block> - <xsl:call-template name="bibliodiv.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="bibliodiv.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="bibliodiv.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="bibliodiv.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::bibliodiv[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="bibliodiv.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="bibliodiv.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="glossary.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="glossaryinfo/subtitle"> - <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="glossary.titlepage.verso"> -</xsl:template> - -<xsl:template name="glossary.titlepage.separator"> -</xsl:template> - -<xsl:template name="glossary.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="glossary.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="glossary.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="glossary.titlepage.before.recto"/> - <xsl:call-template name="glossary.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="glossary.titlepage.before.verso"/> - <xsl:call-template name="glossary.titlepage.verso"/> - </fo:block> - <xsl:call-template name="glossary.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="glossary.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="glossary.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="glossdiv.titlepage.recto"> - <xsl:choose> - <xsl:when test="glossdivinfo/title"> - <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="glossdivinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="glossdivinfo/subtitle"> - <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="glossdivinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="glossdiv.titlepage.verso"> -</xsl:template> - -<xsl:template name="glossdiv.titlepage.separator"> -</xsl:template> - -<xsl:template name="glossdiv.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="glossdiv.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="glossdiv.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="glossdiv.titlepage.before.recto"/> - <xsl:call-template name="glossdiv.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="glossdiv.titlepage.before.verso"/> - <xsl:call-template name="glossdiv.titlepage.verso"/> - </fo:block> - <xsl:call-template name="glossdiv.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="glossdiv.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="glossdiv.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="glossdiv.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossdiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="20.736pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::glossdiv[1]"/> -</xsl:call-template> -</fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="glossdiv.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossdiv.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="glossdiv.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="index.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::index[1]"/> -<xsl:with-param name="pagewide" select="1"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="indexinfo/subtitle"> - <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="index.titlepage.verso"> -</xsl:template> - -<xsl:template name="index.titlepage.separator"> -</xsl:template> - -<xsl:template name="index.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="index.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="index.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="index.titlepage.before.recto"/> - <xsl:call-template name="index.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="index.titlepage.before.verso"/> - <xsl:call-template name="index.titlepage.verso"/> - </fo:block> - <xsl:call-template name="index.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="index.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="index.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="indexdiv.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style"> -<xsl:call-template name="indexdiv.title"> -<xsl:with-param name="title" select="title"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="indexdivinfo/subtitle"> - <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="indexdivinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="indexdiv.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="indexdiv.titlepage.verso"> -</xsl:template> - -<xsl:template name="indexdiv.titlepage.separator"> -</xsl:template> - -<xsl:template name="indexdiv.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="indexdiv.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="indexdiv.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="indexdiv.titlepage.before.recto"/> - <xsl:call-template name="indexdiv.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="indexdiv.titlepage.before.verso"/> - <xsl:call-template name="indexdiv.titlepage.verso"/> - </fo:block> - <xsl:call-template name="indexdiv.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="indexdiv.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="indexdiv.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="indexdiv.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="indexdiv.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="indexdiv.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="setindex.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="setindex.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::setindex[1]"/> -<xsl:with-param name="pagewide" select="1"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="setindexinfo/subtitle"> - <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="setindexinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="setindex.titlepage.verso"> -</xsl:template> - -<xsl:template name="setindex.titlepage.separator"> -</xsl:template> - -<xsl:template name="setindex.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="setindex.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="setindex.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="setindex.titlepage.before.recto"/> - <xsl:call-template name="setindex.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="setindex.titlepage.before.verso"/> - <xsl:call-template name="setindex.titlepage.verso"/> - </fo:block> - <xsl:call-template name="setindex.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="setindex.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="setindex.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="setindex.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="setindex.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="colophon.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::colophon[1]"/> -</xsl:call-template></fo:block> - <xsl:choose> - <xsl:when test="colophoninfo/subtitle"> - <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="colophoninfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="colophon.titlepage.verso"> -</xsl:template> - -<xsl:template name="colophon.titlepage.separator"> -</xsl:template> - -<xsl:template name="colophon.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="colophon.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="colophon.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="colophon.titlepage.before.recto"/> - <xsl:call-template name="colophon.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="colophon.titlepage.before.verso"/> - <xsl:call-template name="colophon.titlepage.verso"/> - </fo:block> - <xsl:call-template name="colophon.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="colophon.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="colophon.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="colophon.titlepage.recto.auto.mode"> -<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" font-family="{$title.font.family}"> -<xsl:apply-templates select="." mode="colophon.titlepage.recto.mode"/> -</fo:block> -</xsl:template> - -<xsl:template name="table.of.contents.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="table.of.contents.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="gentext"> -<xsl:with-param name="key" select="'TableofContents'"/> -</xsl:call-template></fo:block> -</xsl:template> - -<xsl:template name="table.of.contents.titlepage.verso"> -</xsl:template> - -<xsl:template name="table.of.contents.titlepage.separator"> -</xsl:template> - -<xsl:template name="table.of.contents.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="table.of.contents.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="table.of.contents.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="table.of.contents.titlepage.before.recto"/> - <xsl:call-template name="table.of.contents.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="table.of.contents.titlepage.before.verso"/> - <xsl:call-template name="table.of.contents.titlepage.verso"/> - </fo:block> - <xsl:call-template name="table.of.contents.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="table.of.contents.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="table.of.contents.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template name="list.of.tables.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.tables.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="gentext"> -<xsl:with-param name="key" select="'ListofTables'"/> -</xsl:call-template></fo:block> -</xsl:template> - -<xsl:template name="list.of.tables.titlepage.verso"> -</xsl:template> - -<xsl:template name="list.of.tables.titlepage.separator"> -</xsl:template> - -<xsl:template name="list.of.tables.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="list.of.tables.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="list.of.tables.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="list.of.tables.titlepage.before.recto"/> - <xsl:call-template name="list.of.tables.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="list.of.tables.titlepage.before.verso"/> - <xsl:call-template name="list.of.tables.titlepage.verso"/> - </fo:block> - <xsl:call-template name="list.of.tables.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="list.of.tables.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="list.of.tables.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template name="list.of.figures.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.figures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="gentext"> -<xsl:with-param name="key" select="'ListofFigures'"/> -</xsl:call-template></fo:block> -</xsl:template> - -<xsl:template name="list.of.figures.titlepage.verso"> -</xsl:template> - -<xsl:template name="list.of.figures.titlepage.separator"> -</xsl:template> - -<xsl:template name="list.of.figures.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="list.of.figures.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="list.of.figures.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="list.of.figures.titlepage.before.recto"/> - <xsl:call-template name="list.of.figures.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="list.of.figures.titlepage.before.verso"/> - <xsl:call-template name="list.of.figures.titlepage.verso"/> - </fo:block> - <xsl:call-template name="list.of.figures.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="list.of.figures.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="list.of.figures.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template name="list.of.examples.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.examples.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="gentext"> -<xsl:with-param name="key" select="'ListofExamples'"/> -</xsl:call-template></fo:block> -</xsl:template> - -<xsl:template name="list.of.examples.titlepage.verso"> -</xsl:template> - -<xsl:template name="list.of.examples.titlepage.separator"> -</xsl:template> - -<xsl:template name="list.of.examples.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="list.of.examples.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="list.of.examples.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="list.of.examples.titlepage.before.recto"/> - <xsl:call-template name="list.of.examples.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="list.of.examples.titlepage.before.verso"/> - <xsl:call-template name="list.of.examples.titlepage.verso"/> - </fo:block> - <xsl:call-template name="list.of.examples.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="list.of.examples.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="list.of.examples.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template name="list.of.equations.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.equations.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="gentext"> -<xsl:with-param name="key" select="'ListofEquations'"/> -</xsl:call-template></fo:block> -</xsl:template> - -<xsl:template name="list.of.equations.titlepage.verso"> -</xsl:template> - -<xsl:template name="list.of.equations.titlepage.separator"> -</xsl:template> - -<xsl:template name="list.of.equations.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="list.of.equations.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="list.of.equations.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="list.of.equations.titlepage.before.recto"/> - <xsl:call-template name="list.of.equations.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="list.of.equations.titlepage.before.verso"/> - <xsl:call-template name="list.of.equations.titlepage.verso"/> - </fo:block> - <xsl:call-template name="list.of.equations.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="list.of.equations.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="list.of.equations.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template name="list.of.procedures.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.procedures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="gentext"> -<xsl:with-param name="key" select="'ListofProcedures'"/> -</xsl:call-template></fo:block> -</xsl:template> - -<xsl:template name="list.of.procedures.titlepage.verso"> -</xsl:template> - -<xsl:template name="list.of.procedures.titlepage.separator"> -</xsl:template> - -<xsl:template name="list.of.procedures.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="list.of.procedures.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="list.of.procedures.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="list.of.procedures.titlepage.before.recto"/> - <xsl:call-template name="list.of.procedures.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="list.of.procedures.titlepage.before.verso"/> - <xsl:call-template name="list.of.procedures.titlepage.verso"/> - </fo:block> - <xsl:call-template name="list.of.procedures.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="list.of.procedures.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="list.of.procedures.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template name="list.of.unknowns.titlepage.recto"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.unknowns.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}"> -<xsl:call-template name="gentext"> -<xsl:with-param name="key" select="'ListofUnknown'"/> -</xsl:call-template></fo:block> -</xsl:template> - -<xsl:template name="list.of.unknowns.titlepage.verso"> -</xsl:template> - -<xsl:template name="list.of.unknowns.titlepage.separator"> -</xsl:template> - -<xsl:template name="list.of.unknowns.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="list.of.unknowns.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="list.of.unknowns.titlepage"> - <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:block> - <xsl:call-template name="list.of.unknowns.titlepage.before.recto"/> - <xsl:call-template name="list.of.unknowns.titlepage.recto"/> - </fo:block> - <fo:block> - <xsl:call-template name="list.of.unknowns.titlepage.before.verso"/> - <xsl:call-template name="list.of.unknowns.titlepage.verso"/> - </fo:block> - <xsl:call-template name="list.of.unknowns.titlepage.separator"/> - </fo:block> -</xsl:template> - -<xsl:template match="*" mode="list.of.unknowns.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="list.of.unknowns.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -</xsl:stylesheet> \ No newline at end of file diff --git a/trunk/docs/xsl/docbook/fo/titlepage.xsl b/trunk/docs/xsl/docbook/fo/titlepage.xsl deleted file mode 100755 index 3d9a6889..00000000 --- a/trunk/docs/xsl/docbook/fo/titlepage.xsl +++ /dev/null @@ -1,701 +0,0 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - version='1.0'> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - ******************************************************************** --> - -<!-- ==================================================================== --> - -<xsl:attribute-set name="book.titlepage.recto.style"> - <xsl:attribute name="font-family"> - <xsl:value-of select="$title.font.family"/> - </xsl:attribute> - <xsl:attribute name="font-weight">bold</xsl:attribute> - <xsl:attribute name="font-size">12pt</xsl:attribute> - <xsl:attribute name="text-align">center</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="book.titlepage.verso.style"> - <xsl:attribute name="font-size">10pt</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="article.titlepage.recto.style"/> -<xsl:attribute-set name="article.titlepage.verso.style"/> - -<xsl:attribute-set name="set.titlepage.recto.style"/> -<xsl:attribute-set name="set.titlepage.verso.style"/> - -<xsl:attribute-set name="part.titlepage.recto.style"> - <xsl:attribute name="text-align">center</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="part.titlepage.verso.style"/> - -<xsl:attribute-set name="partintro.titlepage.recto.style"/> -<xsl:attribute-set name="partintro.titlepage.verso.style"/> - -<xsl:attribute-set name="reference.titlepage.recto.style"/> -<xsl:attribute-set name="reference.titlepage.verso.style"/> - -<xsl:attribute-set name="dedication.titlepage.recto.style"/> -<xsl:attribute-set name="dedication.titlepage.verso.style"/> - -<xsl:attribute-set name="preface.titlepage.recto.style"/> -<xsl:attribute-set name="preface.titlepage.verso.style"/> - -<xsl:attribute-set name="chapter.titlepage.recto.style"/> -<xsl:attribute-set name="chapter.titlepage.verso.style"/> - -<xsl:attribute-set name="appendix.titlepage.recto.style"/> -<xsl:attribute-set name="appendix.titlepage.verso.style"/> - -<xsl:attribute-set name="bibliography.titlepage.recto.style"/> -<xsl:attribute-set name="bibliography.titlepage.verso.style"/> - -<xsl:attribute-set name="bibliodiv.titlepage.recto.style"/> -<xsl:attribute-set name="bibliodiv.titlepage.verso.style"/> - -<xsl:attribute-set name="glossary.titlepage.recto.style"/> -<xsl:attribute-set name="glossary.titlepage.verso.style"/> - -<xsl:attribute-set name="glossdiv.titlepage.recto.style"/> -<xsl:attribute-set name="glossdiv.titlepage.verso.style"/> - -<xsl:attribute-set name="index.titlepage.recto.style"/> -<xsl:attribute-set name="index.titlepage.verso.style"/> - -<xsl:attribute-set name="setindex.titlepage.recto.style"/> -<xsl:attribute-set name="setindex.titlepage.verso.style"/> - -<xsl:attribute-set name="indexdiv.titlepage.recto.style"/> -<xsl:attribute-set name="indexdiv.titlepage.verso.style"/> - -<xsl:attribute-set name="colophon.titlepage.recto.style"/> -<xsl:attribute-set name="colophon.titlepage.verso.style"/> - -<xsl:attribute-set name="section.titlepage.recto.style"> - <xsl:attribute name="keep-together">always</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="section.titlepage.verso.style"> - <xsl:attribute name="keep-together">always</xsl:attribute> - <xsl:attribute name="keep-with-next">always</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="sect1.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="sect1.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="sect2.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="sect2.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="sect3.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="sect3.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="sect4.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="sect4.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="sect5.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="sect5.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="simplesect.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="simplesect.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="refsynopsisdiv.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="refsynopsisdiv.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="refsection.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="refsection.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="refsect1.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="refsect1.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="refsect2.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="refsect2.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="refsect3.titlepage.recto.style" - use-attribute-sets="section.titlepage.recto.style"/> -<xsl:attribute-set name="refsect3.titlepage.verso.style" - use-attribute-sets="section.titlepage.verso.style"/> - -<xsl:attribute-set name="table.of.contents.titlepage.recto.style"/> -<xsl:attribute-set name="table.of.contents.titlepage.verso.style"/> - -<xsl:attribute-set name="list.of.tables.titlepage.recto.style"/> -<xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/> - -<xsl:attribute-set name="list.of.figures.titlepage.recto.style"/> -<xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/> - -<xsl:attribute-set name="list.of.equations.titlepage.recto.style"/> -<xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/> - -<xsl:attribute-set name="list.of.examples.titlepage.recto.style"/> -<xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/> - -<xsl:attribute-set name="list.of.procedures.titlepage.recto.style"/> -<xsl:attribute-set name="list.of.procedures.contents.titlepage.verso.style"/> - -<xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/> -<xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/> - -<!-- ==================================================================== --> - -<xsl:template match="*" mode="titlepage.mode"> - <!-- if an element isn't found in this mode, try the default mode --> - <xsl:apply-templates select="."/> -</xsl:template> - -<xsl:template match="abbrev" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="abstract" mode="titlepage.mode"> - <fo:block> - <xsl:if test="title"> <!-- FIXME: add param for using default title? --> - <xsl:call-template name="formal.object.heading"> - <xsl:with-param name="title"> - <xsl:apply-templates select="." mode="title.markup"/> - </xsl:with-param> - </xsl:call-template> - </xsl:if> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="abstract/title" mode="titlepage.mode"/> - -<xsl:template match="abstract/title" mode="titlepage.abstract.title.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="address" mode="titlepage.mode"> - <!-- use the normal address handling code --> - <xsl:apply-templates select="."/> -</xsl:template> - -<xsl:template match="affiliation" mode="titlepage.mode"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="artpagenums" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="author" mode="titlepage.mode"> - <fo:block> - <xsl:call-template name="anchor"/> - <xsl:call-template name="person.name"/> - <xsl:if test="affiliation/orgname"> - <xsl:text>, </xsl:text> - <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/> - </xsl:if> - <xsl:if test="email|affiliation/address/email"> - <xsl:text> </xsl:text> - <xsl:apply-templates select="(email|affiliation/address/email)[1]"/> - </xsl:if> - </fo:block> -</xsl:template> - -<xsl:template match="authorblurb" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="authorgroup" mode="titlepage.mode"> - <fo:wrapper> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:wrapper> -</xsl:template> - -<xsl:template match="authorinitials" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="bibliomisc" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="bibliomset" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="collab" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="confgroup" mode="titlepage.mode"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="confdates" mode="titlepage.mode"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="conftitle" mode="titlepage.mode"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="confnum" mode="titlepage.mode"> - <!-- suppress --> -</xsl:template> - -<xsl:template match="contractnum" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="contractsponsor" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="contrib" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="copyright" mode="titlepage.mode"> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'Copyright'"/> - </xsl:call-template> - <xsl:call-template name="gentext.space"/> - <xsl:call-template name="dingbat"> - <xsl:with-param name="dingbat">copyright</xsl:with-param> - </xsl:call-template> - <xsl:call-template name="gentext.space"/> - <xsl:call-template name="copyright.years"> - <xsl:with-param name="years" select="year"/> - <xsl:with-param name="print.ranges" select="$make.year.ranges"/> - <xsl:with-param name="single.year.ranges" - select="$make.single.year.ranges"/> - </xsl:call-template> - <xsl:call-template name="gentext.space"/> - <xsl:apply-templates select="holder" mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="year" mode="titlepage.mode"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="holder" mode="titlepage.mode"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="corpauthor" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="corpname" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="date" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="edition" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> - <xsl:call-template name="gentext.space"/> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'Edition'"/> - </xsl:call-template> -</xsl:template> - -<xsl:template match="editor" mode="titlepage.mode"> - <xsl:call-template name="person.name"/> -</xsl:template> - -<xsl:template match="editor[1]" priority="2" mode="titlepage.mode"> - <xsl:call-template name="gentext.edited.by"/> - <xsl:call-template name="gentext.space"/> - <xsl:call-template name="person.name"/> -</xsl:template> - -<xsl:template match="firstname" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="graphic" mode="titlepage.mode"> - <!-- use the normal graphic handling code --> - <xsl:apply-templates select="."/> -</xsl:template> - -<xsl:template match="honorific" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="isbn" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="issn" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="biblioid" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="itermset" mode="titlepage.mode"> - <!-- discard --> -</xsl:template> - -<xsl:template match="invpartnumber" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="issuenum" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="jobtitle" mode="titlepage.mode"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="keywordset" mode="titlepage.mode"> -</xsl:template> - -<xsl:template match="legalnotice" mode="titlepage.mode"> - <fo:block> - <xsl:if test="title"> <!-- FIXME: add param for using default title? --> - <xsl:call-template name="formal.object.heading"> - <xsl:with-param name="title"> - <xsl:apply-templates select="." mode="title.markup"/> - </xsl:with-param> - </xsl:call-template> - </xsl:if> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="legalnotice/title" mode="titlepage.mode"> -</xsl:template> - -<xsl:template match="legalnotice/title" mode="titlepage.legalnotice.title.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="lineage" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="modespec" mode="titlepage.mode"> - <!-- discard --> -</xsl:template> - -<xsl:template match="orgdiv" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="orgname" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="othercredit" mode="titlepage.mode"> - <xsl:variable name="contrib" select="string(contrib)"/> - <xsl:choose> - <xsl:when test="contrib"> - <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode" select="contrib"/> - <xsl:text>: </xsl:text> - <xsl:call-template name="person.name"/> - <xsl:apply-templates mode="titlepage.mode" select="affiliation"/> - <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/> - </fo:block> - </xsl:if> - </xsl:when> - <xsl:otherwise> - <fo:block><xsl:call-template name="person.name"/></fo:block> - <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="othercredit" mode="titlepage.othercredits"> - <xsl:text>, </xsl:text> - <xsl:call-template name="person.name"/> -</xsl:template> - -<xsl:template match="othername" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="pagenums" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="printhistory" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="productname" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="productnumber" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="pubdate" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="publisher" mode="titlepage.mode"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<xsl:template match="publishername" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="pubsnumber" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="releaseinfo" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="revhistory" mode="titlepage.mode"> - <fo:table table-layout="fixed"> - <fo:table-column column-number="1" column-width="33%"/> - <fo:table-column column-number="2" column-width="33%"/> - <fo:table-column column-number="3" column-width="33%"/> - <fo:table-body> - <fo:table-row> - <fo:table-cell number-columns-spanned="3"> - <fo:block> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'RevHistory'"/> - </xsl:call-template> - </fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:table-body> - </fo:table> -</xsl:template> - -<xsl:template match="revhistory/revision" mode="titlepage.mode"> - <xsl:variable name="revnumber" select=".//revnumber"/> - <xsl:variable name="revdate" select=".//date"/> - <xsl:variable name="revauthor" select=".//authorinitials"/> - <xsl:variable name="revremark" select=".//revremark|.//revdescription"/> - <fo:table-row> - <fo:table-cell> - <fo:block> - <xsl:if test="$revnumber"> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'Revision'"/> - </xsl:call-template> - <xsl:call-template name="gentext.space"/> - <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/> - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block> - <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block> - <xsl:apply-templates select="$revauthor[1]" mode="titlepage.mode"/> - </fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:if test="$revremark"> - <fo:table-row> - <fo:table-cell number-columns-spanned="3"> - <fo:block> - <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> -</xsl:template> - -<xsl:template match="revision/revnumber" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="revision/date" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="revision/authorinitials" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="revision/revremark" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="revision/revdescription" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="seriesvolnums" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="shortaffil" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subjectset" mode="titlepage.mode"> - <!-- discard --> -</xsl:template> - -<xsl:template match="subtitle" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="surname" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="titleabbrev" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="volumenum" mode="titlepage.mode"> - <xsl:apply-templates mode="titlepage.mode"/> -</xsl:template> - -<!-- ==================================================================== --> -<!-- Book templates --> - -<!-- Note: these templates cannot use *.titlepage.recto.mode or - *.titlepage.verso.mode. If they do then subsequent use of a custom - titlepage.templates.xml file will not work correctly. --> - -<!-- book recto --> - -<xsl:template match="bookinfo/authorgroup" mode="titlepage.mode" priority="2"> - <fo:block> - <xsl:if test="@id"> - <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> - </xsl:if> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'by'"/> - </xsl:call-template> - <xsl:text> </xsl:text> - <xsl:call-template name="person.name.list"/> - </fo:block> -</xsl:template> - -<!-- book verso --> - -<xsl:template name="book.verso.title"> - <fo:block> - <xsl:apply-templates mode="titlepage.mode"/> - - <xsl:if test="following-sibling::subtitle - |following-sibling::bookinfo/subtitle"> - <xsl:text>: </xsl:text> - - <xsl:apply-templates select="(following-sibling::subtitle - |following-sibling::bookinfo/subtitle)[1]" - mode="book.verso.subtitle.mode"/> - </xsl:if> - </fo:block> -</xsl:template> - -<xsl:template match="subtitle" mode="book.verso.subtitle.mode"> - <xsl:apply-templates mode="titlepage.mode"/> - <xsl:if test="following-sibling::subtitle"> - <xsl:text>: </xsl:text> - <xsl:apply-templates select="following-sibling::subtitle[1]" - mode="book.verso.subtitle.mode"/> - </xsl:if> -</xsl:template> - -<xsl:template name="verso.authorgroup"> - <fo:block> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'by'"/> - </xsl:call-template> - <xsl:text> </xsl:text> - <xsl:call-template name="person.name.list"/> - </fo:block> -</xsl:template> - -<xsl:template match="bookinfo/author" mode="titlepage.mode" priority="2"> - <fo:block> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'by'"/> - </xsl:call-template> - <xsl:text> </xsl:text> - <xsl:call-template name="person.name"/> - </fo:block> -</xsl:template> - -<xsl:template match="bookinfo/corpauthor" mode="titlepage.mode" priority="2"> - <fo:block> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'by'"/> - </xsl:call-template> - <xsl:text> </xsl:text> - <xsl:apply-templates/> - </fo:block> -</xsl:template> - -<xsl:template match="bookinfo/pubdate" mode="titlepage.mode" priority="2"> - <fo:block> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'published'"/> - </xsl:call-template> - <xsl:text> </xsl:text> - <xsl:apply-templates mode="titlepage.mode"/> - </fo:block> -</xsl:template> - -<!-- ==================================================================== --> - -</xsl:stylesheet> diff --git a/trunk/docs/xsl/docbook/fo/toc.xsl b/trunk/docs/xsl/docbook/fo/toc.xsl deleted file mode 100755 index ac091ae7..00000000 --- a/trunk/docs/xsl/docbook/fo/toc.xsl +++ /dev/null @@ -1,221 +0,0 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - version='1.0'> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - ******************************************************************** --> - -<!-- ==================================================================== --> - -<!-- FIXME: in the contexts where <toc> can occur, I think it's always - the case that a page-sequence is required. Is that true? --> - -<xsl:template match="toc"> - <xsl:variable name="master-reference"> - <xsl:call-template name="select.pagemaster"/> - </xsl:variable> - - <xsl:choose> - <xsl:when test="*"> - <xsl:if test="$process.source.toc != 0"> - <!-- if the toc isn't empty, process it --> - <fo:page-sequence hyphenate="{$hyphenate}" - master-reference="{$master-reference}"> - <xsl:attribute name="language"> - <xsl:call-template name="l10n.language"/> - </xsl:attribute> - <xsl:attribute name="format"> - <xsl:call-template name="page.number.format"> - <xsl:with-param name="element" select="'toc'"/> - </xsl:call-template> - </xsl:attribute> - <xsl:if test="$double.sided != 0"> - <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute> - </xsl:if> - - <xsl:apply-templates select="." mode="running.head.mode"> - <xsl:with-param name="master-reference" select="$master-reference"/> - </xsl:apply-templates> - <xsl:apply-templates select="." mode="running.foot.mode"> - <xsl:with-param name="master-reference" select="$master-reference"/> - </xsl:apply-templates> - - <fo:flow flow-name="xsl-region-body"> - <fo:block xsl:use-attribute-sets="toc.margin.properties"> - <xsl:call-template name="table.of.contents.titlepage"/> - <xsl:apply-templates/> - </fo:block> - </fo:flow> - </fo:page-sequence> - </xsl:if> - </xsl:when> - <xsl:otherwise> - <xsl:if test="$process.empty.source.toc != 0"> - <fo:page-sequence hyphenate="{$hyphenate}" - master-reference="{$master-reference}"> - <xsl:attribute name="language"> - <xsl:call-template name="l10n.language"/> - </xsl:attribute> - <xsl:attribute name="format"> - <xsl:call-template name="page.number.format"> - <xsl:with-param name="element" select="'toc'"/> - </xsl:call-template> - </xsl:attribute> - <xsl:if test="$double.sided != 0"> - <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute> - </xsl:if> - - <xsl:apply-templates select="." mode="running.head.mode"> - <xsl:with-param name="master-reference" select="$master-reference"/> - </xsl:apply-templates> - <xsl:apply-templates select="." mode="running.foot.mode"> - <xsl:with-param name="master-reference" select="$master-reference"/> - </xsl:apply-templates> - - <fo:flow flow-name="xsl-region-body"> - <xsl:choose> - <xsl:when test="parent::section - or parent::sect1 - or parent::sect2 - or parent::sect3 - or parent::sect4 - or parent::sect5"> - <xsl:apply-templates select="parent::*" - mode="toc.for.section"/> - </xsl:when> - <xsl:when test="parent::article"> - <xsl:apply-templates select="parent::*" - mode="toc.for.component"/> - </xsl:when> - <xsl:when test="parent::book - or parent::part"> - <xsl:apply-templates select="parent::*" - mode="toc.for.division"/> - </xsl:when> - <xsl:when test="parent::set"> - <xsl:apply-templates select="parent::*" - mode="toc.for.set"/> - </xsl:when> - <!-- there aren't any other contexts that allow toc --> - <xsl:otherwise> - <xsl:message> - <xsl:text>I don't know how to make a TOC in this context!</xsl:text> - </xsl:message> - </xsl:otherwise> - </xsl:choose> - </fo:flow> - </fo:page-sequence> - </xsl:if> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="tocpart|tocchap - |toclevel1|toclevel2|toclevel3|toclevel4|toclevel5"> - <xsl:apply-templates select="tocentry"/> - <xsl:if test="tocchap|toclevel1|toclevel2|toclevel3|toclevel4|toclevel5"> - <fo:block start-indent="{count(ancestor::*)*2}pc"> - <xsl:apply-templates select="tocchap|toclevel1|toclevel2|toclevel3|toclevel4|toclevel5"/> - </fo:block> - </xsl:if> -</xsl:template> - -<xsl:template match="tocentry|tocfront|tocback"> - <fo:block text-align-last="justify" - end-indent="2pc" - last-line-end-indent="-2pc"> - <fo:inline keep-with-next.within-line="always"> - <xsl:choose> - <xsl:when test="@linkend"> - <fo:basic-link internal-destination="{@linkend}"> - <xsl:apply-templates/> - </fo:basic-link> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> - </xsl:choose> - </fo:inline> - - <xsl:choose> - <xsl:when test="@linkend"> - <fo:inline keep-together.within-line="always"> - <xsl:text> </xsl:text> - <fo:leader leader-pattern="dots" - keep-with-next.within-line="always"/> - <xsl:text> </xsl:text> - <fo:basic-link internal-destination="{@linkend}"> - <xsl:choose> - <xsl:when test="@pagenum"> - <xsl:value-of select="@pagenum"/> - </xsl:when> - <xsl:otherwise> - <fo:page-number-citation ref-id="{@linkend}"/> - </xsl:otherwise> - </xsl:choose> - </fo:basic-link> - </fo:inline> - </xsl:when> - <xsl:when test="@pagenum"> - <fo:inline keep-together.within-line="always"> - <xsl:text> </xsl:text> - <fo:leader leader-pattern="dots" - keep-with-next.within-line="always"/> - <xsl:text> </xsl:text> - <xsl:value-of select="@pagenum"/> - </fo:inline> - </xsl:when> - <xsl:otherwise> - <!-- just the leaders, what else can I do? --> - <fo:inline keep-together.within-line="always"> - <xsl:text> </xsl:text> - <fo:leader leader-pattern="space" - keep-with-next.within-line="always"/> - </fo:inline> - </xsl:otherwise> - </xsl:choose> - </fo:block> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template match="*" mode="toc.for.section"> -<!-- - <xsl:call-template name="section.toc"/> ---> -</xsl:template> - -<xsl:template match="*" mode="toc.for.component"> - <xsl:call-template name="component.toc"/> -</xsl:template> - -<xsl:template match="*" mode="toc.for.section"> -<!-- - <xsl:call-template name="section.toc"/> ---> -</xsl:template> - -<xsl:template match="*" mode="toc.for.division"> - <xsl:call-template name="division.toc"/> -</xsl:template> - -<xsl:template match="*" mode="toc.for.set"> -<!-- - <xsl:call-template name="set.toc"/> ---> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template match="lot|lotentry"> -</xsl:template> - -</xsl:stylesheet> diff --git a/trunk/docs/xsl/docbook/fo/verbatim.xsl b/trunk/docs/xsl/docbook/fo/verbatim.xsl deleted file mode 100755 index 068255fc..00000000 --- a/trunk/docs/xsl/docbook/fo/verbatim.xsl +++ /dev/null @@ -1,250 +0,0 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim" - xmlns:xverb="com.nwalsh.xalan.Verbatim" - xmlns:lxslt="http://xml.apache.org/xslt" - exclude-result-prefixes="sverb xverb lxslt" - version='1.0'> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - ******************************************************************** --> - -<lxslt:component prefix="xverb" - functions="numberLines"/> - -<xsl:template match="programlisting|screen|synopsis"> - <xsl:param name="suppress-numbers" select="'0'"/> - <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> - - <xsl:variable name="content"> - <xsl:choose> - <xsl:when test="$suppress-numbers = '0' - and @linenumbering = 'numbered' - and $use.extensions != '0' - and $linenumbering.extension != '0'"> - <xsl:call-template name="number.rtf.lines"> - <xsl:with-param name="rtf"> - <xsl:apply-templates/> - </xsl:with-param> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:choose> - <xsl:when test="$shade.verbatim != 0"> - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - linefeed-treatment="preserve" - xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style"> - - <xsl:copy-of select="$content"/> - </fo:block> - </xsl:when> - <xsl:otherwise> - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - linefeed-treatment="preserve" - xsl:use-attribute-sets="monospace.verbatim.properties"> - <xsl:copy-of select="$content"/> - </fo:block> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="literallayout"> - <xsl:param name="suppress-numbers" select="'0'"/> - - <xsl:variable name="content"> - <xsl:choose> - <xsl:when test="$suppress-numbers = '0' - and @linenumbering = 'numbered' - and $use.extensions != '0' - and $linenumbering.extension != '0'"> - <xsl:call-template name="number.rtf.lines"> - <xsl:with-param name="rtf"> - <xsl:apply-templates/> - </xsl:with-param> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:choose> - <xsl:when test="@class='monospaced'"> - <xsl:choose> - <xsl:when test="$shade.verbatim != 0"> - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - linefeed-treatment="preserve" - xsl:use-attribute-sets="monospace.verbatim.properties shade.verbatim.style"> - - <xsl:copy-of select="$content"/> - </fo:block> - </xsl:when> - <xsl:otherwise> - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - linefeed-treatment="preserve" - xsl:use-attribute-sets="monospace.verbatim.properties"> - <xsl:copy-of select="$content"/> - </fo:block> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:choose> - <xsl:when test="$shade.verbatim != 0"> - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - linefeed-treatment="preserve" - xsl:use-attribute-sets="verbatim.properties shade.verbatim.style"> - - <xsl:copy-of select="$content"/> - </fo:block> - </xsl:when> - <xsl:otherwise> - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - linefeed-treatment="preserve" - xsl:use-attribute-sets="verbatim.properties"> - <xsl:copy-of select="$content"/> - </fo:block> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="address"> - <xsl:param name="suppress-numbers" select="'0'"/> - - <xsl:variable name="content"> - <xsl:choose> - <xsl:when test="$suppress-numbers = '0' - and @linenumbering = 'numbered' - and $use.extensions != '0' - and $linenumbering.extension != '0'"> - <xsl:call-template name="number.rtf.lines"> - <xsl:with-param name="rtf"> - <xsl:apply-templates/> - </xsl:with-param> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <fo:block wrap-option='no-wrap' - white-space-collapse='false' - linefeed-treatment="preserve" - xsl:use-attribute-sets="verbatim.properties"> - <xsl:copy-of select="$content"/> - </fo:block> -</xsl:template> - -<xsl:template name="number.rtf.lines"> - <xsl:param name="rtf" select="''"/> - <xsl:param name="pi.context" select="."/> - - <!-- Save the global values --> - <xsl:variable name="global.linenumbering.everyNth" - select="$linenumbering.everyNth"/> - - <xsl:variable name="global.linenumbering.separator" - select="$linenumbering.separator"/> - - <xsl:variable name="global.linenumbering.width" - select="$linenumbering.width"/> - - <!-- Extract the <?dbfo linenumbering.*?> PI values --> - <xsl:variable name="pi.linenumbering.everyNth"> - <xsl:call-template name="dbfo-attribute"> - <xsl:with-param name="pis" - select="$pi.context/processing-instruction('dbfo')"/> - <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="pi.linenumbering.separator"> - <xsl:call-template name="dbfo-attribute"> - <xsl:with-param name="pis" - select="$pi.context/processing-instruction('dbfo')"/> - <xsl:with-param name="attribute" select="'linenumbering.separator'"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="pi.linenumbering.width"> - <xsl:call-template name="dbfo-attribute"> - <xsl:with-param name="pis" - select="$pi.context/processing-instruction('dbfo')"/> - <xsl:with-param name="attribute" select="'linenumbering.width'"/> - </xsl:call-template> - </xsl:variable> - - <!-- Construct the 'in-context' values --> - <xsl:variable name="linenumbering.everyNth"> - <xsl:choose> - <xsl:when test="$pi.linenumbering.everyNth != ''"> - <xsl:value-of select="$pi.linenumbering.everyNth"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$global.linenumbering.everyNth"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="linenumbering.separator"> - <xsl:choose> - <xsl:when test="$pi.linenumbering.separator != ''"> - <xsl:value-of select="$pi.linenumbering.separator"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$global.linenumbering.separator"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="linenumbering.width"> - <xsl:choose> - <xsl:when test="$pi.linenumbering.width != ''"> - <xsl:value-of select="$pi.linenumbering.width"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$global.linenumbering.width"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:choose> - <xsl:when test="function-available('sverb:numberLines')"> - <xsl:copy-of select="sverb:numberLines($rtf)"/> - </xsl:when> - <xsl:when test="function-available('xverb:numberLines')"> - <xsl:copy-of select="xverb:numberLines($rtf)"/> - </xsl:when> - <xsl:otherwise> - <xsl:message terminate="yes"> - <xsl:text>No numberLines function available.</xsl:text> - </xsl:message> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -</xsl:stylesheet> diff --git a/trunk/docs/xsl/docbook/fo/xep.xsl b/trunk/docs/xsl/docbook/fo/xep.xsl deleted file mode 100755 index 322c4e6d..00000000 --- a/trunk/docs/xsl/docbook/fo/xep.xsl +++ /dev/null @@ -1,118 +0,0 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:rx="http://www.renderx.com/XSL/Extensions" - version='1.0'> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - (c) Stephane Bline Peregrine Systems 2001 - Implementation of xep extensions: - * Pdf bookmarks (based on the XEP 2.5 implementation) - * Document information (XEP 2.5 meta information extensions) - ******************************************************************** --> - -<!-- ******************************************************************** - Document information - In PDF bookmarks can't be used characters with code>255. This version of file - translates characters with code>255 back to ASCII. - - Pavel Zampach (zampach@volny.cz) - - ********************************************************************--> - -<!-- FIXME: Norm, I changed things so that the top-level element (book or set) - does not appear in the TOC. Is this the right thing? --> - -<xsl:template name="xep-document-information"> - <rx:meta-info> - <xsl:if test="//author[1]"> - <xsl:element name="rx:meta-field"> - <xsl:attribute name="name">author</xsl:attribute> - <xsl:attribute name="value"> - <xsl:call-template name="person.name"> - <xsl:with-param name="node" select="//author[1]"/> - </xsl:call-template> - </xsl:attribute> - </xsl:element> - </xsl:if> - - <xsl:variable name="title"> - <xsl:apply-templates select="/*[1]" mode="label.markup"/> - <xsl:apply-templates select="/*[1]" mode="title.markup"/> - </xsl:variable> - - <xsl:element name="rx:meta-field"> - <xsl:attribute name="name">title</xsl:attribute> - <xsl:attribute name="value"> - <xsl:value-of select="$title"/> - </xsl:attribute> - </xsl:element> - </rx:meta-info> -</xsl:template> - -<!-- ******************************************************************** - Pdf bookmarks - ******************************************************************** --> - -<xsl:template match="*" mode="xep.outline"> - <xsl:apply-templates select="*" mode="xep.outline"/> -</xsl:template> - -<xsl:template match="set|book|part|reference|preface|chapter|appendix|article - |glossary|bibliography|index|setindex - |refentry - |sect1|sect2|sect3|sect4|sect5|section" - mode="xep.outline"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <xsl:variable name="bookmark-label"> - <xsl:apply-templates select="." mode="object.title.markup"/> - </xsl:variable> - - <!-- Put the root element bookmark at the same level as its children --> - <!-- If the object is a set or book, generate a bookmark for the toc --> - - <xsl:choose> - <xsl:when test="parent::*"> - <rx:bookmark internal-destination="{$id}"> - <rx:bookmark-label> - <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/> - </rx:bookmark-label> - <xsl:apply-templates select="*" mode="xep.outline"/> - </rx:bookmark> - </xsl:when> - <xsl:otherwise> - <xsl:if test="$bookmark-label != ''"> - <rx:bookmark internal-destination="{$id}"> - <rx:bookmark-label> - <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/> - </rx:bookmark-label> - </rx:bookmark> - </xsl:if> - - <xsl:variable name="toc.params"> - <xsl:call-template name="find.path.params"> - <xsl:with-param name="table" select="normalize-space($generate.toc)"/> - </xsl:call-template> - </xsl:variable> - <xsl:if test="contains($toc.params, 'toc') - and set|book|part|reference|section|sect1|refentry - |article|bibliography|glossary - |appendix"> - <rx:bookmark internal-destination="toc...{$id}"> - <rx:bookmark-label> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'TableofContents'"/> - </xsl:call-template> - </rx:bookmark-label> - </rx:bookmark> - </xsl:if> - <xsl:apply-templates select="*" mode="xep.outline"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -</xsl:stylesheet> diff --git a/trunk/docs/xsl/docbook/fo/xref.xsl b/trunk/docs/xsl/docbook/fo/xref.xsl deleted file mode 100755 index ab52d345..00000000 --- a/trunk/docs/xsl/docbook/fo/xref.xsl +++ /dev/null @@ -1,1002 +0,0 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:exsl="http://exslt.org/common" - exclude-result-prefixes="exsl" - version='1.0'> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - ******************************************************************** --> - -<!-- Create keys for quickly looking up olink targets --> -<xsl:key name="targetdoc-key" match="document" use="@targetdoc" /> -<xsl:key name="targetptr-key" match="div|obj" - use="concat(ancestor::document/@targetdoc, '/', @targetptr)" /> - -<!-- ==================================================================== --> - -<xsl:template match="anchor"> - <fo:wrapper id="{@id}"/> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template match="xref" name="xref"> - <xsl:variable name="targets" select="key('id',@linkend)"/> - <xsl:variable name="target" select="$targets[1]"/> - <xsl:variable name="refelem" select="local-name($target)"/> - - <xsl:call-template name="check.id.unique"> - <xsl:with-param name="linkend" select="@linkend"/> - </xsl:call-template> - - <xsl:choose> - <xsl:when test="$refelem=''"> - <xsl:message> - <xsl:text>XRef to nonexistent id: </xsl:text> - <xsl:value-of select="@linkend"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:when> - - <xsl:when test="@endterm"> - <fo:basic-link internal-destination="{@linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:variable name="etargets" select="key('id',@endterm)"/> - <xsl:variable name="etarget" select="$etargets[1]"/> - <xsl:choose> - <xsl:when test="count($etarget) = 0"> - <xsl:message> - <xsl:value-of select="count($etargets)"/> - <xsl:text>Endterm points to nonexistent ID: </xsl:text> - <xsl:value-of select="@endterm"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="$etarget" mode="endterm"/> - </xsl:otherwise> - </xsl:choose> - </fo:basic-link> - </xsl:when> - - <xsl:when test="$target/@xreflabel"> - <fo:basic-link internal-destination="{@linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:call-template name="xref.xreflabel"> - <xsl:with-param name="target" select="$target"/> - </xsl:call-template> - </fo:basic-link> - </xsl:when> - - <xsl:otherwise> - <fo:basic-link internal-destination="{@linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:apply-templates select="$target" mode="xref-to"> - <xsl:with-param name="referrer" select="."/> - <xsl:with-param name="xrefstyle"> - <xsl:choose> - <xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0"> - <xsl:value-of select="@role"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="@xrefstyle"/> - </xsl:otherwise> - </xsl:choose> - </xsl:with-param> - </xsl:apply-templates> - </fo:basic-link> - </xsl:otherwise> - </xsl:choose> - - <xsl:if test="$insert.xref.page.number != 0 or local-name($target) = 'para'"> - <xsl:apply-templates select="$target" mode="page.citation"> - <xsl:with-param name="id" select="@linkend"/> - </xsl:apply-templates> - </xsl:if> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template match="*" mode="endterm"> - <!-- Process the children of the endterm element --> - <xsl:variable name="endterm"> - <xsl:apply-templates select="child::node()"/> - </xsl:variable> - - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"> - <xsl:apply-templates select="exsl:node-set($endterm)" mode="remove-ids"/> - </xsl:when> - <xsl:otherwise> - <xsl:copy-of select="$endterm"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="*" mode="remove-ids"> - <xsl:copy> - <xsl:for-each select="@*"> - <xsl:choose> - <xsl:when test="name(.) != 'id'"> - <xsl:copy/> - </xsl:when> - <xsl:otherwise> - <xsl:message>removing <xsl:value-of select="name(.)"/></xsl:message> - </xsl:otherwise> - </xsl:choose> - </xsl:for-each> - <xsl:apply-templates mode="remove-ids"/> - </xsl:copy> -</xsl:template> - -<!--- ==================================================================== --> - -<xsl:template match="*" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:message> - <xsl:text>Don't know what gentext to create for xref to: "</xsl:text> - <xsl:value-of select="name(.)"/> - <xsl:text>"</xsl:text> - </xsl:message> - <xsl:text>???</xsl:text> -</xsl:template> - -<xsl:template match="title" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <!-- if you xref to a title, xref to the parent... --> - <xsl:choose> - <!-- FIXME: how reliable is this? --> - <xsl:when test="contains(local-name(parent::*), 'info')"> - <xsl:apply-templates select="parent::*[2]" mode="xref-to"> - <xsl:with-param name="referrer" select="$referrer"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - </xsl:apply-templates> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="parent::*" mode="xref-to"> - <xsl:with-param name="referrer" select="$referrer"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - </xsl:apply-templates> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="abstract|article|authorblurb|bibliodiv|bibliomset - |biblioset|blockquote|calloutlist|caution|colophon - |constraintdef|formalpara|glossdiv|important|indexdiv - |itemizedlist|legalnotice|lot|msg|msgexplan|msgmain - |msgrel|msgset|msgsub|note|orderedlist|partintro - |productionset|qandadiv|refsynopsisdiv|segmentedlist - |set|setindex|sidebar|tip|toc|variablelist|warning" - mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <!-- catch-all for things with (possibly optional) titles --> - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="author|editor|othercredit|personname" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:call-template name="person.name"/> -</xsl:template> - -<xsl:template match="authorgroup" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:call-template name="person.name.list"/> -</xsl:template> - -<xsl:template match="figure|example|table|equation" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="procedure" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="cmdsynopsis" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="(.//command)[1]" mode="xref"/> -</xsl:template> - -<xsl:template match="funcsynopsis" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="(.//function)[1]" mode="xref"/> -</xsl:template> - -<xsl:template match="dedication|preface|chapter|appendix" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="bibliography" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="biblioentry|bibliomixed" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <!-- handles both biblioentry and bibliomixed --> - <xsl:text>[</xsl:text> - <xsl:choose> - <xsl:when test="string(.) = ''"> - <xsl:variable name="bib" select="document($bibliography.collection)"/> - <xsl:variable name="id" select="@id"/> - <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/> - <xsl:choose> - <xsl:when test="$entry"> - <xsl:choose> - <xsl:when test="$bibliography.numbered != 0"> - <xsl:number from="bibliography" count="biblioentry|bibliomixed" - level="any" format="1"/> - </xsl:when> - <xsl:when test="local-name($entry/*[1]) = 'abbrev'"> - <xsl:apply-templates select="$entry/*[1]"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:message> - <xsl:text>No bibliography entry: </xsl:text> - <xsl:value-of select="$id"/> - <xsl:text> found in </xsl:text> - <xsl:value-of select="$bibliography.collection"/> - </xsl:message> - <xsl:value-of select="@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:choose> - <xsl:when test="$bibliography.numbered != 0"> - <xsl:number from="bibliography" count="biblioentry|bibliomixed" - level="any" format="1"/> - </xsl:when> - <xsl:when test="local-name(*[1]) = 'abbrev'"> - <xsl:apply-templates select="*[1]"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="@id"/> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> - <xsl:text>]</xsl:text> -</xsl:template> - -<xsl:template match="glossary" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="glossentry" mode="xref-to"> - <xsl:choose> - <xsl:when test="$glossentry.show.acronym = 'primary'"> - <xsl:choose> - <xsl:when test="acronym|abbrev"> - <xsl:apply-templates select="(acronym|abbrev)[1]"/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="glossterm[1]" mode="xref-to"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="glossterm[1]" mode="xref-to"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="glossterm" mode="xref-to"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="index" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="listitem" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="section|simplesect - |sect1|sect2|sect3|sect4|sect5 - |refsect1|refsect2|refsect3" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> - <!-- What about "in Chapter X"? --> -</xsl:template> - -<xsl:template match="bridgehead" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> - <!-- What about "in Chapter X"? --> -</xsl:template> - -<xsl:template match="qandaset" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="qandadiv" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="qandaentry" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="question[1]" mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="question|answer" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="part|reference" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="refentry" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:choose> - <xsl:when test="refmeta/refentrytitle"> - <xsl:apply-templates select="refmeta/refentrytitle"/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="refnamediv/refname[1]"/> - </xsl:otherwise> - </xsl:choose> - <xsl:apply-templates select="refmeta/manvolnum"/> -</xsl:template> - -<xsl:template match="refnamediv" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="refname[1]" mode="xref-to"> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="refname" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates mode="xref-to"> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="step" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="'Step'"/> - </xsl:call-template> - <xsl:text> </xsl:text> - <xsl:apply-templates select="." mode="number"/> -</xsl:template> - -<xsl:template match="varlistentry" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="term[1]" mode="xref-to"> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="varlistentry/term" mode="xref-to"> - <!-- to avoid the comma that will be generated if there are several terms --> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="co" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="callout-bug"/> -</xsl:template> - -<xsl:template match="book" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> -</xsl:template> - -<xsl:template match="para" mode="xref-to"> - <xsl:param name="referrer"/> - <xsl:param name="xrefstyle"/> - - <xsl:variable name="context" select="(ancestor::simplesect - |ancestor::section - |ancestor::sect1 - |ancestor::sect2 - |ancestor::sect3 - |ancestor::sect4 - |ancestor::sect5 - |ancestor::refsection - |ancestor::refsect1 - |ancestor::refsect2 - |ancestor::refsect3 - |ancestor::chapter - |ancestor::appendix - |ancestor::preface - |ancestor::partintro - |ancestor::dedication - |ancestor::colophon - |ancestor::bibliography - |ancestor::index - |ancestor::glossary - |ancestor::glossentry - |ancestor::listitem - |ancestor::varlistentry)[last()]"/> - - <xsl:apply-templates select="$context" mode="xref-to"/> -<!-- - <xsl:apply-templates select="." mode="object.xref.markup"> - <xsl:with-param name="purpose" select="'xref'"/> - <xsl:with-param name="xrefstyle" select="$xrefstyle"/> - <xsl:with-param name="referrer" select="$referrer"/> - </xsl:apply-templates> ---> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template match="link" name="link"> - <xsl:variable name="targets" select="key('id',@linkend)"/> - <xsl:variable name="target" select="$targets[1]"/> - - <xsl:call-template name="check.id.unique"> - <xsl:with-param name="linkend" select="@linkend"/> - </xsl:call-template> - - <fo:basic-link internal-destination="{@linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:choose> - <xsl:when test="count(child::node()) > 0"> - <!-- If it has content, use it --> - <xsl:apply-templates/> - </xsl:when> - <xsl:otherwise> - <!-- else look for an endterm --> - <xsl:choose> - <xsl:when test="@endterm"> - <xsl:variable name="etargets" select="key('id',@endterm)"/> - <xsl:variable name="etarget" select="$etargets[1]"/> - <xsl:choose> - <xsl:when test="count($etarget) = 0"> - <xsl:message> - <xsl:value-of select="count($etargets)"/> - <xsl:text>Endterm points to nonexistent ID: </xsl:text> - <xsl:value-of select="@endterm"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="$etarget" mode="endterm"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - - <xsl:otherwise> - <xsl:message> - <xsl:text>Link element has no content and no Endterm. </xsl:text> - <xsl:text>Nothing to show in the link to </xsl:text> - <xsl:value-of select="$target"/> - </xsl:message> - <xsl:text>???</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> - </fo:basic-link> -</xsl:template> - -<xsl:template match="ulink" name="ulink"> - <fo:basic-link xsl:use-attribute-sets="xref.properties"> - <xsl:attribute name="external-destination"> - <xsl:call-template name="fo-external-image"> - <xsl:with-param name="filename" select="@url"/> - </xsl:call-template> - </xsl:attribute> - - <xsl:choose> - <xsl:when test="count(child::node())=0"> - <xsl:call-template name="hyphenate-url"> - <xsl:with-param name="url" select="@url"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> - </xsl:choose> - </fo:basic-link> - - <xsl:if test="count(child::node()) != 0 - and string(.) != @url - and $ulink.show != 0"> - <!-- yes, show the URI --> - <xsl:choose> - <xsl:when test="$ulink.footnotes != 0 and not(ancestor::footnote)"> - <fo:footnote> - <xsl:call-template name="ulink.footnote.number"/> - <fo:footnote-body font-family="{$body.font.family}" - font-size="{$footnote.font.size}"> - <fo:block> - <xsl:call-template name="ulink.footnote.number"/> - <xsl:text> </xsl:text> - <fo:inline> - <xsl:value-of select="@url"/> - </fo:inline> - </fo:block> - </fo:footnote-body> - </fo:footnote> - </xsl:when> - <xsl:otherwise> - <fo:inline hyphenate="false"> - <xsl:text> [</xsl:text> - <xsl:call-template name="hyphenate-url"> - <xsl:with-param name="url" select="@url"/> - </xsl:call-template> - <xsl:text>]</xsl:text> - </fo:inline> - </xsl:otherwise> - </xsl:choose> - </xsl:if> -</xsl:template> - -<xsl:template name="ulink.footnote.number"> - <fo:inline font-size="90%"> - <!-- FIXME: this isn't going to be perfect! --> - <xsl:text>[</xsl:text> - <xsl:number level="any" - from="chapter|appendix|preface|article|refentry" - format="{$ulink.footnote.number.format}"/> - <xsl:text>]</xsl:text> - </fo:inline> -</xsl:template> - -<xsl:template name="hyphenate-url"> - <xsl:param name="url" select="''"/> - <xsl:choose> - <xsl:when test="$ulink.hyphenate = ''"> - <xsl:value-of select="$url"/> - </xsl:when> - <xsl:when test="contains($url, '/')"> - <xsl:value-of select="substring-before($url, '/')"/> - <xsl:text>/</xsl:text> - <xsl:copy-of select="$ulink.hyphenate"/> - <xsl:call-template name="hyphenate-url"> - <xsl:with-param name="url" select="substring-after($url, '/')"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$url"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - -<xsl:template match="olink"> - <xsl:param name="target.database" - select="document($target.database.document, /)"/> - - <xsl:variable name="localinfo" select="@localinfo"/> - - <!-- Olink that points to internal id can be a link --> - <xsl:variable name="linkend"> - <xsl:choose> - <xsl:when test="@targetdoc and not(@targetptr)" > - <xsl:message>Olink missing @targetptr attribute value</xsl:message> - </xsl:when> - <xsl:when test="not(@targetdoc) and @targetptr" > - <xsl:message>Olink missing @targetdoc attribute value</xsl:message> - </xsl:when> - <xsl:when test="@targetdoc and @targetptr"> - <xsl:if test="$current.docid = @targetdoc"> - <xsl:if test="id(@targetptr)"> - <xsl:value-of select="@targetptr"/> - </xsl:if> - </xsl:if> - </xsl:when> - </xsl:choose> - </xsl:variable> - - <xsl:choose> - <xsl:when test="$linkend != ''"> - <fo:basic-link internal-destination="{$linkend}" - xsl:use-attribute-sets="xref.properties"> - <xsl:call-template name="olink.hottext"> - <xsl:with-param name="target.database" select="$target.database"/> - </xsl:call-template> - </fo:basic-link> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="olink.hottext"> - <xsl:with-param name="target.database" select="$target.database"/> - </xsl:call-template> - - <!-- Append other document title if appropriate --> - <xsl:if test="@targetdoc and @targetptr and $olink.doctitle != 0 - and $current.docid != '' and $current.docid != @targetdoc"> - <xsl:variable name="doctitle"> - <xsl:variable name="seek.targetdoc" select="@targetdoc"/> - <xsl:for-each select="$target.database" > - <xsl:value-of select="key('targetdoc-key', $seek.targetdoc)/div[1]/ttl" /> - </xsl:for-each> - </xsl:variable> - <xsl:if test="$doctitle != ''"> - <xsl:text> (</xsl:text><xsl:value-of select="$doctitle"/><xsl:text>)</xsl:text> - </xsl:if> - </xsl:if> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - -<xsl:template name="olink.hottext"> - <xsl:param name="target.database"/> - - <xsl:choose> - <!-- If it has elements or text (not just PI or comment) --> - <xsl:when test="child::text() or child::*"> - <xsl:apply-templates/> - </xsl:when> - <xsl:when test="@targetdoc and @targetptr"> - <!-- Get the xref text for this record --> - <xsl:variable name="seek.targetdoc" select="@targetdoc"/> - <xsl:variable name="seek.targetptr" select="@targetptr"/> - <xsl:variable name="xref.text" > - <xsl:for-each select="$target.database" > - <xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/xreftext"/> - </xsl:for-each> - </xsl:variable> - - <xsl:choose> - <xsl:when test="$use.local.olink.style != 0"> - <!-- Get the element name and lang for this targetptr --> - <xsl:variable name="element" > - <xsl:for-each select="$target.database" > - <xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/@element"/> - </xsl:for-each> - </xsl:variable> - - <xsl:variable name="lang"> - <xsl:variable name="candidate"> - <xsl:for-each select="$target.database" > - <xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/@lang"/> - </xsl:for-each> - </xsl:variable> - <xsl:choose> - <xsl:when test="$candidate != ''"> - <xsl:value-of select="$candidate"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="'en'"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:variable name="template"> - <xsl:call-template name="gentext.template"> - <xsl:with-param name="context" select="'title'"/> - <xsl:with-param name="name" select="$element"/> - <xsl:with-param name="lang" select="$lang"/> - </xsl:call-template> - </xsl:variable> - <xsl:call-template name="substitute-markup"> - <xsl:with-param name="template" select="$template"/> - <xsl:with-param name="title"> - <xsl:for-each select="$target.database" > - <xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/ttl"/> - </xsl:for-each> - </xsl:with-param> - <xsl:with-param name="label"> - <xsl:for-each select="$target.database" > - <xsl:value-of select="key('targetptr-key', concat($seek.targetdoc, '/', $seek.targetptr))/@number"/> - </xsl:for-each> - </xsl:with-param> - </xsl:call-template> - </xsl:when> - <xsl:when test="$xref.text !=''"> - <xsl:value-of select="$xref.text"/> - </xsl:when> - <xsl:otherwise> - <xsl:message>Olink error: no generated text for targetdoc/targetptr = <xsl:value-of select="@targetdoc"/>/<xsl:value-of select="@targetptr"/></xsl:message> - <xsl:text>????</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:text>????</xsl:text> -<!-- - <xsl:call-template name="olink.outline"> - <xsl:with-param name="outline.base.uri" - select="unparsed-entity-uri(@targetdocent)"/> - <xsl:with-param name="localinfo" select="@localinfo"/> - <xsl:with-param name="return" select="'xreftext'"/> - </xsl:call-template> ---> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template name="olink.outline"> - <xsl:message terminate="yes">Fatal error: what is this supposed to do?</xsl:message> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template name="title.xref"> - <xsl:param name="target" select="."/> - <xsl:choose> - <xsl:when test="local-name($target) = 'figure' - or local-name($target) = 'example' - or local-name($target) = 'equation' - or local-name($target) = 'table' - or local-name($target) = 'dedication' - or local-name($target) = 'preface' - or local-name($target) = 'bibliography' - or local-name($target) = 'glossary' - or local-name($target) = 'index' - or local-name($target) = 'setindex' - or local-name($target) = 'colophon'"> - <xsl:call-template name="gentext.startquote"/> - <xsl:apply-templates select="$target" mode="title.markup"/> - <xsl:call-template name="gentext.endquote"/> - </xsl:when> - <xsl:otherwise> - <fo:inline font-style="italic"> - <xsl:apply-templates select="$target" mode="title.markup"/> - </fo:inline> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template name="number.xref"> - <xsl:param name="target" select="."/> - <xsl:apply-templates select="$target" mode="label.markup"/> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template name="xref.xreflabel"> - <!-- called to process an xreflabel...you might use this to make --> - <!-- xreflabels come out in the right font for different targets, --> - <!-- for example. --> - <xsl:param name="target" select="."/> - <xsl:value-of select="$target/@xreflabel"/> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template match="title" mode="xref"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="command" mode="xref"> - <xsl:call-template name="inline.boldseq"/> -</xsl:template> - -<xsl:template match="function" mode="xref"> - <xsl:call-template name="inline.monoseq"/> -</xsl:template> - -<xsl:template match="*" mode="page.citation"> - <xsl:param name="id" select="'???'"/> - - <fo:inline keep-together.within-line="always"> - <xsl:call-template name="substitute-markup"> - <xsl:with-param name="template"> - <xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'page.citation'"/> - <xsl:with-param name="context" select="'xref'"/> - </xsl:call-template> - </xsl:with-param> - </xsl:call-template> - </fo:inline> -</xsl:template> - -<xsl:template match="*" mode="pagenumber.markup"> - <fo:page-number-citation ref-id="{@id}"/> -</xsl:template> - -<!-- ==================================================================== --> - -<xsl:template match="*" mode="insert.title.markup"> - <xsl:param name="purpose"/> - <xsl:param name="xrefstyle"/> - <xsl:param name="title"/> - - <xsl:choose> - <!-- FIXME: what about the case where titleabbrev is inside the info? --> - <xsl:when test="$purpose = 'xref' and titleabbrev"> - <xsl:apply-templates select="." mode="titleabbrev.markup"/> - </xsl:when> - <xsl:otherwise> - <xsl:copy-of select="$title"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="chapter|appendix" mode="insert.title.markup"> - <xsl:param name="purpose"/> - <xsl:param name="xrefstyle"/> - <xsl:param name="title"/> - - <xsl:choose> - <xsl:when test="$purpose = 'xref'"> - <fo:inline font-style="italic"> - <xsl:copy-of select="$title"/> - </fo:inline> - </xsl:when> - <xsl:otherwise> - <xsl:copy-of select="$title"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template match="*" mode="insert.subtitle.markup"> - <xsl:param name="purpose"/> - <xsl:param name="xrefstyle"/> - <xsl:param name="subtitle"/> - - <xsl:copy-of select="$subtitle"/> -</xsl:template> - -<xsl:template match="*" mode="insert.label.markup"> - <xsl:param name="purpose"/> - <xsl:param name="xrefstyle"/> - <xsl:param name="label"/> - - <xsl:copy-of select="$label"/> -</xsl:template> - -<xsl:template match="*" mode="insert.pagenumber.markup"> - <xsl:param name="purpose"/> - <xsl:param name="xrefstyle"/> - <xsl:param name="pagenumber"/> - - <xsl:copy-of select="$pagenumber"/> -</xsl:template> - -<xsl:template match="*" mode="insert.direction.markup"> - <xsl:param name="purpose"/> - <xsl:param name="xrefstyle"/> - <xsl:param name="direction"/> - - <xsl:copy-of select="$direction"/> -</xsl:template> - -</xsl:stylesheet> diff --git a/trunk/docs/xsl/docbook/lib/ChangeLog b/trunk/docs/xsl/docbook/lib/ChangeLog deleted file mode 100755 index d244c035..00000000 --- a/trunk/docs/xsl/docbook/lib/ChangeLog +++ /dev/null @@ -1,46 +0,0 @@ -2002-09-15 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xweb: Fix bug where PIs match the suffix of a name instead of the whole name - -2002-06-09 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xweb: Fix bug #496453: make sure comments don't contain illegal chars - -2002-05-12 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xweb: Changed default units to px; added length-in-points template - -2002-03-25 Norman Walsh <nwalsh@users.sourceforge.net> - - * .cvsignore: Ignore lib.xsl too - - * .cvsignore, Makefile, lib.xsl, lib.xweb: Use Literate XML to generate lib.xsl - - * Makefile: Update documentation build to reflect use of lib.xweb - -2002-03-18 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xsl: Replace generate.*.toc and generate.*.lot with single generate.toc parameter. - -2002-03-14 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xsl: Whitespace only: change CR/LF back to LF. Norm was a total moron. - - * lib.xsl: Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr. - -2002-01-09 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xsl: Added length-units template to extract units from lengths - -2001-11-28 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xsl: Added pi-attribute template - -2001-04-03 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xsl: Documentation fixes - -2001-04-02 Norman Walsh <nwalsh@users.sourceforge.net> - - * lib.xsl: New file. - diff --git a/trunk/docs/xsl/docbook/lib/lib.xml b/trunk/docs/xsl/docbook/lib/lib.xml deleted file mode 100755 index a6f56674..00000000 --- a/trunk/docs/xsl/docbook/lib/lib.xml +++ /dev/null @@ -1,771 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- This file was generated by weave.xsl version 0.00+. Do not edit! --> -<!-- See http://sourceforge.net/projects/docbook/ --> -<!DOCTYPE book - PUBLIC "-//DocBook Open Repository//DTD DocBook Literate Programming V0.0//EN" "http://docbook.sourceforge.net/release/litprog/current/dtd/ldocbook.dtd"> -<book xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<bookinfo> -<title>XSL Library Template Reference -$Id$ - -DocBook Open Repository Team - - 1999 - 2000 - 2001 - 2002 - Norman Walsh - - - -Introduction - -This is technical reference documentation for the DocBook XSL -Stylesheets; it documents (some of) the parameters, templates, and -other elements of the stylesheets. - -This is not intended to be user documentation. -It is provided for developers writing customization layers for the -stylesheets, and for anyone who's interested in how it -works. - -Although I am trying to be thorough, this documentation is known -to be incomplete. Don't forget to read the source, too :-) - - - - -General Library Templates - - - -dot.count -Returns the number of . characters in a string - - -Description - -<xsl:template name="dot.count"> - <!-- Returns the number of "." characters in a string --> - <xsl:param name="string"/> - <xsl:param name="count" - select="0"/> - <xsl:choose> - <xsl:when test="contains($string, '.')"> - <xsl:call-template name="dot.count"> - <xsl:with-param name="string" - select="substring-after($string, '.')"/> - <xsl:with-param name="count" - select="$count+1"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$count"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -copy-string -Returns count copies of a string - - -Description - -<xsl:template name="copy-string"> - <!-- returns 'count' copies of 'string' --> - <xsl:param name="string"/> - <xsl:param name="count" - select="0"/> - <xsl:param name="result"/> - - <xsl:choose> - <xsl:when test="$count>0"> - <xsl:call-template name="copy-string"> - <xsl:with-param name="string" - select="$string"/> - <xsl:with-param name="count" - select="$count - 1"/> - <xsl:with-param name="result"> - <xsl:value-of select="$result"/> - <xsl:value-of select="$string"/> - </xsl:with-param> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$result"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -string.subst -Substitute one text string for another in a string - - -Description - -The string.subst template replaces all -occurances of target in string -with replacement and returns the result. - - -<xsl:template name="string.subst"> - <xsl:param name="string"/> - <xsl:param name="target"/> - <xsl:param name="replacement"/> - - <xsl:choose> - <xsl:when test="contains($string, $target)"> - <xsl:variable name="rest"> - <xsl:call-template name="string.subst"> - <xsl:with-param name="string" - select="substring-after($string, $target)"/> - <xsl:with-param name="target" - select="$target"/> - <xsl:with-param name="replacement" - select="$replacement"/> - </xsl:call-template> - </xsl:variable> - <xsl:value-of select="concat(substring-before($string, $target), $replacement, $rest)"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$string"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -xpointer.idref -Extract IDREF from an XPointer - - -Description - -The xpointer.idref template returns the -ID portion of an XPointer which is a pointer to an ID within the current -document, or the empty string if it is not. -In other words, xpointer.idref returns -foo when passed either #foo -or #xpointer(id('foo')), otherwise it returns -the empty string. - -<xsl:template name="xpointer.idref"> - <xsl:param name="xpointer">http://...</xsl:param> - <xsl:choose> - <xsl:when test="starts-with($xpointer, '#xpointer(id(')"> - <xsl:variable name="rest" - select="substring-after($xpointer, '#xpointer(id(')"/> - <xsl:variable name="quote" - select="substring($rest, 1, 1)"/> - <xsl:value-of select="substring-before(substring-after($xpointer, $quote), $quote)"/> - </xsl:when> - <xsl:when test="starts-with($xpointer, '#')"> - <xsl:value-of select="substring-after($xpointer, '#')"/> - </xsl:when> - <!-- otherwise it's a pointer to some other document --> - </xsl:choose> -</xsl:template> - - - - - - - - - -length-magnitude -Return the unqualified dimension from a length specification - - -Description - -The length-magnitude template returns the -unqualified length ("20" for "20pt") from a dimension. - - -<xsl:template name="length-magnitude"> - <xsl:param name="length" - select="'0pt'"/> - - <xsl:choose> - <xsl:when test="string-length($length) = 0"/> - <xsl:when test="substring($length,1,1) = '0' or substring($length,1,1) = '1' or substring($length,1,1) = '2' or substring($length,1,1) = '3' or substring($length,1,1) = '4' or substring($length,1,1) = '5' or substring($length,1,1) = '6' or substring($length,1,1) = '7' or substring($length,1,1) = '8' or substring($length,1,1) = '9' or substring($length,1,1) = '.'"> - <xsl:value-of select="substring($length,1,1)"/> - <xsl:call-template name="length-magnitude"> - <xsl:with-param name="length" - select="substring($length,2)"/> - </xsl:call-template> - </xsl:when> - </xsl:choose> -</xsl:template> - - - - - - - - -length-units -Return the units from a length specification - - -Description - -The length-units template returns the -units ("pt" for "20pt") from a length. If no units are supplied on the -length, the defauilt.units are returned. - -<xsl:template name="length-units"> - <xsl:param name="length" - select="'0pt'"/> - <xsl:param name="default.units" - select="'px'"/> - <xsl:variable name="magnitude"> - <xsl:call-template name="length-magnitude"> - <xsl:with-param name="length" - select="$length"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="units"> - <xsl:value-of select="substring($length, string-length($magnitude)+1)"/> - </xsl:variable> - - <xsl:choose> - <xsl:when test="$units = ''"> - <xsl:value-of select="$default.units"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$units"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -length-spec -Return a fully qualified length specification - - -Description - -The length-spec template returns the -qualified length from a dimension. If an unqualified length is given, -the default.units will be added to it. - - -<xsl:template name="length-spec"> - <xsl:param name="length" - select="'0pt'"/> - <xsl:param name="default.units" - select="'px'"/> - - <xsl:variable name="magnitude"> - <xsl:call-template name="length-magnitude"> - <xsl:with-param name="length" - select="$length"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="units"> - <xsl:value-of select="substring($length, string-length($magnitude)+1)"/> - </xsl:variable> - - <xsl:value-of select="$magnitude"/> - <xsl:choose> - <xsl:when test="$units='cm' or $units='mm' or $units='in' or $units='pt' or $units='pc' or $units='px' or $units='em'"> - <xsl:value-of select="$units"/> - </xsl:when> - <xsl:when test="$units = ''"> - <xsl:value-of select="$default.units"/> - </xsl:when> - <xsl:otherwise> - <xsl:message> - <xsl:text>Unrecognized unit of measure: </xsl:text> - <xsl:value-of select="$units"/> - <xsl:text>.</xsl:text> - </xsl:message> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -length-in-points -Returns the size, in points, of a specified length - - -Description - -The length-in-points template converts a length -specification to points and returns that value as an unqualified -number. - - - -There is no way for the template to infer the size of an -em. It relies on the default em.size -which is initially 10 (for 10pt). - -Similarly, converting pixesl to points relies on the -pixels.per.inch parameter which is initially -90. - - - -<xsl:template name="length-in-points"> - <xsl:param name="length" - select="'0pt'"/> - <xsl:param name="em.size" - select="10"/> - <xsl:param name="pixels.per.inch" - select="90"/> - - <xsl:variable name="magnitude"> - <xsl:call-template name="length-magnitude"> - <xsl:with-param name="length" - select="$length"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name="units"> - <xsl:value-of select="substring($length, string-length($magnitude)+1)"/> - </xsl:variable> - - <xsl:choose> - <xsl:when test="$units = 'pt'"> - <xsl:value-of select="$magnitude"/> - </xsl:when> - <xsl:when test="$units = 'cm'"> - <xsl:value-of select="$magnitude div 2.54 * 72.0"/> - </xsl:when> - <xsl:when test="$units = 'mm'"> - <xsl:value-of select="$magnitude div 25.4 * 72.0"/> - </xsl:when> - <xsl:when test="$units = 'in'"> - <xsl:value-of select="$magnitude * 72.0"/> - </xsl:when> - <xsl:when test="$units = 'pc'"> - <xsl:value-of select="$magnitude div 6.0 * 72.0"/> - </xsl:when> - <xsl:when test="$units = 'px'"> - <xsl:value-of select="$magnitude div $pixels.per.inch * 72.0"/> - </xsl:when> - <xsl:when test="$units = 'em'"> - <xsl:value-of select="$magnitude * $em.size"/> - </xsl:when> - <xsl:otherwise> - <xsl:message> - <xsl:text>Unrecognized unit of measure: </xsl:text> - <xsl:value-of select="$units"/> - <xsl:text>.</xsl:text> - </xsl:message> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -pi-attribute -Extract a pseudo-attribute from a PI - - -Description - -The pi-attribute template extracts a pseudo-attribute -from a processing instruction. For example, given the PI -<?foo bar="1" baz='red'?>, -<xsl:call-template name="pi-attribute"> - <xsl:with-param name="pis" select="processing-instruction('foo')"/> - <xsl:with-param name="attribute" select="'baz'"/> -</xsl:call-template> -will return red. This template returns the first matching -attribute that it finds. Presented with processing instructions that -contain badly formed pseudo-attributes (missing or unbalanced quotes, -for example), the template may silently return erroneous results. - -<xsl:template name="pi-attribute"> - <xsl:param name="pis" - select="processing-instruction('')"/> - <xsl:param name="attribute">filename</xsl:param> - <xsl:param name="count">1</xsl:param> - - <xsl:choose> - <xsl:when test="$count>count($pis)"> - <!-- not found --> - </xsl:when> - <xsl:otherwise> - <xsl:variable name="pi"> - <xsl:value-of select="$pis[$count]"/> - </xsl:variable> - <xsl:choose> - <xsl:when test="contains($pi,concat($attribute, '='))"> - <xsl:variable name="rest" - select="substring-after($pi,concat($attribute,'='))"/> - <xsl:variable name="quote" - select="substring($rest,1,1)"/> - <xsl:value-of select="substring-before(substring($rest,2),$quote)"/> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="pi-attribute"> - <xsl:with-param name="pis" - select="$pis"/> - <xsl:with-param name="attribute" - select="$attribute"/> - <xsl:with-param name="count" - select="$count + 1"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -lookup.key -Retrieve the value associated with a particular key in a table - - -Description - -Given a table of space-delimited key/value pairs, -the lookup.key template extracts the value associated -with a particular key. - -<xsl:template name="lookup.key"> - <xsl:param name="key" - select="''"/> - <xsl:param name="table" - select="''"/> - - <xsl:if test="contains($table, ' ')"> - <xsl:choose> - <xsl:when test="substring-before($table, ' ') = $key"> - <xsl:variable name="rest" - select="substring-after($table, ' ')"/> - <xsl:choose> - <xsl:when test="contains($rest, ' ')"> - <xsl:value-of select="substring-before($rest, ' ')"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$rest"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="lookup.key"> - <xsl:with-param name="key" - select="$key"/> - <xsl:with-param name="table" - select="substring-after(substring-after($table,' '), ' ')"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:if> -</xsl:template> - - - - - - - - -xpath.location -Calculate the XPath child-sequence to the current node - - -Description - -The xpath.location template calculates the -absolute path from the root of the tree to the current element node. - - -<xsl:template name="xpath.location"> - <xsl:param name="node" - select="."/> - <xsl:param name="path" - select="''"/> - - <xsl:variable name="next.path"> - <xsl:value-of select="local-name($node)"/> - <xsl:if test="$path != ''">/</xsl:if> - <xsl:value-of select="$path"/> - </xsl:variable> - - <xsl:choose> - <xsl:when test="$node/parent::*"> - <xsl:call-template name="xpath.location"> - <xsl:with-param name="node" - select="$node/parent::*"/> - <xsl:with-param name="path" - select="$next.path"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:text>/</xsl:text> - <xsl:value-of select="$next.path"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - - - -comment-escape-string -Prepare a string for inclusion in an XML comment - - -Description - -The comment-escape-string template returns a string -that has been transformed so that it can safely be output as an XML comment. -Internal occurrences of "--" will be replaced with "- -" and a leading and/or -trailing space will be added to the string, if necessary. - -<xsl:template name="comment-escape-string"> - <xsl:param name="string" - select="''"/> - - <xsl:if test="starts-with($string, '-')"> - <xsl:text> </xsl:text> - </xsl:if> - - <xsl:call-template name="comment-escape-string.recursive"> - <xsl:with-param name="string" - select="$string"/> - </xsl:call-template> - - <xsl:if test="substring($string, string-length($string), 1) = '-'"> - <xsl:text> </xsl:text> - </xsl:if> -</xsl:template> - - - - - - -comment-escape-string.recursive -Internal function used by comment-escape-string - - -Description - -The comment-escape-string.recursive template is used -by comment-escape-string. - -<xsl:template name="comment-escape-string.recursive"> - <xsl:param name="string" - select="''"/> - <xsl:choose> - <xsl:when test="contains($string, '--')"> - <xsl:value-of select="substring-before($string, '--')"/> - <xsl:value-of select="'- -'"/> - <xsl:call-template name="comment-escape-string.recursive"> - <xsl:with-param name="string" - select="substring-after($string, '--')"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$string"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - -Relative URI Functions - -Introduction - -These functions manipulate relative URI references. - -The following assumptions must hold true: - - - -All URIs are relative. - - -No URI contains the ../ sequence -which would effectively move up the hierarchy. - - - -If these assumptions do not hold, the results are unpredictable. - - - - - -count.uri.path.depth -Count the number of path components in a relative URI - - -Description - -This function counts the number of path components in a relative URI. - -<xsl:template name="count.uri.path.depth"> - <xsl:param name="filename" - select="''"/> - <xsl:param name="count" - select="0"/> - - <xsl:choose> - <xsl:when test="contains($filename, '/')"> - <xsl:call-template name="count.uri.path.depth"> - <xsl:with-param name="filename" - select="substring-after($filename, '/')"/> - <xsl:with-param name="count" - select="$count + 1"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$count"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - -trim.common.uri.paths -Trim common leading path components from a relative URI - - -Description - -This function trims common leading path components from a relative URI. - -<xsl:template name="trim.common.uri.paths"> - <xsl:param name="uriA" - select="''"/> - <xsl:param name="uriB" - select="''"/> - <xsl:param name="return" - select="'A'"/> - - <xsl:choose> - <xsl:when test="contains($uriA, '/') and contains($uriB, '/') and substring-before($uriA, '/') = substring-before($uriB, '/')"> - <xsl:call-template name="trim.common.uri.paths"> - <xsl:with-param name="uriA" - select="substring-after($uriA, '/')"/> - <xsl:with-param name="uriB" - select="substring-after($uriB, '/')"/> - <xsl:with-param name="return" - select="$return"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:choose> - <xsl:when test="$return = 'A'"> - <xsl:value-of select="$uriA"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$uriB"/> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - - - - - -The Stylesheet - -The lib.xsl stylesheet is just a wrapper -around these functions. - - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - This module implements DTD-independent functions - - ******************************************************************** --> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - exclude-result-prefixes="src" - version="1.0"> - - - - - - - - - - - - - - - - - -</xsl:stylesheet> - - - \ No newline at end of file diff --git a/trunk/docs/xsl/docbook/lib/lib.xsl b/trunk/docs/xsl/docbook/lib/lib.xsl deleted file mode 100755 index dc128b42..00000000 --- a/trunk/docs/xsl/docbook/lib/lib.xsl +++ /dev/null @@ -1,383 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unrecognized unit of measure: - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unrecognized unit of measure: - - . - - - - - - - - - filename - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - / - - - - - - - - - - - - / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/docbook/lib/lib.xweb b/trunk/docs/xsl/docbook/lib/lib.xweb deleted file mode 100755 index 9ef094aa..00000000 --- a/trunk/docs/xsl/docbook/lib/lib.xweb +++ /dev/null @@ -1,769 +0,0 @@ - - -XSL Library Template Reference -$Id$ - -DocBook Open Repository Team - - 1999 - 2000 - 2001 - 2002 - Norman Walsh - - - -Introduction - -This is technical reference documentation for the DocBook XSL -Stylesheets; it documents (some of) the parameters, templates, and -other elements of the stylesheets. - -This is not intended to be user documentation. -It is provided for developers writing customization layers for the -stylesheets, and for anyone who's interested in how it -works. - -Although I am trying to be thorough, this documentation is known -to be incomplete. Don't forget to read the source, too :-) - - - - -General Library Templates - - - -dot.count -Returns the number of . characters in a string - - -Description - - - - - - - - - - - - - - - - - - - - - - - - - - - -copy-string -Returns count copies of a string - - -Description - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -string.subst -Substitute one text string for another in a string - - -Description - -The string.subst template replaces all -occurances of target in string -with replacement and returns the result. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -xpointer.idref -Extract IDREF from an XPointer - - -Description - -The xpointer.idref template returns the -ID portion of an XPointer which is a pointer to an ID within the current -document, or the empty string if it is not. -In other words, xpointer.idref returns -foo when passed either #foo -or #xpointer(id('foo')), otherwise it returns -the empty string. - - - - http://... - - - - - - - - - - - - - - - - - - - - - - -length-magnitude -Return the unqualified dimension from a length specification - - -Description - -The length-magnitude template returns the -unqualified length ("20" for "20pt") from a dimension. - - - - - - - - - - - - - - - - - - - - - - - - - -length-units -Return the units from a length specification - - -Description - -The length-units template returns the -units ("pt" for "20pt") from a length. If no units are supplied on the -length, the defauilt.units are returned. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -length-spec -Return a fully qualified length specification - - -Description - -The length-spec template returns the -qualified length from a dimension. If an unqualified length is given, -the default.units will be added to it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unrecognized unit of measure: - - . - - - - - - - - - - - - - -length-in-points -Returns the size, in points, of a specified length - - -Description - -The length-in-points template converts a length -specification to points and returns that value as an unqualified -number. - - - -There is no way for the template to infer the size of an -em. It relies on the default em.size -which is initially 10 (for 10pt). - -Similarly, converting pixesl to points relies on the -pixels.per.inch parameter which is initially -90. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unrecognized unit of measure: - - . - - - - - - - - - - - - - -pi-attribute -Extract a pseudo-attribute from a PI - - -Description - -The pi-attribute template extracts a pseudo-attribute -from a processing instruction. For example, given the PI -<?foo bar="1" baz='red'?>, - - - -]]> -will return red. This template returns the first matching -attribute that it finds. Presented with processing instructions that -contain badly formed pseudo-attributes (missing or unbalanced quotes, -for example), the template may silently return erroneous results. - - - - - filename - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -lookup.key -Retrieve the value associated with a particular key in a table - - -Description - -Given a table of space-delimited key/value pairs, -the lookup.key template extracts the value associated -with a particular key. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -xpath.location -Calculate the XPath child-sequence to the current node - - -Description - -The xpath.location template calculates the -absolute path from the root of the tree to the current element node. - - - - - - - - - - / - - - - - - - - - - - - / - - - - - - - - - - - - - -comment-escape-string -Prepare a string for inclusion in an XML comment - - -Description - -The comment-escape-string template returns a string -that has been transformed so that it can safely be output as an XML comment. -Internal occurrences of "--" will be replaced with "- -" and a leading and/or -trailing space will be added to the string, if necessary. - - - - - - - - - - - - - - - - - - - - - - - - -comment-escape-string.recursive -Internal function used by comment-escape-string - - -Description - -The comment-escape-string.recursive template is used -by comment-escape-string. - - - - - - - - - - - - - - - - - - - - - - - - -Relative URI Functions - -Introduction - -These functions manipulate relative URI references. - -The following assumptions must hold true: - - - -All URIs are relative. - - -No URI contains the ../ sequence -which would effectively move up the hierarchy. - - - -If these assumptions do not hold, the results are unpredictable. - - - - - -count.uri.path.depth -Count the number of path components in a relative URI - - -Description - -This function counts the number of path components in a relative URI. - - - - - - - - - - - - - - - - - - - - - - - - - -trim.common.uri.paths -Trim common leading path components from a relative URI - - -Description - -This function trims common leading path components from a relative URI. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -The Stylesheet - -The lib.xsl stylesheet is just a wrapper -around these functions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/trunk/docs/xsl/fo.xsl b/trunk/docs/xsl/fo.xsl deleted file mode 100755 index a6d7d2ef..00000000 --- a/trunk/docs/xsl/fo.xsl +++ /dev/null @@ -1,1037 +0,0 @@ - - - - - - - - - - - - - - - 'A4' - 'USletter' - - - - - - - - - - - - - -1 - - - -/appendix toc,title -article/appendix nop -/article toc,title -book toc,title -chapter toc,title -part toc,title -/preface toc,title -qandadiv toc -qandaset toc -reference toc,title -/sect1 toc -/sect2 toc -/sect3 toc -/sect4 toc -/sect5 toc -/section toc -set toc,title - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - end-on-even - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auto-odd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - end-on-even - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - - - - - - - - - () - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 18mm - 20mm - - - - - 16mm - 19.9mm - - - - - - 20pt - - - 18pt - - - 14pt - - - 12pt - - - - - bold - 11pt - false - 2pt - 3pt - - - - - - - - - - - - - - - - - - - - - - 0.4em - 0.2em - 0.6em - 0.4em - 0.2em - 0.6em - - - - - - - - - - - - 1 - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ - - - - ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - all - - - - - - - - diff --git a/trunk/libs/Config_File.class.php b/trunk/libs/Config_File.class.php deleted file mode 100644 index af4bc08b..00000000 --- a/trunk/libs/Config_File.class.php +++ /dev/null @@ -1,393 +0,0 @@ - - * @access public - * @package Smarty - */ - -/* $Id$ */ - -/** - * Config file reading class - * @package Smarty - */ -class Config_File { - /**#@+ - * Options - * @var boolean - */ - /** - * Controls whether variables with the same name overwrite each other. - */ - var $overwrite = true; - - /** - * Controls whether config values of on/true/yes and off/false/no get - * converted to boolean values automatically. - */ - var $booleanize = true; - - /** - * Controls whether hidden config sections/vars are read from the file. - */ - var $read_hidden = true; - - /** - * Controls whether or not to fix mac or dos formatted newlines. - * If set to true, \r or \r\n will be changed to \n. - */ - var $fix_newlines = true; - /**#@-*/ - - /** @access private */ - var $_config_path = ""; - var $_config_data = array(); - /**#@-*/ - - /** - * Constructs a new config file class. - * - * @param string $config_path (optional) path to the config files - */ - function Config_File($config_path = NULL) - { - if (isset($config_path)) - $this->set_path($config_path); - } - - - /** - * Set the path where configuration files can be found. - * - * @param string $config_path path to the config files - */ - function set_path($config_path) - { - if (!empty($config_path)) { - if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) { - $this->_trigger_error_msg("Bad config file path '$config_path'"); - return; - } - if(substr($config_path, -1) != DIRECTORY_SEPARATOR) { - $config_path .= DIRECTORY_SEPARATOR; - } - - $this->_config_path = $config_path; - } - } - - - /** - * Retrieves config info based on the file, section, and variable name. - * - * @param string $file_name config file to get info for - * @param string $section_name (optional) section to get info for - * @param string $var_name (optional) variable to get info for - * @return string|array a value or array of values - */ - function get($file_name, $section_name = NULL, $var_name = NULL) - { - if (empty($file_name)) { - $this->_trigger_error_msg('Empty config file name'); - return; - } else { - $file_name = $this->_config_path . $file_name; - if (!isset($this->_config_data[$file_name])) - $this->load_file($file_name, false); - } - - if (!empty($var_name)) { - if (empty($section_name)) { - return $this->_config_data[$file_name]["vars"][$var_name]; - } else { - if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name])) - return $this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name]; - else - return array(); - } - } else { - if (empty($section_name)) { - return (array)$this->_config_data[$file_name]["vars"]; - } else { - if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"])) - return (array)$this->_config_data[$file_name]["sections"][$section_name]["vars"]; - else - return array(); - } - } - } - - - /** - * Retrieves config info based on the key. - * - * @param $file_name string config key (filename/section/var) - * @return string|array same as get() - * @uses get() retrieves information from config file and returns it - */ - function &get_key($config_key) - { - list($file_name, $section_name, $var_name) = explode('/', $config_key, 3); - $result = &$this->get($file_name, $section_name, $var_name); - return $result; - } - - /** - * Get all loaded config file names. - * - * @return array an array of loaded config file names - */ - function get_file_names() - { - return array_keys($this->_config_data); - } - - - /** - * Get all section names from a loaded file. - * - * @param string $file_name config file to get section names from - * @return array an array of section names from the specified file - */ - function get_section_names($file_name) - { - $file_name = $this->_config_path . $file_name; - if (!isset($this->_config_data[$file_name])) { - $this->_trigger_error_msg("Unknown config file '$file_name'"); - return; - } - - return array_keys($this->_config_data[$file_name]["sections"]); - } - - - /** - * Get all global or section variable names. - * - * @param string $file_name config file to get info for - * @param string $section_name (optional) section to get info for - * @return array an array of variables names from the specified file/section - */ - function get_var_names($file_name, $section = NULL) - { - if (empty($file_name)) { - $this->_trigger_error_msg('Empty config file name'); - return; - } else if (!isset($this->_config_data[$file_name])) { - $this->_trigger_error_msg("Unknown config file '$file_name'"); - return; - } - - if (empty($section)) - return array_keys($this->_config_data[$file_name]["vars"]); - else - return array_keys($this->_config_data[$file_name]["sections"][$section]["vars"]); - } - - - /** - * Clear loaded config data for a certain file or all files. - * - * @param string $file_name file to clear config data for - */ - function clear($file_name = NULL) - { - if ($file_name === NULL) - $this->_config_data = array(); - else if (isset($this->_config_data[$file_name])) - $this->_config_data[$file_name] = array(); - } - - - /** - * Load a configuration file manually. - * - * @param string $file_name file name to load - * @param boolean $prepend_path whether current config path should be - * prepended to the filename - */ - function load_file($file_name, $prepend_path = true) - { - if ($prepend_path && $this->_config_path != "") - $config_file = $this->_config_path . $file_name; - else - $config_file = $file_name; - - ini_set('track_errors', true); - $fp = @fopen($config_file, "r"); - if (!is_resource($fp)) { - $this->_trigger_error_msg("Could not open config file '$config_file'"); - return false; - } - - $contents = ($size = filesize($config_file)) ? fread($fp, $size) : ''; - fclose($fp); - - $this->_config_data[$config_file] = $this->parse_contents($contents); - return true; - } - - /** - * Store the contents of a file manually. - * - * @param string $config_file file name of the related contents - * @param string $contents the file-contents to parse - */ - function set_file_contents($config_file, $contents) - { - $this->_config_data[$config_file] = $this->parse_contents($contents); - return true; - } - - /** - * parse the source of a configuration file manually. - * - * @param string $contents the file-contents to parse - */ - function parse_contents($contents) - { - if($this->fix_newlines) { - // fix mac/dos formatted newlines - $contents = preg_replace('!\r\n?!', "\n", $contents); - } - - $config_data = array(); - $config_data['sections'] = array(); - $config_data['vars'] = array(); - - /* reference to fill with data */ - $vars =& $config_data['vars']; - - /* parse file line by line */ - preg_match_all('!^.*\r?\n?!m', $contents, $match); - $lines = $match[0]; - for ($i=0, $count=count($lines); $i<$count; $i++) { - $line = $lines[$i]; - if (empty($line)) continue; - - if ( substr($line, 0, 1) == '[' && preg_match('!^\[(.*?)\]!', $line, $match) ) { - /* section found */ - if (substr($match[1], 0, 1) == '.') { - /* hidden section */ - if ($this->read_hidden) { - $section_name = substr($match[1], 1); - } else { - /* break reference to $vars to ignore hidden section */ - unset($vars); - $vars = array(); - continue; - } - } else { - $section_name = $match[1]; - } - if (!isset($config_data['sections'][$section_name])) - $config_data['sections'][$section_name] = array('vars' => array()); - $vars =& $config_data['sections'][$section_name]['vars']; - continue; - } - - if (preg_match('/^\s*(\.?\w+)\s*=\s*(.*)/s', $line, $match)) { - /* variable found */ - $var_name = rtrim($match[1]); - if (strpos($match[2], '"""') === 0) { - /* handle multiline-value */ - $lines[$i] = substr($match[2], 3); - $var_value = ''; - while ($i<$count) { - if (($pos = strpos($lines[$i], '"""')) === false) { - $var_value .= $lines[$i++]; - } else { - /* end of multiline-value */ - $var_value .= substr($lines[$i], 0, $pos); - break; - } - } - $booleanize = false; - - } else { - /* handle simple value */ - $var_value = preg_replace('/^([\'"])(.*)\1$/', '\2', rtrim($match[2])); - $booleanize = $this->booleanize; - - } - $this->_set_config_var($vars, $var_name, $var_value, $booleanize); - } - /* else unparsable line / means it is a comment / means ignore it */ - } - return $config_data; - } - - /**#@+ @access private */ - /** - * @param array &$container - * @param string $var_name - * @param mixed $var_value - * @param boolean $booleanize determines whether $var_value is converted to - * to true/false - */ - function _set_config_var(&$container, $var_name, $var_value, $booleanize) - { - if (substr($var_name, 0, 1) == '.') { - if (!$this->read_hidden) - return; - else - $var_name = substr($var_name, 1); - } - - if (!preg_match("/^[a-zA-Z_]\w*$/", $var_name)) { - $this->_trigger_error_msg("Bad variable name '$var_name'"); - return; - } - - if ($booleanize) { - if (preg_match("/^(on|true|yes)$/i", $var_value)) - $var_value = true; - else if (preg_match("/^(off|false|no)$/i", $var_value)) - $var_value = false; - } - - if (!isset($container[$var_name]) || $this->overwrite) - $container[$var_name] = $var_value; - else { - settype($container[$var_name], 'array'); - $container[$var_name][] = $var_value; - } - } - - /** - * @uses trigger_error() creates a PHP warning/error - * @param string $error_msg - * @param integer $error_type one of - */ - function _trigger_error_msg($error_msg, $error_type = E_USER_WARNING) - { - trigger_error("Config_File error: $error_msg", $error_type); - } - /**#@-*/ -} - -?> diff --git a/trunk/libs/Smarty.class.php b/trunk/libs/Smarty.class.php deleted file mode 100644 index 3c3448db..00000000 --- a/trunk/libs/Smarty.class.php +++ /dev/null @@ -1,1961 +0,0 @@ - - * @author Andrei Zmievski - * @package Smarty - * @version 2.6.25-dev - */ - -/* $Id$ */ - -/** - * DIR_SEP isn't used anymore, but third party apps might - */ -if(!defined('DIR_SEP')) { - define('DIR_SEP', DIRECTORY_SEPARATOR); -} - -/** - * set SMARTY_DIR to absolute path to Smarty library files. - * if not defined, include_path will be used. Sets SMARTY_DIR only if user - * application has not already defined it. - */ - -if (!defined('SMARTY_DIR')) { - define('SMARTY_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR); -} - -if (!defined('SMARTY_CORE_DIR')) { - define('SMARTY_CORE_DIR', SMARTY_DIR . 'internals' . DIRECTORY_SEPARATOR); -} - -define('SMARTY_PHP_PASSTHRU', 0); -define('SMARTY_PHP_QUOTE', 1); -define('SMARTY_PHP_REMOVE', 2); -define('SMARTY_PHP_ALLOW', 3); - -/** - * @package Smarty - */ -class Smarty -{ - /**#@+ - * Smarty Configuration Section - */ - - /** - * The name of the directory where templates are located. - * - * @var string - */ - var $template_dir = 'templates'; - - /** - * The directory where compiled templates are located. - * - * @var string - */ - var $compile_dir = 'templates_c'; - - /** - * The directory where config files are located. - * - * @var string - */ - var $config_dir = 'configs'; - - /** - * An array of directories searched for plugins. - * - * @var array - */ - var $plugins_dir = array('plugins'); - - /** - * If debugging is enabled, a debug console window will display - * when the page loads (make sure your browser allows unrequested - * popup windows) - * - * @var boolean - */ - var $debugging = false; - - /** - * When set, smarty does uses this value as error_reporting-level. - * - * @var integer - */ - var $error_reporting = null; - - /** - * This is the path to the debug console template. If not set, - * the default one will be used. - * - * @var string - */ - var $debug_tpl = ''; - - /** - * This determines if debugging is enable-able from the browser. - *
        - *
      • NONE => no debugging control allowed
      • - *
      • URL => enable debugging when SMARTY_DEBUG is found in the URL.
      • - *
      - * @link http://www.foo.dom/index.php?SMARTY_DEBUG - * @var string - */ - var $debugging_ctrl = 'NONE'; - - /** - * This tells Smarty whether to check for recompiling or not. Recompiling - * does not need to happen unless a template or config file is changed. - * Typically you enable this during development, and disable for - * production. - * - * @var boolean - */ - var $compile_check = true; - - /** - * This forces templates to compile every time. Useful for development - * or debugging. - * - * @var boolean - */ - var $force_compile = false; - - /** - * This enables template caching. - *
        - *
      • 0 = no caching
      • - *
      • 1 = use class cache_lifetime value
      • - *
      • 2 = use cache_lifetime in cache file
      • - *
      - * @var integer - */ - var $caching = 0; - - /** - * The name of the directory for cache files. - * - * @var string - */ - var $cache_dir = 'cache'; - - /** - * This is the number of seconds cached content will persist. - *
        - *
      • 0 = always regenerate cache
      • - *
      • -1 = never expires
      • - *
      - * - * @var integer - */ - var $cache_lifetime = 3600; - - /** - * Only used when $caching is enabled. If true, then If-Modified-Since headers - * are respected with cached content, and appropriate HTTP headers are sent. - * This way repeated hits to a cached page do not send the entire page to the - * client every time. - * - * @var boolean - */ - var $cache_modified_check = false; - - /** - * This determines how Smarty handles "" tags in templates. - * possible values: - *
        - *
      • SMARTY_PHP_PASSTHRU -> print tags as plain text
      • - *
      • SMARTY_PHP_QUOTE -> escape tags as entities
      • - *
      • SMARTY_PHP_REMOVE -> remove php tags
      • - *
      • SMARTY_PHP_ALLOW -> execute php tags
      • - *
      - * - * @var integer - */ - var $php_handling = SMARTY_PHP_PASSTHRU; - - /** - * This enables template security. When enabled, many things are restricted - * in the templates that normally would go unchecked. This is useful when - * untrusted parties are editing templates and you want a reasonable level - * of security. (no direct execution of PHP in templates for example) - * - * @var boolean - */ - var $security = false; - - /** - * This is the list of template directories that are considered secure. This - * is used only if {@link $security} is enabled. One directory per array - * element. {@link $template_dir} is in this list implicitly. - * - * @var array - */ - var $secure_dir = array(); - - /** - * These are the security settings for Smarty. They are used only when - * {@link $security} is enabled. - * - * @var array - */ - var $security_settings = array( - 'PHP_HANDLING' => false, - 'IF_FUNCS' => array('array', 'list', - 'isset', 'empty', - 'count', 'sizeof', - 'in_array', 'is_array', - 'true', 'false', 'null'), - 'INCLUDE_ANY' => false, - 'PHP_TAGS' => false, - 'MODIFIER_FUNCS' => array('count'), - 'ALLOW_CONSTANTS' => false, - 'ALLOW_SUPER_GLOBALS' => true - ); - - /** - * This is an array of directories where trusted php scripts reside. - * {@link $security} is disabled during their inclusion/execution. - * - * @var array - */ - var $trusted_dir = array(); - - /** - * The left delimiter used for the template tags. - * - * @var string - */ - var $left_delimiter = '{'; - - /** - * The right delimiter used for the template tags. - * - * @var string - */ - var $right_delimiter = '}'; - - /** - * The order in which request variables are registered, similar to - * variables_order in php.ini E = Environment, G = GET, P = POST, - * C = Cookies, S = Server - * - * @var string - */ - var $request_vars_order = 'EGPCS'; - - /** - * Indicates wether $HTTP_*_VARS[] (request_use_auto_globals=false) - * are uses as request-vars or $_*[]-vars. note: if - * request_use_auto_globals is true, then $request_vars_order has - * no effect, but the php-ini-value "gpc_order" - * - * @var boolean - */ - var $request_use_auto_globals = true; - - /** - * Set this if you want different sets of compiled files for the same - * templates. This is useful for things like different languages. - * Instead of creating separate sets of templates per language, you - * set different compile_ids like 'en' and 'de'. - * - * @var string - */ - var $compile_id = null; - - /** - * This tells Smarty whether or not to use sub dirs in the cache/ and - * templates_c/ directories. sub directories better organized, but - * may not work well with PHP safe mode enabled. - * - * @var boolean - * - */ - var $use_sub_dirs = false; - - /** - * This is a list of the modifiers to apply to all template variables. - * Put each modifier in a separate array element in the order you want - * them applied. example: array('escape:"htmlall"'); - * - * @var array - */ - var $default_modifiers = array(); - - /** - * This is the resource type to be used when not specified - * at the beginning of the resource path. examples: - * $smarty->display('file:index.tpl'); - * $smarty->display('db:index.tpl'); - * $smarty->display('index.tpl'); // will use default resource type - * {include file="file:index.tpl"} - * {include file="db:index.tpl"} - * {include file="index.tpl"} {* will use default resource type *} - * - * @var array - */ - var $default_resource_type = 'file'; - - /** - * The function used for cache file handling. If not set, built-in caching is used. - * - * @var null|string function name - */ - var $cache_handler_func = null; - - /** - * This indicates which filters are automatically loaded into Smarty. - * - * @var array array of filter names - */ - var $autoload_filters = array(); - - /**#@+ - * @var boolean - */ - /** - * This tells if config file vars of the same name overwrite each other or not. - * if disabled, same name variables are accumulated in an array. - */ - var $config_overwrite = true; - - /** - * This tells whether or not to automatically booleanize config file variables. - * If enabled, then the strings "on", "true", and "yes" are treated as boolean - * true, and "off", "false" and "no" are treated as boolean false. - */ - var $config_booleanize = true; - - /** - * This tells whether hidden sections [.foobar] are readable from the - * tempalates or not. Normally you would never allow this since that is - * the point behind hidden sections: the application can access them, but - * the templates cannot. - */ - var $config_read_hidden = false; - - /** - * This tells whether or not automatically fix newlines in config files. - * It basically converts \r (mac) or \r\n (dos) to \n - */ - var $config_fix_newlines = true; - /**#@-*/ - - /** - * If a template cannot be found, this PHP function will be executed. - * Useful for creating templates on-the-fly or other special action. - * - * @var string function name - */ - var $default_template_handler_func = ''; - - /** - * The file that contains the compiler class. This can a full - * pathname, or relative to the php_include path. - * - * @var string - */ - var $compiler_file = 'Smarty_Compiler.class.php'; - - /** - * The class used for compiling templates. - * - * @var string - */ - var $compiler_class = 'Smarty_Compiler'; - - /** - * The class used to load config vars. - * - * @var string - */ - var $config_class = 'Config_File'; - -/**#@+ - * END Smarty Configuration Section - * There should be no need to touch anything below this line. - * @access private - */ - /** - * where assigned template vars are kept - * - * @var array - */ - var $_tpl_vars = array(); - - /** - * stores run-time $smarty.* vars - * - * @var null|array - */ - var $_smarty_vars = null; - - /** - * keeps track of sections - * - * @var array - */ - var $_sections = array(); - - /** - * keeps track of foreach blocks - * - * @var array - */ - var $_foreach = array(); - - /** - * keeps track of tag hierarchy - * - * @var array - */ - var $_tag_stack = array(); - - /** - * configuration object - * - * @var Config_file - */ - var $_conf_obj = null; - - /** - * loaded configuration settings - * - * @var array - */ - var $_config = array(array('vars' => array(), 'files' => array())); - - /** - * md5 checksum of the string 'Smarty' - * - * @var string - */ - var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; - - /** - * Smarty version number - * - * @var string - */ - var $_version = '2.6.25-dev'; - - /** - * current template inclusion depth - * - * @var integer - */ - var $_inclusion_depth = 0; - - /** - * for different compiled templates - * - * @var string - */ - var $_compile_id = null; - - /** - * text in URL to enable debug mode - * - * @var string - */ - var $_smarty_debug_id = 'SMARTY_DEBUG'; - - /** - * debugging information for debug console - * - * @var array - */ - var $_smarty_debug_info = array(); - - /** - * info that makes up a cache file - * - * @var array - */ - var $_cache_info = array(); - - /** - * default file permissions - * - * @var integer - */ - var $_file_perms = 0644; - - /** - * default dir permissions - * - * @var integer - */ - var $_dir_perms = 0771; - - /** - * registered objects - * - * @var array - */ - var $_reg_objects = array(); - - /** - * table keeping track of plugins - * - * @var array - */ - var $_plugins = array( - 'modifier' => array(), - 'function' => array(), - 'block' => array(), - 'compiler' => array(), - 'prefilter' => array(), - 'postfilter' => array(), - 'outputfilter' => array(), - 'resource' => array(), - 'insert' => array()); - - - /** - * cache serials - * - * @var array - */ - var $_cache_serials = array(); - - /** - * name of optional cache include file - * - * @var string - */ - var $_cache_include = null; - - /** - * indicate if the current code is used in a compiled - * include - * - * @var string - */ - var $_cache_including = false; - - /**#@-*/ - /** - * The class constructor. - */ - function Smarty() - { - $this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] - : @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']); - } - - /** - * assigns values to template variables - * - * @param array|string $tpl_var the template variable name(s) - * @param mixed $value the value to assign - */ - function assign($tpl_var, $value = null) - { - if (is_array($tpl_var)){ - foreach ($tpl_var as $key => $val) { - if ($key != '') { - $this->_tpl_vars[$key] = $val; - } - } - } else { - if ($tpl_var != '') - $this->_tpl_vars[$tpl_var] = $value; - } - } - - /** - * assigns values to template variables by reference - * - * @param string $tpl_var the template variable name - * @param mixed $value the referenced value to assign - */ - function assign_by_ref($tpl_var, &$value) - { - if ($tpl_var != '') - $this->_tpl_vars[$tpl_var] = &$value; - } - - /** - * appends values to template variables - * - * @param array|string $tpl_var the template variable name(s) - * @param mixed $value the value to append - */ - function append($tpl_var, $value=null, $merge=false) - { - if (is_array($tpl_var)) { - // $tpl_var is an array, ignore $value - foreach ($tpl_var as $_key => $_val) { - if ($_key != '') { - if(!@is_array($this->_tpl_vars[$_key])) { - settype($this->_tpl_vars[$_key],'array'); - } - if($merge && is_array($_val)) { - foreach($_val as $_mkey => $_mval) { - $this->_tpl_vars[$_key][$_mkey] = $_mval; - } - } else { - $this->_tpl_vars[$_key][] = $_val; - } - } - } - } else { - if ($tpl_var != '' && isset($value)) { - if(!@is_array($this->_tpl_vars[$tpl_var])) { - settype($this->_tpl_vars[$tpl_var],'array'); - } - if($merge && is_array($value)) { - foreach($value as $_mkey => $_mval) { - $this->_tpl_vars[$tpl_var][$_mkey] = $_mval; - } - } else { - $this->_tpl_vars[$tpl_var][] = $value; - } - } - } - } - - /** - * appends values to template variables by reference - * - * @param string $tpl_var the template variable name - * @param mixed $value the referenced value to append - */ - function append_by_ref($tpl_var, &$value, $merge=false) - { - if ($tpl_var != '' && isset($value)) { - if(!@is_array($this->_tpl_vars[$tpl_var])) { - settype($this->_tpl_vars[$tpl_var],'array'); - } - if ($merge && is_array($value)) { - foreach($value as $_key => $_val) { - $this->_tpl_vars[$tpl_var][$_key] = &$value[$_key]; - } - } else { - $this->_tpl_vars[$tpl_var][] = &$value; - } - } - } - - - /** - * clear the given assigned template variable. - * - * @param string $tpl_var the template variable to clear - */ - function clear_assign($tpl_var) - { - if (is_array($tpl_var)) - foreach ($tpl_var as $curr_var) - unset($this->_tpl_vars[$curr_var]); - else - unset($this->_tpl_vars[$tpl_var]); - } - - - /** - * Registers custom function to be used in templates - * - * @param string $function the name of the template function - * @param string $function_impl the name of the PHP function to register - */ - function register_function($function, $function_impl, $cacheable=true, $cache_attrs=null) - { - $this->_plugins['function'][$function] = - array($function_impl, null, null, false, $cacheable, $cache_attrs); - - } - - /** - * Unregisters custom function - * - * @param string $function name of template function - */ - function unregister_function($function) - { - unset($this->_plugins['function'][$function]); - } - - /** - * Registers object to be used in templates - * - * @param string $object name of template object - * @param object &$object_impl the referenced PHP object to register - * @param null|array $allowed list of allowed methods (empty = all) - * @param boolean $smarty_args smarty argument format, else traditional - * @param null|array $block_functs list of methods that are block format - */ - function register_object($object, &$object_impl, $allowed = array(), $smarty_args = true, $block_methods = array()) - { - settype($allowed, 'array'); - settype($smarty_args, 'boolean'); - $this->_reg_objects[$object] = - array(&$object_impl, $allowed, $smarty_args, $block_methods); - } - - /** - * Unregisters object - * - * @param string $object name of template object - */ - function unregister_object($object) - { - unset($this->_reg_objects[$object]); - } - - - /** - * Registers block function to be used in templates - * - * @param string $block name of template block - * @param string $block_impl PHP function to register - */ - function register_block($block, $block_impl, $cacheable=true, $cache_attrs=null) - { - $this->_plugins['block'][$block] = - array($block_impl, null, null, false, $cacheable, $cache_attrs); - } - - /** - * Unregisters block function - * - * @param string $block name of template function - */ - function unregister_block($block) - { - unset($this->_plugins['block'][$block]); - } - - /** - * Registers compiler function - * - * @param string $function name of template function - * @param string $function_impl name of PHP function to register - */ - function register_compiler_function($function, $function_impl, $cacheable=true) - { - $this->_plugins['compiler'][$function] = - array($function_impl, null, null, false, $cacheable); - } - - /** - * Unregisters compiler function - * - * @param string $function name of template function - */ - function unregister_compiler_function($function) - { - unset($this->_plugins['compiler'][$function]); - } - - /** - * Registers modifier to be used in templates - * - * @param string $modifier name of template modifier - * @param string $modifier_impl name of PHP function to register - */ - function register_modifier($modifier, $modifier_impl) - { - $this->_plugins['modifier'][$modifier] = - array($modifier_impl, null, null, false); - } - - /** - * Unregisters modifier - * - * @param string $modifier name of template modifier - */ - function unregister_modifier($modifier) - { - unset($this->_plugins['modifier'][$modifier]); - } - - /** - * Registers a resource to fetch a template - * - * @param string $type name of resource - * @param array $functions array of functions to handle resource - */ - function register_resource($type, $functions) - { - if (count($functions)==4) { - $this->_plugins['resource'][$type] = - array($functions, false); - - } elseif (count($functions)==5) { - $this->_plugins['resource'][$type] = - array(array(array(&$functions[0], $functions[1]) - ,array(&$functions[0], $functions[2]) - ,array(&$functions[0], $functions[3]) - ,array(&$functions[0], $functions[4])) - ,false); - - } else { - $this->trigger_error("malformed function-list for '$type' in register_resource"); - - } - } - - /** - * Unregisters a resource - * - * @param string $type name of resource - */ - function unregister_resource($type) - { - unset($this->_plugins['resource'][$type]); - } - - /** - * Registers a prefilter function to apply - * to a template before compiling - * - * @param callback $function - */ - function register_prefilter($function) - { - $this->_plugins['prefilter'][$this->_get_filter_name($function)] - = array($function, null, null, false); - } - - /** - * Unregisters a prefilter function - * - * @param callback $function - */ - function unregister_prefilter($function) - { - unset($this->_plugins['prefilter'][$this->_get_filter_name($function)]); - } - - /** - * Registers a postfilter function to apply - * to a compiled template after compilation - * - * @param callback $function - */ - function register_postfilter($function) - { - $this->_plugins['postfilter'][$this->_get_filter_name($function)] - = array($function, null, null, false); - } - - /** - * Unregisters a postfilter function - * - * @param callback $function - */ - function unregister_postfilter($function) - { - unset($this->_plugins['postfilter'][$this->_get_filter_name($function)]); - } - - /** - * Registers an output filter function to apply - * to a template output - * - * @param callback $function - */ - function register_outputfilter($function) - { - $this->_plugins['outputfilter'][$this->_get_filter_name($function)] - = array($function, null, null, false); - } - - /** - * Unregisters an outputfilter function - * - * @param callback $function - */ - function unregister_outputfilter($function) - { - unset($this->_plugins['outputfilter'][$this->_get_filter_name($function)]); - } - - /** - * load a filter of specified type and name - * - * @param string $type filter type - * @param string $name filter name - */ - function load_filter($type, $name) - { - switch ($type) { - case 'output': - $_params = array('plugins' => array(array($type . 'filter', $name, null, null, false))); - require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); - smarty_core_load_plugins($_params, $this); - break; - - case 'pre': - case 'post': - if (!isset($this->_plugins[$type . 'filter'][$name])) - $this->_plugins[$type . 'filter'][$name] = false; - break; - } - } - - /** - * clear cached content for the given template and cache id - * - * @param string $tpl_file name of template file - * @param string $cache_id name of cache_id - * @param string $compile_id name of compile_id - * @param string $exp_time expiration time - * @return boolean - */ - function clear_cache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null) - { - - if (!isset($compile_id)) - $compile_id = $this->compile_id; - - if (!isset($tpl_file)) - $compile_id = null; - - $_auto_id = $this->_get_auto_id($cache_id, $compile_id); - - if (!empty($this->cache_handler_func)) { - return call_user_func_array($this->cache_handler_func, - array('clear', &$this, &$dummy, $tpl_file, $cache_id, $compile_id, $exp_time)); - } else { - $_params = array('auto_base' => $this->cache_dir, - 'auto_source' => $tpl_file, - 'auto_id' => $_auto_id, - 'exp_time' => $exp_time); - require_once(SMARTY_CORE_DIR . 'core.rm_auto.php'); - return smarty_core_rm_auto($_params, $this); - } - - } - - - /** - * clear the entire contents of cache (all templates) - * - * @param string $exp_time expire time - * @return boolean results of {@link smarty_core_rm_auto()} - */ - function clear_all_cache($exp_time = null) - { - return $this->clear_cache(null, null, null, $exp_time); - } - - - /** - * test to see if valid cache exists for this template - * - * @param string $tpl_file name of template file - * @param string $cache_id - * @param string $compile_id - * @return string|false results of {@link _read_cache_file()} - */ - function is_cached($tpl_file, $cache_id = null, $compile_id = null) - { - if (!$this->caching) - return false; - - if (!isset($compile_id)) - $compile_id = $this->compile_id; - - $_params = array( - 'tpl_file' => $tpl_file, - 'cache_id' => $cache_id, - 'compile_id' => $compile_id - ); - require_once(SMARTY_CORE_DIR . 'core.read_cache_file.php'); - return smarty_core_read_cache_file($_params, $this); - } - - - /** - * clear all the assigned template variables. - * - */ - function clear_all_assign() - { - $this->_tpl_vars = array(); - } - - /** - * clears compiled version of specified template resource, - * or all compiled template files if one is not specified. - * This function is for advanced use only, not normally needed. - * - * @param string $tpl_file - * @param string $compile_id - * @param string $exp_time - * @return boolean results of {@link smarty_core_rm_auto()} - */ - function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null) - { - if (!isset($compile_id)) { - $compile_id = $this->compile_id; - } - $_params = array('auto_base' => $this->compile_dir, - 'auto_source' => $tpl_file, - 'auto_id' => $compile_id, - 'exp_time' => $exp_time, - 'extensions' => array('.inc', '.php')); - require_once(SMARTY_CORE_DIR . 'core.rm_auto.php'); - return smarty_core_rm_auto($_params, $this); - } - - /** - * Checks whether requested template exists. - * - * @param string $tpl_file - * @return boolean - */ - function template_exists($tpl_file) - { - $_params = array('resource_name' => $tpl_file, 'quiet'=>true, 'get_source'=>false); - return $this->_fetch_resource_info($_params); - } - - /** - * Returns an array containing template variables - * - * @param string $name - * @param string $type - * @return array - */ - function &get_template_vars($name=null) - { - if(!isset($name)) { - return $this->_tpl_vars; - } elseif(isset($this->_tpl_vars[$name])) { - return $this->_tpl_vars[$name]; - } else { - // var non-existant, return valid reference - $_tmp = null; - return $_tmp; - } - } - - /** - * Returns an array containing config variables - * - * @param string $name - * @param string $type - * @return array - */ - function &get_config_vars($name=null) - { - if(!isset($name) && is_array($this->_config[0])) { - return $this->_config[0]['vars']; - } else if(isset($this->_config[0]['vars'][$name])) { - return $this->_config[0]['vars'][$name]; - } else { - // var non-existant, return valid reference - $_tmp = null; - return $_tmp; - } - } - - /** - * trigger Smarty error - * - * @param string $error_msg - * @param integer $error_type - */ - function trigger_error($error_msg, $error_type = E_USER_WARNING) - { - trigger_error("Smarty error: $error_msg", $error_type); - } - - - /** - * executes & displays the template results - * - * @param string $resource_name - * @param string $cache_id - * @param string $compile_id - */ - function display($resource_name, $cache_id = null, $compile_id = null) - { - $this->fetch($resource_name, $cache_id, $compile_id, true); - } - - /** - * executes & returns or displays the template results - * - * @param string $resource_name - * @param string $cache_id - * @param string $compile_id - * @param boolean $display - */ - 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); - - if (!$this->debugging && $this->debugging_ctrl == 'URL') { - $_query_string = $this->request_use_auto_globals ? $_SERVER['QUERY_STRING'] : $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING']; - if (@strstr($_query_string, $this->_smarty_debug_id)) { - if (@strstr($_query_string, $this->_smarty_debug_id . '=on')) { - // enable debugging for this browser session - @setcookie('SMARTY_DEBUG', true); - $this->debugging = true; - } elseif (@strstr($_query_string, $this->_smarty_debug_id . '=off')) { - // disable debugging for this browser session - @setcookie('SMARTY_DEBUG', false); - $this->debugging = false; - } else { - // enable debugging for this page - $this->debugging = true; - } - } else { - $this->debugging = (bool)($this->request_use_auto_globals ? @$_COOKIE['SMARTY_DEBUG'] : @$GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG']); - } - } - - if ($this->debugging) { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $_debug_start_time = smarty_core_get_microtime($_params, $this); - $this->_smarty_debug_info[] = array('type' => 'template', - 'filename' => $resource_name, - 'depth' => 0); - $_included_tpls_idx = count($this->_smarty_debug_info) - 1; - } - - if (!isset($compile_id)) { - $compile_id = $this->compile_id; - } - - $this->_compile_id = $compile_id; - $this->_inclusion_depth = 0; - - if ($this->caching) { - // save old cache_info, initialize cache_info - array_push($_cache_info, $this->_cache_info); - $this->_cache_info = array(); - $_params = array( - 'tpl_file' => $resource_name, - 'cache_id' => $cache_id, - 'compile_id' => $compile_id, - 'results' => null - ); - require_once(SMARTY_CORE_DIR . 'core.read_cache_file.php'); - if (smarty_core_read_cache_file($_params, $this)) { - $_smarty_results = $_params['results']; - if (!empty($this->_cache_info['insert_tags'])) { - $_params = array('plugins' => $this->_cache_info['insert_tags']); - require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); - smarty_core_load_plugins($_params, $this); - $_params = array('results' => $_smarty_results); - require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php'); - $_smarty_results = smarty_core_process_cached_inserts($_params, $this); - } - if (!empty($this->_cache_info['cache_serials'])) { - $_params = array('results' => $_smarty_results); - require_once(SMARTY_CORE_DIR . 'core.process_compiled_include.php'); - $_smarty_results = smarty_core_process_compiled_include($_params, $this); - } - - - if ($display) { - if ($this->debugging) - { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = smarty_core_get_microtime($_params, $this) - $_debug_start_time; - require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); - $_smarty_results .= smarty_core_display_debug_console($_params, $this); - } - if ($this->cache_modified_check) { - $_server_vars = ($this->request_use_auto_globals) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS']; - $_last_modified_date = @substr($_server_vars['HTTP_IF_MODIFIED_SINCE'], 0, strpos($_server_vars['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3); - $_gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']).' GMT'; - if (@count($this->_cache_info['insert_tags']) == 0 - && !$this->_cache_serials - && $_gmt_mtime == $_last_modified_date) { - if (php_sapi_name()=='cgi') - header('Status: 304 Not Modified'); - else - header('HTTP/1.1 304 Not Modified'); - - } else { - header('Last-Modified: '.$_gmt_mtime); - echo $_smarty_results; - } - } else { - echo $_smarty_results; - } - error_reporting($_smarty_old_error_level); - // restore initial cache_info - $this->_cache_info = array_pop($_cache_info); - return true; - } else { - error_reporting($_smarty_old_error_level); - // restore initial cache_info - $this->_cache_info = array_pop($_cache_info); - return $_smarty_results; - } - } else { - $this->_cache_info['template'][$resource_name] = true; - if ($this->cache_modified_check && $display) { - header('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT'); - } - } - } - - // load filters that are marked as autoload - if (count($this->autoload_filters)) { - foreach ($this->autoload_filters as $_filter_type => $_filters) { - foreach ($_filters as $_filter) { - $this->load_filter($_filter_type, $_filter); - } - } - } - - $_smarty_compile_path = $this->_get_compile_path($resource_name); - - // if we just need to display the results, don't perform output - // buffering - for speed - $_cache_including = $this->_cache_including; - $this->_cache_including = false; - if ($display && !$this->caching && count($this->_plugins['outputfilter']) == 0) { - if ($this->_is_compiled($resource_name, $_smarty_compile_path) - || $this->_compile_resource($resource_name, $_smarty_compile_path)) - { - include($_smarty_compile_path); - } - } else { - ob_start(); - if ($this->_is_compiled($resource_name, $_smarty_compile_path) - || $this->_compile_resource($resource_name, $_smarty_compile_path)) - { - include($_smarty_compile_path); - } - $_smarty_results = ob_get_contents(); - ob_end_clean(); - - foreach ((array)$this->_plugins['outputfilter'] as $_output_filter) { - $_smarty_results = call_user_func_array($_output_filter[0], array($_smarty_results, &$this)); - } - } - - if ($this->caching) { - $_params = array('tpl_file' => $resource_name, - 'cache_id' => $cache_id, - 'compile_id' => $compile_id, - 'results' => $_smarty_results); - require_once(SMARTY_CORE_DIR . 'core.write_cache_file.php'); - smarty_core_write_cache_file($_params, $this); - require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php'); - $_smarty_results = smarty_core_process_cached_inserts($_params, $this); - - if ($this->_cache_serials) { - // strip nocache-tags from output - $_smarty_results = preg_replace('!(\{/?nocache\:[0-9a-f]{32}#\d+\})!s' - ,'' - ,$_smarty_results); - } - // restore initial cache_info - $this->_cache_info = array_pop($_cache_info); - } - $this->_cache_including = $_cache_including; - - if ($display) { - if (isset($_smarty_results)) { echo $_smarty_results; } - if ($this->debugging) { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time); - require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); - echo smarty_core_display_debug_console($_params, $this); - } - error_reporting($_smarty_old_error_level); - return; - } else { - error_reporting($_smarty_old_error_level); - if (isset($_smarty_results)) { return $_smarty_results; } - } - } - - /** - * load configuration values - * - * @param string $file - * @param string $section - * @param string $scope - */ - function config_load($file, $section = null, $scope = 'global') - { - require_once($this->_get_plugin_filepath('function', 'config_load')); - smarty_function_config_load(array('file' => $file, 'section' => $section, 'scope' => $scope), $this); - } - - /** - * return a reference to a registered object - * - * @param string $name - * @return object - */ - function &get_registered_object($name) { - if (!isset($this->_reg_objects[$name])) - $this->_trigger_fatal_error("'$name' is not a registered object"); - - if (!is_object($this->_reg_objects[$name][0])) - $this->_trigger_fatal_error("registered '$name' is not an object"); - - return $this->_reg_objects[$name][0]; - } - - /** - * clear configuration values - * - * @param string $var - */ - function clear_config($var = null) - { - if(!isset($var)) { - // clear all values - $this->_config = array(array('vars' => array(), - 'files' => array())); - } else { - unset($this->_config[0]['vars'][$var]); - } - } - - /** - * get filepath of requested plugin - * - * @param string $type - * @param string $name - * @return string|false - */ - function _get_plugin_filepath($type, $name) - { - $_params = array('type' => $type, 'name' => $name); - require_once(SMARTY_CORE_DIR . 'core.assemble_plugin_filepath.php'); - return smarty_core_assemble_plugin_filepath($_params, $this); - } - - /** - * test if resource needs compiling - * - * @param string $resource_name - * @param string $compile_path - * @return boolean - */ - function _is_compiled($resource_name, $compile_path) - { - if (!$this->force_compile && file_exists($compile_path)) { - if (!$this->compile_check) { - // no need to check compiled file - return true; - } else { - // get file source and timestamp - $_params = array('resource_name' => $resource_name, 'get_source'=>false); - if (!$this->_fetch_resource_info($_params)) { - return false; - } - if ($_params['resource_timestamp'] <= filemtime($compile_path)) { - // template not expired, no recompile - return true; - } else { - // compile template - return false; - } - } - } else { - // compiled template does not exist, or forced compile - return false; - } - } - - /** - * compile the template - * - * @param string $resource_name - * @param string $compile_path - * @return boolean - */ - function _compile_resource($resource_name, $compile_path) - { - - $_params = array('resource_name' => $resource_name); - if (!$this->_fetch_resource_info($_params)) { - return false; - } - - $_source_content = $_params['source_content']; - $_cache_include = substr($compile_path, 0, -4).'.inc'; - - if ($this->_compile_source($resource_name, $_source_content, $_compiled_content, $_cache_include)) { - // if a _cache_serial was set, we also have to write an include-file: - if ($this->_cache_include_info) { - require_once(SMARTY_CORE_DIR . 'core.write_compiled_include.php'); - smarty_core_write_compiled_include(array_merge($this->_cache_include_info, array('compiled_content'=>$_compiled_content, 'resource_name'=>$resource_name)), $this); - } - - $_params = array('compile_path'=>$compile_path, 'compiled_content' => $_compiled_content); - require_once(SMARTY_CORE_DIR . 'core.write_compiled_resource.php'); - smarty_core_write_compiled_resource($_params, $this); - - return true; - } else { - return false; - } - - } - - /** - * compile the given source - * - * @param string $resource_name - * @param string $source_content - * @param string $compiled_content - * @return boolean - */ - function _compile_source($resource_name, &$source_content, &$compiled_content, $cache_include_path=null) - { - if (file_exists(SMARTY_DIR . $this->compiler_file)) { - require_once(SMARTY_DIR . $this->compiler_file); - } else { - // use include_path - require_once($this->compiler_file); - } - - - $smarty_compiler = new $this->compiler_class; - - $smarty_compiler->template_dir = $this->template_dir; - $smarty_compiler->compile_dir = $this->compile_dir; - $smarty_compiler->plugins_dir = $this->plugins_dir; - $smarty_compiler->config_dir = $this->config_dir; - $smarty_compiler->force_compile = $this->force_compile; - $smarty_compiler->caching = $this->caching; - $smarty_compiler->php_handling = $this->php_handling; - $smarty_compiler->left_delimiter = $this->left_delimiter; - $smarty_compiler->right_delimiter = $this->right_delimiter; - $smarty_compiler->_version = $this->_version; - $smarty_compiler->security = $this->security; - $smarty_compiler->secure_dir = $this->secure_dir; - $smarty_compiler->security_settings = $this->security_settings; - $smarty_compiler->trusted_dir = $this->trusted_dir; - $smarty_compiler->use_sub_dirs = $this->use_sub_dirs; - $smarty_compiler->_reg_objects = &$this->_reg_objects; - $smarty_compiler->_plugins = &$this->_plugins; - $smarty_compiler->_tpl_vars = &$this->_tpl_vars; - $smarty_compiler->default_modifiers = $this->default_modifiers; - $smarty_compiler->compile_id = $this->_compile_id; - $smarty_compiler->_config = $this->_config; - $smarty_compiler->request_use_auto_globals = $this->request_use_auto_globals; - - if (isset($cache_include_path) && isset($this->_cache_serials[$cache_include_path])) { - $smarty_compiler->_cache_serial = $this->_cache_serials[$cache_include_path]; - } - $smarty_compiler->_cache_include = $cache_include_path; - - - $_results = $smarty_compiler->_compile_file($resource_name, $source_content, $compiled_content); - - if ($smarty_compiler->_cache_serial) { - $this->_cache_include_info = array( - 'cache_serial'=>$smarty_compiler->_cache_serial - ,'plugins_code'=>$smarty_compiler->_plugins_code - ,'include_file_path' => $cache_include_path); - - } else { - $this->_cache_include_info = null; - - } - - return $_results; - } - - /** - * Get the compile path for this resource - * - * @param string $resource_name - * @return string results of {@link _get_auto_filename()} - */ - function _get_compile_path($resource_name) - { - return $this->_get_auto_filename($this->compile_dir, $resource_name, - $this->_compile_id) . '.php'; - } - - /** - * fetch the template info. Gets timestamp, and source - * if get_source is true - * - * sets $source_content to the source of the template, and - * $resource_timestamp to its time stamp - * @param string $resource_name - * @param string $source_content - * @param integer $resource_timestamp - * @param boolean $get_source - * @param boolean $quiet - * @return boolean - */ - - function _fetch_resource_info(&$params) - { - if(!isset($params['get_source'])) { $params['get_source'] = true; } - if(!isset($params['quiet'])) { $params['quiet'] = false; } - - $_return = false; - $_params = array('resource_name' => $params['resource_name']) ; - if (isset($params['resource_base_path'])) - $_params['resource_base_path'] = $params['resource_base_path']; - else - $_params['resource_base_path'] = $this->template_dir; - - if ($this->_parse_resource_name($_params)) { - $_resource_type = $_params['resource_type']; - $_resource_name = $_params['resource_name']; - switch ($_resource_type) { - case 'file': - if ($params['get_source']) { - $params['source_content'] = $this->_read_file($_resource_name); - } - $params['resource_timestamp'] = filemtime($_resource_name); - $_return = is_file($_resource_name) && is_readable($_resource_name); - break; - - default: - // call resource functions to fetch the template source and timestamp - if ($params['get_source']) { - $_source_return = isset($this->_plugins['resource'][$_resource_type]) && - call_user_func_array($this->_plugins['resource'][$_resource_type][0][0], - array($_resource_name, &$params['source_content'], &$this)); - } else { - $_source_return = true; - } - - $_timestamp_return = isset($this->_plugins['resource'][$_resource_type]) && - call_user_func_array($this->_plugins['resource'][$_resource_type][0][1], - array($_resource_name, &$params['resource_timestamp'], &$this)); - - $_return = $_source_return && $_timestamp_return; - break; - } - } - - if (!$_return) { - // see if we can get a template with the default template handler - if (!empty($this->default_template_handler_func)) { - if (!is_callable($this->default_template_handler_func)) { - $this->trigger_error("default template handler function \"$this->default_template_handler_func\" doesn't exist."); - } else { - $_return = call_user_func_array( - $this->default_template_handler_func, - array($_params['resource_type'], $_params['resource_name'], &$params['source_content'], &$params['resource_timestamp'], &$this)); - } - } - } - - if (!$_return) { - if (!$params['quiet']) { - $this->trigger_error('unable to read resource: "' . $params['resource_name'] . '"'); - } - } else if ($_return && $this->security) { - require_once(SMARTY_CORE_DIR . 'core.is_secure.php'); - if (!smarty_core_is_secure($_params, $this)) { - if (!$params['quiet']) - $this->trigger_error('(secure mode) accessing "' . $params['resource_name'] . '" is not allowed'); - $params['source_content'] = null; - $params['resource_timestamp'] = null; - return false; - } - } - return $_return; - } - - - /** - * parse out the type and name from the resource - * - * @param string $resource_base_path - * @param string $resource_name - * @param string $resource_type - * @param string $resource_name - * @return boolean - */ - - function _parse_resource_name(&$params) - { - - // split tpl_path by the first colon - $_resource_name_parts = explode(':', $params['resource_name'], 2); - - if (count($_resource_name_parts) == 1) { - // no resource type given - $params['resource_type'] = $this->default_resource_type; - $params['resource_name'] = $_resource_name_parts[0]; - } else { - if(strlen($_resource_name_parts[0]) == 1) { - // 1 char is not resource type, but part of filepath - $params['resource_type'] = $this->default_resource_type; - $params['resource_name'] = $params['resource_name']; - } else { - $params['resource_type'] = $_resource_name_parts[0]; - $params['resource_name'] = $_resource_name_parts[1]; - } - } - - if ($params['resource_type'] == 'file') { - if (!preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $params['resource_name'])) { - // relative pathname to $params['resource_base_path'] - // use the first directory where the file is found - foreach ((array)$params['resource_base_path'] as $_curr_path) { - $_fullpath = $_curr_path . DIRECTORY_SEPARATOR . $params['resource_name']; - if (file_exists($_fullpath) && is_file($_fullpath)) { - $params['resource_name'] = $_fullpath; - return true; - } - // didn't find the file, try include_path - $_params = array('file_path' => $_fullpath); - require_once(SMARTY_CORE_DIR . 'core.get_include_path.php'); - if(smarty_core_get_include_path($_params, $this)) { - $params['resource_name'] = $_params['new_file_path']; - return true; - } - } - return false; - } else { - /* absolute path */ - return file_exists($params['resource_name']); - } - } elseif (empty($this->_plugins['resource'][$params['resource_type']])) { - $_params = array('type' => $params['resource_type']); - require_once(SMARTY_CORE_DIR . 'core.load_resource_plugin.php'); - smarty_core_load_resource_plugin($_params, $this); - } - - return true; - } - - - /** - * Handle modifiers - * - * @param string|null $modifier_name - * @param array|null $map_array - * @return string result of modifiers - */ - function _run_mod_handler() - { - $_args = func_get_args(); - list($_modifier_name, $_map_array) = array_splice($_args, 0, 2); - list($_func_name, $_tpl_file, $_tpl_line) = - $this->_plugins['modifier'][$_modifier_name]; - - $_var = $_args[0]; - foreach ($_var as $_key => $_val) { - $_args[0] = $_val; - $_var[$_key] = call_user_func_array($_func_name, $_args); - } - return $_var; - } - - /** - * Remove starting and ending quotes from the string - * - * @param string $string - * @return string - */ - function _dequote($string) - { - if ((substr($string, 0, 1) == "'" || substr($string, 0, 1) == '"') && - substr($string, -1) == substr($string, 0, 1)) - return substr($string, 1, -1); - else - return $string; - } - - - /** - * read in a file - * - * @param string $filename - * @return string - */ - function _read_file($filename) - { - if ( file_exists($filename) && is_readable($filename) && ($fd = @fopen($filename, 'rb')) ) { - $contents = ''; - while (!feof($fd)) { - $contents .= fread($fd, 8192); - } - fclose($fd); - return $contents; - } else { - return false; - } - } - - /** - * get a concrete filename for automagically created content - * - * @param string $auto_base - * @param string $auto_source - * @param string $auto_id - * @return string - * @staticvar string|null - * @staticvar string|null - */ - function _get_auto_filename($auto_base, $auto_source = null, $auto_id = null) - { - $_compile_dir_sep = $this->use_sub_dirs ? DIRECTORY_SEPARATOR : '^'; - $_return = $auto_base . DIRECTORY_SEPARATOR; - - if(isset($auto_id)) { - // make auto_id safe for directory names - $auto_id = str_replace('%7C',$_compile_dir_sep,(urlencode($auto_id))); - // split into separate directories - $_return .= $auto_id . $_compile_dir_sep; - } - - if(isset($auto_source)) { - // make source name safe for filename - $_filename = urlencode(basename($auto_source)); - $_crc32 = sprintf('%08X', crc32($auto_source)); - // prepend %% to avoid name conflicts with - // with $params['auto_id'] names - $_crc32 = substr($_crc32, 0, 2) . $_compile_dir_sep . - substr($_crc32, 0, 3) . $_compile_dir_sep . $_crc32; - $_return .= '%%' . $_crc32 . '%%' . $_filename; - } - - return $_return; - } - - /** - * unlink a file, possibly using expiration time - * - * @param string $resource - * @param integer $exp_time - */ - function _unlink($resource, $exp_time = null) - { - if(isset($exp_time)) { - if(time() - @filemtime($resource) >= $exp_time) { - return @unlink($resource); - } - } else { - return @unlink($resource); - } - } - - /** - * returns an auto_id for auto-file-functions - * - * @param string $cache_id - * @param string $compile_id - * @return string|null - */ - function _get_auto_id($cache_id=null, $compile_id=null) { - if (isset($cache_id)) - return (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id; - elseif(isset($compile_id)) - return $compile_id; - else - return null; - } - - /** - * trigger Smarty plugin error - * - * @param string $error_msg - * @param string $tpl_file - * @param integer $tpl_line - * @param string $file - * @param integer $line - * @param integer $error_type - */ - function _trigger_fatal_error($error_msg, $tpl_file = null, $tpl_line = null, - $file = null, $line = null, $error_type = E_USER_ERROR) - { - if(isset($file) && isset($line)) { - $info = ' ('.basename($file).", line $line)"; - } else { - $info = ''; - } - if (isset($tpl_line) && isset($tpl_file)) { - $this->trigger_error('[in ' . $tpl_file . ' line ' . $tpl_line . "]: $error_msg$info", $error_type); - } else { - $this->trigger_error($error_msg . $info, $error_type); - } - } - - - /** - * callback function for preg_replace, to call a non-cacheable block - * @return string - */ - function _process_compiled_include_callback($match) { - $_func = '_smarty_tplfunc_'.$match[2].'_'.$match[3]; - ob_start(); - $_func($this); - $_ret = ob_get_contents(); - ob_end_clean(); - return $_ret; - } - - - /** - * called for included templates - * - * @param string $_smarty_include_tpl_file - * @param string $_smarty_include_vars - */ - - // $_smarty_include_tpl_file, $_smarty_include_vars - - function _smarty_include($params) - { - if ($this->debugging) { - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $debug_start_time = smarty_core_get_microtime($_params, $this); - $this->_smarty_debug_info[] = array('type' => 'template', - 'filename' => $params['smarty_include_tpl_file'], - 'depth' => ++$this->_inclusion_depth); - $included_tpls_idx = count($this->_smarty_debug_info) - 1; - } - - $this->_tpl_vars = array_merge($this->_tpl_vars, $params['smarty_include_vars']); - - // config vars are treated as local, so push a copy of the - // current ones onto the front of the stack - array_unshift($this->_config, $this->_config[0]); - - $_smarty_compile_path = $this->_get_compile_path($params['smarty_include_tpl_file']); - - - if ($this->_is_compiled($params['smarty_include_tpl_file'], $_smarty_compile_path) - || $this->_compile_resource($params['smarty_include_tpl_file'], $_smarty_compile_path)) - { - include($_smarty_compile_path); - } - - // pop the local vars off the front of the stack - array_shift($this->_config); - - $this->_inclusion_depth--; - - if ($this->debugging) { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $this->_smarty_debug_info[$included_tpls_idx]['exec_time'] = smarty_core_get_microtime($_params, $this) - $debug_start_time; - } - - if ($this->caching) { - $this->_cache_info['template'][$params['smarty_include_tpl_file']] = true; - } - } - - - /** - * get or set an array of cached attributes for function that is - * not cacheable - * @return array - */ - function &_smarty_cache_attrs($cache_serial, $count) { - $_cache_attrs =& $this->_cache_info['cache_attrs'][$cache_serial][$count]; - - if ($this->_cache_including) { - /* return next set of cache_attrs */ - $_return = current($_cache_attrs); - next($_cache_attrs); - return $_return; - - } else { - /* add a reference to a new set of cache_attrs */ - $_cache_attrs[] = array(); - return $_cache_attrs[count($_cache_attrs)-1]; - - } - - } - - - /** - * wrapper for include() retaining $this - * @return mixed - */ - function _include($filename, $once=false, $params=null) - { - if ($once) { - return include_once($filename); - } else { - return include($filename); - } - } - - - /** - * wrapper for eval() retaining $this - * @return mixed - */ - function _eval($code, $params=null) - { - return eval($code); - } - - /** - * Extracts the filter name from the given callback - * - * @param callback $function - * @return string - */ - function _get_filter_name($function) - { - if (is_array($function)) { - $_class_name = (is_object($function[0]) ? - get_class($function[0]) : $function[0]); - return $_class_name . '_' . $function[1]; - } - else { - return $function; - } - } - - /**#@-*/ - -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/Smarty_Compiler.class.php b/trunk/libs/Smarty_Compiler.class.php deleted file mode 100644 index 791ec72c..00000000 --- a/trunk/libs/Smarty_Compiler.class.php +++ /dev/null @@ -1,2365 +0,0 @@ - - * @author Andrei Zmievski - * @version 2.6.25-dev - * @copyright 2001-2005 New Digital Group, Inc. - * @package Smarty - */ - -/* $Id$ */ - -/** - * Template compiling class - * @package Smarty - */ -class Smarty_Compiler extends Smarty { - - // internal vars - /**#@+ - * @access private - */ - var $_folded_blocks = array(); // keeps folded template blocks - var $_current_file = null; // the current template being compiled - var $_current_line_no = 1; // line number for error messages - var $_capture_stack = array(); // keeps track of nested capture buffers - var $_plugin_info = array(); // keeps track of plugins to load - var $_init_smarty_vars = false; - var $_permitted_tokens = array('true','false','yes','no','on','off','null'); - var $_db_qstr_regexp = null; // regexps are setup in the constructor - var $_si_qstr_regexp = null; - var $_qstr_regexp = null; - var $_func_regexp = null; - var $_reg_obj_regexp = null; - var $_var_bracket_regexp = null; - var $_num_const_regexp = null; - var $_dvar_guts_regexp = null; - var $_dvar_regexp = null; - var $_cvar_regexp = null; - var $_svar_regexp = null; - var $_avar_regexp = null; - var $_mod_regexp = null; - var $_var_regexp = null; - var $_parenth_param_regexp = null; - var $_func_call_regexp = null; - var $_obj_ext_regexp = null; - var $_obj_start_regexp = null; - var $_obj_params_regexp = null; - var $_obj_call_regexp = null; - var $_cacheable_state = 0; - var $_cache_attrs_count = 0; - var $_nocache_count = 0; - var $_cache_serial = null; - var $_cache_include = null; - - var $_strip_depth = 0; - var $_additional_newline = "\n"; - - /**#@-*/ - /** - * The class constructor. - */ - function Smarty_Compiler() - { - // matches double quoted strings: - // "foobar" - // "foo\"bar" - $this->_db_qstr_regexp = '"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"'; - - // matches single quoted strings: - // 'foobar' - // 'foo\'bar' - $this->_si_qstr_regexp = '\'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\''; - - // matches single or double quoted strings - $this->_qstr_regexp = '(?:' . $this->_db_qstr_regexp . '|' . $this->_si_qstr_regexp . ')'; - - // matches bracket portion of vars - // [0] - // [foo] - // [$bar] - $this->_var_bracket_regexp = '\[\$?[\w\.]+\]'; - - // matches numerical constants - // 30 - // -12 - // 13.22 - $this->_num_const_regexp = '(?:\-?\d+(?:\.\d+)?)'; - - // matches $ vars (not objects): - // $foo - // $foo.bar - // $foo.bar.foobar - // $foo[0] - // $foo[$bar] - // $foo[5][blah] - // $foo[5].bar[$foobar][4] - $this->_dvar_math_regexp = '(?:[\+\*\/\%]|(?:-(?!>)))'; - $this->_dvar_math_var_regexp = '[\$\w\.\+\-\*\/\%\d\>\[\]]'; - $this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp - . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?'; - $this->_dvar_regexp = '\$' . $this->_dvar_guts_regexp; - - // matches config vars: - // #foo# - // #foobar123_foo# - $this->_cvar_regexp = '\#\w+\#'; - - // matches section vars: - // %foo.bar% - $this->_svar_regexp = '\%\w+\.\w+\%'; - - // matches all valid variables (no quotes, no modifiers) - $this->_avar_regexp = '(?:' . $this->_dvar_regexp . '|' - . $this->_cvar_regexp . '|' . $this->_svar_regexp . ')'; - - // matches valid variable syntax: - // $foo - // $foo - // #foo# - // #foo# - // "text" - // "text" - $this->_var_regexp = '(?:' . $this->_avar_regexp . '|' . $this->_qstr_regexp . ')'; - - // matches valid object call (one level of object nesting allowed in parameters): - // $foo->bar - // $foo->bar() - // $foo->bar("text") - // $foo->bar($foo, $bar, "text") - // $foo->bar($foo, "foo") - // $foo->bar->foo() - // $foo->bar->foo->bar() - // $foo->bar($foo->bar) - // $foo->bar($foo->bar()) - // $foo->bar($foo->bar($blah,$foo,44,"foo",$foo[0].bar)) - $this->_obj_ext_regexp = '\->(?:\$?' . $this->_dvar_guts_regexp . ')'; - $this->_obj_restricted_param_regexp = '(?:' - . '(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')(?:' . $this->_obj_ext_regexp . '(?:\((?:(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')' - . '(?:\s*,\s*(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . '))*)?\))?)*)'; - $this->_obj_single_param_regexp = '(?:\w+|' . $this->_obj_restricted_param_regexp . '(?:\s*,\s*(?:(?:\w+|' - . $this->_var_regexp . $this->_obj_restricted_param_regexp . ')))*)'; - $this->_obj_params_regexp = '\((?:' . $this->_obj_single_param_regexp - . '(?:\s*,\s*' . $this->_obj_single_param_regexp . ')*)?\)'; - $this->_obj_start_regexp = '(?:' . $this->_dvar_regexp . '(?:' . $this->_obj_ext_regexp . ')+)'; - $this->_obj_call_regexp = '(?:' . $this->_obj_start_regexp . '(?:' . $this->_obj_params_regexp . ')?(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?)'; - - // matches valid modifier syntax: - // |foo - // |@foo - // |foo:"bar" - // |foo:$bar - // |foo:"bar":$foobar - // |foo|bar - // |foo:$foo->bar - $this->_mod_regexp = '(?:\|@?\w+(?::(?:\w+|' . $this->_num_const_regexp . '|' - . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)'; - - // matches valid function name: - // foo123 - // _foo_bar - $this->_func_regexp = '[a-zA-Z_]\w*'; - - // matches valid registered object: - // foo->bar - $this->_reg_obj_regexp = '[a-zA-Z_]\w*->[a-zA-Z_]\w*'; - - // matches valid parameter values: - // true - // $foo - // $foo|bar - // #foo# - // #foo#|bar - // "text" - // "text"|bar - // $foo->bar - $this->_param_regexp = '(?:\s*(?:' . $this->_obj_call_regexp . '|' - . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)'; - - // matches valid parenthesised function parameters: - // - // "text" - // $foo, $bar, "text" - // $foo|bar, "foo"|bar, $foo->bar($foo)|bar - $this->_parenth_param_regexp = '(?:\((?:\w+|' - . $this->_param_regexp . '(?:\s*,\s*(?:(?:\w+|' - . $this->_param_regexp . ')))*)?\))'; - - // matches valid function call: - // foo() - // foo_bar($foo) - // _foo_bar($foo,"bar") - // foo123($foo,$foo->bar(),"foo") - $this->_func_call_regexp = '(?:' . $this->_func_regexp . '\s*(?:' - . $this->_parenth_param_regexp . '))'; - } - - /** - * compile a resource - * - * sets $compiled_content to the compiled source - * @param string $resource_name - * @param string $source_content - * @param string $compiled_content - * @return true - */ - function _compile_file($resource_name, $source_content, &$compiled_content) - { - - if ($this->security) { - // do not allow php syntax to be executed unless specified - if ($this->php_handling == SMARTY_PHP_ALLOW && - !$this->security_settings['PHP_HANDLING']) { - $this->php_handling = SMARTY_PHP_PASSTHRU; - } - } - - $this->_load_filters(); - - $this->_current_file = $resource_name; - $this->_current_line_no = 1; - $ldq = preg_quote($this->left_delimiter, '~'); - $rdq = preg_quote($this->right_delimiter, '~'); - - // run template source through prefilter functions - if (count($this->_plugins['prefilter']) > 0) { - foreach ($this->_plugins['prefilter'] as $filter_name => $prefilter) { - if ($prefilter === false) continue; - if ($prefilter[3] || is_callable($prefilter[0])) { - $source_content = call_user_func_array($prefilter[0], - array($source_content, &$this)); - $this->_plugins['prefilter'][$filter_name][3] = true; - } else { - $this->_trigger_fatal_error("[plugin] prefilter '$filter_name' is not implemented"); - } - } - } - - /* fetch all special blocks */ - $search = "~{$ldq}\*(.*?)\*{$rdq}|{$ldq}\s*literal\s*{$rdq}(.*?){$ldq}\s*/literal\s*{$rdq}|{$ldq}\s*php\s*{$rdq}(.*?){$ldq}\s*/php\s*{$rdq}~s"; - - preg_match_all($search, $source_content, $match, PREG_SET_ORDER); - $this->_folded_blocks = $match; - reset($this->_folded_blocks); - - /* replace special blocks by "{php}" */ - $source_content = preg_replace($search.'e', "'" - . $this->_quote_replace($this->left_delimiter) . 'php' - . "' . str_repeat(\"\n\", substr_count('\\0', \"\n\")) .'" - . $this->_quote_replace($this->right_delimiter) - . "'" - , $source_content); - - /* Gather all template tags. */ - preg_match_all("~{$ldq}\s*(.*?)\s*{$rdq}~s", $source_content, $_match); - $template_tags = $_match[1]; - /* Split content by template tags to obtain non-template content. */ - $text_blocks = preg_split("~{$ldq}.*?{$rdq}~s", $source_content); - - /* loop through text blocks */ - for ($curr_tb = 0, $for_max = count($text_blocks); $curr_tb < $for_max; $curr_tb++) { - /* match anything resembling php tags */ - if (preg_match_all('~(<\?(?:\w+|=)?|\?>|language\s*=\s*[\"\']?\s*php\s*[\"\']?)~is', $text_blocks[$curr_tb], $sp_match)) { - /* replace tags with placeholders to prevent recursive replacements */ - $sp_match[1] = array_unique($sp_match[1]); - usort($sp_match[1], '_smarty_sort_length'); - for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) { - $text_blocks[$curr_tb] = str_replace($sp_match[1][$curr_sp],'%%%SMARTYSP'.$curr_sp.'%%%',$text_blocks[$curr_tb]); - } - /* process each one */ - for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) { - if ($this->php_handling == SMARTY_PHP_PASSTHRU) { - /* echo php contents */ - $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', ''."\n", $text_blocks[$curr_tb]); - } else if ($this->php_handling == SMARTY_PHP_QUOTE) { - /* quote php tags */ - $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', htmlspecialchars($sp_match[1][$curr_sp]), $text_blocks[$curr_tb]); - } else if ($this->php_handling == SMARTY_PHP_REMOVE) { - /* remove php tags */ - $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', '', $text_blocks[$curr_tb]); - } else { - /* SMARTY_PHP_ALLOW, but echo non php starting tags */ - $sp_match[1][$curr_sp] = preg_replace('~(<\?(?!php|=|$))~i', ''."\n", $sp_match[1][$curr_sp]); - $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', $sp_match[1][$curr_sp], $text_blocks[$curr_tb]); - } - } - } - } - - /* Compile the template tags into PHP code. */ - $compiled_tags = array(); - for ($i = 0, $for_max = count($template_tags); $i < $for_max; $i++) { - $this->_current_line_no += substr_count($text_blocks[$i], "\n"); - $compiled_tags[] = $this->_compile_tag($template_tags[$i]); - $this->_current_line_no += substr_count($template_tags[$i], "\n"); - } - if (count($this->_tag_stack)>0) { - list($_open_tag, $_line_no) = end($this->_tag_stack); - $this->_syntax_error("unclosed tag \{$_open_tag} (opened line $_line_no).", E_USER_ERROR, __FILE__, __LINE__); - return; - } - - /* Reformat $text_blocks between 'strip' and '/strip' tags, - removing spaces, tabs and newlines. */ - $strip = false; - for ($i = 0, $for_max = count($compiled_tags); $i < $for_max; $i++) { - if ($compiled_tags[$i] == '{strip}') { - $compiled_tags[$i] = ''; - $strip = true; - /* remove leading whitespaces */ - $text_blocks[$i + 1] = ltrim($text_blocks[$i + 1]); - } - if ($strip) { - /* strip all $text_blocks before the next '/strip' */ - for ($j = $i + 1; $j < $for_max; $j++) { - /* remove leading and trailing whitespaces of each line */ - $text_blocks[$j] = preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $text_blocks[$j]); - if ($compiled_tags[$j] == '{/strip}') { - /* remove trailing whitespaces from the last text_block */ - $text_blocks[$j] = rtrim($text_blocks[$j]); - } - $text_blocks[$j] = ""\'", "\\"=>"\\\\")) . "'; ?>"; - if ($compiled_tags[$j] == '{/strip}') { - $compiled_tags[$j] = "\n"; /* slurped by php, but necessary - if a newline is following the closing strip-tag */ - $strip = false; - $i = $j; - break; - } - } - } - } - $compiled_content = ''; - - $tag_guard = '%%%SMARTYOTG' . md5(uniqid(rand(), true)) . '%%%'; - - /* Interleave the compiled contents and text blocks to get the final result. */ - for ($i = 0, $for_max = count($compiled_tags); $i < $for_max; $i++) { - if ($compiled_tags[$i] == '') { - // tag result empty, remove first newline from following text block - $text_blocks[$i+1] = preg_replace('~^(\r\n|\r|\n)~', '', $text_blocks[$i+1]); - } - // replace legit PHP tags with placeholder - $text_blocks[$i] = str_replace('\n", $compiled_content); - $compiled_content = preg_replace("~(?\n", $compiled_content); - - // recover legit tags - $compiled_content = str_replace($tag_guard, '_cache_serial)) { - $compiled_content = "_cache_serials['".$this->_cache_include."'] = '".$this->_cache_serial."'; ?>" . $compiled_content; - } - - // run compiled template through postfilter functions - if (count($this->_plugins['postfilter']) > 0) { - foreach ($this->_plugins['postfilter'] as $filter_name => $postfilter) { - if ($postfilter === false) continue; - if ($postfilter[3] || is_callable($postfilter[0])) { - $compiled_content = call_user_func_array($postfilter[0], - array($compiled_content, &$this)); - $this->_plugins['postfilter'][$filter_name][3] = true; - } else { - $this->_trigger_fatal_error("Smarty plugin error: postfilter '$filter_name' is not implemented"); - } - } - } - - // put header at the top of the compiled template - $template_header = "_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; - $template_header .= " compiled from ".strtr(urlencode($resource_name), array('%2F'=>'/', '%3A'=>':'))." */ ?>\n"; - - /* Emit code to load needed plugins. */ - $this->_plugins_code = ''; - if (count($this->_plugin_info)) { - $_plugins_params = "array('plugins' => array("; - foreach ($this->_plugin_info as $plugin_type => $plugins) { - foreach ($plugins as $plugin_name => $plugin_info) { - $_plugins_params .= "array('$plugin_type', '$plugin_name', '" . strtr($plugin_info[0], array("'" => "\\'", "\\" => "\\\\")) . "', $plugin_info[1], "; - $_plugins_params .= $plugin_info[2] ? 'true),' : 'false),'; - } - } - $_plugins_params .= '))'; - $plugins_code = "\n"; - $template_header .= $plugins_code; - $this->_plugin_info = array(); - $this->_plugins_code = $plugins_code; - } - - if ($this->_init_smarty_vars) { - $template_header .= "\n"; - $this->_init_smarty_vars = false; - } - - $compiled_content = $template_header . $compiled_content; - return true; - } - - /** - * Compile a template tag - * - * @param string $template_tag - * @return string - */ - function _compile_tag($template_tag) - { - /* Matched comment. */ - if (substr($template_tag, 0, 1) == '*' && substr($template_tag, -1) == '*') - return ''; - - /* Split tag into two three parts: command, command modifiers and the arguments. */ - if(! preg_match('~^(?:(' . $this->_num_const_regexp . '|' . $this->_obj_call_regexp . '|' . $this->_var_regexp - . '|\/?' . $this->_reg_obj_regexp . '|\/?' . $this->_func_regexp . ')(' . $this->_mod_regexp . '*)) - (?:\s+(.*))?$ - ~xs', $template_tag, $match)) { - $this->_syntax_error("unrecognized tag: $template_tag", E_USER_ERROR, __FILE__, __LINE__); - } - - $tag_command = $match[1]; - $tag_modifier = isset($match[2]) ? $match[2] : null; - $tag_args = isset($match[3]) ? $match[3] : null; - - if (preg_match('~^' . $this->_num_const_regexp . '|' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '$~', $tag_command)) { - /* tag name is a variable or object */ - $_return = $this->_parse_var_props($tag_command . $tag_modifier); - return "" . $this->_additional_newline; - } - - /* If the tag name is a registered object, we process it. */ - if (preg_match('~^\/?' . $this->_reg_obj_regexp . '$~', $tag_command)) { - return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier); - } - - switch ($tag_command) { - case 'include': - return $this->_compile_include_tag($tag_args); - - case 'include_php': - return $this->_compile_include_php_tag($tag_args); - - case 'if': - $this->_push_tag('if'); - return $this->_compile_if_tag($tag_args); - - case 'else': - list($_open_tag) = end($this->_tag_stack); - if ($_open_tag != 'if' && $_open_tag != 'elseif') - $this->_syntax_error('unexpected {else}', E_USER_ERROR, __FILE__, __LINE__); - else - $this->_push_tag('else'); - return ''; - - case 'elseif': - list($_open_tag) = end($this->_tag_stack); - if ($_open_tag != 'if' && $_open_tag != 'elseif') - $this->_syntax_error('unexpected {elseif}', E_USER_ERROR, __FILE__, __LINE__); - if ($_open_tag == 'if') - $this->_push_tag('elseif'); - return $this->_compile_if_tag($tag_args, true); - - case '/if': - $this->_pop_tag('if'); - return ''; - - case 'capture': - return $this->_compile_capture_tag(true, $tag_args); - - case '/capture': - return $this->_compile_capture_tag(false); - - case 'ldelim': - return $this->left_delimiter; - - case 'rdelim': - return $this->right_delimiter; - - case 'section': - $this->_push_tag('section'); - return $this->_compile_section_start($tag_args); - - case 'sectionelse': - $this->_push_tag('sectionelse'); - return ""; - break; - - case '/section': - $_open_tag = $this->_pop_tag('section'); - if ($_open_tag == 'sectionelse') - return ""; - else - return ""; - - case 'foreach': - $this->_push_tag('foreach'); - return $this->_compile_foreach_start($tag_args); - break; - - case 'foreachelse': - $this->_push_tag('foreachelse'); - return ""; - - case '/foreach': - $_open_tag = $this->_pop_tag('foreach'); - if ($_open_tag == 'foreachelse') - return ""; - else - return ""; - break; - - case 'strip': - case '/strip': - if (substr($tag_command, 0, 1)=='/') { - $this->_pop_tag('strip'); - if (--$this->_strip_depth==0) { /* outermost closing {/strip} */ - $this->_additional_newline = "\n"; - return '{' . $tag_command . '}'; - } - } else { - $this->_push_tag('strip'); - if ($this->_strip_depth++==0) { /* outermost opening {strip} */ - $this->_additional_newline = ""; - return '{' . $tag_command . '}'; - } - } - return ''; - - case 'php': - /* handle folded tags replaced by {php} */ - list(, $block) = each($this->_folded_blocks); - $this->_current_line_no += substr_count($block[0], "\n"); - /* the number of matched elements in the regexp in _compile_file() - determins the type of folded tag that was found */ - switch (count($block)) { - case 2: /* comment */ - return ''; - - case 3: /* literal */ - return ""\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline; - - case 4: /* php */ - if ($this->security && !$this->security_settings['PHP_TAGS']) { - $this->_syntax_error("(secure mode) php tags not permitted", E_USER_WARNING, __FILE__, __LINE__); - return; - } - return ''; - } - break; - - case 'insert': - return $this->_compile_insert_tag($tag_args); - - default: - if ($this->_compile_compiler_tag($tag_command, $tag_args, $output)) { - return $output; - } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) { - return $output; - } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) { - return $output; - } else { - $this->_syntax_error("unrecognized tag '$tag_command'", E_USER_ERROR, __FILE__, __LINE__); - } - - } - } - - - /** - * compile the custom compiler tag - * - * sets $output to the compiled custom compiler tag - * @param string $tag_command - * @param string $tag_args - * @param string $output - * @return boolean - */ - function _compile_compiler_tag($tag_command, $tag_args, &$output) - { - $found = false; - $have_function = true; - - /* - * First we check if the compiler function has already been registered - * or loaded from a plugin file. - */ - if (isset($this->_plugins['compiler'][$tag_command])) { - $found = true; - $plugin_func = $this->_plugins['compiler'][$tag_command][0]; - if (!is_callable($plugin_func)) { - $message = "compiler function '$tag_command' is not implemented"; - $have_function = false; - } - } - /* - * Otherwise we need to load plugin file and look for the function - * inside it. - */ - else if ($plugin_file = $this->_get_plugin_filepath('compiler', $tag_command)) { - $found = true; - - include_once $plugin_file; - - $plugin_func = 'smarty_compiler_' . $tag_command; - if (!is_callable($plugin_func)) { - $message = "plugin function $plugin_func() not found in $plugin_file\n"; - $have_function = false; - } else { - $this->_plugins['compiler'][$tag_command] = array($plugin_func, null, null, null, true); - } - } - - /* - * True return value means that we either found a plugin or a - * dynamically registered function. False means that we didn't and the - * compiler should now emit code to load custom function plugin for this - * tag. - */ - if ($found) { - if ($have_function) { - $output = call_user_func_array($plugin_func, array($tag_args, &$this)); - if($output != '') { - $output = '_push_cacheable_state('compiler', $tag_command) - . $output - . $this->_pop_cacheable_state('compiler', $tag_command) . ' ?>'; - } - } else { - $this->_syntax_error($message, E_USER_WARNING, __FILE__, __LINE__); - } - return true; - } else { - return false; - } - } - - - /** - * compile block function tag - * - * sets $output to compiled block function tag - * @param string $tag_command - * @param string $tag_args - * @param string $tag_modifier - * @param string $output - * @return boolean - */ - function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output) - { - if (substr($tag_command, 0, 1) == '/') { - $start_tag = false; - $tag_command = substr($tag_command, 1); - } else - $start_tag = true; - - $found = false; - $have_function = true; - - /* - * First we check if the block function has already been registered - * or loaded from a plugin file. - */ - if (isset($this->_plugins['block'][$tag_command])) { - $found = true; - $plugin_func = $this->_plugins['block'][$tag_command][0]; - if (!is_callable($plugin_func)) { - $message = "block function '$tag_command' is not implemented"; - $have_function = false; - } - } - /* - * Otherwise we need to load plugin file and look for the function - * inside it. - */ - else if ($plugin_file = $this->_get_plugin_filepath('block', $tag_command)) { - $found = true; - - include_once $plugin_file; - - $plugin_func = 'smarty_block_' . $tag_command; - if (!function_exists($plugin_func)) { - $message = "plugin function $plugin_func() not found in $plugin_file\n"; - $have_function = false; - } else { - $this->_plugins['block'][$tag_command] = array($plugin_func, null, null, null, true); - - } - } - - if (!$found) { - return false; - } else if (!$have_function) { - $this->_syntax_error($message, E_USER_WARNING, __FILE__, __LINE__); - return true; - } - - /* - * Even though we've located the plugin function, compilation - * happens only once, so the plugin will still need to be loaded - * at runtime for future requests. - */ - $this->_add_plugin('block', $tag_command); - - if ($start_tag) - $this->_push_tag($tag_command); - else - $this->_pop_tag($tag_command); - - if ($start_tag) { - $output = '_push_cacheable_state('block', $tag_command); - $attrs = $this->_parse_attrs($tag_args); - $_cache_attrs=''; - $arg_list = $this->_compile_arg_list('block', $tag_command, $attrs, $_cache_attrs); - $output .= "$_cache_attrs\$this->_tag_stack[] = array('$tag_command', array(".implode(',', $arg_list).')); '; - $output .= '$_block_repeat=true;' . $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);'; - $output .= 'while ($_block_repeat) { ob_start(); ?>'; - } else { - $output = '_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat)'; - if ($tag_modifier != '') { - $this->_parse_modifiers($_out_tag_text, $tag_modifier); - } - $output .= '$_block_repeat=false;echo ' . $_out_tag_text . '; } '; - $output .= " array_pop(\$this->_tag_stack); " . $this->_pop_cacheable_state('block', $tag_command) . '?>'; - } - - return true; - } - - - /** - * compile custom function tag - * - * @param string $tag_command - * @param string $tag_args - * @param string $tag_modifier - * @return string - */ - function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output) - { - $found = false; - $have_function = true; - - /* - * First we check if the custom function has already been registered - * or loaded from a plugin file. - */ - if (isset($this->_plugins['function'][$tag_command])) { - $found = true; - $plugin_func = $this->_plugins['function'][$tag_command][0]; - if (!is_callable($plugin_func)) { - $message = "custom function '$tag_command' is not implemented"; - $have_function = false; - } - } - /* - * Otherwise we need to load plugin file and look for the function - * inside it. - */ - else if ($plugin_file = $this->_get_plugin_filepath('function', $tag_command)) { - $found = true; - - include_once $plugin_file; - - $plugin_func = 'smarty_function_' . $tag_command; - if (!function_exists($plugin_func)) { - $message = "plugin function $plugin_func() not found in $plugin_file\n"; - $have_function = false; - } else { - $this->_plugins['function'][$tag_command] = array($plugin_func, null, null, null, true); - - } - } - - if (!$found) { - return false; - } else if (!$have_function) { - $this->_syntax_error($message, E_USER_WARNING, __FILE__, __LINE__); - return true; - } - - /* declare plugin to be loaded on display of the template that - we compile right now */ - $this->_add_plugin('function', $tag_command); - - $_cacheable_state = $this->_push_cacheable_state('function', $tag_command); - $attrs = $this->_parse_attrs($tag_args); - $_cache_attrs = ''; - $arg_list = $this->_compile_arg_list('function', $tag_command, $attrs, $_cache_attrs); - - $output = $this->_compile_plugin_call('function', $tag_command).'(array('.implode(',', $arg_list)."), \$this)"; - if($tag_modifier != '') { - $this->_parse_modifiers($output, $tag_modifier); - } - - if($output != '') { - $output = '_pop_cacheable_state('function', $tag_command) . "?>" . $this->_additional_newline; - } - - return true; - } - - /** - * compile a registered object tag - * - * @param string $tag_command - * @param array $attrs - * @param string $tag_modifier - * @return string - */ - function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier) - { - if (substr($tag_command, 0, 1) == '/') { - $start_tag = false; - $tag_command = substr($tag_command, 1); - } else { - $start_tag = true; - } - - list($object, $obj_comp) = explode('->', $tag_command); - - $arg_list = array(); - if(count($attrs)) { - $_assign_var = false; - foreach ($attrs as $arg_name => $arg_value) { - if($arg_name == 'assign') { - $_assign_var = $arg_value; - unset($attrs['assign']); - continue; - } - if (is_bool($arg_value)) - $arg_value = $arg_value ? 'true' : 'false'; - $arg_list[] = "'$arg_name' => $arg_value"; - } - } - - if($this->_reg_objects[$object][2]) { - // smarty object argument format - $args = "array(".implode(',', (array)$arg_list)."), \$this"; - } else { - // traditional argument format - $args = implode(',', array_values($attrs)); - if (empty($args)) { - $args = ''; - } - } - - $prefix = ''; - $postfix = ''; - $newline = ''; - if(!is_object($this->_reg_objects[$object][0])) { - $this->_trigger_fatal_error("registered '$object' is not an object" , $this->_current_file, $this->_current_line_no, __FILE__, __LINE__); - } elseif(!empty($this->_reg_objects[$object][1]) && !in_array($obj_comp, $this->_reg_objects[$object][1])) { - $this->_trigger_fatal_error("'$obj_comp' is not a registered component of object '$object'", $this->_current_file, $this->_current_line_no, __FILE__, __LINE__); - } elseif(method_exists($this->_reg_objects[$object][0], $obj_comp)) { - // method - if(in_array($obj_comp, $this->_reg_objects[$object][3])) { - // block method - if ($start_tag) { - $prefix = "\$this->_tag_stack[] = array('$obj_comp', $args); "; - $prefix .= "\$_block_repeat=true; \$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], null, \$this, \$_block_repeat); "; - $prefix .= "while (\$_block_repeat) { ob_start();"; - $return = null; - $postfix = ''; - } else { - $prefix = "\$_obj_block_content = ob_get_contents(); ob_end_clean(); \$_block_repeat=false;"; - $return = "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], \$_obj_block_content, \$this, \$_block_repeat)"; - $postfix = "} array_pop(\$this->_tag_stack);"; - } - } else { - // non-block method - $return = "\$this->_reg_objects['$object'][0]->$obj_comp($args)"; - } - } else { - // property - $return = "\$this->_reg_objects['$object'][0]->$obj_comp"; - } - - if($return != null) { - if($tag_modifier != '') { - $this->_parse_modifiers($return, $tag_modifier); - } - - if(!empty($_assign_var)) { - $output = "\$this->assign('" . $this->_dequote($_assign_var) ."', $return);"; - } else { - $output = 'echo ' . $return . ';'; - $newline = $this->_additional_newline; - } - } else { - $output = ''; - } - - return '" . $newline; - } - - /** - * Compile {insert ...} tag - * - * @param string $tag_args - * @return string - */ - function _compile_insert_tag($tag_args) - { - $attrs = $this->_parse_attrs($tag_args); - $name = $this->_dequote($attrs['name']); - - if (empty($name)) { - return $this->_syntax_error("missing insert name", E_USER_ERROR, __FILE__, __LINE__); - } - - if (!preg_match('~^\w+$~', $name)) { - return $this->_syntax_error("'insert: 'name' must be an insert function name", E_USER_ERROR, __FILE__, __LINE__); - } - - if (!empty($attrs['script'])) { - $delayed_loading = true; - } else { - $delayed_loading = false; - } - - foreach ($attrs as $arg_name => $arg_value) { - if (is_bool($arg_value)) - $arg_value = $arg_value ? 'true' : 'false'; - $arg_list[] = "'$arg_name' => $arg_value"; - } - - $this->_add_plugin('insert', $name, $delayed_loading); - - $_params = "array('args' => array(".implode(', ', (array)$arg_list)."))"; - - return "" . $this->_additional_newline; - } - - /** - * Compile {include ...} tag - * - * @param string $tag_args - * @return string - */ - function _compile_include_tag($tag_args) - { - $attrs = $this->_parse_attrs($tag_args); - $arg_list = array(); - - if (empty($attrs['file'])) { - $this->_syntax_error("missing 'file' attribute in include tag", E_USER_ERROR, __FILE__, __LINE__); - } - - foreach ($attrs as $arg_name => $arg_value) { - if ($arg_name == 'file') { - $include_file = $arg_value; - continue; - } else if ($arg_name == 'assign') { - $assign_var = $arg_value; - continue; - } - if (is_bool($arg_value)) - $arg_value = $arg_value ? 'true' : 'false'; - $arg_list[] = "'$arg_name' => $arg_value"; - } - - $output = '_tpl_vars;\n"; - - - $_params = "array('smarty_include_tpl_file' => " . $include_file . ", 'smarty_include_vars' => array(".implode(',', (array)$arg_list)."))"; - $output .= "\$this->_smarty_include($_params);\n" . - "\$this->_tpl_vars = \$_smarty_tpl_vars;\n" . - "unset(\$_smarty_tpl_vars);\n"; - - if (isset($assign_var)) { - $output .= "\$this->assign(" . $assign_var . ", ob_get_contents()); ob_end_clean();\n"; - } - - $output .= ' ?>'; - - return $output; - - } - - /** - * Compile {include ...} tag - * - * @param string $tag_args - * @return string - */ - function _compile_include_php_tag($tag_args) - { - $attrs = $this->_parse_attrs($tag_args); - - if (empty($attrs['file'])) { - $this->_syntax_error("missing 'file' attribute in include_php tag", E_USER_ERROR, __FILE__, __LINE__); - } - - $assign_var = (empty($attrs['assign'])) ? '' : $this->_dequote($attrs['assign']); - $once_var = (empty($attrs['once']) || $attrs['once']=='false') ? 'false' : 'true'; - - $arg_list = array(); - foreach($attrs as $arg_name => $arg_value) { - if($arg_name != 'file' AND $arg_name != 'once' AND $arg_name != 'assign') { - if(is_bool($arg_value)) - $arg_value = $arg_value ? 'true' : 'false'; - $arg_list[] = "'$arg_name' => $arg_value"; - } - } - - $_params = "array('smarty_file' => " . $attrs['file'] . ", 'smarty_assign' => '$assign_var', 'smarty_once' => $once_var, 'smarty_include_vars' => array(".implode(',', $arg_list)."))"; - - return "" . $this->_additional_newline; - } - - - /** - * Compile {section ...} tag - * - * @param string $tag_args - * @return string - */ - function _compile_section_start($tag_args) - { - $attrs = $this->_parse_attrs($tag_args); - $arg_list = array(); - - $output = '_syntax_error("missing section name", E_USER_ERROR, __FILE__, __LINE__); - } - - $output .= "unset(\$this->_sections[$section_name]);\n"; - $section_props = "\$this->_sections[$section_name]"; - - foreach ($attrs as $attr_name => $attr_value) { - switch ($attr_name) { - case 'loop': - $output .= "{$section_props}['loop'] = is_array(\$_loop=$attr_value) ? count(\$_loop) : max(0, (int)\$_loop); unset(\$_loop);\n"; - break; - - case 'show': - if (is_bool($attr_value)) - $show_attr_value = $attr_value ? 'true' : 'false'; - else - $show_attr_value = "(bool)$attr_value"; - $output .= "{$section_props}['show'] = $show_attr_value;\n"; - break; - - case 'name': - $output .= "{$section_props}['$attr_name'] = $attr_value;\n"; - break; - - case 'max': - case 'start': - $output .= "{$section_props}['$attr_name'] = (int)$attr_value;\n"; - break; - - case 'step': - $output .= "{$section_props}['$attr_name'] = ((int)$attr_value) == 0 ? 1 : (int)$attr_value;\n"; - break; - - default: - $this->_syntax_error("unknown section attribute - '$attr_name'", E_USER_ERROR, __FILE__, __LINE__); - break; - } - } - - if (!isset($attrs['show'])) - $output .= "{$section_props}['show'] = true;\n"; - - if (!isset($attrs['loop'])) - $output .= "{$section_props}['loop'] = 1;\n"; - - if (!isset($attrs['max'])) - $output .= "{$section_props}['max'] = {$section_props}['loop'];\n"; - else - $output .= "if ({$section_props}['max'] < 0)\n" . - " {$section_props}['max'] = {$section_props}['loop'];\n"; - - if (!isset($attrs['step'])) - $output .= "{$section_props}['step'] = 1;\n"; - - if (!isset($attrs['start'])) - $output .= "{$section_props}['start'] = {$section_props}['step'] > 0 ? 0 : {$section_props}['loop']-1;\n"; - else { - $output .= "if ({$section_props}['start'] < 0)\n" . - " {$section_props}['start'] = max({$section_props}['step'] > 0 ? 0 : -1, {$section_props}['loop'] + {$section_props}['start']);\n" . - "else\n" . - " {$section_props}['start'] = min({$section_props}['start'], {$section_props}['step'] > 0 ? {$section_props}['loop'] : {$section_props}['loop']-1);\n"; - } - - $output .= "if ({$section_props}['show']) {\n"; - if (!isset($attrs['start']) && !isset($attrs['step']) && !isset($attrs['max'])) { - $output .= " {$section_props}['total'] = {$section_props}['loop'];\n"; - } else { - $output .= " {$section_props}['total'] = min(ceil(({$section_props}['step'] > 0 ? {$section_props}['loop'] - {$section_props}['start'] : {$section_props}['start']+1)/abs({$section_props}['step'])), {$section_props}['max']);\n"; - } - $output .= " if ({$section_props}['total'] == 0)\n" . - " {$section_props}['show'] = false;\n" . - "} else\n" . - " {$section_props}['total'] = 0;\n"; - - $output .= "if ({$section_props}['show']):\n"; - $output .= " - for ({$section_props}['index'] = {$section_props}['start'], {$section_props}['iteration'] = 1; - {$section_props}['iteration'] <= {$section_props}['total']; - {$section_props}['index'] += {$section_props}['step'], {$section_props}['iteration']++):\n"; - $output .= "{$section_props}['rownum'] = {$section_props}['iteration'];\n"; - $output .= "{$section_props}['index_prev'] = {$section_props}['index'] - {$section_props}['step'];\n"; - $output .= "{$section_props}['index_next'] = {$section_props}['index'] + {$section_props}['step'];\n"; - $output .= "{$section_props}['first'] = ({$section_props}['iteration'] == 1);\n"; - $output .= "{$section_props}['last'] = ({$section_props}['iteration'] == {$section_props}['total']);\n"; - - $output .= "?>"; - - return $output; - } - - - /** - * Compile {foreach ...} tag. - * - * @param string $tag_args - * @return string - */ - function _compile_foreach_start($tag_args) - { - $attrs = $this->_parse_attrs($tag_args); - $arg_list = array(); - - if (empty($attrs['from'])) { - return $this->_syntax_error("foreach: missing 'from' attribute", E_USER_ERROR, __FILE__, __LINE__); - } - $from = $attrs['from']; - - if (empty($attrs['item'])) { - return $this->_syntax_error("foreach: missing 'item' attribute", E_USER_ERROR, __FILE__, __LINE__); - } - $item = $this->_dequote($attrs['item']); - if (!preg_match('~^\w+$~', $item)) { - return $this->_syntax_error("foreach: 'item' must be a variable name (literal string)", E_USER_ERROR, __FILE__, __LINE__); - } - - if (isset($attrs['key'])) { - $key = $this->_dequote($attrs['key']); - if (!preg_match('~^\w+$~', $key)) { - return $this->_syntax_error("foreach: 'key' must to be a variable name (literal string)", E_USER_ERROR, __FILE__, __LINE__); - } - $key_part = "\$this->_tpl_vars['$key'] => "; - } else { - $key = null; - $key_part = ''; - } - - if (isset($attrs['name'])) { - $name = $attrs['name']; - } else { - $name = null; - } - - $output = '_foreach[$name]"; - $output .= "{$foreach_props} = array('total' => count(\$_from), 'iteration' => 0);\n"; - $output .= "if ({$foreach_props}['total'] > 0):\n"; - $output .= " foreach (\$_from as $key_part\$this->_tpl_vars['$item']):\n"; - $output .= " {$foreach_props}['iteration']++;\n"; - } else { - $output .= "if (count(\$_from)):\n"; - $output .= " foreach (\$_from as $key_part\$this->_tpl_vars['$item']):\n"; - } - $output .= '?>'; - - return $output; - } - - - /** - * Compile {capture} .. {/capture} tags - * - * @param boolean $start true if this is the {capture} tag - * @param string $tag_args - * @return string - */ - - function _compile_capture_tag($start, $tag_args = '') - { - $attrs = $this->_parse_attrs($tag_args); - - if ($start) { - $buffer = isset($attrs['name']) ? $attrs['name'] : "'default'"; - $assign = isset($attrs['assign']) ? $attrs['assign'] : null; - $append = isset($attrs['append']) ? $attrs['append'] : null; - - $output = ""; - $this->_capture_stack[] = array($buffer, $assign, $append); - } else { - list($buffer, $assign, $append) = array_pop($this->_capture_stack); - $output = "_smarty_vars['capture'][$buffer] = ob_get_contents(); "; - if (isset($assign)) { - $output .= " \$this->assign($assign, ob_get_contents());"; - } - if (isset($append)) { - $output .= " \$this->append($append, ob_get_contents());"; - } - $output .= "ob_end_clean(); ?>"; - } - - return $output; - } - - /** - * Compile {if ...} tag - * - * @param string $tag_args - * @param boolean $elseif if true, uses elseif instead of if - * @return string - */ - function _compile_if_tag($tag_args, $elseif = false) - { - - /* Tokenize args for 'if' tag. */ - preg_match_all('~(?> - ' . $this->_obj_call_regexp . '(?:' . $this->_mod_regexp . '*)? | # valid object call - ' . $this->_var_regexp . '(?:' . $this->_mod_regexp . '*)? | # var or quoted string - \-?0[xX][0-9a-fA-F]+|\-?\d+(?:\.\d+)?|\.\d+|!==|===|==|!=|<>|<<|>>|<=|>=|\&\&|\|\||\(|\)|,|\!|\^|=|\&|\~|<|>|\||\%|\+|\-|\/|\*|\@ | # valid non-word token - \b\w+\b | # valid word token - \S+ # anything else - )~x', $tag_args, $match); - - $tokens = $match[0]; - - if(empty($tokens)) { - $_error_msg = $elseif ? "'elseif'" : "'if'"; - $_error_msg .= ' statement requires arguments'; - $this->_syntax_error($_error_msg, E_USER_ERROR, __FILE__, __LINE__); - } - - - // make sure we have balanced parenthesis - $token_count = array_count_values($tokens); - if(isset($token_count['(']) && $token_count['('] != $token_count[')']) { - $this->_syntax_error("unbalanced parenthesis in if statement", E_USER_ERROR, __FILE__, __LINE__); - } - - $is_arg_stack = array(); - - for ($i = 0; $i < count($tokens); $i++) { - - $token = &$tokens[$i]; - - switch (strtolower($token)) { - case '!': - case '%': - case '!==': - case '==': - case '===': - case '>': - case '<': - case '!=': - case '<>': - case '<<': - case '>>': - case '<=': - case '>=': - case '&&': - case '||': - case '|': - case '^': - case '&': - case '~': - case ')': - case ',': - case '+': - case '-': - case '*': - case '/': - case '@': - break; - - case 'eq': - $token = '=='; - break; - - case 'ne': - case 'neq': - $token = '!='; - break; - - case 'lt': - $token = '<'; - break; - - case 'le': - case 'lte': - $token = '<='; - break; - - case 'gt': - $token = '>'; - break; - - case 'ge': - case 'gte': - $token = '>='; - break; - - case 'and': - $token = '&&'; - break; - - case 'or': - $token = '||'; - break; - - case 'not': - $token = '!'; - break; - - case 'mod': - $token = '%'; - break; - - case '(': - array_push($is_arg_stack, $i); - break; - - case 'is': - /* If last token was a ')', we operate on the parenthesized - expression. The start of the expression is on the stack. - Otherwise, we operate on the last encountered token. */ - if ($tokens[$i-1] == ')') { - $is_arg_start = array_pop($is_arg_stack); - if ($is_arg_start != 0) { - if (preg_match('~^' . $this->_func_regexp . '$~', $tokens[$is_arg_start-1])) { - $is_arg_start--; - } - } - } else - $is_arg_start = $i-1; - /* Construct the argument for 'is' expression, so it knows - what to operate on. */ - $is_arg = implode(' ', array_slice($tokens, $is_arg_start, $i - $is_arg_start)); - - /* Pass all tokens from next one until the end to the - 'is' expression parsing function. The function will - return modified tokens, where the first one is the result - of the 'is' expression and the rest are the tokens it - didn't touch. */ - $new_tokens = $this->_parse_is_expr($is_arg, array_slice($tokens, $i+1)); - - /* Replace the old tokens with the new ones. */ - array_splice($tokens, $is_arg_start, count($tokens), $new_tokens); - - /* Adjust argument start so that it won't change from the - current position for the next iteration. */ - $i = $is_arg_start; - break; - - default: - if(preg_match('~^' . $this->_func_regexp . '$~', $token) ) { - // function call - if($this->security && - !in_array($token, $this->security_settings['IF_FUNCS'])) { - $this->_syntax_error("(secure mode) '$token' not allowed in if statement", E_USER_ERROR, __FILE__, __LINE__); - } - } elseif(preg_match('~^' . $this->_var_regexp . '$~', $token) && (strpos('+-*/^%&|', substr($token, -1)) === false) && isset($tokens[$i+1]) && $tokens[$i+1] == '(') { - // variable function call - $this->_syntax_error("variable function call '$token' not allowed in if statement", E_USER_ERROR, __FILE__, __LINE__); - } elseif(preg_match('~^' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '(?:' . $this->_mod_regexp . '*)$~', $token)) { - // object or variable - $token = $this->_parse_var_props($token); - } elseif(is_numeric($token)) { - // number, skip it - } else { - $this->_syntax_error("unidentified token '$token'", E_USER_ERROR, __FILE__, __LINE__); - } - break; - } - } - - if ($elseif) - return ''; - else - return ''; - } - - - function _compile_arg_list($type, $name, $attrs, &$cache_code) { - $arg_list = array(); - - if (isset($type) && isset($name) - && isset($this->_plugins[$type]) - && isset($this->_plugins[$type][$name]) - && empty($this->_plugins[$type][$name][4]) - && is_array($this->_plugins[$type][$name][5]) - ) { - /* we have a list of parameters that should be cached */ - $_cache_attrs = $this->_plugins[$type][$name][5]; - $_count = $this->_cache_attrs_count++; - $cache_code = "\$_cache_attrs =& \$this->_smarty_cache_attrs('$this->_cache_serial','$_count');"; - - } else { - /* no parameters are cached */ - $_cache_attrs = null; - } - - foreach ($attrs as $arg_name => $arg_value) { - if (is_bool($arg_value)) - $arg_value = $arg_value ? 'true' : 'false'; - if (is_null($arg_value)) - $arg_value = 'null'; - if ($_cache_attrs && in_array($arg_name, $_cache_attrs)) { - $arg_list[] = "'$arg_name' => (\$this->_cache_including) ? \$_cache_attrs['$arg_name'] : (\$_cache_attrs['$arg_name']=$arg_value)"; - } else { - $arg_list[] = "'$arg_name' => $arg_value"; - } - } - return $arg_list; - } - - /** - * Parse is expression - * - * @param string $is_arg - * @param array $tokens - * @return array - */ - function _parse_is_expr($is_arg, $tokens) - { - $expr_end = 0; - $negate_expr = false; - - if (($first_token = array_shift($tokens)) == 'not') { - $negate_expr = true; - $expr_type = array_shift($tokens); - } else - $expr_type = $first_token; - - switch ($expr_type) { - case 'even': - if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "!(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))"; - } else - $expr = "!(1 & $is_arg)"; - break; - - case 'odd': - if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))"; - } else - $expr = "(1 & $is_arg)"; - break; - - case 'div': - if (@$tokens[$expr_end] == 'by') { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "!($is_arg % " . $this->_parse_var_props($expr_arg) . ")"; - } else { - $this->_syntax_error("expecting 'by' after 'div'", E_USER_ERROR, __FILE__, __LINE__); - } - break; - - default: - $this->_syntax_error("unknown 'is' expression - '$expr_type'", E_USER_ERROR, __FILE__, __LINE__); - break; - } - - if ($negate_expr) { - $expr = "!($expr)"; - } - - array_splice($tokens, 0, $expr_end, $expr); - - return $tokens; - } - - - /** - * Parse attribute string - * - * @param string $tag_args - * @return array - */ - function _parse_attrs($tag_args) - { - - /* Tokenize tag attributes. */ - preg_match_all('~(?:' . $this->_obj_call_regexp . '|' . $this->_qstr_regexp . ' | (?>[^"\'=\s]+) - )+ | - [=] - ~x', $tag_args, $match); - $tokens = $match[0]; - - $attrs = array(); - /* Parse state: - 0 - expecting attribute name - 1 - expecting '=' - 2 - expecting attribute value (not '=') */ - $state = 0; - - foreach ($tokens as $token) { - switch ($state) { - case 0: - /* If the token is a valid identifier, we set attribute name - and go to state 1. */ - if (preg_match('~^\w+$~', $token)) { - $attr_name = $token; - $state = 1; - } else - $this->_syntax_error("invalid attribute name: '$token'", E_USER_ERROR, __FILE__, __LINE__); - break; - - case 1: - /* If the token is '=', then we go to state 2. */ - if ($token == '=') { - $state = 2; - } else - $this->_syntax_error("expecting '=' after attribute name '$last_token'", E_USER_ERROR, __FILE__, __LINE__); - break; - - case 2: - /* If token is not '=', we set the attribute value and go to - state 0. */ - if ($token != '=') { - /* We booleanize the token if it's a non-quoted possible - boolean value. */ - if (preg_match('~^(on|yes|true)$~', $token)) { - $token = 'true'; - } else if (preg_match('~^(off|no|false)$~', $token)) { - $token = 'false'; - } else if ($token == 'null') { - $token = 'null'; - } else if (preg_match('~^' . $this->_num_const_regexp . '|0[xX][0-9a-fA-F]+$~', $token)) { - /* treat integer literally */ - } else if (!preg_match('~^' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '(?:' . $this->_mod_regexp . ')*$~', $token)) { - /* treat as a string, double-quote it escaping quotes */ - $token = '"'.addslashes($token).'"'; - } - - $attrs[$attr_name] = $token; - $state = 0; - } else - $this->_syntax_error("'=' cannot be an attribute value", E_USER_ERROR, __FILE__, __LINE__); - break; - } - $last_token = $token; - } - - if($state != 0) { - if($state == 1) { - $this->_syntax_error("expecting '=' after attribute name '$last_token'", E_USER_ERROR, __FILE__, __LINE__); - } else { - $this->_syntax_error("missing attribute value", E_USER_ERROR, __FILE__, __LINE__); - } - } - - $this->_parse_vars_props($attrs); - - return $attrs; - } - - /** - * compile multiple variables and section properties tokens into - * PHP code - * - * @param array $tokens - */ - function _parse_vars_props(&$tokens) - { - foreach($tokens as $key => $val) { - $tokens[$key] = $this->_parse_var_props($val); - } - } - - /** - * compile single variable and section properties token into - * PHP code - * - * @param string $val - * @param string $tag_attrs - * @return string - */ - function _parse_var_props($val) - { - $val = trim($val); - - if(preg_match('~^(' . $this->_obj_call_regexp . '|' . $this->_dvar_regexp . ')(' . $this->_mod_regexp . '*)$~', $val, $match)) { - // $ variable or object - $return = $this->_parse_var($match[1]); - $modifiers = $match[2]; - if (!empty($this->default_modifiers) && !preg_match('~(^|\|)smarty:nodefaults($|\|)~',$modifiers)) { - $_default_mod_string = implode('|',(array)$this->default_modifiers); - $modifiers = empty($modifiers) ? $_default_mod_string : $_default_mod_string . '|' . $modifiers; - } - $this->_parse_modifiers($return, $modifiers); - return $return; - } elseif (preg_match('~^' . $this->_db_qstr_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) { - // double quoted text - preg_match('~^(' . $this->_db_qstr_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match); - $return = $this->_expand_quoted_text($match[1]); - if($match[2] != '') { - $this->_parse_modifiers($return, $match[2]); - } - return $return; - } - elseif(preg_match('~^' . $this->_num_const_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) { - // numerical constant - preg_match('~^(' . $this->_num_const_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match); - if($match[2] != '') { - $this->_parse_modifiers($match[1], $match[2]); - return $match[1]; - } - } - elseif(preg_match('~^' . $this->_si_qstr_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) { - // single quoted text - preg_match('~^(' . $this->_si_qstr_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match); - if($match[2] != '') { - $this->_parse_modifiers($match[1], $match[2]); - return $match[1]; - } - } - elseif(preg_match('~^' . $this->_cvar_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) { - // config var - return $this->_parse_conf_var($val); - } - elseif(preg_match('~^' . $this->_svar_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) { - // section var - return $this->_parse_section_prop($val); - } - elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) { - // literal string - return $this->_expand_quoted_text('"' . strtr($val, array('\\' => '\\\\', '"' => '\\"')) .'"'); - } - return $val; - } - - /** - * expand quoted text with embedded variables - * - * @param string $var_expr - * @return string - */ - function _expand_quoted_text($var_expr) - { - // if contains unescaped $, expand it - if(preg_match_all('~(?:\`(?_dvar_guts_regexp . '(?:' . $this->_obj_ext_regexp . ')*\`)|(?:(?_parse_var(str_replace('`','',$_var)) . ')."'; - } - $var_expr = strtr($var_expr, $_replace); - $_return = preg_replace('~\.""|(?_dvar_math_regexp.'|'.$this->_qstr_regexp.')~', $var_expr, -1, PREG_SPLIT_DELIM_CAPTURE); - - if(count($_math_vars) > 1) { - $_first_var = ""; - $_complete_var = ""; - $_output = ""; - // simple check if there is any math, to stop recursion (due to modifiers with "xx % yy" as parameter) - foreach($_math_vars as $_k => $_math_var) { - $_math_var = $_math_vars[$_k]; - - if(!empty($_math_var) || is_numeric($_math_var)) { - // hit a math operator, so process the stuff which came before it - if(preg_match('~^' . $this->_dvar_math_regexp . '$~', $_math_var)) { - $_has_math = true; - if(!empty($_complete_var) || is_numeric($_complete_var)) { - $_output .= $this->_parse_var($_complete_var); - } - - // just output the math operator to php - $_output .= $_math_var; - - if(empty($_first_var)) - $_first_var = $_complete_var; - - $_complete_var = ""; - } else { - $_complete_var .= $_math_var; - } - } - } - if($_has_math) { - if(!empty($_complete_var) || is_numeric($_complete_var)) - $_output .= $this->_parse_var($_complete_var); - - // get the modifiers working (only the last var from math + modifier is left) - $var_expr = $_complete_var; - } - } - - // prevent cutting of first digit in the number (we _definitly_ got a number if the first char is a digit) - if(is_numeric(substr($var_expr, 0, 1))) - $_var_ref = $var_expr; - else - $_var_ref = substr($var_expr, 1); - - if(!$_has_math) { - - // get [foo] and .foo and ->foo and (...) pieces - preg_match_all('~(?:^\w+)|' . $this->_obj_params_regexp . '|(?:' . $this->_var_bracket_regexp . ')|->\$?\w+|\.\$?\w+|\S+~', $_var_ref, $match); - - $_indexes = $match[0]; - $_var_name = array_shift($_indexes); - - /* Handle $smarty.* variable references as a special case. */ - if ($_var_name == 'smarty') { - /* - * If the reference could be compiled, use the compiled output; - * otherwise, fall back on the $smarty variable generated at - * run-time. - */ - if (($smarty_ref = $this->_compile_smarty_ref($_indexes)) !== null) { - $_output = $smarty_ref; - } else { - $_var_name = substr(array_shift($_indexes), 1); - $_output = "\$this->_smarty_vars['$_var_name']"; - } - } elseif(is_numeric($_var_name) && is_numeric(substr($var_expr, 0, 1))) { - // because . is the operator for accessing arrays thru inidizes we need to put it together again for floating point numbers - if(count($_indexes) > 0) - { - $_var_name .= implode("", $_indexes); - $_indexes = array(); - } - $_output = $_var_name; - } else { - $_output = "\$this->_tpl_vars['$_var_name']"; - } - - foreach ($_indexes as $_index) { - if (substr($_index, 0, 1) == '[') { - $_index = substr($_index, 1, -1); - if (is_numeric($_index)) { - $_output .= "[$_index]"; - } elseif (substr($_index, 0, 1) == '$') { - if (strpos($_index, '.') !== false) { - $_output .= '[' . $this->_parse_var($_index) . ']'; - } else { - $_output .= "[\$this->_tpl_vars['" . substr($_index, 1) . "']]"; - } - } else { - $_var_parts = explode('.', $_index); - $_var_section = $_var_parts[0]; - $_var_section_prop = isset($_var_parts[1]) ? $_var_parts[1] : 'index'; - $_output .= "[\$this->_sections['$_var_section']['$_var_section_prop']]"; - } - } else if (substr($_index, 0, 1) == '.') { - if (substr($_index, 1, 1) == '$') - $_output .= "[\$this->_tpl_vars['" . substr($_index, 2) . "']]"; - else - $_output .= "['" . substr($_index, 1) . "']"; - } else if (substr($_index,0,2) == '->') { - if(substr($_index,2,2) == '__') { - $this->_syntax_error('call to internal object members is not allowed', E_USER_ERROR, __FILE__, __LINE__); - } elseif($this->security && substr($_index, 2, 1) == '_') { - $this->_syntax_error('(secure) call to private object member is not allowed', E_USER_ERROR, __FILE__, __LINE__); - } elseif (substr($_index, 2, 1) == '$') { - if ($this->security) { - $this->_syntax_error('(secure) call to dynamic object member is not allowed', E_USER_ERROR, __FILE__, __LINE__); - } else { - $_output .= '->{(($_var=$this->_tpl_vars[\''.substr($_index,3).'\']) && substr($_var,0,2)!=\'__\') ? $_var : $this->trigger_error("cannot access property \\"$_var\\"")}'; - } - } else { - $_output .= $_index; - } - } elseif (substr($_index, 0, 1) == '(') { - $_index = $this->_parse_parenth_args($_index); - $_output .= $_index; - } else { - $_output .= $_index; - } - } - } - - return $_output; - } - - /** - * parse arguments in function call parenthesis - * - * @param string $parenth_args - * @return string - */ - function _parse_parenth_args($parenth_args) - { - preg_match_all('~' . $this->_param_regexp . '~',$parenth_args, $match); - $orig_vals = $match = $match[0]; - $this->_parse_vars_props($match); - $replace = array(); - for ($i = 0, $count = count($match); $i < $count; $i++) { - $replace[$orig_vals[$i]] = $match[$i]; - } - return strtr($parenth_args, $replace); - } - - /** - * parse configuration variable expression into PHP code - * - * @param string $conf_var_expr - */ - function _parse_conf_var($conf_var_expr) - { - $parts = explode('|', $conf_var_expr, 2); - $var_ref = $parts[0]; - $modifiers = isset($parts[1]) ? $parts[1] : ''; - - $var_name = substr($var_ref, 1, -1); - - $output = "\$this->_config[0]['vars']['$var_name']"; - - $this->_parse_modifiers($output, $modifiers); - - return $output; - } - - /** - * parse section property expression into PHP code - * - * @param string $section_prop_expr - * @return string - */ - function _parse_section_prop($section_prop_expr) - { - $parts = explode('|', $section_prop_expr, 2); - $var_ref = $parts[0]; - $modifiers = isset($parts[1]) ? $parts[1] : ''; - - preg_match('!%(\w+)\.(\w+)%!', $var_ref, $match); - $section_name = $match[1]; - $prop_name = $match[2]; - - $output = "\$this->_sections['$section_name']['$prop_name']"; - - $this->_parse_modifiers($output, $modifiers); - - return $output; - } - - - /** - * parse modifier chain into PHP code - * - * sets $output to parsed modified chain - * @param string $output - * @param string $modifier_string - */ - function _parse_modifiers(&$output, $modifier_string) - { - preg_match_all('~\|(@?\w+)((?>:(?:'. $this->_qstr_regexp . '|[^|]+))*)~', '|' . $modifier_string, $_match); - list(, $_modifiers, $modifier_arg_strings) = $_match; - - for ($_i = 0, $_for_max = count($_modifiers); $_i < $_for_max; $_i++) { - $_modifier_name = $_modifiers[$_i]; - - if($_modifier_name == 'smarty') { - // skip smarty modifier - continue; - } - - preg_match_all('~:(' . $this->_qstr_regexp . '|[^:]+)~', $modifier_arg_strings[$_i], $_match); - $_modifier_args = $_match[1]; - - if (substr($_modifier_name, 0, 1) == '@') { - $_map_array = false; - $_modifier_name = substr($_modifier_name, 1); - } else { - $_map_array = true; - } - - if (empty($this->_plugins['modifier'][$_modifier_name]) - && !$this->_get_plugin_filepath('modifier', $_modifier_name) - && function_exists($_modifier_name)) { - if ($this->security && !in_array($_modifier_name, $this->security_settings['MODIFIER_FUNCS'])) { - $this->_trigger_fatal_error("[plugin] (secure mode) modifier '$_modifier_name' is not allowed" , $this->_current_file, $this->_current_line_no, __FILE__, __LINE__); - } else { - $this->_plugins['modifier'][$_modifier_name] = array($_modifier_name, null, null, false); - } - } - $this->_add_plugin('modifier', $_modifier_name); - - $this->_parse_vars_props($_modifier_args); - - if($_modifier_name == 'default') { - // supress notifications of default modifier vars and args - if(substr($output, 0, 1) == '$') { - $output = '@' . $output; - } - if(isset($_modifier_args[0]) && substr($_modifier_args[0], 0, 1) == '$') { - $_modifier_args[0] = '@' . $_modifier_args[0]; - } - } - if (count($_modifier_args) > 0) - $_modifier_args = ', '.implode(', ', $_modifier_args); - else - $_modifier_args = ''; - - if ($_map_array) { - $output = "((is_array(\$_tmp=$output)) ? \$this->_run_mod_handler('$_modifier_name', true, \$_tmp$_modifier_args) : " . $this->_compile_plugin_call('modifier', $_modifier_name) . "(\$_tmp$_modifier_args))"; - - } else { - - $output = $this->_compile_plugin_call('modifier', $_modifier_name)."($output$_modifier_args)"; - - } - } - } - - - /** - * add plugin - * - * @param string $type - * @param string $name - * @param boolean? $delayed_loading - */ - function _add_plugin($type, $name, $delayed_loading = null) - { - if (!isset($this->_plugin_info[$type])) { - $this->_plugin_info[$type] = array(); - } - if (!isset($this->_plugin_info[$type][$name])) { - $this->_plugin_info[$type][$name] = array($this->_current_file, - $this->_current_line_no, - $delayed_loading); - } - } - - - /** - * Compiles references of type $smarty.foo - * - * @param string $indexes - * @return string - */ - function _compile_smarty_ref(&$indexes) - { - /* Extract the reference name. */ - $_ref = substr($indexes[0], 1); - foreach($indexes as $_index_no=>$_index) { - if (substr($_index, 0, 1) != '.' && $_index_no<2 || !preg_match('~^(\.|\[|->)~', $_index)) { - $this->_syntax_error('$smarty' . implode('', array_slice($indexes, 0, 2)) . ' is an invalid reference', E_USER_ERROR, __FILE__, __LINE__); - } - } - - switch ($_ref) { - case 'now': - $compiled_ref = 'time()'; - $_max_index = 1; - break; - - case 'foreach': - array_shift($indexes); - $_var = $this->_parse_var_props(substr($indexes[0], 1)); - $_propname = substr($indexes[1], 1); - $_max_index = 1; - switch ($_propname) { - case 'index': - array_shift($indexes); - $compiled_ref = "(\$this->_foreach[$_var]['iteration']-1)"; - break; - - case 'first': - array_shift($indexes); - $compiled_ref = "(\$this->_foreach[$_var]['iteration'] <= 1)"; - break; - - case 'last': - array_shift($indexes); - $compiled_ref = "(\$this->_foreach[$_var]['iteration'] == \$this->_foreach[$_var]['total'])"; - break; - - case 'show': - array_shift($indexes); - $compiled_ref = "(\$this->_foreach[$_var]['total'] > 0)"; - break; - - default: - unset($_max_index); - $compiled_ref = "\$this->_foreach[$_var]"; - } - break; - - case 'section': - array_shift($indexes); - $_var = $this->_parse_var_props(substr($indexes[0], 1)); - $compiled_ref = "\$this->_sections[$_var]"; - break; - - case 'get': - if ($this->security && !$this->security_settings['ALLOW_SUPER_GLOBALS']) { - $this->_syntax_error("(secure mode) super global access not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - $compiled_ref = "\$_GET"; - break; - - case 'post': - if ($this->security && !$this->security_settings['ALLOW_SUPER_GLOBALS']) { - $this->_syntax_error("(secure mode) super global access not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - $compiled_ref = "\$_POST"; - break; - - case 'cookies': - if ($this->security && !$this->security_settings['ALLOW_SUPER_GLOBALS']) { - $this->_syntax_error("(secure mode) super global access not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - $compiled_ref = "\$_COOKIE"; - break; - - case 'env': - if ($this->security && !$this->security_settings['ALLOW_SUPER_GLOBALS']) { - $this->_syntax_error("(secure mode) super global access not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - $compiled_ref = "\$_ENV"; - break; - - case 'server': - if ($this->security && !$this->security_settings['ALLOW_SUPER_GLOBALS']) { - $this->_syntax_error("(secure mode) super global access not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - $compiled_ref = "\$_SERVER"; - break; - - case 'session': - if ($this->security && !$this->security_settings['ALLOW_SUPER_GLOBALS']) { - $this->_syntax_error("(secure mode) super global access not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - $compiled_ref = "\$_SESSION"; - break; - - /* - * These cases are handled either at run-time or elsewhere in the - * compiler. - */ - case 'request': - if ($this->security && !$this->security_settings['ALLOW_SUPER_GLOBALS']) { - $this->_syntax_error("(secure mode) super global access not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - if ($this->request_use_auto_globals) { - $compiled_ref = "\$_REQUEST"; - break; - } else { - $this->_init_smarty_vars = true; - } - return null; - - case 'capture': - return null; - - case 'template': - $compiled_ref = "'$this->_current_file'"; - $_max_index = 1; - break; - - case 'version': - $compiled_ref = "'$this->_version'"; - $_max_index = 1; - break; - - case 'const': - if ($this->security && !$this->security_settings['ALLOW_CONSTANTS']) { - $this->_syntax_error("(secure mode) constants not permitted", - E_USER_WARNING, __FILE__, __LINE__); - return; - } - array_shift($indexes); - if (preg_match('!^\.\w+$!', $indexes[0])) { - $compiled_ref = '@' . substr($indexes[0], 1); - } else { - $_val = $this->_parse_var_props(substr($indexes[0], 1)); - $compiled_ref = '@constant(' . $_val . ')'; - } - $_max_index = 1; - break; - - case 'config': - $compiled_ref = "\$this->_config[0]['vars']"; - $_max_index = 3; - break; - - case 'ldelim': - $compiled_ref = "'$this->left_delimiter'"; - break; - - case 'rdelim': - $compiled_ref = "'$this->right_delimiter'"; - break; - - default: - $this->_syntax_error('$smarty.' . $_ref . ' is an unknown reference', E_USER_ERROR, __FILE__, __LINE__); - break; - } - - if (isset($_max_index) && count($indexes) > $_max_index) { - $this->_syntax_error('$smarty' . implode('', $indexes) .' is an invalid reference', E_USER_ERROR, __FILE__, __LINE__); - } - - array_shift($indexes); - return $compiled_ref; - } - - /** - * compiles call to plugin of type $type with name $name - * returns a string containing the function-name or method call - * without the paramter-list that would have follow to make the - * call valid php-syntax - * - * @param string $type - * @param string $name - * @return string - */ - function _compile_plugin_call($type, $name) { - if (isset($this->_plugins[$type][$name])) { - /* plugin loaded */ - if (is_array($this->_plugins[$type][$name][0])) { - return ((is_object($this->_plugins[$type][$name][0][0])) ? - "\$this->_plugins['$type']['$name'][0][0]->" /* method callback */ - : (string)($this->_plugins[$type][$name][0][0]).'::' /* class callback */ - ). $this->_plugins[$type][$name][0][1]; - - } else { - /* function callback */ - return $this->_plugins[$type][$name][0]; - - } - } else { - /* plugin not loaded -> auto-loadable-plugin */ - return 'smarty_'.$type.'_'.$name; - - } - } - - /** - * load pre- and post-filters - */ - function _load_filters() - { - if (count($this->_plugins['prefilter']) > 0) { - foreach ($this->_plugins['prefilter'] as $filter_name => $prefilter) { - if ($prefilter === false) { - unset($this->_plugins['prefilter'][$filter_name]); - $_params = array('plugins' => array(array('prefilter', $filter_name, null, null, false))); - require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); - smarty_core_load_plugins($_params, $this); - } - } - } - if (count($this->_plugins['postfilter']) > 0) { - foreach ($this->_plugins['postfilter'] as $filter_name => $postfilter) { - if ($postfilter === false) { - unset($this->_plugins['postfilter'][$filter_name]); - $_params = array('plugins' => array(array('postfilter', $filter_name, null, null, false))); - require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); - smarty_core_load_plugins($_params, $this); - } - } - } - } - - - /** - * Quote subpattern references - * - * @param string $string - * @return string - */ - function _quote_replace($string) - { - return strtr($string, array('\\' => '\\\\', '$' => '\\$')); - } - - /** - * display Smarty syntax error - * - * @param string $error_msg - * @param integer $error_type - * @param string $file - * @param integer $line - */ - function _syntax_error($error_msg, $error_type = E_USER_ERROR, $file=null, $line=null) - { - $this->_trigger_fatal_error("syntax error: $error_msg", $this->_current_file, $this->_current_line_no, $file, $line, $error_type); - } - - - /** - * check if the compilation changes from cacheable to - * non-cacheable state with the beginning of the current - * plugin. return php-code to reflect the transition. - * @return string - */ - function _push_cacheable_state($type, $name) { - $_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4]; - if ($_cacheable - || 0<$this->_cacheable_state++) return ''; - if (!isset($this->_cache_serial)) $this->_cache_serial = md5(uniqid('Smarty')); - $_ret = 'if ($this->caching && !$this->_cache_including): echo \'{nocache:' - . $this->_cache_serial . '#' . $this->_nocache_count - . '}\'; endif;'; - return $_ret; - } - - - /** - * check if the compilation changes from non-cacheable to - * cacheable state with the end of the current plugin return - * php-code to reflect the transition. - * @return string - */ - function _pop_cacheable_state($type, $name) { - $_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4]; - if ($_cacheable - || --$this->_cacheable_state>0) return ''; - return 'if ($this->caching && !$this->_cache_including): echo \'{/nocache:' - . $this->_cache_serial . '#' . ($this->_nocache_count++) - . '}\'; endif;'; - } - - - /** - * push opening tag-name, file-name and line-number on the tag-stack - * @param string the opening tag's name - */ - function _push_tag($open_tag) - { - array_push($this->_tag_stack, array($open_tag, $this->_current_line_no)); - } - - /** - * pop closing tag-name - * raise an error if this stack-top doesn't match with the closing tag - * @param string the closing tag's name - * @return string the opening tag's name - */ - function _pop_tag($close_tag) - { - $message = ''; - if (count($this->_tag_stack)>0) { - list($_open_tag, $_line_no) = array_pop($this->_tag_stack); - if ($close_tag == $_open_tag) { - return $_open_tag; - } - if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) { - return $this->_pop_tag($close_tag); - } - if ($close_tag == 'section' && $_open_tag == 'sectionelse') { - $this->_pop_tag($close_tag); - return $_open_tag; - } - if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') { - $this->_pop_tag($close_tag); - return $_open_tag; - } - if ($_open_tag == 'else' || $_open_tag == 'elseif') { - $_open_tag = 'if'; - } elseif ($_open_tag == 'sectionelse') { - $_open_tag = 'section'; - } elseif ($_open_tag == 'foreachelse') { - $_open_tag = 'foreach'; - } - $message = " expected {/$_open_tag} (opened line $_line_no)."; - } - $this->_syntax_error("mismatched tag {/$close_tag}.$message", - E_USER_ERROR, __FILE__, __LINE__); - } - -} - -/** - * compare to values by their string length - * - * @access private - * @param string $a - * @param string $b - * @return 0|-1|1 - */ -function _smarty_sort_length($a, $b) -{ - if($a == $b) - return 0; - - if(strlen($a) == strlen($b)) - return ($a > $b) ? -1 : 1; - - return (strlen($a) > strlen($b)) ? -1 : 1; -} - - -/* vim: set et: */ - -?> diff --git a/trunk/libs/debug.tpl b/trunk/libs/debug.tpl deleted file mode 100644 index c05ef5d0..00000000 --- a/trunk/libs/debug.tpl +++ /dev/null @@ -1,157 +0,0 @@ -{* Smarty *} -{* debug.tpl, last updated version 2.1.0 *} -{assign_debug_info} -{capture assign=debug_output} - - - - Smarty Debug Console -{literal} - -{/literal} - - - -

      Smarty Debug Console

      - -

      included templates & config files (load time in seconds)

      - -
      -{section name=templates loop=$_debug_tpls} - {section name=indent loop=$_debug_tpls[templates].depth}   {/section} - - {$_debug_tpls[templates].filename|escape:html} - {if isset($_debug_tpls[templates].exec_time)} - - ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}) - {if %templates.index% eq 0}(total){/if} - - {/if} -
      -{sectionelse} -

      no templates included

      -{/section} -
      - -

      assigned template variables

      - - - {section name=vars loop=$_debug_keys} - - - - {sectionelse} - - {/section} -
      {ldelim}${$_debug_keys[vars]|escape:'html'}{rdelim}{$_debug_vals[vars]|@debug_print_var}

      no template variables assigned

      - -

      assigned config file variables (outer template scope)

      - - - {section name=config_vars loop=$_debug_config_keys} - - - - {sectionelse} - - {/section} -
      {ldelim}#{$_debug_config_keys[config_vars]|escape:'html'}#{rdelim}{$_debug_config_vals[config_vars]|@debug_print_var}

      no config vars assigned

      - - -{/capture} -{if isset($_smarty_debug_output) and $_smarty_debug_output eq "html"} - {$debug_output} -{else} - -{/if} \ No newline at end of file diff --git a/trunk/libs/internals/core.assemble_plugin_filepath.php b/trunk/libs/internals/core.assemble_plugin_filepath.php deleted file mode 100644 index 690d3ddb..00000000 --- a/trunk/libs/internals/core.assemble_plugin_filepath.php +++ /dev/null @@ -1,67 +0,0 @@ -plugins_dir as $_plugin_dir) { - - $_plugin_filepath = $_plugin_dir . DIRECTORY_SEPARATOR . $_plugin_filename; - - // see if path is relative - if (!preg_match("/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/", $_plugin_dir)) { - $_relative_paths[] = $_plugin_dir; - // relative path, see if it is in the SMARTY_DIR - if (@is_readable(SMARTY_DIR . $_plugin_filepath)) { - $_return = SMARTY_DIR . $_plugin_filepath; - break; - } - } - // try relative to cwd (or absolute) - if (@is_readable($_plugin_filepath)) { - $_return = $_plugin_filepath; - break; - } - } - - if($_return === false) { - // still not found, try PHP include_path - if(isset($_relative_paths)) { - foreach ((array)$_relative_paths as $_plugin_dir) { - - $_plugin_filepath = $_plugin_dir . DIRECTORY_SEPARATOR . $_plugin_filename; - - $_params = array('file_path' => $_plugin_filepath); - require_once(SMARTY_CORE_DIR . 'core.get_include_path.php'); - if(smarty_core_get_include_path($_params, $smarty)) { - $_return = $_params['new_file_path']; - break; - } - } - } - } - $_filepaths_cache[$_plugin_filename] = $_return; - return $_return; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.assign_smarty_interface.php b/trunk/libs/internals/core.assign_smarty_interface.php deleted file mode 100644 index 7e65a73e..00000000 --- a/trunk/libs/internals/core.assign_smarty_interface.php +++ /dev/null @@ -1,43 +0,0 @@ - - * Name: assign_smarty_interface
      - * Purpose: assign the $smarty interface variable - * @param array Format: null - * @param Smarty - */ -function smarty_core_assign_smarty_interface($params, &$smarty) -{ - if (isset($smarty->_smarty_vars) && isset($smarty->_smarty_vars['request'])) { - return; - } - - $_globals_map = array('g' => 'HTTP_GET_VARS', - 'p' => 'HTTP_POST_VARS', - 'c' => 'HTTP_COOKIE_VARS', - 's' => 'HTTP_SERVER_VARS', - 'e' => 'HTTP_ENV_VARS'); - - $_smarty_vars_request = array(); - - foreach (preg_split('!!', strtolower($smarty->request_vars_order)) as $_c) { - if (isset($_globals_map[$_c])) { - $_smarty_vars_request = array_merge($_smarty_vars_request, $GLOBALS[$_globals_map[$_c]]); - } - } - $_smarty_vars_request = @array_merge($_smarty_vars_request, $GLOBALS['HTTP_SESSION_VARS']); - - $smarty->_smarty_vars['request'] = $_smarty_vars_request; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.create_dir_structure.php b/trunk/libs/internals/core.create_dir_structure.php deleted file mode 100644 index 3eecc497..00000000 --- a/trunk/libs/internals/core.create_dir_structure.php +++ /dev/null @@ -1,79 +0,0 @@ -_dir_perms) && !is_dir($_new_dir)) { - $smarty->trigger_error("problem creating directory '" . $_new_dir . "'"); - return false; - } - $_new_dir .= '/'; - } - } -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.display_debug_console.php b/trunk/libs/internals/core.display_debug_console.php deleted file mode 100644 index 1a80f390..00000000 --- a/trunk/libs/internals/core.display_debug_console.php +++ /dev/null @@ -1,61 +0,0 @@ - - * Name: display_debug_console
      - * Purpose: display the javascript debug console window - * @param array Format: null - * @param Smarty - */ -function smarty_core_display_debug_console($params, &$smarty) -{ - // we must force compile the debug template in case the environment - // changed between separate applications. - - if(empty($smarty->debug_tpl)) { - // set path to debug template from SMARTY_DIR - $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl'; - if($smarty->security && is_file($smarty->debug_tpl)) { - $smarty->secure_dir[] = realpath($smarty->debug_tpl); - } - $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl'; - } - - $_ldelim_orig = $smarty->left_delimiter; - $_rdelim_orig = $smarty->right_delimiter; - - $smarty->left_delimiter = '{'; - $smarty->right_delimiter = '}'; - - $_compile_id_orig = $smarty->_compile_id; - $smarty->_compile_id = null; - - $_compile_path = $smarty->_get_compile_path($smarty->debug_tpl); - if ($smarty->_compile_resource($smarty->debug_tpl, $_compile_path)) - { - ob_start(); - $smarty->_include($_compile_path); - $_results = ob_get_contents(); - ob_end_clean(); - } else { - $_results = ''; - } - - $smarty->_compile_id = $_compile_id_orig; - - $smarty->left_delimiter = $_ldelim_orig; - $smarty->right_delimiter = $_rdelim_orig; - - return $_results; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.get_include_path.php b/trunk/libs/internals/core.get_include_path.php deleted file mode 100644 index 43432412..00000000 --- a/trunk/libs/internals/core.get_include_path.php +++ /dev/null @@ -1,44 +0,0 @@ - diff --git a/trunk/libs/internals/core.get_microtime.php b/trunk/libs/internals/core.get_microtime.php deleted file mode 100644 index f1a28e04..00000000 --- a/trunk/libs/internals/core.get_microtime.php +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/trunk/libs/internals/core.get_php_resource.php b/trunk/libs/internals/core.get_php_resource.php deleted file mode 100644 index 786d4e78..00000000 --- a/trunk/libs/internals/core.get_php_resource.php +++ /dev/null @@ -1,80 +0,0 @@ -trusted_dir; - $smarty->_parse_resource_name($params, $smarty); - - /* - * Find out if the resource exists. - */ - - if ($params['resource_type'] == 'file') { - $_readable = false; - if(file_exists($params['resource_name']) && is_readable($params['resource_name'])) { - $_readable = true; - } else { - // test for file in include_path - $_params = array('file_path' => $params['resource_name']); - require_once(SMARTY_CORE_DIR . 'core.get_include_path.php'); - if(smarty_core_get_include_path($_params, $smarty)) { - $_include_path = $_params['new_file_path']; - $_readable = true; - } - } - } else if ($params['resource_type'] != 'file') { - $_template_source = null; - $_readable = is_callable($smarty->_plugins['resource'][$params['resource_type']][0][0]) - && call_user_func_array($smarty->_plugins['resource'][$params['resource_type']][0][0], - array($params['resource_name'], &$_template_source, &$smarty)); - } - - /* - * Set the error function, depending on which class calls us. - */ - if (method_exists($smarty, '_syntax_error')) { - $_error_funcc = '_syntax_error'; - } else { - $_error_funcc = 'trigger_error'; - } - - if ($_readable) { - if ($smarty->security) { - require_once(SMARTY_CORE_DIR . 'core.is_trusted.php'); - if (!smarty_core_is_trusted($params, $smarty)) { - $smarty->$_error_funcc('(secure mode) ' . $params['resource_type'] . ':' . $params['resource_name'] . ' is not trusted'); - return false; - } - } - } else { - $smarty->$_error_funcc($params['resource_type'] . ':' . $params['resource_name'] . ' is not readable'); - return false; - } - - if ($params['resource_type'] == 'file') { - $params['php_resource'] = $params['resource_name']; - } else { - $params['php_resource'] = $_template_source; - } - return true; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.is_secure.php b/trunk/libs/internals/core.is_secure.php deleted file mode 100644 index d54abd43..00000000 --- a/trunk/libs/internals/core.is_secure.php +++ /dev/null @@ -1,59 +0,0 @@ -security || $smarty->security_settings['INCLUDE_ANY']) { - return true; - } - - if ($params['resource_type'] == 'file') { - $_rp = realpath($params['resource_name']); - if (isset($params['resource_base_path'])) { - foreach ((array)$params['resource_base_path'] as $curr_dir) { - if ( ($_cd = realpath($curr_dir)) !== false && - strncmp($_rp, $_cd, strlen($_cd)) == 0 && - substr($_rp, strlen($_cd), 1) == DIRECTORY_SEPARATOR ) { - return true; - } - } - } - if (!empty($smarty->secure_dir)) { - foreach ((array)$smarty->secure_dir as $curr_dir) { - if ( ($_cd = realpath($curr_dir)) !== false) { - if($_cd == $_rp) { - return true; - } elseif (strncmp($_rp, $_cd, strlen($_cd)) == 0 && - substr($_rp, strlen($_cd), 1) == DIRECTORY_SEPARATOR) { - return true; - } - } - } - } - } else { - // resource is not on local file system - return call_user_func_array( - $smarty->_plugins['resource'][$params['resource_type']][0][2], - array($params['resource_name'], &$smarty)); - } - - return false; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.is_trusted.php b/trunk/libs/internals/core.is_trusted.php deleted file mode 100644 index 42997315..00000000 --- a/trunk/libs/internals/core.is_trusted.php +++ /dev/null @@ -1,47 +0,0 @@ -trusted_dir)) { - $_rp = realpath($params['resource_name']); - foreach ((array)$smarty->trusted_dir as $curr_dir) { - if (!empty($curr_dir) && is_readable ($curr_dir)) { - $_cd = realpath($curr_dir); - if (strncmp($_rp, $_cd, strlen($_cd)) == 0 - && substr($_rp, strlen($_cd), 1) == DIRECTORY_SEPARATOR ) { - $_smarty_trusted = true; - break; - } - } - } - } - - } else { - // resource is not on local file system - $_smarty_trusted = call_user_func_array($smarty->_plugins['resource'][$params['resource_type']][0][3], - array($params['resource_name'], $smarty)); - } - - return $_smarty_trusted; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.load_plugins.php b/trunk/libs/internals/core.load_plugins.php deleted file mode 100644 index 6db1dc51..00000000 --- a/trunk/libs/internals/core.load_plugins.php +++ /dev/null @@ -1,125 +0,0 @@ -_plugins[$_type][$_name]; - - /* - * We do not load plugin more than once for each instance of Smarty. - * The following code checks for that. The plugin can also be - * registered dynamically at runtime, in which case template file - * and line number will be unknown, so we fill them in. - * - * The final element of the info array is a flag that indicates - * whether the dynamically registered plugin function has been - * checked for existence yet or not. - */ - if (isset($_plugin)) { - if (empty($_plugin[3])) { - if (!is_callable($_plugin[0])) { - $smarty->_trigger_fatal_error("[plugin] $_type '$_name' is not implemented", $_tpl_file, $_tpl_line, __FILE__, __LINE__); - } else { - $_plugin[1] = $_tpl_file; - $_plugin[2] = $_tpl_line; - $_plugin[3] = true; - if (!isset($_plugin[4])) $_plugin[4] = true; /* cacheable */ - } - } - continue; - } else if ($_type == 'insert') { - /* - * For backwards compatibility, we check for insert functions in - * the symbol table before trying to load them as a plugin. - */ - $_plugin_func = 'insert_' . $_name; - if (function_exists($_plugin_func)) { - $_plugin = array($_plugin_func, $_tpl_file, $_tpl_line, true, false); - continue; - } - } - - $_plugin_file = $smarty->_get_plugin_filepath($_type, $_name); - - if (! $_found = ($_plugin_file != false)) { - $_message = "could not load plugin file '$_type.$_name.php'\n"; - } - - /* - * If plugin file is found, it -must- provide the properly named - * plugin function. In case it doesn't, simply output the error and - * do not fall back on any other method. - */ - if ($_found) { - include_once $_plugin_file; - - $_plugin_func = 'smarty_' . $_type . '_' . $_name; - if (!function_exists($_plugin_func)) { - $smarty->_trigger_fatal_error("[plugin] function $_plugin_func() not found in $_plugin_file", $_tpl_file, $_tpl_line, __FILE__, __LINE__); - continue; - } - } - /* - * In case of insert plugins, their code may be loaded later via - * 'script' attribute. - */ - else if ($_type == 'insert' && $_delayed_loading) { - $_plugin_func = 'smarty_' . $_type . '_' . $_name; - $_found = true; - } - - /* - * Plugin specific processing and error checking. - */ - if (!$_found) { - if ($_type == 'modifier') { - /* - * In case modifier falls back on using PHP functions - * directly, we only allow those specified in the security - * context. - */ - if ($smarty->security && !in_array($_name, $smarty->security_settings['MODIFIER_FUNCS'])) { - $_message = "(secure mode) modifier '$_name' is not allowed"; - } else { - if (!function_exists($_name)) { - $_message = "modifier '$_name' is not implemented"; - } else { - $_plugin_func = $_name; - $_found = true; - } - } - } else if ($_type == 'function') { - /* - * This is a catch-all situation. - */ - $_message = "unknown tag - '$_name'"; - } - } - - if ($_found) { - $smarty->_plugins[$_type][$_name] = array($_plugin_func, $_tpl_file, $_tpl_line, true, true); - } else { - // output error - $smarty->_trigger_fatal_error('[plugin] ' . $_message, $_tpl_file, $_tpl_line, __FILE__, __LINE__); - } - } -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.load_resource_plugin.php b/trunk/libs/internals/core.load_resource_plugin.php deleted file mode 100644 index a7d37d1a..00000000 --- a/trunk/libs/internals/core.load_resource_plugin.php +++ /dev/null @@ -1,74 +0,0 @@ -_plugins['resource'][$params['type']]; - if (isset($_plugin)) { - if (!$_plugin[1] && count($_plugin[0])) { - $_plugin[1] = true; - foreach ($_plugin[0] as $_plugin_func) { - if (!is_callable($_plugin_func)) { - $_plugin[1] = false; - break; - } - } - } - - if (!$_plugin[1]) { - $smarty->_trigger_fatal_error("[plugin] resource '" . $params['type'] . "' is not implemented", null, null, __FILE__, __LINE__); - } - - return; - } - - $_plugin_file = $smarty->_get_plugin_filepath('resource', $params['type']); - $_found = ($_plugin_file != false); - - if ($_found) { /* - * If the plugin file is found, it -must- provide the properly named - * plugin functions. - */ - include_once($_plugin_file); - - /* - * Locate functions that we require the plugin to provide. - */ - $_resource_ops = array('source', 'timestamp', 'secure', 'trusted'); - $_resource_funcs = array(); - foreach ($_resource_ops as $_op) { - $_plugin_func = 'smarty_resource_' . $params['type'] . '_' . $_op; - if (!function_exists($_plugin_func)) { - $smarty->_trigger_fatal_error("[plugin] function $_plugin_func() not found in $_plugin_file", null, null, __FILE__, __LINE__); - return; - } else { - $_resource_funcs[] = $_plugin_func; - } - } - - $smarty->_plugins['resource'][$params['type']] = array($_resource_funcs, true); - } -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.process_cached_inserts.php b/trunk/libs/internals/core.process_cached_inserts.php deleted file mode 100644 index 1d78edd9..00000000 --- a/trunk/libs/internals/core.process_cached_inserts.php +++ /dev/null @@ -1,71 +0,0 @@ -_smarty_md5.'{insert_cache (.*)}'.$smarty->_smarty_md5.'!Uis', - $params['results'], $match); - list($cached_inserts, $insert_args) = $match; - - for ($i = 0, $for_max = count($cached_inserts); $i < $for_max; $i++) { - if ($smarty->debugging) { - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $debug_start_time = smarty_core_get_microtime($_params, $smarty); - } - - $args = unserialize($insert_args[$i]); - $name = $args['name']; - - if (isset($args['script'])) { - $_params = array('resource_name' => $smarty->_dequote($args['script'])); - require_once(SMARTY_CORE_DIR . 'core.get_php_resource.php'); - if(!smarty_core_get_php_resource($_params, $smarty)) { - return false; - } - $resource_type = $_params['resource_type']; - $php_resource = $_params['php_resource']; - - - if ($resource_type == 'file') { - $smarty->_include($php_resource, true); - } else { - $smarty->_eval($php_resource); - } - } - - $function_name = $smarty->_plugins['insert'][$name][0]; - if (empty($args['assign'])) { - $replace = $function_name($args, $smarty); - } else { - $smarty->assign($args['assign'], $function_name($args, $smarty)); - $replace = ''; - } - - $params['results'] = substr_replace($params['results'], $replace, strpos($params['results'], $cached_inserts[$i]), strlen($cached_inserts[$i])); - if ($smarty->debugging) { - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $smarty->_smarty_debug_info[] = array('type' => 'insert', - 'filename' => 'insert_'.$name, - 'depth' => $smarty->_inclusion_depth, - 'exec_time' => smarty_core_get_microtime($_params, $smarty) - $debug_start_time); - } - } - - return $params['results']; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.process_compiled_include.php b/trunk/libs/internals/core.process_compiled_include.php deleted file mode 100644 index 904d5974..00000000 --- a/trunk/libs/internals/core.process_compiled_include.php +++ /dev/null @@ -1,37 +0,0 @@ -_cache_including; - $smarty->_cache_including = true; - - $_return = $params['results']; - - foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) { - $smarty->_include($_include_file_path, true); - } - - foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) { - $_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s', - array(&$smarty, '_process_compiled_include_callback'), - $_return); - } - $smarty->_cache_including = $_cache_including; - return $_return; -} - -?> diff --git a/trunk/libs/internals/core.read_cache_file.php b/trunk/libs/internals/core.read_cache_file.php deleted file mode 100644 index c60e113a..00000000 --- a/trunk/libs/internals/core.read_cache_file.php +++ /dev/null @@ -1,101 +0,0 @@ -force_compile) { - // force compile enabled, always regenerate - return false; - } - - if (isset($content_cache[$params['tpl_file'].','.$params['cache_id'].','.$params['compile_id']])) { - list($params['results'], $smarty->_cache_info) = $content_cache[$params['tpl_file'].','.$params['cache_id'].','.$params['compile_id']]; - return true; - } - - if (!empty($smarty->cache_handler_func)) { - // use cache_handler function - call_user_func_array($smarty->cache_handler_func, - array('read', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id'], null)); - } else { - // use local cache file - $_auto_id = $smarty->_get_auto_id($params['cache_id'], $params['compile_id']); - $_cache_file = $smarty->_get_auto_filename($smarty->cache_dir, $params['tpl_file'], $_auto_id); - $params['results'] = $smarty->_read_file($_cache_file); - } - - if (empty($params['results'])) { - // nothing to parse (error?), regenerate cache - return false; - } - - $_contents = $params['results']; - $_info_start = strpos($_contents, "\n") + 1; - $_info_len = (int)substr($_contents, 0, $_info_start - 1); - $_cache_info = unserialize(substr($_contents, $_info_start, $_info_len)); - $params['results'] = substr($_contents, $_info_start + $_info_len); - - if ($smarty->caching == 2 && isset ($_cache_info['expires'])){ - // caching by expiration time - if ($_cache_info['expires'] > -1 && (time() > $_cache_info['expires'])) { - // cache expired, regenerate - return false; - } - } else { - // caching by lifetime - if ($smarty->cache_lifetime > -1 && (time() - $_cache_info['timestamp'] > $smarty->cache_lifetime)) { - // cache expired, regenerate - return false; - } - } - - if ($smarty->compile_check) { - $_params = array('get_source' => false, 'quiet'=>true); - foreach (array_keys($_cache_info['template']) as $_template_dep) { - $_params['resource_name'] = $_template_dep; - if (!$smarty->_fetch_resource_info($_params) || $_cache_info['timestamp'] < $_params['resource_timestamp']) { - // template file has changed, regenerate cache - return false; - } - } - - if (isset($_cache_info['config'])) { - $_params = array('resource_base_path' => $smarty->config_dir, 'get_source' => false, 'quiet'=>true); - foreach (array_keys($_cache_info['config']) as $_config_dep) { - $_params['resource_name'] = $_config_dep; - if (!$smarty->_fetch_resource_info($_params) || $_cache_info['timestamp'] < $_params['resource_timestamp']) { - // config file has changed, regenerate cache - return false; - } - } - } - } - - $content_cache[$params['tpl_file'].','.$params['cache_id'].','.$params['compile_id']] = array($params['results'], $_cache_info); - - $smarty->_cache_info = $_cache_info; - return true; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.rm_auto.php b/trunk/libs/internals/core.rm_auto.php deleted file mode 100644 index b251f649..00000000 --- a/trunk/libs/internals/core.rm_auto.php +++ /dev/null @@ -1,71 +0,0 @@ - $params['auto_base'], - 'level' => 0, - 'exp_time' => $params['exp_time'] - ); - require_once(SMARTY_CORE_DIR . 'core.rmdir.php'); - $_res = smarty_core_rmdir($_params, $smarty); - } else { - $_tname = $smarty->_get_auto_filename($params['auto_base'], $params['auto_source'], $params['auto_id']); - - if(isset($params['auto_source'])) { - if (isset($params['extensions'])) { - $_res = false; - foreach ((array)$params['extensions'] as $_extension) - $_res |= $smarty->_unlink($_tname.$_extension, $params['exp_time']); - } else { - $_res = $smarty->_unlink($_tname, $params['exp_time']); - } - } elseif ($smarty->use_sub_dirs) { - $_params = array( - 'dirname' => $_tname, - 'level' => 1, - 'exp_time' => $params['exp_time'] - ); - require_once(SMARTY_CORE_DIR . 'core.rmdir.php'); - $_res = smarty_core_rmdir($_params, $smarty); - } else { - // remove matching file names - $_handle = opendir($params['auto_base']); - $_res = true; - while (false !== ($_filename = readdir($_handle))) { - if($_filename == '.' || $_filename == '..') { - continue; - } elseif (substr($params['auto_base'] . DIRECTORY_SEPARATOR . $_filename, 0, strlen($_tname)) == $_tname) { - $_res &= (bool)$smarty->_unlink($params['auto_base'] . DIRECTORY_SEPARATOR . $_filename, $params['exp_time']); - } - } - } - } - - return $_res; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.rmdir.php b/trunk/libs/internals/core.rmdir.php deleted file mode 100644 index 2166c44d..00000000 --- a/trunk/libs/internals/core.rmdir.php +++ /dev/null @@ -1,54 +0,0 @@ - keep root) - * WARNING: no tests, it will try to remove what you tell it! - * - * @param string $dirname - * @param integer $level - * @param integer $exp_time - * @return boolean - */ - -// $dirname, $level = 1, $exp_time = null - -function smarty_core_rmdir($params, &$smarty) -{ - if(!isset($params['level'])) { $params['level'] = 1; } - if(!isset($params['exp_time'])) { $params['exp_time'] = null; } - - if($_handle = @opendir($params['dirname'])) { - - while (false !== ($_entry = readdir($_handle))) { - if ($_entry != '.' && $_entry != '..') { - if (@is_dir($params['dirname'] . DIRECTORY_SEPARATOR . $_entry)) { - $_params = array( - 'dirname' => $params['dirname'] . DIRECTORY_SEPARATOR . $_entry, - 'level' => $params['level'] + 1, - 'exp_time' => $params['exp_time'] - ); - smarty_core_rmdir($_params, $smarty); - } - else { - $smarty->_unlink($params['dirname'] . DIRECTORY_SEPARATOR . $_entry, $params['exp_time']); - } - } - } - closedir($_handle); - } - - if ($params['level']) { - return @rmdir($params['dirname']); - } - return (bool)$_handle; - -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.run_insert_handler.php b/trunk/libs/internals/core.run_insert_handler.php deleted file mode 100644 index 71c38450..00000000 --- a/trunk/libs/internals/core.run_insert_handler.php +++ /dev/null @@ -1,71 +0,0 @@ -debugging) { - $_params = array(); - $_debug_start_time = smarty_core_get_microtime($_params, $smarty); - } - - if ($smarty->caching) { - $_arg_string = serialize($params['args']); - $_name = $params['args']['name']; - if (!isset($smarty->_cache_info['insert_tags'][$_name])) { - $smarty->_cache_info['insert_tags'][$_name] = array('insert', - $_name, - $smarty->_plugins['insert'][$_name][1], - $smarty->_plugins['insert'][$_name][2], - !empty($params['args']['script']) ? true : false); - } - return $smarty->_smarty_md5."{insert_cache $_arg_string}".$smarty->_smarty_md5; - } else { - if (isset($params['args']['script'])) { - $_params = array('resource_name' => $smarty->_dequote($params['args']['script'])); - require_once(SMARTY_CORE_DIR . 'core.get_php_resource.php'); - if(!smarty_core_get_php_resource($_params, $smarty)) { - return false; - } - - if ($_params['resource_type'] == 'file') { - $smarty->_include($_params['php_resource'], true); - } else { - $smarty->_eval($_params['php_resource']); - } - unset($params['args']['script']); - } - - $_funcname = $smarty->_plugins['insert'][$params['args']['name']][0]; - $_content = $_funcname($params['args'], $smarty); - if ($smarty->debugging) { - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $smarty->_smarty_debug_info[] = array('type' => 'insert', - 'filename' => 'insert_'.$params['args']['name'], - 'depth' => $smarty->_inclusion_depth, - 'exec_time' => smarty_core_get_microtime($_params, $smarty) - $_debug_start_time); - } - - if (!empty($params['args']["assign"])) { - $smarty->assign($params['args']["assign"], $_content); - } else { - return $_content; - } - } -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.smarty_include_php.php b/trunk/libs/internals/core.smarty_include_php.php deleted file mode 100644 index 30c6e765..00000000 --- a/trunk/libs/internals/core.smarty_include_php.php +++ /dev/null @@ -1,50 +0,0 @@ - $params['smarty_file']); - require_once(SMARTY_CORE_DIR . 'core.get_php_resource.php'); - smarty_core_get_php_resource($_params, $smarty); - $_smarty_resource_type = $_params['resource_type']; - $_smarty_php_resource = $_params['php_resource']; - - if (!empty($params['smarty_assign'])) { - ob_start(); - if ($_smarty_resource_type == 'file') { - $smarty->_include($_smarty_php_resource, $params['smarty_once'], $params['smarty_include_vars']); - } else { - $smarty->_eval($_smarty_php_resource, $params['smarty_include_vars']); - } - $smarty->assign($params['smarty_assign'], ob_get_contents()); - ob_end_clean(); - } else { - if ($_smarty_resource_type == 'file') { - $smarty->_include($_smarty_php_resource, $params['smarty_once'], $params['smarty_include_vars']); - } else { - $smarty->_eval($_smarty_php_resource, $params['smarty_include_vars']); - } - } -} - - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.write_cache_file.php b/trunk/libs/internals/core.write_cache_file.php deleted file mode 100644 index fa3cdd74..00000000 --- a/trunk/libs/internals/core.write_cache_file.php +++ /dev/null @@ -1,96 +0,0 @@ -_cache_info['timestamp'] = time(); - if ($smarty->cache_lifetime > -1){ - // expiration set - $smarty->_cache_info['expires'] = $smarty->_cache_info['timestamp'] + $smarty->cache_lifetime; - } else { - // cache will never expire - $smarty->_cache_info['expires'] = -1; - } - - // collapse nocache.../nocache-tags - if (preg_match_all('!\{(/?)nocache\:[0-9a-f]{32}#\d+\}!', $params['results'], $match, PREG_PATTERN_ORDER)) { - // remove everything between every pair of outermost noache.../nocache-tags - // and replace it by a single nocache-tag - // this new nocache-tag will be replaced by dynamic contents in - // smarty_core_process_compiled_includes() on a cache-read - - $match_count = count($match[0]); - $results = preg_split('!(\{/?nocache\:[0-9a-f]{32}#\d+\})!', $params['results'], -1, PREG_SPLIT_DELIM_CAPTURE); - - $level = 0; - $j = 0; - for ($i=0, $results_count = count($results); $i < $results_count && $j < $match_count; $i++) { - if ($results[$i] == $match[0][$j]) { - // nocache tag - if ($match[1][$j]) { // closing tag - $level--; - unset($results[$i]); - } else { // opening tag - if ($level++ > 0) unset($results[$i]); - } - $j++; - } elseif ($level > 0) { - unset($results[$i]); - } - } - $params['results'] = implode('', $results); - } - $smarty->_cache_info['cache_serials'] = $smarty->_cache_serials; - - // prepend the cache header info into cache file - $_cache_info = serialize($smarty->_cache_info); - $params['results'] = strlen($_cache_info) . "\n" . $_cache_info . $params['results']; - - if (!empty($smarty->cache_handler_func)) { - // use cache_handler function - call_user_func_array($smarty->cache_handler_func, - array('write', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id'], $smarty->_cache_info['expires'])); - } else { - // use local cache file - - if(!@is_writable($smarty->cache_dir)) { - // cache_dir not writable, see if it exists - if(!@is_dir($smarty->cache_dir)) { - $smarty->trigger_error('the $cache_dir \'' . $smarty->cache_dir . '\' does not exist, or is not a directory.', E_USER_ERROR); - return false; - } - $smarty->trigger_error('unable to write to $cache_dir \'' . realpath($smarty->cache_dir) . '\'. Be sure $cache_dir is writable by the web server user.', E_USER_ERROR); - return false; - } - - $_auto_id = $smarty->_get_auto_id($params['cache_id'], $params['compile_id']); - $_cache_file = $smarty->_get_auto_filename($smarty->cache_dir, $params['tpl_file'], $_auto_id); - $_params = array('filename' => $_cache_file, 'contents' => $params['results'], 'create_dirs' => true); - require_once(SMARTY_CORE_DIR . 'core.write_file.php'); - smarty_core_write_file($_params, $smarty); - return true; - } -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.write_compiled_include.php b/trunk/libs/internals/core.write_compiled_include.php deleted file mode 100644 index c14adb5f..00000000 --- a/trunk/libs/internals/core.write_compiled_include.php +++ /dev/null @@ -1,91 +0,0 @@ -caching && \!\$this->_cache_including\)\: echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\'; endif;'; - $_tag_end = 'if \(\$this->caching && \!\$this->_cache_including\)\: echo \'\{/nocache\:(\\2)#(\\3)\}\'; endif;'; - - preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us', - $params['compiled_content'], $_match_source, PREG_SET_ORDER); - - // no nocache-parts found: done - if (count($_match_source)==0) return; - - // convert the matched php-code to functions - $_include_compiled = "_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; - $_include_compiled .= " compiled from " . strtr(urlencode($params['resource_name']), array('%2F'=>'/', '%3A'=>':')) . " */\n\n"; - - $_compile_path = $params['include_file_path']; - - $smarty->_cache_serials[$_compile_path] = $params['cache_serial']; - $_include_compiled .= "\$this->_cache_serials['".$_compile_path."'] = '".$params['cache_serial']."';\n\n?>"; - - $_include_compiled .= $params['plugins_code']; - $_include_compiled .= "= 5.0) ? '_smarty' : 'this'; - for ($_i = 0, $_for_max = count($_match_source); $_i < $_for_max; $_i++) { - $_match =& $_match_source[$_i]; - $source = $_match[4]; - if ($this_varname == '_smarty') { - /* rename $this to $_smarty in the sourcecode */ - $tokens = token_get_all('\n"; - - $_params = array('filename' => $_compile_path, - 'contents' => $_include_compiled, 'create_dirs' => true); - - require_once(SMARTY_CORE_DIR . 'core.write_file.php'); - smarty_core_write_file($_params, $smarty); - return true; -} - - -?> diff --git a/trunk/libs/internals/core.write_compiled_resource.php b/trunk/libs/internals/core.write_compiled_resource.php deleted file mode 100644 index b902eff3..00000000 --- a/trunk/libs/internals/core.write_compiled_resource.php +++ /dev/null @@ -1,35 +0,0 @@ -compile_dir)) { - // compile_dir not writable, see if it exists - if(!@is_dir($smarty->compile_dir)) { - $smarty->trigger_error('the $compile_dir \'' . $smarty->compile_dir . '\' does not exist, or is not a directory.', E_USER_ERROR); - return false; - } - $smarty->trigger_error('unable to write to $compile_dir \'' . realpath($smarty->compile_dir) . '\'. Be sure $compile_dir is writable by the web server user.', E_USER_ERROR); - return false; - } - - $_params = array('filename' => $params['compile_path'], 'contents' => $params['compiled_content'], 'create_dirs' => true); - require_once(SMARTY_CORE_DIR . 'core.write_file.php'); - smarty_core_write_file($_params, $smarty); - return true; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/internals/core.write_file.php b/trunk/libs/internals/core.write_file.php deleted file mode 100644 index 8a3a3b39..00000000 --- a/trunk/libs/internals/core.write_file.php +++ /dev/null @@ -1,54 +0,0 @@ - $_dirname); - require_once(SMARTY_CORE_DIR . 'core.create_dir_structure.php'); - smarty_core_create_dir_structure($_params, $smarty); - } - - // write to tmp file, then rename it to avoid file locking race condition - $_tmp_file = tempnam($_dirname, 'wrt'); - - if (!($fd = @fopen($_tmp_file, 'wb'))) { - $_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('wrt'); - if (!($fd = @fopen($_tmp_file, 'wb'))) { - $smarty->trigger_error("problem writing temporary file '$_tmp_file'"); - return false; - } - } - - fwrite($fd, $params['contents']); - fclose($fd); - - if (DIRECTORY_SEPARATOR == '\\' || !@rename($_tmp_file, $params['filename'])) { - // On platforms and filesystems that cannot overwrite with rename() - // delete the file before renaming it -- because windows always suffers - // this, it is short-circuited to avoid the initial rename() attempt - @unlink($params['filename']); - @rename($_tmp_file, $params['filename']); - } - @chmod($params['filename'], $smarty->_file_perms); - - return true; -} - -/* vim: set expandtab: */ - -?> \ No newline at end of file diff --git a/trunk/libs/plugins/block.textformat.php b/trunk/libs/plugins/block.textformat.php deleted file mode 100644 index 8cd010ac..00000000 --- a/trunk/libs/plugins/block.textformat.php +++ /dev/null @@ -1,103 +0,0 @@ - - * Name: textformat
      - * Purpose: format text a certain way with preset styles - * or custom wrap/indent settings
      - * @link http://smarty.php.net/manual/en/language.function.textformat.php {textformat} - * (Smarty online manual) - * @param array - *
      - * Params:   style: string (email)
      - *           indent: integer (0)
      - *           wrap: integer (80)
      - *           wrap_char string ("\n")
      - *           indent_char: string (" ")
      - *           wrap_boundary: boolean (true)
      - * 
      - * @author Monte Ohrt - * @param string contents of the block - * @param Smarty clever simulation of a method - * @return string string $content re-formatted - */ -function smarty_block_textformat($params, $content, &$smarty) -{ - if (is_null($content)) { - return; - } - - $style = null; - $indent = 0; - $indent_first = 0; - $indent_char = ' '; - $wrap = 80; - $wrap_char = "\n"; - $wrap_cut = false; - $assign = null; - - foreach ($params as $_key => $_val) { - switch ($_key) { - case 'style': - case 'indent_char': - case 'wrap_char': - case 'assign': - $$_key = (string)$_val; - break; - - case 'indent': - case 'indent_first': - case 'wrap': - $$_key = (int)$_val; - break; - - case 'wrap_cut': - $$_key = (bool)$_val; - break; - - default: - $smarty->trigger_error("textformat: unknown attribute '$_key'"); - } - } - - if ($style == 'email') { - $wrap = 72; - } - - // split into paragraphs - $_paragraphs = preg_split('![\r\n][\r\n]!',$content); - $_output = ''; - - for($_x = 0, $_y = count($_paragraphs); $_x < $_y; $_x++) { - if ($_paragraphs[$_x] == '') { - continue; - } - // convert mult. spaces & special chars to single space - $_paragraphs[$_x] = preg_replace(array('!\s+!','!(^\s+)|(\s+$)!'), array(' ',''), $_paragraphs[$_x]); - // indent first line - if($indent_first > 0) { - $_paragraphs[$_x] = str_repeat($indent_char, $indent_first) . $_paragraphs[$_x]; - } - // wordwrap sentences - $_paragraphs[$_x] = wordwrap($_paragraphs[$_x], $wrap - $indent, $wrap_char, $wrap_cut); - // indent lines - if($indent > 0) { - $_paragraphs[$_x] = preg_replace('!^!m', str_repeat($indent_char, $indent), $_paragraphs[$_x]); - } - } - $_output = implode($wrap_char . $wrap_char, $_paragraphs); - - return $assign ? $smarty->assign($assign, $_output) : $_output; - -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/compiler.assign.php b/trunk/libs/plugins/compiler.assign.php deleted file mode 100644 index abef377f..00000000 --- a/trunk/libs/plugins/compiler.assign.php +++ /dev/null @@ -1,40 +0,0 @@ - - * Name: assign
      - * Purpose: assign a value to a template variable - * @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCTION.ASSIGN {assign} - * (Smarty online manual) - * @author Monte Ohrt (initial author) - * @author messju mohr (conversion to compiler function) - * @param string containing var-attribute and value-attribute - * @param Smarty_Compiler - */ -function smarty_compiler_assign($tag_attrs, &$compiler) -{ - $_params = $compiler->_parse_attrs($tag_attrs); - - if (!isset($_params['var'])) { - $compiler->_syntax_error("assign: missing 'var' parameter", E_USER_WARNING); - return; - } - - if (!isset($_params['value'])) { - $compiler->_syntax_error("assign: missing 'value' parameter", E_USER_WARNING); - return; - } - - return "\$this->assign({$_params['var']}, {$_params['value']});"; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.assign_debug_info.php b/trunk/libs/plugins/function.assign_debug_info.php deleted file mode 100644 index 65404987..00000000 --- a/trunk/libs/plugins/function.assign_debug_info.php +++ /dev/null @@ -1,40 +0,0 @@ - - * Name: assign_debug_info
      - * Purpose: assign debug info to the template
      - * @author Monte Ohrt - * @param array unused in this plugin, this plugin uses {@link Smarty::$_config}, - * {@link Smarty::$_tpl_vars} and {@link Smarty::$_smarty_debug_info} - * @param Smarty - */ -function smarty_function_assign_debug_info($params, &$smarty) -{ - $assigned_vars = $smarty->_tpl_vars; - ksort($assigned_vars); - if (@is_array($smarty->_config[0])) { - $config_vars = $smarty->_config[0]; - ksort($config_vars); - $smarty->assign("_debug_config_keys", array_keys($config_vars)); - $smarty->assign("_debug_config_vals", array_values($config_vars)); - } - - $included_templates = $smarty->_smarty_debug_info; - - $smarty->assign("_debug_keys", array_keys($assigned_vars)); - $smarty->assign("_debug_vals", array_values($assigned_vars)); - - $smarty->assign("_debug_tpls", $included_templates); -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.config_load.php b/trunk/libs/plugins/function.config_load.php deleted file mode 100644 index db89f638..00000000 --- a/trunk/libs/plugins/function.config_load.php +++ /dev/null @@ -1,142 +0,0 @@ - - * Name: config_load
      - * Purpose: load config file vars - * @link http://smarty.php.net/manual/en/language.function.config.load.php {config_load} - * (Smarty online manual) - * @author Monte Ohrt - * @author messju mohr (added use of resources) - * @param array Format: - *
      - * array('file' => required config file name,
      - *       'section' => optional config file section to load
      - *       'scope' => local/parent/global
      - *       'global' => overrides scope, setting to parent if true)
      - * 
      - * @param Smarty - */ -function smarty_function_config_load($params, &$smarty) -{ - if ($smarty->debugging) { - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $_debug_start_time = smarty_core_get_microtime($_params, $smarty); - } - - $_file = isset($params['file']) ? $smarty->_dequote($params['file']) : null; - $_section = isset($params['section']) ? $smarty->_dequote($params['section']) : null; - $_scope = isset($params['scope']) ? $smarty->_dequote($params['scope']) : 'global'; - $_global = isset($params['global']) ? $smarty->_dequote($params['global']) : false; - - if (!isset($_file) || strlen($_file) == 0) { - $smarty->trigger_error("missing 'file' attribute in config_load tag", E_USER_ERROR, __FILE__, __LINE__); - } - - if (isset($_scope)) { - if ($_scope != 'local' && - $_scope != 'parent' && - $_scope != 'global') { - $smarty->trigger_error("invalid 'scope' attribute value", E_USER_ERROR, __FILE__, __LINE__); - } - } else { - if ($_global) { - $_scope = 'parent'; - } else { - $_scope = 'local'; - } - } - - $_params = array('resource_name' => $_file, - 'resource_base_path' => $smarty->config_dir, - 'get_source' => false); - $smarty->_parse_resource_name($_params); - $_file_path = $_params['resource_type'] . ':' . $_params['resource_name']; - if (isset($_section)) - $_compile_file = $smarty->_get_compile_path($_file_path.'|'.$_section); - else - $_compile_file = $smarty->_get_compile_path($_file_path); - - if($smarty->force_compile || !file_exists($_compile_file)) { - $_compile = true; - } elseif ($smarty->compile_check) { - $_params = array('resource_name' => $_file, - 'resource_base_path' => $smarty->config_dir, - 'get_source' => false); - $_compile = $smarty->_fetch_resource_info($_params) && - $_params['resource_timestamp'] > filemtime($_compile_file); - } else { - $_compile = false; - } - - if($_compile) { - // compile config file - if(!is_object($smarty->_conf_obj)) { - require_once SMARTY_DIR . $smarty->config_class . '.class.php'; - $smarty->_conf_obj = new $smarty->config_class(); - $smarty->_conf_obj->overwrite = $smarty->config_overwrite; - $smarty->_conf_obj->booleanize = $smarty->config_booleanize; - $smarty->_conf_obj->read_hidden = $smarty->config_read_hidden; - $smarty->_conf_obj->fix_newlines = $smarty->config_fix_newlines; - } - - $_params = array('resource_name' => $_file, - 'resource_base_path' => $smarty->config_dir, - $_params['get_source'] = true); - if (!$smarty->_fetch_resource_info($_params)) { - return; - } - $smarty->_conf_obj->set_file_contents($_file, $_params['source_content']); - $_config_vars = array_merge($smarty->_conf_obj->get($_file), - $smarty->_conf_obj->get($_file, $_section)); - if(function_exists('var_export')) { - $_output = ''; - } else { - $_output = ''\\\'', '\\'=>'\\\\')) . '\'); ?>'; - } - $_params = (array('compile_path' => $_compile_file, 'compiled_content' => $_output, 'resource_timestamp' => $_params['resource_timestamp'])); - require_once(SMARTY_CORE_DIR . 'core.write_compiled_resource.php'); - smarty_core_write_compiled_resource($_params, $smarty); - } else { - include($_compile_file); - } - - if ($smarty->caching) { - $smarty->_cache_info['config'][$_file] = true; - } - - $smarty->_config[0]['vars'] = @array_merge($smarty->_config[0]['vars'], $_config_vars); - $smarty->_config[0]['files'][$_file] = true; - - if ($_scope == 'parent') { - $smarty->_config[1]['vars'] = @array_merge($smarty->_config[1]['vars'], $_config_vars); - $smarty->_config[1]['files'][$_file] = true; - } else if ($_scope == 'global') { - for ($i = 1, $for_max = count($smarty->_config); $i < $for_max; $i++) { - $smarty->_config[$i]['vars'] = @array_merge($smarty->_config[$i]['vars'], $_config_vars); - $smarty->_config[$i]['files'][$_file] = true; - } - } - - if ($smarty->debugging) { - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $smarty->_smarty_debug_info[] = array('type' => 'config', - 'filename' => $_file.' ['.$_section.'] '.$_scope, - 'depth' => $smarty->_inclusion_depth, - 'exec_time' => smarty_core_get_microtime($_params, $smarty) - $_debug_start_time); - } - -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.counter.php b/trunk/libs/plugins/function.counter.php deleted file mode 100644 index 1f26db5f..00000000 --- a/trunk/libs/plugins/function.counter.php +++ /dev/null @@ -1,80 +0,0 @@ - - * Name: counter
      - * Purpose: print out a counter value - * @author Monte Ohrt - * @link http://smarty.php.net/manual/en/language.function.counter.php {counter} - * (Smarty online manual) - * @param array parameters - * @param Smarty - * @return string|null - */ -function smarty_function_counter($params, &$smarty) -{ - static $counters = array(); - - $name = (isset($params['name'])) ? $params['name'] : 'default'; - if (!isset($counters[$name])) { - $counters[$name] = array( - 'start'=>1, - 'skip'=>1, - 'direction'=>'up', - 'count'=>1 - ); - } - $counter =& $counters[$name]; - - if (isset($params['start'])) { - $counter['start'] = $counter['count'] = (int)$params['start']; - } - - if (!empty($params['assign'])) { - $counter['assign'] = $params['assign']; - } - - if (isset($counter['assign'])) { - $smarty->assign($counter['assign'], $counter['count']); - } - - if (isset($params['print'])) { - $print = (bool)$params['print']; - } else { - $print = empty($counter['assign']); - } - - if ($print) { - $retval = $counter['count']; - } else { - $retval = null; - } - - if (isset($params['skip'])) { - $counter['skip'] = $params['skip']; - } - - if (isset($params['direction'])) { - $counter['direction'] = $params['direction']; - } - - if ($counter['direction'] == "down") - $counter['count'] -= $counter['skip']; - else - $counter['count'] += $counter['skip']; - - return $retval; - -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.cycle.php b/trunk/libs/plugins/function.cycle.php deleted file mode 100644 index 80378b7f..00000000 --- a/trunk/libs/plugins/function.cycle.php +++ /dev/null @@ -1,106 +0,0 @@ - - * Name: cycle
      - * Date: May 3, 2002
      - * Purpose: cycle through given values
      - * Input: - * - name = name of cycle (optional) - * - values = comma separated list of values to cycle, - * or an array of values to cycle - * (this can be left out for subsequent calls) - * - reset = boolean - resets given var to true - * - print = boolean - print var or not. default is true - * - advance = boolean - whether or not to advance the cycle - * - delimiter = the value delimiter, default is "," - * - assign = boolean, assigns to template var instead of - * printed. - * - * Examples:
      - *
      - * {cycle values="#eeeeee,#d0d0d0d"}
      - * {cycle name=row values="one,two,three" reset=true}
      - * {cycle name=row}
      - * 
      - * @link http://smarty.php.net/manual/en/language.function.cycle.php {cycle} - * (Smarty online manual) - * @author Monte Ohrt - * @author credit to Mark Priatel - * @author credit to Gerard - * @author credit to Jason Sweat - * @version 1.3 - * @param array - * @param Smarty - * @return string|null - */ -function smarty_function_cycle($params, &$smarty) -{ - static $cycle_vars; - - $name = (empty($params['name'])) ? 'default' : $params['name']; - $print = (isset($params['print'])) ? (bool)$params['print'] : true; - $advance = (isset($params['advance'])) ? (bool)$params['advance'] : true; - $reset = (isset($params['reset'])) ? (bool)$params['reset'] : false; - - if (!in_array('values', array_keys($params))) { - if(!isset($cycle_vars[$name]['values'])) { - $smarty->trigger_error("cycle: missing 'values' parameter"); - return; - } - } else { - if(isset($cycle_vars[$name]['values']) - && $cycle_vars[$name]['values'] != $params['values'] ) { - $cycle_vars[$name]['index'] = 0; - } - $cycle_vars[$name]['values'] = $params['values']; - } - - if (isset($params['delimiter'])) { - $cycle_vars[$name]['delimiter'] = $params['delimiter']; - } elseif (!isset($cycle_vars[$name]['delimiter'])) { - $cycle_vars[$name]['delimiter'] = ','; - } - - if(is_array($cycle_vars[$name]['values'])) { - $cycle_array = $cycle_vars[$name]['values']; - } else { - $cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']); - } - - if(!isset($cycle_vars[$name]['index']) || $reset ) { - $cycle_vars[$name]['index'] = 0; - } - - if (isset($params['assign'])) { - $print = false; - $smarty->assign($params['assign'], $cycle_array[$cycle_vars[$name]['index']]); - } - - if($print) { - $retval = $cycle_array[$cycle_vars[$name]['index']]; - } else { - $retval = null; - } - - if($advance) { - if ( $cycle_vars[$name]['index'] >= count($cycle_array) -1 ) { - $cycle_vars[$name]['index'] = 0; - } else { - $cycle_vars[$name]['index']++; - } - } - - return $retval; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.debug.php b/trunk/libs/plugins/function.debug.php deleted file mode 100644 index 43452307..00000000 --- a/trunk/libs/plugins/function.debug.php +++ /dev/null @@ -1,35 +0,0 @@ - - * Name: debug
      - * Date: July 1, 2002
      - * Purpose: popup debug window - * @link http://smarty.php.net/manual/en/language.function.debug.php {debug} - * (Smarty online manual) - * @author Monte Ohrt - * @version 1.0 - * @param array - * @param Smarty - * @return string output from {@link Smarty::_generate_debug_output()} - */ -function smarty_function_debug($params, &$smarty) -{ - if (isset($params['output'])) { - $smarty->assign('_smarty_debug_output', $params['output']); - } - require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); - return smarty_core_display_debug_console(null, $smarty); -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.eval.php b/trunk/libs/plugins/function.eval.php deleted file mode 100644 index ff0472de..00000000 --- a/trunk/libs/plugins/function.eval.php +++ /dev/null @@ -1,49 +0,0 @@ - - * Name: eval
      - * Purpose: evaluate a template variable as a template
      - * @link http://smarty.php.net/manual/en/language.function.eval.php {eval} - * (Smarty online manual) - * @author Monte Ohrt - * @param array - * @param Smarty - */ -function smarty_function_eval($params, &$smarty) -{ - - if (!isset($params['var'])) { - $smarty->trigger_error("eval: missing 'var' parameter"); - return; - } - - if($params['var'] == '') { - return; - } - - $smarty->_compile_source('evaluated template', $params['var'], $_var_compiled); - - ob_start(); - $smarty->_eval('?>' . $_var_compiled); - $_contents = ob_get_contents(); - ob_end_clean(); - - if (!empty($params['assign'])) { - $smarty->assign($params['assign'], $_contents); - } else { - return $_contents; - } -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.fetch.php b/trunk/libs/plugins/function.fetch.php deleted file mode 100644 index d72c7b1f..00000000 --- a/trunk/libs/plugins/function.fetch.php +++ /dev/null @@ -1,221 +0,0 @@ - - * Name: fetch
      - * Purpose: fetch file, web or ftp data and display results - * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch} - * (Smarty online manual) - * @author Monte Ohrt - * @param array - * @param Smarty - * @return string|null if the assign parameter is passed, Smarty assigns the - * result to a template variable - */ -function smarty_function_fetch($params, &$smarty) -{ - if (empty($params['file'])) { - $smarty->_trigger_fatal_error("[plugin] parameter 'file' cannot be empty"); - return; - } - - $content = ''; - if ($smarty->security && !preg_match('!^(http|ftp)://!i', $params['file'])) { - $_params = array('resource_type' => 'file', 'resource_name' => $params['file']); - require_once(SMARTY_CORE_DIR . 'core.is_secure.php'); - if(!smarty_core_is_secure($_params, $smarty)) { - $smarty->_trigger_fatal_error('[plugin] (secure mode) fetch \'' . $params['file'] . '\' is not allowed'); - return; - } - - // fetch the file - if($fp = @fopen($params['file'],'r')) { - while(!feof($fp)) { - $content .= fgets ($fp,4096); - } - fclose($fp); - } else { - $smarty->_trigger_fatal_error('[plugin] fetch cannot read file \'' . $params['file'] . '\''); - return; - } - } else { - // not a local file - if(preg_match('!^http://!i',$params['file'])) { - // http fetch - if($uri_parts = parse_url($params['file'])) { - // set defaults - $host = $server_name = $uri_parts['host']; - $timeout = 30; - $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"; - $agent = "Smarty Template Engine ".$smarty->_version; - $referer = ""; - $uri = !empty($uri_parts['path']) ? $uri_parts['path'] : '/'; - $uri .= !empty($uri_parts['query']) ? '?' . $uri_parts['query'] : ''; - $_is_proxy = false; - if(empty($uri_parts['port'])) { - $port = 80; - } else { - $port = $uri_parts['port']; - } - if(!empty($uri_parts['user'])) { - $user = $uri_parts['user']; - } - if(!empty($uri_parts['pass'])) { - $pass = $uri_parts['pass']; - } - // loop through parameters, setup headers - foreach($params as $param_key => $param_value) { - switch($param_key) { - case "file": - case "assign": - case "assign_headers": - break; - case "user": - if(!empty($param_value)) { - $user = $param_value; - } - break; - case "pass": - if(!empty($param_value)) { - $pass = $param_value; - } - break; - case "accept": - if(!empty($param_value)) { - $accept = $param_value; - } - break; - case "header": - if(!empty($param_value)) { - if(!preg_match('![\w\d-]+: .+!',$param_value)) { - $smarty->_trigger_fatal_error("[plugin] invalid header format '".$param_value."'"); - return; - } else { - $extra_headers[] = $param_value; - } - } - break; - case "proxy_host": - if(!empty($param_value)) { - $proxy_host = $param_value; - } - break; - case "proxy_port": - if(!preg_match('!\D!', $param_value)) { - $proxy_port = (int) $param_value; - } else { - $smarty->_trigger_fatal_error("[plugin] invalid value for attribute '".$param_key."'"); - return; - } - break; - case "agent": - if(!empty($param_value)) { - $agent = $param_value; - } - break; - case "referer": - if(!empty($param_value)) { - $referer = $param_value; - } - break; - case "timeout": - if(!preg_match('!\D!', $param_value)) { - $timeout = (int) $param_value; - } else { - $smarty->_trigger_fatal_error("[plugin] invalid value for attribute '".$param_key."'"); - return; - } - break; - default: - $smarty->_trigger_fatal_error("[plugin] unrecognized attribute '".$param_key."'"); - return; - } - } - if(!empty($proxy_host) && !empty($proxy_port)) { - $_is_proxy = true; - $fp = fsockopen($proxy_host,$proxy_port,$errno,$errstr,$timeout); - } else { - $fp = fsockopen($server_name,$port,$errno,$errstr,$timeout); - } - - if(!$fp) { - $smarty->_trigger_fatal_error("[plugin] unable to fetch: $errstr ($errno)"); - return; - } else { - if($_is_proxy) { - fputs($fp, 'GET ' . $params['file'] . " HTTP/1.0\r\n"); - } else { - fputs($fp, "GET $uri HTTP/1.0\r\n"); - } - if(!empty($host)) { - fputs($fp, "Host: $host\r\n"); - } - if(!empty($accept)) { - fputs($fp, "Accept: $accept\r\n"); - } - if(!empty($agent)) { - fputs($fp, "User-Agent: $agent\r\n"); - } - if(!empty($referer)) { - fputs($fp, "Referer: $referer\r\n"); - } - if(isset($extra_headers) && is_array($extra_headers)) { - foreach($extra_headers as $curr_header) { - fputs($fp, $curr_header."\r\n"); - } - } - if(!empty($user) && !empty($pass)) { - fputs($fp, "Authorization: BASIC ".base64_encode("$user:$pass")."\r\n"); - } - - fputs($fp, "\r\n"); - while(!feof($fp)) { - $content .= fgets($fp,4096); - } - fclose($fp); - $csplit = preg_split("!\r\n\r\n!",$content,2); - - $content = $csplit[1]; - - if(!empty($params['assign_headers'])) { - $smarty->assign($params['assign_headers'],preg_split("!\r\n!",$csplit[0])); - } - } - } else { - $smarty->_trigger_fatal_error("[plugin] unable to parse URL, check syntax"); - return; - } - } else { - // ftp fetch - if($fp = @fopen($params['file'],'r')) { - while(!feof($fp)) { - $content .= fgets ($fp,4096); - } - fclose($fp); - } else { - $smarty->_trigger_fatal_error('[plugin] fetch cannot read file \'' . $params['file'] .'\''); - return; - } - } - - } - - - if (!empty($params['assign'])) { - $smarty->assign($params['assign'],$content); - } else { - return $content; - } -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.html_checkboxes.php b/trunk/libs/plugins/function.html_checkboxes.php deleted file mode 100644 index ed8ad7f3..00000000 --- a/trunk/libs/plugins/function.html_checkboxes.php +++ /dev/null @@ -1,143 +0,0 @@ - - * Type: function
      - * Name: html_checkboxes
      - * Date: 24.Feb.2003
      - * Purpose: Prints out a list of checkbox input types
      - * Input:
      - * - name (optional) - string default "checkbox" - * - values (required) - array - * - options (optional) - associative array - * - checked (optional) - array default not set - * - separator (optional) - ie
      or   - * - output (optional) - the output next to each checkbox - * - assign (optional) - assign the output as an array to this variable - * Examples: - *
      - * {html_checkboxes values=$ids output=$names}
      - * {html_checkboxes values=$ids name='box' separator='
      ' output=$names} - * {html_checkboxes values=$ids checked=$checked separator='
      ' output=$names} - *
      - * @link http://smarty.php.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} - * (Smarty online manual) - * @author Christopher Kvarme - * @author credits to Monte Ohrt - * @version 1.0 - * @param array - * @param Smarty - * @return string - * @uses smarty_function_escape_special_chars() - */ -function smarty_function_html_checkboxes($params, &$smarty) -{ - require_once $smarty->_get_plugin_filepath('shared','escape_special_chars'); - - $name = 'checkbox'; - $values = null; - $options = null; - $selected = null; - $separator = ''; - $labels = true; - $output = null; - - $extra = ''; - - foreach($params as $_key => $_val) { - switch($_key) { - case 'name': - case 'separator': - $$_key = $_val; - break; - - case 'labels': - $$_key = (bool)$_val; - break; - - case 'options': - $$_key = (array)$_val; - break; - - case 'values': - case 'output': - $$_key = array_values((array)$_val); - break; - - case 'checked': - case 'selected': - $selected = array_map('strval', array_values((array)$_val)); - break; - - case 'checkboxes': - $smarty->trigger_error('html_checkboxes: the use of the "checkboxes" attribute is deprecated, use "options" instead', E_USER_WARNING); - $options = (array)$_val; - break; - - case 'assign': - break; - - default: - if(!is_array($_val)) { - $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; - } else { - $smarty->trigger_error("html_checkboxes: extra attribute '$_key' cannot be an array", E_USER_NOTICE); - } - break; - } - } - - if (!isset($options) && !isset($values)) - return ''; /* raise error here? */ - - settype($selected, 'array'); - $_html_result = array(); - - if (isset($options)) { - - foreach ($options as $_key=>$_val) - $_html_result[] = smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels); - - - } else { - foreach ($values as $_i=>$_key) { - $_val = isset($output[$_i]) ? $output[$_i] : ''; - $_html_result[] = smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels); - } - - } - - if(!empty($params['assign'])) { - $smarty->assign($params['assign'], $_html_result); - } else { - return implode("\n",$_html_result); - } - -} - -function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels) { - $_output = ''; - if ($labels) $_output .= ''; - $_output .= $separator; - - return $_output; -} - -?> diff --git a/trunk/libs/plugins/function.html_image.php b/trunk/libs/plugins/function.html_image.php deleted file mode 100644 index 9abae72e..00000000 --- a/trunk/libs/plugins/function.html_image.php +++ /dev/null @@ -1,142 +0,0 @@ - - * Name: html_image
      - * Date: Feb 24, 2003
      - * Purpose: format HTML tags for the image
      - * Input:
      - * - file = file (and path) of image (required) - * - height = image height (optional, default actual height) - * - width = image width (optional, default actual width) - * - basedir = base directory for absolute paths, default - * is environment variable DOCUMENT_ROOT - * - path_prefix = prefix for path output (optional, default empty) - * - * Examples: {html_image file="/images/masthead.gif"} - * Output: - * @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image} - * (Smarty online manual) - * @author Monte Ohrt - * @author credits to Duda - wrote first image function - * in repository, helped with lots of functionality - * @version 1.0 - * @param array - * @param Smarty - * @return string - * @uses smarty_function_escape_special_chars() - */ -function smarty_function_html_image($params, &$smarty) -{ - require_once $smarty->_get_plugin_filepath('shared','escape_special_chars'); - - $alt = ''; - $file = ''; - $height = ''; - $width = ''; - $extra = ''; - $prefix = ''; - $suffix = ''; - $path_prefix = ''; - $server_vars = ($smarty->request_use_auto_globals) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS']; - $basedir = isset($server_vars['DOCUMENT_ROOT']) ? $server_vars['DOCUMENT_ROOT'] : ''; - foreach($params as $_key => $_val) { - switch($_key) { - case 'file': - case 'height': - case 'width': - case 'dpi': - case 'path_prefix': - case 'basedir': - $$_key = $_val; - break; - - case 'alt': - if(!is_array($_val)) { - $$_key = smarty_function_escape_special_chars($_val); - } else { - $smarty->trigger_error("html_image: extra attribute '$_key' cannot be an array", E_USER_NOTICE); - } - break; - - case 'link': - case 'href': - $prefix = ''; - $suffix = ''; - break; - - default: - if(!is_array($_val)) { - $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; - } else { - $smarty->trigger_error("html_image: extra attribute '$_key' cannot be an array", E_USER_NOTICE); - } - break; - } - } - - if (empty($file)) { - $smarty->trigger_error("html_image: missing 'file' parameter", E_USER_NOTICE); - return; - } - - if (substr($file,0,1) == '/') { - $_image_path = $basedir . $file; - } else { - $_image_path = $file; - } - - if(!isset($params['width']) || !isset($params['height'])) { - if(!$_image_data = @getimagesize($_image_path)) { - if(!file_exists($_image_path)) { - $smarty->trigger_error("html_image: unable to find '$_image_path'", E_USER_NOTICE); - return; - } else if(!is_readable($_image_path)) { - $smarty->trigger_error("html_image: unable to read '$_image_path'", E_USER_NOTICE); - return; - } else { - $smarty->trigger_error("html_image: '$_image_path' is not a valid image file", E_USER_NOTICE); - return; - } - } - if ($smarty->security && - ($_params = array('resource_type' => 'file', 'resource_name' => $_image_path)) && - (require_once(SMARTY_CORE_DIR . 'core.is_secure.php')) && - (!smarty_core_is_secure($_params, $smarty)) ) { - $smarty->trigger_error("html_image: (secure) '$_image_path' not in secure directory", E_USER_NOTICE); - } - - if(!isset($params['width'])) { - $width = $_image_data[0]; - } - if(!isset($params['height'])) { - $height = $_image_data[1]; - } - - } - - if(isset($params['dpi'])) { - if(strstr($server_vars['HTTP_USER_AGENT'], 'Mac')) { - $dpi_default = 72; - } else { - $dpi_default = 96; - } - $_resize = $dpi_default/$params['dpi']; - $width = round($width * $_resize); - $height = round($height * $_resize); - } - - return $prefix . ''.$alt.'' . $suffix; -} - -/* vim: set expandtab: */ - -?> diff --git a/trunk/libs/plugins/function.html_options.php b/trunk/libs/plugins/function.html_options.php deleted file mode 100644 index cebadde4..00000000 --- a/trunk/libs/plugins/function.html_options.php +++ /dev/null @@ -1,122 +0,0 @@ - - * Name: html_options
      - * Input:
      - * - name (optional) - string default "select" - * - values (required if no options supplied) - array - * - options (required if no values supplied) - associative array - * - selected (optional) - string default not set - * - output (required if not options supplied) - array - * Purpose: Prints the list of