07-14-2021, 07:29 AM | #1 |
Enthusiast
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Google Play Books and Nested Lists - Some Weird Display Issue
Hello Guys,
So I have this ePub which I'm preparing for Google Play Books and other ePub platforms. Thing is, the Play Books display some 'orphan' or 'empty' list markers across pages. All these markers are of 'nested lists'. I'm at loss at what can cause this and how to get rid of these issues. Can anybody here help in solving this issue? Many thanks. For reference, the PDF has the screenshots with an explanation of the issue is attached. |
07-15-2021, 03:59 PM | #2 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Probably incorrectly nested ul tags. What does the xhtml look like (copy paste inside code tags here or snap a screen capture) near where the problem occurs?
|
Advert | |
|
07-16-2021, 06:06 AM | #3 |
Resident Curmudgeon
Posts: 76,458
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Just a note, it would be easier to attach the screenshots instead of making a PDF.
|
08-17-2021, 06:04 AM | #4 | ||
Enthusiast
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
Quote:
My sincere apologies for not being prompt in responding, I was badly held up in personal matters. Here is the code of those specific list items. Code:
<ul class="blacksqlg" style="margin-top: 0;"> <li class="bsqlg"><b>Allergische Sofortreaktionen (nach 5 – 15 Minuten)</b> Bei Kindern selten. <ul class="whitesqlg" style="margin-top: 0;"> <li class="wsqlg">Im Falle von Atemnot (Asthma) oder Blutdruckabfall mit evtl. Bewusstlosigkeit <ul class="darkarrw" style="margin-top: 0;"> <li class="darw">ist die Ambulanz (Schweiz 144) bzw. der Notarztwagen (EU 112) zu rufen und <ul class="arrwright" style="margin-top: 0;"> <li class="arrt">falls zur Hand, Adrenalin (Epipen Autoinjetor) spritzen.<br/> <span class="fs-s">Verdacht auf lebensgefährliche Allergie, siehe unten Elternwissen.</span></li> </ul> </li> </ul> </li> <li class="wsqlg">Im Falle von Hautausschlag am Körper ausserhalb der Stichstelle mit Quaddeln (Nesselfieber = Urticaria, Foto am Ende der Datei <a href="0GB2-nose-wings.xhtml"><u>hier</u></a>) <ul class="darkarrw" style="margin-top: 0;"> <li class="darw">ist <span class="chelsa-gem">eine Ärztin / ein Arzt</span> in den Folgetagen zu konsultieren.<br/> <span class="fs-s">Im Moment keine Gefahr, aber es ist abzuklären ob eine Allergie vorliegt, zwecks Abgabe von Notfallmedikamenten wie Epipen bei einem späteren Stich. (Elternwissen).</span></li> </ul> </li> </ul> </li> <li class="bsqlg"><b>Allgemeine Giftwirkung Bienenstich</b> (beginnt nach 1 - 2 Stunden):<br/> <b>Kind < 2 Jahre</b> ab 10 Bienenstiche ► Überwachung im Spital.<br/> <b>Kind 2 - 5 Jahre</b> ab 30 Bienenstiche ► Überwachung im Spital.<br/> <b>Kind 5 - 10 Jahre</b> ab 50 Bienenstiche ► Überwachung im Spital.<br/> <span class="fs-s">Eine Biene kann beim Stich mehr Gift als eine Hornisse und wesentlich mehr als eine Wespe entladen.</span></li> <li class="bsqlg"><b>Lokale Giftreaktion bei Stichen am Hals und im Mund</b> (beginnt nach 1 - 2 Stunden).<br/> Stiche am Hals und im Mund können zu einer Schwellung des Kehlkopfs und zum Ersticken führen. <ul class="darkarrw" style="margin-top: 0;margin-bottom: 0;"> <li class="darw">Bei Stichen am Hals oder im Mund ist eine Überwachung im Spital zwingend.</li> </ul> <ul class="arrwright" style="margin-top: 0;"> <li class="arrt">Als Sofortmassnahme bzw. zur Verzögerung der Giftwirkung Eis lutschen.</li> </ul> </li> <li class="bsqlg"><b>Verzögerte allergische Lokal</b>reaktion (beginnt nach 12 - 24 Stunden, ist nach 36 bis 48 maximal und bildet sich danach spontan zurück.) Teils massive <b>Schwellung und Rötung</b> an der Stichstelle, die über Stunden und Tage einen Farbwechsel von dunkelrot zu blau zu grün und zu gelb zeigen kann.<br/> <span class="fs-s">Das Blut an der Stichstelle zersetzt sich wegen des Giftes.</span> <ul class="arrwright" style="margin-top: 0;"> <li class="arrt">Darf von den Eltern mit Kühlen und <u><a href="7ms-analgesic-drugs.xhtml">Schmerzmitteln</a></u> behandelt werden.</li> </ul> </li> <li class="bsqlg">Verzögerte Giftwirkung mit <b>roten Striemen</b> herzwärts der Stichstelle. <ul class="arrwright" style="margin-top: 0;"> <li class="arrt">Bei gutem <a href="0GA1a-gen-instruction.xhtml">Allgemeinzustand</a> darf zugewartet werden.<br/> Es ist eine Entzündung der Lymphgefässe durch das Gift. Im Gegensatz dazu sind rote Striemen herzwärts einer eiternden Wunde (evtl. nach Kratzen bei Mückenstich) eine Entzündung durch Bakterien mit der Gefahr, dass sich Bakterien auf dem Blutweg in anderen Organen absiedeln (= Sepsis = fälschlich Blutvergiftung). Aber im Gift der Bienen etc. überleben keine Bakterien.</li> </ul> </li> </ul> Also, the first thing I did is to make sure all the nested lists are correctly put. The issue I'm describing is not only with the shared chapter screenshots but also with all the nested lists in the book. |
||
08-17-2021, 11:18 AM | #5 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Try suppresing the <br/> tags and, to force a new line, use the property "display: block". For example:
You have something like (watch the text in red): Code:
<li class="darw">ist <span class="chelsa-gem">eine Ärztin / ein Arzt</span> in den Folgetagen zu konsultieren.<br/><span class="fs-s" style="display: block">Im Moment keine Gefahr, aber es ist abzuklären ob eine Allergie vorliegt, zwecks Abgabe von Notfallmedikamenten wie Epipen bei einem späteren Stich. (Elternwissen).</span></li>
Code:
<li class="darw">ist <span class="chelsa-gem">eine Ärztin / ein Arzt</span> in den Folgetagen zu konsultieren.<span class="fs-s" style="display: block">Im Moment keine Gefahr, aber es ist abzuklären ob eine Allergie vorliegt, zwecks Abgabe von Notfallmedikamenten wie Epipen bei einem späteren Stich. (Elternwissen).</span></li>
Code:
.block { display: block; } Code:
<li class="darw">ist <span class="chelsa-gem">eine Ärztin / ein Arzt</span> in den Folgetagen zu konsultieren.<span class="fs-s block">Im Moment keine Gefahr, aber es ist abzuklären ob eine Allergie vorliegt, zwecks Abgabe von Notfallmedikamenten wie Epipen bei einem späteren Stich. (Elternwissen).</span></li>
Regards |
Advert | |
|
08-17-2021, 01:12 PM | #6 | |
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
When we use custom symbols, at my shop, we have to hand-code the CSS for the list elements, because otherwise, as I said, they don't work. I'm 98% sure that's right; I haven't double-checked with my crews this morning about it, but last time I was involved in a discussion with them around this topic, that was the case. Hitch |
|
08-18-2021, 06:13 AM | #7 |
Resident Curmudgeon
Posts: 76,458
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You did not post the relevant CSS. Please post a sample ePub that shows your problem. That would be easiest to look at.
|
08-18-2021, 02:32 PM | #8 | |
Enthusiast
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
For testing purposes, I've used the regular, old, and generic HTML list markers and symbols and they displayed fine. But as I mentioned above, the custom list marker serves a much more crucial role here. |
|
08-18-2021, 02:35 PM | #9 |
Enthusiast
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Although I've attached the sample ePub in response to @RbnJrg's comment, I think the moderator will take time to approve it. I'm attaching the ePub here again.
Last edited by rsuchwani; 08-18-2021 at 02:39 PM. Reason: attached the sample. |
08-18-2021, 02:41 PM | #10 | |
Enthusiast
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
I've replaced <br/> with the 'block' element but the result is the same. I've attached the sample ePub below with the complete CSS, maybe you can find something which is causing this issue? |
|
08-18-2021, 03:15 PM | #11 | |
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
We typically have to hand-code everything, to make them work. Is that what you're asking? How to hand-code them? So that they look remotely okay? It maybe, might, work in ePUB3, the way you're doing it, but if you play to use this in ePUB2 or in Kindle, fugeddaboutdit. AFAIK, GooglePlay uses, what, ePUB2, gang? Wolfie, Tex, any of you know what GP is using? Hitch |
|
08-18-2021, 05:45 PM | #12 |
Resident Curmudgeon
Posts: 76,458
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I did notice one thing with the sample ePub. The font size does not change. Also,the CSS is a real frigging mess.I've not looked that closely, but it's a disaster.
I would expect Google Play Books app to handle ePub 3 as they accept that for sale. But I'm not sure as I've never used the app. Last edited by JSWolf; 08-18-2021 at 05:48 PM. |
08-18-2021, 07:16 PM | #13 | |
Connoisseur
Posts: 58
Karma: 438844
Join Date: Aug 2019
Device: PC, Linux Mint, Tablet, and Telephone
|
Quote:
First, the EPUB does not contain any fonts that a CSS rule can reference. Second, a lot of different font types are mentioned, but there is no reference where they can be downloaded by the EPUB in the CSS file. Third, the CSS before content definition contains a graphic character without referencing a specific font. The question is which font is now active when the EPUB reader starts rendering a page? The answer to this is: Where the emperor is not there, he loses his rights. The EPUB reader then checks whether an alternative font has been mentioned that the EPUB reader is familiar with. The more exotic the font is, the greater the chance that an EPUB reader will not have that font on board. Then the EPUB reader should fall back error-free to a font that is present. Then there's the next problem, what if the fallback font doesn't have the graphic character? He can then display a graphic block as an error character indicator, but how does the rendering proceed? It is very difficult to create a one-fit-all error handling routine. That graphical character does occupy one position on the screen, but in the code it can be several positions. There is a good chance that the result will look very different from the expected layout because rendering is out of sync with the CSS code. I think different roles in an emergency each require graphical markup for that specific role. I've added and modified the awesome font to be able to use it in an EPUB. In page 1U3 I could replace all formatting code with a character of font-awesome. But font-awesome doesn't have a dot in a square used on it. Before we get to that, I'm very curious if page 1U3 still misrepresents the contents of "Unfälle: Giftstich" in the attached EPUB to see if we're on the right track to solve the issue. |
|
08-19-2021, 04:25 AM | #14 | |
Enthusiast
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
Hitch, I do hear you, as I mentioned in my previous response that I'm not in favor of using custom list markers but given the necessity of using them in this book, I can't avoid it. But my question is not regarding the alignment or how to display them, my issue is specific to GP's display habit here. It's weird that all the list markers (from level 1 to whichever level's list on the next page) are displaying (without the list content). See the original issue screenshots. Spoiler:
Notice the 'orphan hanging' arrow at the beginning of the page and the list item? It's like that with every 'nested list' in the book. And yes, I did hand-code everything. The sample I've shared is in ePub3 format, and the book is completely compliant with ePub3 standards. And yes, GP supports ePub3. Last edited by rsuchwani; 08-19-2021 at 05:00 AM. |
|
08-19-2021, 04:32 AM | #15 | |
Enthusiast
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
And the CSS is the very practical one. Granted that there are many things that usually don't get used often, but given the complexity of the book, it is an absolute requirement. GPB handles ePub3 just fine, have formatted many books in the past without any hiccups, just this issue perplexed me that I want to find some solution with the help of you guys. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Display Google Play ebook purchases? | ChipAHoy | Amazon Kindle | 2 | 10-24-2017 11:49 PM |
Loading eBooks to Google Play Issue | SamL | Android Devices | 3 | 02-15-2014 03:48 PM |
Nested lists with paragraphs | sdm1130 | Kindle Formats | 4 | 11-22-2011 07:32 PM |
Nested Ordered Lists | andyd273 | Conversion | 9 | 11-17-2011 01:05 PM |
Classic Nook Nested Lists | ldespain | Barnes & Noble NOOK | 0 | 08-08-2011 05:06 PM |