diff --git a/examples/read-aloud/index.md b/examples/read-aloud/index.md index 444970f..d1b39d1 100644 --- a/examples/read-aloud/index.md +++ b/examples/read-aloud/index.md @@ -142,21 +142,55 @@ ## Pagebreaks +> This is an experimental approach based on templated text where `{pagebreak}` can be substituted by the reading system based on user preferences. + ### HTML ```html +

And the next pagebreak is in the middle of a sentence.

``` ### JSON ```json { - "role": ["pagebreak"], - "text": "4" + "guided": [ + { + "role": ["pagebreak"], + "text": "4" + }, + { + "role": ["paragraph"], + "text": "And the next pagebreak is in the middle {pagebreak} of a sentence.", + "children": [ + { + "role": ["pagebreak"], + "text": "5" + } + ] + } + ] } ``` +### Read-aloud output + +**User preference set to read pagebreaks at the end of the text** + +* Pagebreak. Page: 4. +* And the next pagebreak is in the middle of a sentence. +* Pagebreak. Page: 5. + +**User preference set to read pagebreaks in the middle of the text** + +* Pagebreak. Page: 4. +* And the next pagebreak is in the middle (Pagebreak. Page: 5.) of a sentence. + +**User preference set to skip pagebreaks** + +* And the next pagebreak is in the middle of a sentence. + ## Lists ### HTML