Tip: At any time you may pass the help option (-h, --help) to Tweego to show its built-in help.
Basic command line usage is as follows: ``` tweego [options] sources… ``` Where[options]
are mostly optional configuration flags—see [Options](#usage-options)—and sources
are the input sources which may consist of supported files and/or directories to recursively search for such files. Many types of files are supported as input sources—see [File & Directory Handling](#usage-file-and-directory-handling) for more information.
## Options
Name of the input character set (default: "utf-8"
, fallback: "windows-1252"
). Necessary only if the input files are not in either UTF-8 or the fallback character set.
Tip: It is strongly recommended that you use UTF-8 for all of your text files.
Output Twee 1 source code, instead of compiled HTML. See Twee v1 Notation for more information.
Note: Except in instances where you plan to interoperate with Twine 1, it is strongly recommended that you decompile to Twee v3 notation rather than Twee v1.
"sugarcube-2"
).Log the processed input files.
Note: Unsupported when watch mode (-w, --watch) is enabled.
Log various story statistics. Primarily, passage and word counts.
Note: Unsupported when watch mode (-w, --watch) is enabled.
.css
, .js
, .otf
, .ttf
, .woff
, .woff2
.Do not trim whitespace surrounding passages—i.e., whitespace preceding and trailing the actual text of the passage. By default, such whitespace is removed when processing passages.
Note: It is recommended that you do not disable passage trimming.
"Start"
)..tw2
or .twee2
extensions automatically have compatibility mode enabled..tw
, .twee
Twee notation source files to process for passages.
Note: If any of these files are in the unofficial Twee2 notation, you must manually enable the Twee2 compatibility mode via its command line option (--twee2-compat).
.tw2
, .twee2
.htm
, .html
.css
.js
.otf
, .ttf
, .woff
, .woff2
@font-face
style rules. The generated name of the font family will be the font's base filename sans its extension—e.g., the family name for chinacat.tff
will be chinacat
..gif
, .jpeg
, .jpg
, .png
, .svg
, .tif
, .tiff
, .webp
Image files to bundle, as image passages. The generated name of the image passage will be the base filename sans its extension—e.g., the passage name for rainboom.jpg
will be rainboom
.
Note: As of this writing, image passages are only natively supported by SugarCube (all versions) and the Twine 1 ≥v1.4 vanilla story formats.
.aac
, .flac
, .m4a
, .mp3
, .oga
, .ogg
, .opus
, .wav
, .wave
, .weba
Audio files to bundle, as audio passages. The generated name of the audio passage will be the base filename sans its extension—e.g., the passage name for swamped.mp3
will be swamped
.
Note: As of this writing, audio passages are only natively supported by SugarCube ≥v2.24.0.
.mp4
, .ogv
, .webm
Video files to bundle, as video passages. The generated name of the video passage will be the base filename sans its extension—e.g., the passage name for cutscene.mp4
will be cutscene
.
Note: As of this writing, video passages are only natively supported by SugarCube ≥v2.24.0.
.vtt
Text track files to bundle, as text track passages. The generated name of the text track passage will be the base filename sans its extension—e.g., the passage name for captions.vtt
will be captions
.
Note: As of this writing, text track passages are only natively supported by SugarCube ≥v2.24.0.