Class Horde_Text_Textile

Description

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);

Located in /Text_Textile/lib/Horde/Text/Textile.php (line 23)


	
			
Class Constant Summary
 REGEX_A = '(?:(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))|[\-^~])*'
 REGEX_A_HLGN = '(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))'
 REGEX_A_VLGN = '[\-^~]'
 REGEX_BLOCK_TAGS = 'bq|bc|notextile|pre|h[1-6]|fn\d+|p'
 REGEX_C = '(?:(?:\([^)]+\))|(?:\{[^}]+\})|(?:\[[^]]+\])|(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! )))*'
 REGEX_PUNCT = '\!"#\$%&\'\*\+,-\.\/\:;\=\?@\\\^_`\|~'
 REGEX_S = '(?:(?:\\\\\d+)|(?:\/\d+))*'
 REGEX_URL = '[\w"$\-_.+!*\'(),";\/?:@=&%#{}|\\^~\[\]`]'
Variable Summary
 static mixed $GLYPH_APOSTROPHE
 static mixed $GLYPH_COPYRIGHT
 static mixed $GLYPH_DIMENSION
 static mixed $GLYPH_ELLIPSIS
 static mixed $GLYPH_EMDASH
 static mixed $GLYPH_ENDASH
 static mixed $GLYPH_PRIME
 static mixed $GLYPH_PRIME_DOUBLE
 static mixed $GLYPH_REGISTERED
 static mixed $GLYPH_RETURN_ARROW
 static mixed $GLYPH_TRADEMARK
 boolean $images
 string $rel
 array $_shelf
Method Summary
 void transform ( $text, [ $rel = ''])
Variables
static mixed $GLYPH_APOSTROPHE = '&#8217;' (line 73)
  • access: public
static mixed $GLYPH_COPYRIGHT = '&#169;' (line 82)
  • access: public
static mixed $GLYPH_DIMENSION = '&#215;' (line 79)
  • access: public
static mixed $GLYPH_ELLIPSIS = '&#8230;' (line 76)
  • access: public
static mixed $GLYPH_EMDASH = '&#8212;' (line 77)
  • access: public
static mixed $GLYPH_ENDASH = '&#8211;' (line 78)
  • access: public
static mixed $GLYPH_PRIME = '&#8242;' (line 74)
  • access: public
static mixed $GLYPH_PRIME_DOUBLE = '&#8243;' (line 75)
  • access: public
static mixed $GLYPH_QUOTE_DOUBLE_CLOSE = '&#8221;' (line 72)
  • access: public
static mixed $GLYPH_QUOTE_DOUBLE_OPEN = '&#8220;' (line 71)
  • access: public
static mixed $GLYPH_QUOTE_SINGLE_CLOSE = '&#8217;' (line 70)
  • access: public
static mixed $GLYPH_QUOTE_SINGLE_OPEN = '&#8216;' (line 69)

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

  • access: public
static mixed $GLYPH_REGISTERED = '&#174;' (line 81)
  • access: public
static mixed $GLYPH_RETURN_ARROW = '&#8617;' (line 83)
  • access: public
static mixed $GLYPH_TRADEMARK = '&#8482;' (line 80)
  • access: public
boolean $images = true (line 90)

Show images? On by default.

  • access: public
string $rel = '' (line 97)

Rel attribute for links (ex: nofollow).

  • access: public
array $_shelf = array() (line 104)

Shelf of values being processed.

  • access: protected
Methods
transform (line 106)
  • access: public
void transform ( $text, [ $rel = ''])
  • $text
  • $rel
Class Constants
REGEX_A = '(?:(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))|[\-^~])*' (line 38)

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

REGEX_A_HLGN = '(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))' (line 28)

A_HLGN

REGEX_A_VLGN = '[\-^~]' (line 33)

A_VLGN

REGEX_BLOCK_TAGS = 'bq|bc|notextile|pre|h[1-6]|fn\d+|p' (line 63)

Block tags

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

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

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

PUNCT

REGEX_S = '(?:(?:\\\\\d+)|(?:\/\d+))*' (line 43)

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

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

LINK_RE

Documentation generated on Sun, 30 Jan 2011 05:22:52 +0000 by phpDocumentor 1.4.3