docs: update map command documentation with both syntaxes

This commit is contained in:
Emmanuel BENOîT 2025-04-11 12:12:36 +02:00
parent 99fdc87288
commit 37b693ab6f
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -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.