Module Import alias ImportFrom alias Import alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias alias Assign NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore BinOpMult Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Num body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num If UnaryOpNot NameLoad body Return NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad SubscriptLoad NameLoad Slice Num attr orelse Return NameLoad AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr body Return NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad GeneratorExp Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num comprehension NameStore AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Return NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareGtE Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad If BoolOpAnd NameLoad Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Num body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num If UnaryOpNot NameLoad body Return NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr BoolOpOr NameLoad Str Return NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Slice Num attr Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Return NameLoad orelse Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Return CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Delete NameDel Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad Lambda arguments args NameParam defaults CompareNotEq NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Return Call NameLoad NameLoad Call NameLoad NameLoad orelse Return Call NameLoad Dict Call NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr orelse For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr Call AttributeLoad NameLoad attr Num orelse Break handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list
N/A N/A itertools itertools takewhile N/A re screenplain.types Slug Action Dialog DualDialog Transition Section PageBreak Screenplay screenplain.richstring parse_emphasis plain N/A slug_regexes N/A N/A N/A re compile ^(INT|EXT|EST)[ .] N/A N/A re compile ^(INT\.?/EXT\.?)[ .] N/A N/A re compile ^I/E[ .] N/A boneyard_re N/A N/A re compile /\*.*?\*/ flags N/A re DOTALL N/A TWOSPACE N/A 2 N/A linebreak_re N/A N/A re compile 
|
|
 N/A title_page_key_re N/A N/A re compile ([^:]+):\s*(.*) N/A title_page_value_re N/A N/A re compile (?:\s{3,}|\t)(.+) N/A centered_re N/A N/A re compile \s*>\s*(.*?)\s*<\s*$ N/A dual_dialog_re N/A N/A re compile ^(.+?)(\s*\^)$ N/A slug_re N/A N/A re compile (?:(\.)(?=[^.])\s*)?(\S.*?)\s*$ N/A scene_number_re N/A N/A re compile (.*?)\s*(?:#([\w\-.]+)#)\s*$ N/A section_re N/A N/A re compile ^(#{1,6})\s*([^#].*)$ N/A transition_re N/A N/A re compile (>?)\s*(.+?)(TO:)?$ N/A page_break_re N/A N/A re compile ^={3,}$ _sequence_to_rich N/A N/A lines N/A N/A N/A Converts a sequence of strings into a list of RichString. N/A N/A N/A parse_emphasis line N/A line lines N/A _string_to_rich N/A N/A line N/A N/A N/A Converts a single string into a RichString.
     N/A N/A parse_emphasis line N/A InputParagraph N/A object N/A __init__ N/A N/A self lines N/A N/A N/A N/A self lines lines N/A update_list N/A N/A self previous_paragraphs N/A N/A N/A Inserts this paragraph into a list.
        Modifies the `previous_paragraphs` list.
         N/A N/A N/A N/A self append_page_break previous_paragraphs N/A N/A self append_synopsis previous_paragraphs N/A N/A self append_sections_and_synopsises previous_paragraphs N/A N/A self append_slug previous_paragraphs N/A N/A self append_centered_action previous_paragraphs N/A N/A self append_dialog previous_paragraphs N/A N/A self append_transition previous_paragraphs N/A N/A self append_action previous_paragraphs N/A append_slug N/A N/A self paragraphs N/A N/A N/A N/A N/A len N/A self lines 1 N/A N/A False N/A match N/A N/A slug_re match N/A N/A self lines N/A 0 N/A N/A match N/A N/A False N/A N/A period text N/A N/A match groups N/A text N/A N/A text upper N/A N/A N/A period N/A N/A any N/A N/A N/A regex match text N/A regex slug_regexes N/A N/A False N/A match N/A N/A scene_number_re match text N/A match N/A N/A N/A text scene_number N/A N/A match groups N/A N/A N/A paragraphs append N/A Slug N/A _string_to_rich text N/A plain scene_number N/A N/A N/A N/A paragraphs append N/A Slug N/A _string_to_rich text N/A True N/A append_sections_and_synopsises N/A N/A self paragraphs N/A N/A N/A new_paragraphs N/A N/A line N/A self lines N/A N/A match N/A N/A section_re match line N/A match N/A N/A N/A hashes text N/A N/A match groups N/A section N/A Section N/A _string_to_rich text N/A len hashes N/A N/A N/A new_paragraphs append section N/A N/A N/A N/A N/A line startswith = new_paragraphs N/A hasattr N/A new_paragraphs N/A -1 set_synopsis N/A N/A N/A N/A N/A new_paragraphs N/A -1 set_synopsis N/A N/A N/A line N/A 1 lstrip N/A N/A False N/A paragraphs new_paragraphs N/A True N/A append_centered_action N/A N/A self paragraphs N/A N/A N/A N/A N/A all N/A N/A N/A centered_re match line N/A line N/A self lines N/A N/A False N/A N/A N/A paragraphs append N/A Action N/A _sequence_to_rich N/A N/A N/A N/A N/A centered_re match line group 1 N/A line N/A self lines centered True N/A True N/A _create_dialog N/A N/A self character N/A N/A N/A N/A Dialog N/A parse_emphasis N/A N/A character strip N/A _sequence_to_rich N/A N/A N/A line strip N/A line N/A N/A self lines N/A 1 N/A append_dialog N/A N/A self paragraphs N/A N/A N/A N/A N/A len N/A self lines 2 N/A N/A False N/A character N/A N/A self lines N/A 0 N/A N/A N/A character endswith TWOSPACE N/A N/A False N/A N/A N/A N/A character startswith @ N/A N/A len character 2 N/A N/A character N/A character N/A 1 N/A N/A N/A N/A N/A character isupper N/A N/A False N/A N/A paragraphs N/A isinstance N/A paragraphs N/A -1 Dialog N/A N/A dual_match N/A N/A dual_dialog_re match character N/A dual_match N/A N/A previous N/A N/A paragraphs pop N/A dialog N/A N/A self _create_dialog N/A N/A dual_match group 1 N/A N/A N/A paragraphs append N/A DualDialog previous dialog N/A True N/A N/A N/A paragraphs append N/A N/A self _create_dialog character N/A True N/A append_transition N/A N/A self paragraphs N/A N/A N/A N/A N/A len N/A self lines 1 N/A N/A False N/A match N/A N/A transition_re match N/A N/A self lines N/A 0 N/A N/A match N/A N/A False N/A N/A greater_than text to_colon N/A N/A match groups N/A greater_than N/A N/A N/A N/A paragraphs append N/A Transition N/A _string_to_rich N/A N/A N/A text upper N/A to_colon N/A True N/A N/A N/A N/A text isupper to_colon N/A N/A N/A N/A paragraphs append N/A Transition N/A _string_to_rich N/A text to_colon N/A True N/A False N/A append_action N/A N/A self paragraphs N/A N/A N/A N/A N/A paragraphs append N/A Action N/A _sequence_to_rich N/A N/A N/A line rstrip N/A line N/A self lines N/A True N/A append_synopsis N/A N/A self paragraphs N/A N/A N/A N/A N/A N/A len N/A self lines 1 N/A N/A N/A N/A self lines N/A 0 startswith = paragraphs N/A hasattr N/A paragraphs N/A -1 set_synopsis N/A N/A N/A N/A N/A paragraphs N/A -1 set_synopsis N/A N/A N/A N/A N/A self lines N/A 0 N/A 1 lstrip N/A True N/A N/A False N/A append_page_break N/A N/A self paragraphs N/A N/A N/A N/A N/A N/A len N/A self lines 1 N/A N/A page_break_re match N/A N/A self lines N/A 0 N/A N/A N/A N/A paragraphs append N/A PageBreak N/A True N/A N/A False N/A N/A _preprocess_line N/A N/A raw_line N/A N/A N/A Replaces tabs with spaces and removes trailing end of line markers.

    >>> _preprocess_line('foo \r\n\n')
    'foo '

     N/A N/A N/A N/A N/A raw_line expandtabs 4 rstrip N/A _is_blank N/A N/A line N/A N/A N/A N/A line N/A parse N/A N/A stream N/A N/A N/A Parses Fountain source.

    Returns a Screenplay object.

     N/A content N/A N/A stream read N/A content N/A N/A boneyard_re sub content N/A lines N/A N/A linebreak_re split content N/A content N/A N/A parse_lines lines N/A parse_lines N/A N/A source N/A N/A N/A Reads raw text input and generates paragraph objects.

    Returns a Screenplay object.

     N/A source N/A N/A _preprocess_line line N/A line source N/A title_page_lines N/A list N/A takewhile N/A N/A N/A line N/A N/A line source N/A title_page N/A parse_title_page title_page_lines N/A title_page N/A N/A N/A Screenplay title_page N/A parse_body source N/A N/A N/A Screenplay N/A N/A parse_body N/A N/A itertools chain title_page_lines N/A source N/A parse_body N/A N/A source N/A N/A N/A Reads lines of the main screenplay and generates paragraph objects. N/A paragraphs N/A N/A N/A blank input_lines N/A N/A itertools groupby source _is_blank N/A N/A N/A blank N/A N/A paragraph N/A InputParagraph N/A list input_lines N/A N/A N/A paragraph update_list paragraphs N/A paragraphs N/A parse_title_page N/A N/A lines N/A N/A N/A Parse the title page.

    Spec: http://fountain.io/syntax#section-titlepage
    Returns None if the document does not have a title page section,
    otherwise a dictionary with the data.
     N/A result N/A N/A it N/A iter lines N/A N/A N/A line N/A N/A it next N/A True N/A N/A key_match N/A N/A title_page_key_re match line N/A N/A key_match N/A N/A None N/A N/A key value N/A N/A key_match groups N/A value N/A N/A N/A N/A N/A N/A result setdefault key N/A append value N/A line N/A N/A it next N/A N/A line it N/A N/A value_match N/A N/A title_page_value_re match line N/A N/A value_match N/A N/A N/A N/A N/A N/A N/A result setdefault key N/A append N/A N/A value_match group 1 N/A N/A N/A N/A N/A StopIteration N/A N/A N/A result N/A