PyonFX icon indicating copy to clipboard operation
PyonFX copied to clipboard

Splits lines based on \N

Open CoffeeStraw opened this issue 4 years ago • 1 comments

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

CoffeeStraw avatar Jan 17 '22 12:01 CoffeeStraw

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

moi15moi avatar Mar 01 '22 19:03 moi15moi