Documentation

Horde_Text_Textile
in package

References: http://www.textism.com/tools/textile/ http://en.wikipedia.org/wiki/Textile_(markup_language) http://hobix.com/textile/ http://whytheluckystiff.net/ruby/redcloth/ http://redcloth.rubyforge.org/rdoc/ http://code.whytheluckystiff.net/redcloth/browser/trunk/test/textism.yml

Example: get XHTML from a given Textile-markup string ($string) $textile = new Horde_Text_Textile; echo $textile->toHtml($string);

Tags
category

Horde

Table of Contents

REGEX_A  = '(?:(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))|[\-^~])*'
'(?:' . A_HLGN . '|' . A_VLGN . ')*'
REGEX_A_HLGN  = '(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))'
A_HLGN
REGEX_A_VLGN  = '[\-^~]'
A_VLGN
REGEX_BLOCK_TAGS  = 'bq|bc|notextile|pre|h[1-6]|fn\d+|p'
Block tags
REGEX_C  = '(?:(?:\([^)]+\))|(?:\{[^}]+\})|(?:\[[^]]+\])|(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! )))*'
'(?:' . C_CLAS . '|' . C_STYL . '|' . C_LNGE . '|' . A_HLGN . ')*'
REGEX_PUNCT  = '\!"#\$%&'\*\+,-\.\/\:;\=\?@\\^_`\|~'
PUNCT
REGEX_S  = '(?:(?:\\\d+)|(?:\/\d+))*'
'(?:' . S_CSPN . '|' . S_RSPN . ')*'
REGEX_URL  = '[\w"$\-_.+!*'(),";\/?:@=&%#{}|\^~\[\]`]'
LINK_RE
$GLYPH_APOSTROPHE  : mixed
$GLYPH_COPYRIGHT  : mixed
$GLYPH_DIMENSION  : mixed
$GLYPH_ELLIPSIS  : mixed
$GLYPH_EMDASH  : mixed
$GLYPH_ENDASH  : mixed
$GLYPH_PRIME  : mixed
$GLYPH_PRIME_DOUBLE  : mixed
$GLYPH_QUOTE_DOUBLE_CLOSE  : mixed
$GLYPH_QUOTE_DOUBLE_OPEN  : mixed
$GLYPH_QUOTE_SINGLE_CLOSE  : mixed
$GLYPH_QUOTE_SINGLE_OPEN  : mixed
Glyphs. Can be overridden if you want to substitute different entities.
$GLYPH_REGISTERED  : mixed
$GLYPH_RETURN_ARROW  : mixed
$GLYPH_TRADEMARK  : mixed
$images  : bool
Show images? On by default.
$rel  : string
Rel attribute for links (ex: nofollow).
$_shelf  : array<string|int, mixed>
Shelf of values being processed.
transform()  : mixed

Constants

REGEX_A

'(?:' . A_HLGN . '|' . A_VLGN . ')*'

public mixed REGEX_A = '(?:(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))|[\-^~])*'

REGEX_A_HLGN

A_HLGN

public mixed REGEX_A_HLGN = '(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))'

REGEX_A_VLGN

A_VLGN

public mixed REGEX_A_VLGN = '[\-^~]'

REGEX_BLOCK_TAGS

Block tags

public mixed REGEX_BLOCK_TAGS = 'bq|bc|notextile|pre|h[1-6]|fn\d+|p'

REGEX_C

'(?:' . C_CLAS . '|' . C_STYL . '|' . C_LNGE . '|' . A_HLGN . ')*'

public mixed REGEX_C = '(?:(?:\([^)]+\))|(?:\{[^}]+\})|(?:\[[^]]+\])|(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! )))*'

REGEX_PUNCT

PUNCT

public mixed REGEX_PUNCT = '\!"#\$%&'\*\+,-\.\/\:;\=\?@\\^_`\|~'

REGEX_S

'(?:' . S_CSPN . '|' . S_RSPN . ')*'

public mixed REGEX_S = '(?:(?:\\\d+)|(?:\/\d+))*'

REGEX_URL

LINK_RE

public mixed REGEX_URL = '[\w"$\-_.+!*'(),";\/?:@=&%#{}|\^~\[\]`]'

Properties

$GLYPH_APOSTROPHE

public static mixed $GLYPH_APOSTROPHE = '&#8217;'
public static mixed $GLYPH_COPYRIGHT = '&#169;'

$GLYPH_DIMENSION

public static mixed $GLYPH_DIMENSION = '&#215;'

$GLYPH_ELLIPSIS

public static mixed $GLYPH_ELLIPSIS = '&#8230;'

$GLYPH_EMDASH

public static mixed $GLYPH_EMDASH = '&#8212;'

$GLYPH_ENDASH

public static mixed $GLYPH_ENDASH = '&#8211;'

$GLYPH_PRIME

public static mixed $GLYPH_PRIME = '&#8242;'

$GLYPH_PRIME_DOUBLE

public static mixed $GLYPH_PRIME_DOUBLE = '&#8243;'

$GLYPH_QUOTE_DOUBLE_CLOSE

public static mixed $GLYPH_QUOTE_DOUBLE_CLOSE = '&#8221;'

$GLYPH_QUOTE_DOUBLE_OPEN

public static mixed $GLYPH_QUOTE_DOUBLE_OPEN = '&#8220;'

$GLYPH_QUOTE_SINGLE_CLOSE

public static mixed $GLYPH_QUOTE_SINGLE_CLOSE = '&#8217;'

$GLYPH_QUOTE_SINGLE_OPEN

Glyphs. Can be overridden if you want to substitute different entities.

public static mixed $GLYPH_QUOTE_SINGLE_OPEN = '&#8216;'

$GLYPH_REGISTERED

public static mixed $GLYPH_REGISTERED = '&#174;'

$GLYPH_RETURN_ARROW

public static mixed $GLYPH_RETURN_ARROW = '&#8617;'

$GLYPH_TRADEMARK

public static mixed $GLYPH_TRADEMARK = '&#8482;'

$images

Show images? On by default.

public bool $images = rue

$rel

Rel attribute for links (ex: nofollow).

public string $rel = ''

$_shelf

Shelf of values being processed.

protected array<string|int, mixed> $_shelf = array()

Methods

transform()

public transform(mixed $text[, mixed $rel = '' ]) : mixed
Parameters
$text : mixed
$rel : mixed = ''
Return values
mixed

Search results