Home | Trees | Indices | Help |
|
---|
|
|
|||
UnitClass The class of units that will be instantiated and used by this class |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
markingtags =
|
|||
markingattrs =
|
|||
includeattrs =
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Initialize and reset this instance.
|
Returns the encoding of the html text. We look for 'charset=' within a meta tag to do this. |
Replaces all instances of PHP with placeholder tags, and returns the new text and a dictionary of tags. The current implementation replaces <?foo?> with <?md5(foo)?>. The hash => code conversions are stored in self.phpdict for later use in restoring the real PHP. The purpose of this is to remove all potential "tag-like" code from inside PHP. The hash looks nothing like an HTML tag, but the following PHP: $a < $b ? $c : ($d > $e ? $f : $g) looks like it contains an HTML tag: < $b ? $c : ($d > to nearly any regex. Hence, we replace all contents of PHP with simple strings to help our regexes out. |
parser to process the given source string
|
Strip unnecessary html from the text. HTML tags are deemed unnecessary if it fully encloses the translatable text, eg. '<a href="index.html">Home Page</a>'. HTML tags that occurs within the normal flow of text will not be removed, eg. 'This is a link to the <a href="index.html">Home Page</a>.' |
|
|
|
|
|
|
|
|
|
markingtags
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Mar 3 16:36:57 2010 | http://epydoc.sourceforge.net |