Numbering list restart at 1 on next page

Learn / Forums / EPUB and eBook / Numbering list restart at 1 on next page

Viewing 10 reply threads
  • Author
    Posts
    • #111126

      Hello everybody,

      I’m testing an epub on different devices, it’s a Bible with each verse being in a numbered list, usely with over 20 verses in each chapter.
      The numbered list is supposed to restart at 1 at every new chapter.

      It shows fine in my InDesign files, in my exported epub in iBooks Apple reader, in my web browser when opening it like a website, but not on my Android on PlayBooks. On PlayBooks the Bible verses restarts at 1 every time I slip a page, even though it should be verse 10 for exemple.

      It’s really weird. Any advice on how to make sure the numbering lists work fine?

    • #111128
      Aaron Troia
      Participant

      Hey Johanna,

      I don’t have experience with Android or Google Play Books, but there was a similar issue with numbered lists in either ADE or on the Nook awhile back. It’s been awhile so I’m forgetting which but it would either restart at 1 or drop the leading number after 9. So if it’s displaying correctly everywhere else you’ve tested it, I would say it’s more than likely a bug in Google Play Books, which is unfortunate if it is as you can’t really do anything unless someone knows a hack (besides static lists) to fix it or get around it happening. I’ve been Googling it and cant seem to find anyone who’s posted hacks, but I bet you’re not the only one to have run into this. I would submit a bug report and hopefully they can fix that asap.

      Also, if you have access to Twitter, I would ask the #eprdctn group and see if anyone has come across that bug and might have a way around it.

      Aaron

    • #111133

      Hello Aaron,

      I guess you’re right, it must be a bug on PlayBooks because I just tested my epub on Calibre and IceCream reader and it’s working fine.
      I’ve noticed though that this issue of numbered list appeared after I added a code in my CSS file to remove the dot between the verse number and the text of the verse :


      ol {
      counter-reset: item;
      list-style-type: none;
      }
      li { display: block; }
      li:before {
      content: counter(item) " ";
      counter-increment: item
      }

      So maybe somehow this code is conflicting with something else in PlayBooks.
      Thanks for your suggestion, I’ll post now on Twitter and see what comes out.

    • #111138

      I have no experience with ebook, but what happens if you remove the dot in the numbered list settings of the paragraph style in InDesign?

    • #111189

      Hello Dieter,

      Do you mean the number style by default which is ^#^. ?
      I just tried it, and whether I leave or I remove the dot it doesn’t change anything, it will show a dot after each verse number in my epub.

      I don’t know what this dot is for in the number style of my paragraph settings, but I don’t have a dot showing in my InDesign files. But it appears by default when exporting to epub unless I add a css code to remove it.

      I didn’t get an answers on Twitter so no other developments on my side…

      Is there a programmer here who would know why addind the css piece of code in my earlier post will have an ebook reader like PlayBooks to bug? My concern is that it would bug also on other widely used epub readers.

    • #111190

      Another idea: You could convert the numbering into text: https://creativepro.com/convert-numbering-to-text-in-indesign.php

    • #111191

      That would work for the epub issue, but in my case I can’t do that because the text I’m using is linked to InCopy, and I’m using the same text synchronised in 2 other books with different formats. I need the verses of the other versions to still be legit numbered lists. Can’t break the links to InCopy either because we’re often updating this text and publishing new versions.

    • #111194

      I just noticed though tha there is an option in the epub export settings to do what you says, convert the numbering into text. I’ll try it on monday!

    • #111452

      Just an update to say that the epub option in the export settings didn’t change nothing. So my issue is still ongoing and a mistery. Any other idea how to fix it?

    • #111525
      Aaron Troia
      Participant

      Oh my…

      Well, one work around would be to hard code them in the HTML. Off the top of my head I would probably GREP all the <li> tags and change them to <p>‘s with a <span> or <sup> (of course) and a unique place holder within it like “XX” then use the Incrementor bundle for Sublime Text to change all the unique place holders within selections (sadly you would have to do this chapter by chapter) to numbers.

      Getting rid of the <ol>‘s might not be too tricky to GREP out.

      I really wish I knew of a way that would be faster or easier :(

    • #111623

      Thanks Aaron for not giving up on my issue here…
      I thought your last solution would be a lot of work, so I explored again the option of converting numbering to text. The automatic exporting option didn’t work for me, but I found that if I used a script on every single document before exporting to epub, then it worked.
      The script is: app.activeDocument.stories.everyItem().convertBulletsAndNumberingToText();

      I’ve tested the epub in Google Play and the numbers appear just as they should. Problem solved!

Viewing 10 reply threads
  • You must be logged in to reply to this topic.
>