docs: update map command documentation with both syntaxes
This commit is contained in:
parent
99fdc87288
commit
37b693ab6f
1 changed files with 10 additions and 2 deletions
12
README.md
12
README.md
|
@ -19,7 +19,7 @@ The script supports the following commands:
|
|||
### COPY
|
||||
Copies subtitles from one file to the output, preserving their original timing.
|
||||
|
||||
**Syntax:**
|
||||
**Syntax 1:**
|
||||
```
|
||||
COPY <source> <index_or_range>
|
||||
```
|
||||
|
@ -27,7 +27,7 @@ COPY <source> <index_or_range>
|
|||
- `<index_or_range>`: A single index or a range of indices (e.g., `5` or `5-10`).
|
||||
|
||||
### MAP
|
||||
Maps text from one file to another with a time offset.
|
||||
Maps text from one file to another with a time offset. The command supports two different syntaxes.
|
||||
|
||||
**Syntax:**
|
||||
```
|
||||
|
@ -38,6 +38,14 @@ MAP <text_source> <text_start> <time_start> <count>
|
|||
- `<time_start>`: The starting index of the time to map.
|
||||
- `<count>`: The number of subtitles to map.
|
||||
|
||||
**Syntax 2:**
|
||||
```
|
||||
MAP <text_source> <text_start> <time_start>
|
||||
```
|
||||
- `<text_source>`: The source SRT file for text, specified as `1` or `2`.
|
||||
- `<text_start>`: The starting index of the text to map.
|
||||
- `<time_start>`: The starting index of the time to map.
|
||||
|
||||
### SYNC
|
||||
Aligns a subtitle text found only in one SRT file based on the time delta between that text and the previous entry. The entry used as the "time source" in the other stream must correspond to the previous entry in the text stream.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue