Mercurial > jouvence
annotate docs/api.rst @ 35:6fb4d60b1e23 default tip
Added tag 0.4.0 for changeset 093bf35461ba
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 17 Jan 2017 09:18:54 -0800 |
parents | 9ae14e9615e6 |
children |
rev | line source |
---|---|
31
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
1 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
2 API |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
3 === |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
4 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
5 .. module:: jouvence |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
6 :synopsis: Jouvence API |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
7 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
8 The Jouvence API is fairly simple, and includes: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
9 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
10 * A Fountain parser that returns a screenplay object. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
11 * Several renderers, for formatting a screenplay object into something |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
12 you can display on screen or elsewhere. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
13 * A screenplay object that you can manipulate for custom rendering, |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
14 analysis, and more. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
15 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
16 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
17 Parser |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
18 ------ |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
19 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
20 .. automodule:: jouvence.parser |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
21 :synopsis: The Jouvence parser |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
22 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
23 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
24 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
25 Document |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
26 -------- |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
27 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
28 .. module:: jouvence.document |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
29 :synopsis: The Jouvence document object model |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
30 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
31 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
32 .. autoclass:: JouvenceDocument |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
33 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
34 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
35 .. attribute:: title_values |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
36 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
37 The title page key/values dictionary. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
38 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
39 .. attribute:: scenes |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
40 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
41 The list of scenes in the screenplay. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
42 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
43 Most screenplays start with some "free text" before the first scene. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
44 In this case, the first scene would have no header, and would contain |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
45 this text. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
46 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
47 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
48 .. autoclass:: JouvenceScene |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
49 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
50 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
51 .. attribute:: header |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
52 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
53 The header text of the scene, _e.g._ "EXT. JAMES' HOUSE - DAY". |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
54 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
55 .. attribute:: paragraphs |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
56 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
57 The list of paragraphs in the scene. Each paragraph is an instance |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
58 of :class:`~jouvence.document.JouvenceSceneElement`. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
59 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
60 .. method:: addAction(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
61 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
62 Adds an action (paragraph with ``TYPE_ACTION`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
63 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
64 .. method:: addCenteredAction(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
65 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
66 Adds a centered action (paragraph with ``TYPE_CENTEREDACTION`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
67 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
68 .. method:: addCharacter(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
69 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
70 Adds a character line (paragraph with ``TYPE_CHARACTER`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
71 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
72 .. method:: addDialog(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
73 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
74 Adds a dialog line (paragraph with ``TYPE_DIALOG`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
75 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
76 .. method:: addParenthetical(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
77 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
78 Adds a parenthetical (paragraph with ``TYPE_PARENTHETICAL`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
79 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
80 .. method:: addTransition(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
81 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
82 Adds a transition (paragraph with ``TYPE_TRANSITION`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
83 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
84 .. method:: addLyrics(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
85 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
86 Adds some lyrics (paragraph with ``TYPE_LYRICS`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
87 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
88 .. method:: addSynopsis(text) |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
89 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
90 Adds a synopsis (paragraph with ``TYPE_SYNOPSIS`` type). |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
91 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
92 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
93 .. autoclass:: JouvenceSceneElement |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
94 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
95 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
96 .. attribute:: type |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
97 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
98 The type of this element. Could be any of: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
99 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
100 * ``TYPE_ACTION`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
101 * ``TYPE_CENTEREDACTION`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
102 * ``TYPE_CHARACTER`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
103 * ``TYPE_DIALOG`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
104 * ``TYPE_PARENTHETICAL`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
105 * ``TYPE_TRANSITION`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
106 * ``TYPE_LYRICS`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
107 * ``TYPE_PAGEBREAK`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
108 * ``TYPE_SECTION`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
109 * ``TYPE_SYNOPSIS`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
110 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
111 .. attribute:: text |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
112 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
113 The text for this paragraph. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
114 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
115 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
116 .. autoclass:: JouvenceSceneSection |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
117 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
118 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
119 Screenplay sections have their own class because they have a ``depth`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
120 attribute in addition to a type and text. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
121 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
122 .. attribute:: depth |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
123 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
124 The depth, or level, of the section. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
125 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
126 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
127 Renderers |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
128 --------- |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
129 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
130 .. module:: jouvence.renderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
131 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
132 .. autoclass:: BaseDocumentRenderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
133 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
134 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
135 .. attribute:: force_title_page |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
136 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
137 By default, if there are no title page values in a screenplay, no |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
138 title page will be produced. Set ``force_title_page`` to ``True`` |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
139 to force rendering a title page with default/placeholder values. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
140 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
141 .. attribute:: text_renderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
142 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
143 The :class:`~BaseTextRenderer` instance that this document renderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
144 is using to handle text. |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
145 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
146 .. autoclass:: BaseTextRenderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
147 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
148 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
149 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
150 .. automodule:: jouvence.html |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
151 :members: get_css |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
152 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
153 .. autoclass:: HtmlDocumentRenderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
154 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
155 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
156 .. autoclass:: HtmlTextRenderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
157 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
158 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
159 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
160 .. automodule:: jouvence.console |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
161 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
162 .. autoclass:: ConsoleDocumentRenderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
163 :members: |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
164 |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
165 .. autoclass:: ConsoleTextRenderer |
9ae14e9615e6
docs: Add Sphynx documentation and code docstrings.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
166 :members: |