hhh_textile_title
This plugin provides a single tag, <txp:hhh_textile_title/>. The tag works much like the standard <txp:title/> tag. However, it can employ Textile in processing of article titles. The extent of Textile capabilities is controlled by attributes.
Why upm_textile Does Not Help
A recommended solution to the issue targeted by this plugin used to be
<txp:upm_textile><txp:title/></txp:upm_textile>
However, txp:title converts plain single and double quotes to character entities to avoid collisions with attribute delimiters. Thus, Textile does not convert them to proper openning and closing quotes and apostrophes. Moreover, upm_textile does not offer control fine enough to allow nice glyphs in attributes without potentially breaking validity of resulting documents.
Compatibility Attributes
no_widow = "boolean"
Setting this attribute to ‘true’ inhibits a line break at the last space of a title.
The default value comes from TXP preferences (Prevent widowed words in article titles).
no_textile = "boolean"
Default value: false
Setting this attribute to ‘true’ makes the tag immitate a <txp:title/> tag regardless of any Textile attributes.
Textile Attributes
multicaps = "boolean"
Default value: false
Setting this attribute to true enables acronyms in the form of ABC(Always Be Closing) and extra markup of multi-caps words for styling (span class="caps").
Do not set to ‘true’ when producing a HTML head or the value of an attribute of an HTML element.
phrase_mods = "boolean"
Default value: false
Setting this attribute to ‘true’ enables inline markup (aka phrase modifiers), i.e. _emphasis_, ??citation??, %span%, etc. It does not enable @code@, though.
Do not set to ‘true’ when producing a HTML head or the value of an attribute of an HTML element.
punctuation = "boolean"
Default value: true
Setting this attribute to ‘true’ enables enhanced punctuation glyphs, i.e. proper openning and closing quotes, apostrophes, dashes, etc. It leaves acronyms and multi-caps intact – see the multicaps attribute.
You can enable this even if producing HTML heads and attributes of HTML elements.
Bugs
The phrase_mods attribute does not include @code@ mark-up. I somehow cannot make it work :(. Help appreciated.









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.