braillespecs / obfl

Open Braille Formatting Language
http://braillespecs.github.io/obfl
1 stars 5 forks source link

toc-sequence and item-sequence should be allowed inside regular sequences #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
toc-sequence and item-sequence should be a group of blocks inside regular 
sequences instead of being sequences of their own. Doing so would eliminate the 
need for on-toc-start, on-toc-end etc. It would also enable combining several 
collections under the same heading. And eventually, it could enable TOC in the 
main flow or placing all footnotes at the end of the document.

E.g.

<dynamic-sequence sheets-max="10">
  <insert-toc toc="full-toc" range="volume">
    <on-volume-start 
    ...
  </>
  <insert-refs-list collection="endnotes" range="volume"  fallback="collection-id">
  </insert-refs-list>
  <list-of-references collection="endnotes" range="volume" ...>
    <on-page-start
    ...
  </list-of-references>
</dynamic-sequence>

Original issue reported on code.google.com by joel.hak...@mtm.se on 7 Aug 2014 at 7:09

GoogleCodeExporter commented 9 years ago
As it turns out, on-collection-start and on-collection-end are quite handy, 
because the dynamic sequence may contain static blocks, but they are rendered 
regardless of whether a list-of-references is rendered or not.

Original comment by joel.hak...@mtm.se on 7 Aug 2014 at 1:00

GoogleCodeExporter commented 9 years ago
This has been implemented for collections (but not yet for toc)

Original comment by joel.hak...@mtm.se on 7 Aug 2014 at 1:29

GoogleCodeExporter commented 9 years ago

Original comment by joel.hak...@mtm.se on 8 Aug 2014 at 12:43

bertfrees commented 8 years ago

@joeha480 Does this also include allowing toc-sequence and list-of-references inside a regular sequence (not dynamic-sequence)? The problem I'm currently having with dynamic-sequence is that I don't want this behavior (quoted from OBFL spec):

[...] its existence depends on the existence of generated content. Without any generated content, the sequence should be excluded entierly.

joeha480 commented 8 years ago

That's the idea, yes.