|
NAMEPerlPoint::Tags::Basic - declares basic PerlPoint tagsVERSIONThis manual describes version 0.08.SYNOPSIS# declare basic tags use PerlPoint::Tags::Basic; DESCRIPTIONThis module declares several basic PerlPoint tags. Tag declarations are used by the parser to determine if a used tag is valid, if it needs options, if it needs a body and so on. Please see \PerlPoint::Tags for a detailed description of tag declaration.Every PerlPoint translator willing to handle the tags of this module can declare this by using the module in the scope where it built the parser object. # declare basic tags use PerlPoint::Tags::Basic; # load parser module use PerlPoint::Parser; ... # build parser my $parser=new PerlPoint::Parser(...); ... It is also possible to select certain declarations. # declare basic tags use PerlPoint::Tags::Basic qw(I C); A set name is provided as well to declare all the flags at once. # declare basic tags use PerlPoint::Tags::Basic qw(:basic); TAGSBmarks text as bold. No options, but a mandatory tag body.Cmarks text as code. No options, but a mandatory tag body.FThis is a generalized font tag, introduced by "pp2html" and made generally available. It sets up the formatting of a selected text. Traditionally, these are font settings like text color and font size, but there can be more formattings.Both options and body are mandatory. Please note that this tag is fairly general. Accepted options and their meaning are defined by the converters, but there are conventions that make documents portable between converters. So, by convention, options "color" and "size" set up the color and font size of the selected text, in the tradition and argument syntax of HTML. A \F{color=red}<red> colored text. FORMATis a container tag to configure result formatting. Configuration settings are received via tag options and are intended to remain valid until another modification. For example, one may set the default text color of examples to green. This would remain valid until the next text color setting.Please note that this tag is very general. Accepted options and their meaning are defined by the converters. Nevertheless, certain settings are commonly used by convention. If used as the only contents of a text paragraph the paragraph wrapper will be removed from the stream and the tag is streamed standalone. HIDEhides everything in its body. Makes most sense when used with a tag condition.If used as the only contents of a text paragraph the paragraph wrapper will be removed from the stream and the tag is streamed standalone. Imarks text as italic. No options, but a mandatory tag body.IMAGEincludes an image. No tag body, but a mandatory option "src" to pass the image file, and an optional option "alt" to store text alternatively to be displayed. The option set is open - there can be more options but they will not be checked by the parser. If "alt" is not set it defaults to an empty string (added automatically).The image source file name will be supplied absolutely in the stream. If used as the only contents of a text paragraph the paragraph wrapper will be removed from the stream and the tag is streamed standalone. INDEXGenerates an index listing all keywords collected via X. Index formatting is up to the converters.If used as the only contents of a text paragraph the paragraph wrapper will be removed from the stream and the tag is streamed standalone. INDEXCLOUDGenerates a "cloud" of the index entries. The term is inspired by the "tag clouds" which became popular in the Internet, but the final formatting might be different, as it is up to the converters. Not all target formats might have features to present a cloud, but finally one should get a kind of a ranking that shows which index entries were used frequently.If used as the only contents of a text paragraph the paragraph wrapper will be removed from the stream and the tag is streamed standalone. This tag can be configured by options. All options are optional, except where stated.
INDEXRELATIONSInserts a chapter "cross reference" based on the keywords found in all chapters using this tag.So, the tag has two functions. First, it collects all index entries made in its chapters (and optionally all its subchapters). Second, it includes a reference to other chapters with INDEXRELATIONS which match the own index entries according to the configuration. If used as the only contents of a text paragraph the paragraph wrapper will be removed from the stream and the tag is streamed standalone. Configuration is done via options.
If this option is omitted, the setting defaults to "bullets".
Examples: \INDEXRELATIONS{format=numbers} "" \INDEXRELATIONS{threshold="100%" format=enumerated type=plain} "" \INDEXRELATIONS{readdepth=full reldepth=startpage threshold="50%" format=bullets type=linked} LOCALTOCinserts a list of subchapters, which means a list of the plain subchapter titles. This is especially useful at the beginning of a greater document section, or on an introduction page where you want to preview what the audience can expect in the following talk section.Using a tag relieves the documents author from writing and maintaining this list manually. If used as the only contents of a text paragraph the paragraph wrapper will be removed from the stream and the tag is streamed standalone. There is no tag body, but the result can be configured by options.
If this option is omitted, the setting defaults to "bullets".
Examples: \LOCALTOC "" \LOCALTOC{depth=2} "" \LOCALTOC{format=enumerated type=linked} READYdeclares the document to be read completely. No options, no body. Works instantly. Not even the current paragraph will become part of the result. This tag is still experimental, and its behaviour may change in future versions. It is suggested to use it in a single text paragraph, usually embedded into conditions.? ready "" \READY "" ? 1 REFThis is a very general and highly configurable reference. It can be used both to make linked and unlinked references, it can fallback to alternative references if necessary, and it can finally be that optional that the specified reference does not even has to exist.There are various options. Please note that several options are filled by the parser. They are not intended to be propagated to document authors. To make best use of \REF it is recommended to register all anchors at parsing time (with the parsers anchor object passed to all tag hooks).
SEQInserts the next value of a certain numerical sequence. Optionally, the generated number can be made an anchor to reference it at another place.There is no tag body, but there are several options. Please note that the parser passes informations by internal options as well.
STOPEnforces an syntactical error which stops document processing immediately. Most useful when used with tag conditions.XMarks the body to included into the index. Formatting of the index is up to the converters, as is its location unless the INDEX tag is used to include it explicitly.There are no basic options, but usually converters declare their own, so please refer to the docs of your preferred converter for option details. TAG SETSThere is only one set "basic" including all the tags.SEE ALSO
SUPPORTA PerlPoint mailing list is set up to discuss usage, ideas, bugs, suggestions and translator development. To subscribe, please send an empty message to perlpoint-subscribe@perl.org.If you prefer, you can contact me via perl@jochen-stenzel.de as well. AUTHORCopyright (c) Jochen Stenzel (perl@jochen-stenzel.de), 1999-2004. All rights reserved.This module is free software, you can redistribute it and/or modify it under the terms of the Artistic License distributed with Perl version 5.003 or (at your option) any later version. Please refer to the Artistic License that came with your Perl distribution for more details. The Artistic License should have been included in your distribution of Perl. It resides in the file named "Artistic" at the top-level of the Perl source tree (where Perl was downloaded/unpacked - ask your system administrator if you dont know where this is). Alternatively, the current version of the Artistic License distributed with Perl can be viewed on-line on the World-Wide Web (WWW) from the following URL: http://www.perl.com/perl/misc/Artistic.html DISCLAIMERThis software is distributed in the hope that it will be useful, but is provided "AS IS" WITHOUT WARRANTY OF ANY KIND, either expressed or implied, INCLUDING, without limitation, the implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR PURPOSE.The ENTIRE RISK as to the quality and performance of the software IS WITH YOU (the holder of the software). Should the software prove defective, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IN NO EVENT WILL ANY COPYRIGHT HOLDER OR ANY OTHER PARTY WHO MAY CREATE, MODIFY, OR DISTRIBUTE THE SOFTWARE BE LIABLE OR RESPONSIBLE TO YOU OR TO ANY OTHER ENTITY FOR ANY KIND OF DAMAGES (no matter how awful - not even if they arise from known or unknown flaws in the software). Please refer to the Artistic License that came with your Perl distribution for more details.
Visit the GSP FreeBSD Man Page Interface. |