Class

AttributeManager

Extends:

There's no documentation for this item.

Constants
A_PROTECT We work by substituting non-printing characters in to the text. For now I’m assuming that I can substitute a character in the range 0..8 for a 7 bit character without damaging the encoded string, but this might be optimistic
HTML_TAGS This maps HTML tags to the corresponding attribute char
MATCHING_WORD_PAIRS This maps delimiters that occur around words (such as bold or tt) where the start and end delimiters and the same. This lets us optimize the regexp
NULL
PROTECTABLE A \ in front of a character that would normally be processed turns off processing. We do this by turning < into <#{PROTECT}
PROTECT_ATTR
SPECIAL And this maps special sequences to a name. A special sequence is something like a WikiWord
WORD_PAIR_MAP And this is used when the delimiters aren’t the same. In this case the hash maps a pattern to the attribute character
Public Methods
add_html
add_special
add_word_pair
attribute Return an attribute object with the given turn_on and turn_off bits set
change_attribute
changed_attribute_by_name
convert_attrs Map attributes like textto the sequence \001\002<char>\001\003<char>, where <char> is a per-attribute specific character</char></char></char>
convert_html
convert_specials
copy_string
display_attributes
flow
mask_protected_sequences
new
split_into_flow
unmask_protected_sequences
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.