Skip to content

Generating guided navigation documents can be long #190

Description

@qnga

Based on Mickaël's experience with content iterators, parsing HTML documents can be a bit long. Parsing the whole publication before starting to read it aloud seems prohibitive with huge books such as the Code du travail.

I can think of two approaches, none of which being either trivial or ideal:

  • Caching the documents and maybe even generating them ahead of time. Is that an issue with LCP publications ?
  • Starting to read content before the whole publication is ready, typically after the first resource has been parsed. In my first experiments of a read aloud navigator based on guided navigation documents, I expose to the caller a tree representing the whole publication and offer the ability to navigate to any point of this tree. If the whole tree is not guaranteed to be available, getting the children of a node has to become an asynchronous operation which makes it a bit tricky to use in my view. An alternative would be to limit this navigation in the tree feature to the current resource only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions