From 07369accecd70b1fdd134160c9b182429ba5f845 Mon Sep 17 00:00:00 2001 From: David Grigg Date: Tue, 22 Aug 2023 11:21:51 +1000 Subject: [PATCH] Added ToC --- src/epub/content.opf | 35 ++++++++++-- src/epub/text/halftitlepage.xhtml | 13 +++++ src/epub/toc.xhtml | 94 +++++++++++++++++++++++++++---- 3 files changed, 126 insertions(+), 16 deletions(-) create mode 100644 src/epub/text/halftitlepage.xhtml diff --git a/src/epub/content.opf b/src/epub/content.opf index 2561f3f..c383186 100644 --- a/src/epub/content.opf +++ b/src/epub/content.opf @@ -18,7 +18,9 @@ Standard Ebooks textual + visual textual + alternativeText readingOrder structuralNavigation tableOfContents @@ -86,33 +88,51 @@ + + + + + + + + + + + + + + + - + - + - + - + - - + + + + + @@ -123,6 +143,8 @@ + + @@ -145,6 +167,7 @@ + diff --git a/src/epub/text/halftitlepage.xhtml b/src/epub/text/halftitlepage.xhtml new file mode 100644 index 0000000..999b73a --- /dev/null +++ b/src/epub/text/halftitlepage.xhtml @@ -0,0 +1,13 @@ + + + + The Voyage of the Beagle + + + + +
+

The Voyage of the Beagle

+
+ + diff --git a/src/epub/toc.xhtml b/src/epub/toc.xhtml index eddb78f..c5390c7 100644 --- a/src/epub/toc.xhtml +++ b/src/epub/toc.xhtml @@ -14,7 +14,87 @@ Imprint
  • - I: CHAPTER_TITLE + Dedication +
  • +
  • + Preface +
  • +
  • + The Voyage of the Beagle +
      +
    1. + Frontispiece +
    2. +
    3. + I: St. Jago—Cape de Verd Islands +
    4. +
    5. + II: Rio de Janeiro +
    6. +
    7. + III: Maldonado +
    8. +
    9. + IV: Rio Negro to Bahia Blanca +
    10. +
    11. + V: Bahia Blanca +
    12. +
    13. + VI: Bahia Blanca to Buenos Aires +
    14. +
    15. + VII: Buenos Aires and St. Fe +
    16. +
    17. + VIII: Banda Oriental and Patagonia +
    18. +
    19. + IX: Santa Cruz, Patagonia, and the Falkland Islands +
    20. +
    21. + X: Tierra del Fuego +
    22. +
    23. + XI: Strait of Magellan.—Climate of the Southern Coasts +
    24. +
    25. + XII: Central Chile +
    26. +
    27. + XIII: Chiloe and Chonos Islands +
    28. +
    29. + XIV: Chiloe and Concepcion: Great Earthquake +
    30. +
    31. + XV: Passage of the Cordillera +
    32. +
    33. + XVI: Northern Chile and Peru +
    34. +
    35. + XVII: Galapagos Archipelago +
    36. +
    37. + XVIII: Tahiti and New Zealand +
    38. +
    39. + XIX: Australia +
    40. +
    41. + XX: Keeling Island: Coral Formations +
    42. +
    43. + XXI: Mauritius to England +
    44. +
    +
  • +
  • + Endnotes +
  • +
  • + List of Illustrations
  • Colophon @@ -28,19 +108,13 @@

    Landmarks

    1. - Titlepage + The Voyage of the Beagle
    2. - Imprint + Endnotes
    3. - WORK_TITLE -
    4. -
    5. - Colophon -
    6. -
    7. - Uncopyright + List of Illustrations