Updating 'st' README. #16.

This commit is contained in:
Rob Greene 2018-06-24 15:38:21 -05:00
parent f77a945c7e
commit 15953e9d0d
2 changed files with 62 additions and 20 deletions

View File

@ -23,35 +23,66 @@ Commands:
help Displays help information about the specified command
```
## Sub-command help
## Sub-command extract
```shell
$ st extract --help
Usage: st extract [-h] [--skip-empty] [--stdin] [--stdout]
[--border=<borderStyle>] [--format=<outputFormat>]
[--shape=<shapeNum>] [-o=<outputFile>] [-w=<width>]
[<inputFile>]
Usage: st extract [-hO] [--skip-empty] [--stdin] [--stdout]
[--border=<borderStyle>] [--coding=<codeStyle>]
[--format=<outputFormat>] [-o=<outputFile>] [-w=<width>]
[--shapes=<shapeNums>]... [<inputFile>]
Extract shapes from shape table
Parameters:
[<inputFile>] File to process
[<inputFile>] File to process
Options:
--border=<borderStyle>
Set border style (none, simple, box)
Default: simple
--border=<borderStyle> Set border style (none, simple, box)
Default: simple
--coding=<codeStyle> Select source style (bitmap, long, short)
Default: long
--format=<outputFormat>
Select output format (text, png, gif, jpeg, bmp, wbmp)
Default: text
--shape=<shapeNum> Extract specific shape
--skip-empty Skip empty shapes
--stdin Read from stdin
--stdout Write to stdout
-h, --help Show help for subcommand
-o, --output=<outputFile>
Write output to file
-w, --width=<width> Set width (defaults: text=80, image=1024)
Select output format (text, source, png, gif, jpeg,
bmp, wbmp)
Default: text
--shapes=<shapeNums> Extract specific shape(s); formats are '1' or '1-4' and
can be combined with a comma
--skip-empty Skip empty shapes
--stdin Read from stdin
--stdout Write to stdout
-h, --help Show help for subcommand
-o, --output=<outputFile> Write output to file
-O, --optimize Optimize vector shapes (source only)
-w, --width=<width> Set width (defaults: text=80, image=1024)
```
## Sub-command generate
```shell
$ st generate --help
Usage: st generate [-h] [--demo-code] [--single] [--stdin] [--stdout]
[--address=<address>] [--name=<realName>] [-o=<outputFile>]
[<inputFile>]
Generate a shape table from source code
Parameters:
[<inputFile>] File to process
Options:
--address=<address> Address for AppleSingle file
Default: 24576
--demo-code Generate a ProDOS .po image with Applesoft BASIC code
demoing the shape table
--name=<realName> Filename assign in AppleSingle file
Default: SHAPES.BIN
--single Write to AppleSingle file (requires address, defaults to
0x6000)
--stdin Read from stdin
--stdout Write to stdout
-h, --help Show help for subcommand
-o, --output=<outputFile> Write output to file
```
# Features
@ -141,4 +172,15 @@ File dates info:
Backup: 2018-06-20T01:36:59Z
Data Fork: Present, 14 bytes
Resource Fork: Not present
```
```
## Generate demo disk
Demonstration of a Beagle Bros font:
```shell
st --debug extract --format=source --coding=short ~/Downloads/shapes/\]WESTERN.dump --stdout --skip-empty --optimize |
st generate --demo-code -o western.po --stdin
```
![Western Font Demo](images/western-font-demo.png "]WESTERN")

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB