Module ImportFrom alias alias ImportFrom alias ImportFrom alias alias identifier ImportFrom alias alias Import alias Import alias Import alias ImportFrom alias alias alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr Dict For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Str Str BinOpAdd ListLoad Num ListComp Call NameLoad CompareEq NameLoad Str comprehension NameStore Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore ListComp Call NameLoad BoolOpOr NameLoad Num comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLtE Call NameLoad NameLoad Num body Return ListLoad NameLoad If CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMult ListLoad Num BinOpAdd Call NameLoad NameLoad Num For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Slice NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpAdd NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad orelse Break Assign SubscriptStore NameLoad Index Num SubscriptStore NameLoad Index Num SubscriptStore NameLoad Index Num SubscriptStore NameLoad Index Num Num Assign NameStore ListLoad Str For TupleStore NameStore NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num body AugAssignAdd SubscriptStore NameLoad Index Num NameLoad If BinOpMod NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad Call NameLoad Lambda arguments args NameParam defaults CompareIn NameLoad AttributeLoad NameLoad attr ListLoad Str Str Str Str body Pass orelse Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str NameLoad CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body For NameStore ListLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad SubscriptLoad NameLoad Slice Num body For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Num Index Num TryExcept body With Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword Str NameStore body Assign NameStore Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Delete NameDel Delete NameDel Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Return Lambda arguments args NameParam defaults ListLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg body If CompareNotEq AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Lambda arguments args NameParam defaults ListLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Assign NameStore Num TryExcept body Return Call AttributeLoad Str attr AttributeLoad Call NameLoad NameLoad NameLoad keyword NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A acrylamid log utils acrylamid.filters Filter acrylamid.compat filter text_type str acrylamid.lib.html HTMLParser HTMLParseError N/A os N/A io N/A re os.path join dirname basename HyphenPatternNotFound N/A Exception N/A N/A N/A Hyphenator N/A N/A N/A  Hyphenation, using Frank Liang's algorithm.

    This module provides a single function to hyphenate words.  hyphenate_word takes
    a string (the word), and returns a list of parts that can be separated by hyphens.

    >>> hyphenate_word("hyphenation")
    ['hy', 'phen', 'ation']
    >>> hyphenate_word("supercalifragilisticexpialidocious")
    ['su', 'per', 'cal', 'ifrag', 'ilis', 'tic', 'ex', 'pi', 'ali', 'do', 'cious']
    >>> hyphenate_word("project")
    ['project']

    Ned Batchelder, July 2007.
    This Python code is in the public domain. N/A __version__ 1.0.20070709 __init__ N/A N/A self chars patterns exceptions N/A N/A N/A N/A self chars N/A unicode N/A N/A [. N/A N/A re escape chars ] N/A N/A self tree N/A N/A pattern N/A N/A patterns split N/A N/A N/A N/A self _insert_pattern pattern N/A N/A self exceptions N/A N/A ex N/A N/A exceptions split N/A N/A N/A N/A self exceptions N/A N/A N/A ex replace - N/A N/A 0 N/A N/A int N/A h - N/A h N/A N/A re split [a-z] ex N/A _insert_pattern N/A N/A self pattern N/A N/A N/A chars N/A N/A re sub [0-9] pattern N/A points N/A N/A int N/A d 0 N/A d N/A N/A re split N/A self chars pattern N/A t N/A self tree N/A c chars N/A N/A N/A c t N/A N/A N/A t N/A c N/A N/A t N/A t N/A c N/A N/A t N/A None points N/A hyphenate_word N/A N/A self word N/A N/A N/A  Given a word, returns a list of pieces, broken at the possible
            hyphenation points.
         N/A N/A N/A len word 4 N/A N/A N/A word N/A N/A N/A N/A word lower N/A self exceptions N/A N/A points N/A N/A self exceptions N/A N/A N/A word lower N/A N/A work N/A N/A . N/A N/A word lower . N/A points N/A N/A 0 N/A N/A len work 1 N/A i N/A range N/A len work N/A N/A t N/A self tree N/A c N/A work N/A i N/A N/A N/A c t N/A N/A t N/A t N/A c N/A N/A None t N/A N/A p N/A t N/A None N/A j N/A range N/A len p N/A N/A N/A points N/A N/A i j N/A max N/A points N/A N/A i j N/A p N/A j N/A N/A N/A N/A points N/A 1 N/A points N/A 2 N/A points N/A -2 N/A points N/A -3 0 N/A pieces N/A N/A N/A c p N/A zip word N/A points N/A 2 N/A N/A N/A pieces N/A -1 c N/A N/A p 2 N/A N/A N/A N/A pieces append N/A pieces N/A N/A Separator N/A HTMLParser N/A N/A helper class to apply Hyphenator to each word except in pre, code,
    math and em tags. __init__ N/A N/A self html hyphenationfunc length N/A 10 N/A N/A N/A self hyphenate hyphenationfunc N/A N/A self length length N/A N/A N/A HTMLParser __init__ self html N/A handle_data N/A N/A self data N/A N/A N/A Hyphenate words longer than 10 characters. N/A N/A any N/A filter N/A N/A N/A i N/A N/A i N/A self stack N/A pre code math script N/A N/A N/A N/A split N/A word N/A word N/A N/A re split [.:,\s!?+=\(\)/-]+ data N/A N/A len word N/A self length N/A word split N/A N/A hyphenated N/A N/A &shy; join N/A N/A self hyphenate word N/A data N/A N/A data replace word hyphenated N/A N/A N/A N/A self result append data N/A N/A build N/A N/A lang N/A N/A N/A build the Hyphenator from given language.  If you want add more, see
    http://tug.org/svn/texhyphen/trunk/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/ . gethyph N/A N/A lang directory prefix N/A hyph/ hyph- N/A N/A la N/A N/A prefix lang N/A prefix N/A lang N/A 2 N/A N/A p N/A N/A os listdir directory N/A N/A f N/A N/A N/A os path basename p N/A N/A N/A f startswith la N/A N/A N/A join directory p N/A N/A N/A HyphenPatternNotFound N/A no hyph-definition found for '%s' lang N/A N/A dir N/A N/A N/A os path join N/A dirname __file__ hyph/ N/A fpath N/A N/A N/A N/A gethyph lang dir rsplit . 2 N/A 0 N/A N/A N/A N/A N/A io open N/A fpath .chr.txt encoding utf-8 f N/A N/A chars N/A N/A join N/A N/A line N/A 0 N/A line N/A N/A f readlines N/A N/A N/A io open N/A fpath .pat.txt encoding utf-8 f N/A N/A patterns N/A N/A f read N/A N/A N/A IOError N/A N/A N/A HyphenPatternNotFound N/A hyph/%s.chr.txt or hyph/%s.pat.txt missing N/A lang lang N/A hyphenator N/A Hyphenator chars patterns exceptions N/A patterns N/A chars N/A N/A N/A log debug N/A built Hyphenator from <%s> N/A basename fpath N/A N/A hyphenator hyphenate_word N/A Hyphenate N/A Filter N/A N/A match N/A N/A N/A re compile ^(H|h)yph N/A version 2 N/A priority 20.0 default N/A N/A self N/A N/A N/A N/A N/A N/A build N/A N/A N/A N/A self conf N/A lang replace _ - N/A N/A N/A HyphenPatternNotFound N/A e N/A N/A N/A N/A log warn N/A N/A e args N/A 0 N/A N/A N/A N/A x N/A N/A x N/A N/A utils cached_property init N/A N/A self conf env N/A N/A N/A N/A self conf conf N/A transform N/A N/A self content entry N/A args N/A N/A N/A N/A entry lang N/A N/A self conf N/A lang N/A N/A N/A N/A hyphenate_word N/A build N/A N/A N/A entry lang replace _ - N/A N/A N/A HyphenPatternNotFound N/A e N/A N/A N/A N/A log warn N/A N/A e args N/A 0 N/A hyphenate_word N/A N/A N/A x N/A N/A x N/A N/A hyphenate_word N/A self default N/A N/A N/A length N/A int N/A args N/A 0 N/A N/A N/A N/A ValueError IndexError N/A e N/A N/A N/A N/A N/A e __class__ __name__ ValueError N/A N/A N/A N/A log warn Hyphenate: invalid length argument %r N/A args N/A 0 N/A length 10 N/A N/A N/A N/A N/A join N/A N/A Separator content hyphenate_word length length result N/A N/A N/A HTMLParseError N/A e N/A N/A N/A N/A log exception N/A could not hyphenate  N/A entry filename N/A content N/A N/A