Formatter Markup | |||||||||||||||
PPresenter Manual Formatter Markup
Not HTML |
Portable Presenter has a few formatters,
which each enable someone to specify what text should appear on a slide.
The markup formatter is very close to HTML, but there are a few
important differences. There are to simplified versions (sub-classes)
of the markup formatter:
simple and plain.
Differences between markup and HTML
Markup Formatter OptionsThe markup-formatter is a sub-class of the formatters, so you also have to look at the
Adding Logical TagsYou can add logical tags, which are translated into visual tags. For instance: (somewhere inbetween the slides)$show->find('formatter', 'markup') ->addLogical(EMAIL => 'TT B'); $show->select(formatter => 'markup') ->addLogical(EMAIL => 'TT B');or (in the script's preamble) $show->select('formatter', 'markup') ->addLogical(EMAIL => 'TT B'); You can add a whole list of logicals at once (preferred!): $show->find(formatter => 'markup') ->addLogicals(EMAIL => 'TT B', DEMO => 'FONT SIZE=+1 COLOR=green');Note that addLogical is equivalent to
addLogicals . You can only translate logical
tags into visual tags, so in this case I was forced to write
FONT SIZE=+1 in stead of LARGE
because LARGE is a predefined logical.
Adding Special CharactersThe way you add special characters is equivalent to the way that logicals are added, as described above. The function involved isaddSpecialCharacter (same as addSpecialCharacters ).
The argument to the function is a list of name to representation conversions: $show->select(formatter => 'markup') ->addSpecialCharacters (euro => 'EURO', tilde => '~');After this definition, you can use € and
˜ in your text.
| ||||||||||||||
Portable Presenter is written and maintained by Mark Overmeer. Copyright (C) 2000-2002, Free Software Foundation FSF. |