Proskomma / proskomma-json-tools

Tools for working with Proskomma-derived JSON formats such as PERF and SOFRIA
MIT License
1 stars 2 forks source link

Event don't render in the rigth order for table en chapter #23

Open gabrielaillet opened 1 year ago

gabrielaillet commented 1 year ago

image

This is the order of call of event with proskomma and the blockResult.items for the function renderContent()

\id XXD - World English Bible \h Bible reading plan \toc1 Bible reading plan \mt1 Daily Bible reading plan \c 1 \cp January \s January \b \tr \tc1 date \tc2 Scripture \tr \tc1 1 \tc2 \xt Genesis 1–2; Matthew 1:1–2:12; Psalm 1; Proverbs 1:1-6\xt* \c 2 \cp February \s February \b

this is the usfm used for the example.

for reference this is what blockResult.items looks like just afeter the end of the xt : [Object: null prototype] { type: 'scope', subType: 'end', payload: 'span/xt' } [Object: null prototype] { type: 'scope', subType: 'end', payload: 'pubChapter/January' } [Object: null prototype] { type: 'scope', subType: 'end', payload: 'chapter/1' }

[Object: null prototype] { type: 'scope', subType: 'end', payload: 'table' } [Object: null prototype] { type: 'token', subType: 'wordLike', payload: 'February' } [Object: null prototype] { type: 'scope', subType: 'start', payload: 'chapter/2' }

[Object: null prototype] { type: 'scope', subType: 'start', payload: 'pubChapter/February' } [Object: null prototype] { type: 'scope', subType: 'end', payload: 'cell/body/left/1' } ici [Object: null prototype] { type: 'scope', subType: 'end', payload: 'pubChapter/February' } [Object: null prototype] { type: 'scope', subType: 'end', payload: 'chapter/2' }

gabrielaillet commented 1 year ago

this issue is present in the branch MajTabRendeRerXschema0_4_0