Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splits lines based on \N #36

Open
CoffeeStraw opened this issue Jan 17, 2022 · 1 comment
Open

Splits lines based on \N #36

CoffeeStraw opened this issue Jan 17, 2022 · 1 comment

Comments

@CoffeeStraw
Copy link
Owner

It could be handy to have a method that analyzes the lines, searches for \N and splits those lines. It could even be done in the parsing phase, providing an additional parameter to control it.

This is especially useful when creating a karaoke effect, because \N currently is ignored.

Example:
START=0,END=40,TEXT={\k10}a {\k10}b\N{\k10}c {\k10}d

Can become:
START=0,END=20,TEXT={\k10}a {\k10}b
START=20,END=40,TEXT={\k10}c {\k10}d

@moi15moi
Copy link
Contributor

moi15moi commented Mar 1, 2022

Hi,
Here is my script to do it.

My script only split the line.

Besides, I didn't follow your example. Here's how I handle it all.
Example:
START=0,END=40,TEXT={\k10}a {\k10}b\N{\k10}c {\k10}d
Become:
START=0,END=40,TEXT={\k10}a {\k10}b
START=0,END=40,TEXT={\k20}{\k10}c {\k10}d

Logically, there is a way to recalculate all the word, syl and char from the line, so I think that this script can be very useful.

Find N space + input + test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants