Open davidmoore1 opened 3 weeks ago
The text area is a scrollable view. The text may exceed the area that's visible. If it does, the user can scroll through the text. The picture remains on the screen as it is with only the text scrolling.
I was going to make a separate about borders, but it seems to small. If borders are defined and active for this book, then the border is displayed around the text window in portrait view. It does not appear in landscape view at all:
Besides the codes mentioned above, ordered and unordered lists are also supported. An example screen would be as follows (even though it makes no sense in context)
The source text for that screen would be:
\img image2.jpeg
\s1 The Story
\s2 Unmerciful Servant
\m Jesus said, “The kingdom of God is like a king who wanted to settle accounts with his servants. One of his servants owed a huge debt worth 200,000 years' wages.”
\zuli1 One
\zuli1 Two
\zuli1 Three
\b
\zon1 1
\zoli1 One
\zoli1 Two
\zoli1 Three
\b
\zon1 7
\zoli1 Test
\zoli1 Test 2
\b
The html for that screen in the app would be:
Storybooks are books that have a picture on each page and text that goes with it. In the more complex versions that will be covered in other issues, it can have audio playing, automatic page advancement, and Ken Burns type of motion on the images. For the initial simplest case, PWA needs to support picture books without audio or motion. Each page has a text and a picture defined. The view changes depending upon whether the app is being viewed in landscape mode or portrait mode. In portrait mode, the picture is displayed at the top of the screen and the text is viewed in the bottom of the screen. In landscape mode, it only displays the picture as a full screen image.
Portrait mode:![noaudioportrait](https://github.com/sillsdev/appbuilder-pwa/assets/6209188/1fa6807f-6ee4-4105-a120-81d0d7680cde)
Landscape mode:![NoaudioLandscape](https://github.com/sillsdev/appbuilder-pwa/assets/6209188/897cab9e-181b-4efe-aefa-b42d2d624c75)
As with the scripture books, double tapping the screen changes it to full screen mode (and back)![noaudiolandscapefull](https://github.com/sillsdev/appbuilder-pwa/assets/6209188/b1da0bbb-ddef-464e-ae99-dc727978ed25)
Advance from page to page as you would with the scripture paging. Text for the first page of this book (which is displayed above)
Besides the \img and \m markers, for img url and paragraph, the following entries may also be present: \video followed by the video file name \b blank line paragraph \pc - centered paragraph \pr - right justified paragraph
\s1 Heading 1 \s2 Heading 2 \s3 Heading 3
Configuration for a non audio storybook:
Note that the size of the illustration may need to be adjusted by the "Resize the image files to reduct the app size" in Media/illustrations in SAB. (features resize-illustrations-width if resize-illustrations is true). This may also be overridden at the book level