Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 02-06-2020, 03:17 AM   #1
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Wrong numbering in nested ordered list

I have the following html markup:

<section>
<h3 id="d1e11137">xxx3 Oppgaver</h3>
<ol>
<li>Forklar forskjellen på sosialt avvik og statistisk avvik.</li>
<li><ol type="a">
<li>Bruk noen av teoriene på de rosa sidene til å forklare hvorfor
gruppene «de falne gangsterne» og «flyktningene» har begynt å
selge hasj.</li>
<li>Vurder de ulike teoriene opp mot hverandre: Hvilke teorier kan
forklare de to gruppenes årsaker til hasjsalg på best mulig
måte? Hvordan kan teoriene kobles sammen?</li>
<li>Hvilke tiltak vil du foreslå for å forebygge hasjsalg blant
disse to gruppene?</li>
</ol></li>
<li>Fordypning: Se filmen _Spor_ 19 på nrk.no. Hva kjennetegner
subkulturen som beskrives? Hvordan kan denne kulturen forstås ulikt i et
konfliktperspektiv og et harmoniperspektiv?</li>
</ol>
</section>


When doing an ebook-convert to docx I get the following output:

xxx3 Oppgaver
1. Forklar forskjellen på sosialt avvik og statistisk avvik.
2. Bruk noen av teoriene på de rosa sidene til å forklare hvorfor gruppene «de falne gangsterne» og «flyktningene» har begynt å selge hasj.
a. Vurder de ulike teoriene opp mot hverandre: Hvilke teorier kan forklare de to gruppenes årsaker til hasjsalg på best mulig måte? Hvordan kan teoriene kobles sammen?
b. Hvilke tiltak vil du foreslå for å forebygge hasjsalg blant disse to gruppene?
3. Fordypning: Se filmen _Spor_ 19 på nrk.no. Hva kjennetegner subkulturen som beskrives? Hvordan kan denne kulturen forstås ulikt i et konfliktperspektiv og et harmoniperspektiv?

Error:
The first li in ol type="a" now appears at number 2 in the first ol.
tage fredheim is offline   Reply With Quote
Old 02-06-2020, 03:50 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...82a9277c73bbe9
kovidgoyal is offline   Reply With Quote
Advert
Old 07-07-2020, 08:00 AM   #3
indix
Junior Member
indix began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2020
Device: none
Still experiencing problem with wrong numbering in nested lists

I am a colleague of the OP, Tage. We are still experiencing the problem described above with wrong numbering in nested ordered list:


Xhtml code:

<section class="key" id="key_163">
<h2 id="h2_224">Oppgave 5.82</h2>
<ol start="2" type="a">
<li>
<ol>
<li>0,15 cm/dag</li>
<li>3,5 cm/dag</li>
<li>6,5 cm/dag</li>
</ol></li>
<li>
<ol>
<li>1,36 cm/dag</li>
<li><p>1,35 cm/dag</p>
<p>1,35 cm/dag</p></li>
</ol></li>
</ol>
</section>


renders the following output when doing an ebook-convert to docx:

xxx2 Oppgave 5.82
b. 0,15 cm/dag
1. 3,5 cm/dag
2. 6,5 cm/dag
c.
1. 1,36 cm/dag
2. 1,35 cm/dag
1,35 cm/dag

Looking like the attached image.
Attached Thumbnails
Click image for larger version

Name:	861270 DocX listetrøbbel.png
Views:	107
Size:	15.6 KB
ID:	180472  
indix is offline   Reply With Quote
Old 07-07-2020, 09:37 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...6200f500aa6c02
kovidgoyal is offline   Reply With Quote
Old 07-28-2020, 04:05 AM   #5
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Empty ol renderes with small font

Fine. Installed the new version and the numbering is now ok. However, an empty ol is rendered with a smaller font than the rest:
Attached Thumbnails
Click image for larger version

Name:	Skjermbilde.JPG
Views:	127
Size:	42.9 KB
ID:	180957  
tage fredheim is offline   Reply With Quote
Advert
Old 07-28-2020, 04:23 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorry, I've spent about as much time on trying to map these two completely different numbering systems to each other as I care to. Patches are welcome for furhter issues.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo Ordered List: No more than one numeral is visible ibu Kobo Reader 13 12-07-2015 11:36 AM
Ordered List Numbers being cut off SantafA ePub 8 03-16-2015 09:56 PM
smashwords ordered list start attribute pathwork Sigil 5 10-24-2013 07:26 PM
ordered list numbering problem iain robinson ePub 13 09-18-2012 09:57 AM
Nested Ordered Lists andyd273 Conversion 9 11-17-2011 12:05 PM


All times are GMT -4. The time now is 09:00 AM.


MobileRead.com is a privately owned, operated and funded community.