Update README

This commit is contained in:
910JQK 2016-08-13 20:27:28 +08:00
parent 893afc3901
commit 0f9d3d34f4

View File

@ -54,8 +54,9 @@ Command line reference
---------------------- ----------------------
``` ```
usage: danmaku2ass.py [-h] [-o OUTPUT] -s WIDTHxHEIGHT [-fn FONT] [-fs SIZE] usage: danmaku2ass.py [-h] [-f FORMAT] [-o OUTPUT] -s WIDTHxHEIGHT [-fn FONT]
[-a ALPHA] [-dm SECONDS] [-ds SECONDS] [-p HEIGHT] [-r] [-fs SIZE] [-a ALPHA] [-dm SECONDS] [-ds SECONDS]
[-fl FILTER] [-p HEIGHT] [-r]
FILE [FILE ...] FILE [FILE ...]
positional arguments: positional arguments:
@ -63,12 +64,15 @@ positional arguments:
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
-f FORMAT, --format FORMAT
Format of input file (autodetect|Bilibili|Tudou2|MioMi
o|Acfun|Niconico|Tudou) [default: autodetect]
-o OUTPUT, --output OUTPUT -o OUTPUT, --output OUTPUT
Output file Output file
-s WIDTHxHEIGHT, --size WIDTHxHEIGHT -s WIDTHxHEIGHT, --size WIDTHxHEIGHT
Stage size in pixels Stage size in pixels
-fn FONT, --font FONT -fn FONT, --font FONT
Specify font face [default: Helvetica] Specify font face [default: sans-serif]
-fs SIZE, --fontsize SIZE -fs SIZE, --fontsize SIZE
Default font size [default: 25] Default font size [default: 25]
-a ALPHA, --alpha ALPHA -a ALPHA, --alpha ALPHA
@ -77,6 +81,8 @@ optional arguments:
Duration of scrolling comment display [default: 5] Duration of scrolling comment display [default: 5]
-ds SECONDS, --duration-still SECONDS -ds SECONDS, --duration-still SECONDS
Duration of still comment display [default: 5] Duration of still comment display [default: 5]
-fl FILTER, --filter FILTER
Regular expression to filter comments
-p HEIGHT, --protect HEIGHT -p HEIGHT, --protect HEIGHT
Reserve blank on the bottom of the stage Reserve blank on the bottom of the stage
-r, --reduce Reduce the amount of comments if stage is full -r, --reduce Reduce the amount of comments if stage is full