Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (73 loc) · 3 KB
/
Copy pathindex.html
File metadata and controls
73 lines (73 loc) · 3 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>osf</title>
<link rel="stylesheet" href="/css/site.css">
<link rel="alternate" type="text/markdown" href="index.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/osf">Code Repository</a></li>
</ul>
</nav>
<section id="main-content">
<p><a href="https://www.repostatus.org/#active"><img
src="https://www.repostatus.org/badges/latest/active.svg"
alt="Project Status: Active – The project has reached a stable, usable state and is being actively developed." /></a></p>
<h1 id="osf">osf</h1>
<p><em>osf</em> is a Go package and three small command line programs
for working with Open Screenplay Format (OSF) 2.0. OSF is an open XML
format for screenplays and, zipped, the native format of <a
href="https://www.fadeinpro.com">Fade In</a>. The package parses an OSF
document, writes it back as XML, renders it as Fountain-like plain text,
and builds one from a <a href="https://fountain.io">Fountain</a>
document parsed by the <a
href="https://github.com/rsdoiel/fountain">fountain</a> package.</p>
<p>OSF keeps no number for an individual scene (numbering is a document
setting, <code>scene_numbering</code>), so a Fountain scene number is
not carried into OSF. A Fountain boneyard (<code>/* ... */</code>)
becomes an ordinary paragraph, so it shows in Fade In.</p>
<h2 id="the-programs">The programs</h2>
<dl>
<dt><a href="osf2txt.1.html">osf2txt</a></dt>
<dd>
reads an OSF file and writes plain text in a Fountain-like format.
</dd>
<dt><a href="txt2osf.1.html">txt2osf</a></dt>
<dd>
reads a plain text file and renders an OSF 2.0 document.
</dd>
<dt><a href="fadein2osf.1.html">fadein2osf</a></dt>
<dd>
reads a Fade In (<code>.fadein</code>) file and writes Open Screenplay
Format.
</dd>
</dl>
<h2 id="install">Install</h2>
<p>Get a release from <a
href="https://github.com/rsdoiel/osf/releases">GitHub</a>, or see <a
href="INSTALL.html">INSTALL.md</a>, which also covers installing from
source. To use the package in a Go program:</p>
<pre class="shell"><code>go get github.com/rsdoiel/osf</code></pre>
<h2 id="build-and-test">Build and test</h2>
<p>You need Go 1.27.4 or later. Pandoc and GNU Make are only needed for
the man pages and the website, and <code>cmt</code> (CMTools) only to
regenerate <code>version.go</code>, <code>about.md</code> and
<code>CITATION.cff</code> from <code>codemeta.json</code>.</p>
<pre class="shell"><code>make # build the programs into bin/ and the man pages into man/
make test # go test ./...
make check # gofmt -l and go vet; rewrites nothing</code></pre>
</section>
<footer>
<p>osf. This page is also published as <a href="index.md">Markdown</a>.</p>
</footer>
</body>
</html>