lojjic / bidi-js

A pure JavaScript implementation of the Unicode Bidirectional Algorithm
MIT License
42 stars 7 forks source link

Fix segment offset #7

Closed nmtigor closed 1 year ago

nmtigor commented 1 year ago

Observe above that each lineLevels is sliced from lineStart.

lojjic commented 1 year ago

👍 Looks good, thanks for catching it. The usage in troika-three-text is per wrapped line, so the two start indices are always the same, which explains why I didn't catch it.