weizhenye / ASS

A lightweight JavaScript ASS subtitle renderer
https://ass.js.org
MIT License
534 stars 79 forks source link

Spacing lost between words when using \c #50

Closed Thandden closed 2 months ago

Thandden commented 2 months ago

Screenshot from 2024-08-30 03-48-33

[Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:01.00,0:00:02.00,Default,,0,0,0,,Twinkle {\c&H0000FF&}twinkle{\c} little star

Spacing is lost between words when the \c parameter is used. Tested this on different .ASS parser and issue isn't there.

It should be:

Twinkle twinkle little star

Instead of:

Twinkletwinklelittle star

weizhenye commented 2 months ago

It will be fixed in v0.1.2. I'm doing a refactor of animation now, new release will be available when it's finished.

Nicolab commented 2 weeks ago

Same here, with the v0.1.2

Example: Hello {\rHighlight}world{\rDefault} ! Displayed Helloworld!

With others ASS parsers it's ok.