Repository navigation
Expand file tree
/
Copy pathscripttool.1.html
More file actions
279 lines (279 loc) · 7.02 KB
/
Copy pathscripttool.1.html
File metadata and controls
279 lines (279 loc) · 7.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>scripttool</title>
<link rel="stylesheet" href="/css/site.css">
<link rel="alternate" type="text/markdown" href="scripttool.1.md">
</head>
<body>
<a href="#main-content" class="visually-hidden">skip to main content</a>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="LICENSE">LICENSE</a></li>
<li><a href="CHANGES.html">Changes</a></li>
<li><a href="INSTALL.html">INSTALL</a></li>
<li><a href="user_manual.html">User Manual</a></li>
<li><a href="about.html">About</a></li>
<li><a href="https://github.com/rsdoiel/scripttool">Code Repository</a></li>
</ul>
</nav>
<section id="main-content">
<h1 id="name">NAME</h1>
<p>scripttool</p>
<h1 id="synopsis">SYNOPSIS</h1>
<p>scripttool [-help,-version,-license] VERB <a
href="#options">OPTIONS</a> [VERB PARAMETERS]</p>
<h1 id="description">DESCRIPTION</h1>
<p><em>scripttool</em> a program for converting between screenplay
formats (e.g. .fdx, .fadein, .fountain)</p>
<p><em>scripttool</em> converts screen play file formats. Supported
formats include FileDraft’s XML format, FadeIn’s zipped XML format,
Fountain formatted plain text as the Open Screenplay Format XML
documents. The command line program is based on a Go package also called
scripttool. The Go package can be compiled to a shared library and
integrated with Python via the ctypes package.</p>
<p>Internally <em>scripttool</em> works with Fountain formatter files
for reporting purposes. You can use the <code>fountain2json</code> verb
to see the data structure represented as JSON for reports.</p>
<h1 id="verbs">verbs</h1>
<p>Like many recent command line tools running under POSIX
<em>scripttool</em> uses a
<code>CMD VERB [INPUT_FILENAME] [OUTPUT_FILENAME]</code> scheme. The
following verbs are provided. Each “verb” may also have related
options.</p>
<h2 id="convert-fadein-files">Convert FadeIn files</h2>
<dl>
<dt>fadein2fdx</dt>
<dd>
Converts a FadeIn file to Final Draft XML
</dd>
<dt>fadein2fountain</dt>
<dd>
Converts a FadeIn file to fountain screenplay format
</dd>
<dt>fadein2json</dt>
<dd>
Convert a FadeIn file to JSON format
</dd>
<dt>fadein2osf</dt>
<dd>
Convert a FadeIn file to Open Screenplay Format 2.0
</dd>
<dt>fadein2yaml</dt>
<dd>
Convert a FadeIn file to YAML format
</dd>
</dl>
<h2 id="convert-final-draft-xml">Convert Final Draft XML</h2>
<dl>
<dt>fdx2fadein</dt>
<dd>
Convert from Final Draft XML (“*.fdx” files) to FadeIn format
</dd>
<dt>fdx2fountain</dt>
<dd>
Convert from Final Draft XML (“*.fdx” files) to Fountain screenplay
format)
</dd>
<dt>fdx2json</dt>
<dd>
Convert from Final Draft XML (“*.fdx” files) to JSON
</dd>
<dt>fdx2yaml</dt>
<dd>
Convert from Final Draft XML (“*.fdx” files) to YAML
</dd>
<dt>fdx2osf</dt>
<dd>
Convert from Final Draft XML (“*.fdx” files) to Open Screenplay Format
2.0
</dd>
</dl>
<h2 id="convert-open-screenplay-format-2.0">Convert Open Screenplay
Format 2.0</h2>
<dl>
<dt>osf2fadein</dt>
<dd>
Convert from Open Screenplay Format 2.0 to FadeIn
</dd>
<dt>osf2fdx</dt>
<dd>
Convert from Open Screenplay Format 2.0 to Final Draft XML
</dd>
<dt>osf2fountain</dt>
<dd>
Convert from Open Screenplay Format 2.0 to Fountain screenplay format
</dd>
<dt>osf2json</dt>
<dd>
Convert from Open Screenplay Format 2.0 to JSON
</dd>
<dt>osf2yaml</dt>
<dd>
Convert from Open Screenplay Format 2.0 to YAML
</dd>
</dl>
<h2 id="convert-fountain-fomat">Convert Fountain fomat</h2>
<dl>
<dt>fountain2fadein</dt>
<dd>
Converts a fountain screenplay formatted file to FadeIn formatted file.
</dd>
<dt>fountain2fdx</dt>
<dd>
Convert a Fountain screenplay formatted file to Final Draft XML
</dd>
<dt>fountain2json</dt>
<dd>
Convert a Fountain screenplay formatted file to JSON
</dd>
<dt>fountain2yaml</dt>
<dd>
Convert a Fountain screenplay formatted file to YAML
</dd>
<dt>fountain2osf</dt>
<dd>
Convert a Fountain screenplay formatted file to Open Screenplay Format
2.0
</dd>
<dt>fountain2fountain</dt>
<dd>
Parse a Fountain screenplay and write it back out as Fountain
</dd>
<dt>fountain2html</dt>
<dd>
Render a Fountain screenplay as Fountain scrippets HTML
</dd>
<dt>fountainfmt</dt>
<dd>
Pretty print a fountain screenplay format
</dd>
<dt>characters</dt>
<dd>
Provide a character list from a fountain formatted file. Internally the
fountain file is parse and resulting JSON structure is analyzed to
produce the count of character references in the elements of the file.
</dd>
</dl>
<h1 id="help-topics">HELP TOPICS</h1>
<p><em>scripttool help</em> prints this manual. <em>scripttool help
index</em> lists the help topics and <em>scripttool help TOPIC</em>
prints one of them.</p>
<h1 id="options">OPTIONS</h1>
<p>Below are a set of options available.</p>
<dl>
<dt>-h, -help</dt>
<dd>
display help
</dd>
<dt>-l, -license</dt>
<dd>
display license
</dd>
<dt>-v, -version</dt>
<dd>
display version number
</dd>
</dl>
<h1 id="verb-options">VERB OPTIONS</h1>
<dl>
<dt>-i</dt>
<dd>
set input filename
</dd>
<dt>-o</dt>
<dd>
set output filename
</dd>
<dt>-notes</dt>
<dd>
include notes in output
</dd>
<dt>-synopsis</dt>
<dd>
include synopsis in output
</dd>
<dt>-section</dt>
<dd>
include section headings in output
</dd>
<dt>-width</dt>
<dd>
set max width in integers
</dd>
<dt>-html</dt>
<dd>
output full HTML page
</dd>
<dt>-inline-css</dt>
<dd>
include inline CSS (works with -html option)
</dd>
<dt>-link-css</dt>
<dd>
include CSS link (works with -html option)
</dd>
<dt>-pretty</dt>
<dd>
pretty print output
</dd>
<dt>-alpha</dt>
<dd>
sort characters alphabetically instead of appearence order
</dd>
</dl>
<h1 id="exit-status">EXIT STATUS</h1>
<dl>
<dt>0</dt>
<dd>
success
</dd>
<dt>2</dt>
<dd>
bad command line: an unknown option or verb, a surplus argument, a
missing FadeIn file name
</dd>
<dt>65</dt>
<dd>
the input cannot be read as the format the verb expects
</dd>
<dt>66</dt>
<dd>
an input file does not exist
</dd>
<dt>73</dt>
<dd>
the output file cannot be created
</dd>
<dt>74</dt>
<dd>
reading or writing failed part way
</dd>
<dt>77</dt>
<dd>
the operating system refused access to a file
</dd>
</dl>
<p>The output file is created only after the conversion has
succeeded.</p>
<h1 id="examples">EXAMPLES</h1>
<p>Converting <em>screenplay.fdx</em> to <em>screenplay.fountain</em> (2
examples)</p>
<pre class="shell"><code> scripttool fdx2fountain screenplay.fdx screenplay.fountain
scripttool fdx2fountain -i screenplay.fdx -o screenplay.fountain</code></pre>
<p>Converting <em>screenplay.fountain</em> to <em>screenplay.fdx</em> (2
examples)</p>
<pre class="shell"><code> scripttool fountain2fdx screenplay.fountain screenplay.fdx
scripttool fountain2fdx -i screenplay.fountain -o screenplay.fdx</code></pre>
<p>Listing characters from a <em>screenplay.fountain</em>. First list is
order of appearence and the second set is characters sorted
alphabetically using the “-alpha” option.</p>
<pre class="shell"><code> scripttool characters screenplay.fountain
scripttool characters -alpha screenplay.fountain</code></pre>
</section>
<footer>
<p>scripttool. This page is also published as <a href="scripttool.1.md">Markdown</a>.</p>
</footer>
</body>
</html>