baskerville / plato

Document reader
Other
1.32k stars 110 forks source link

Support Numbered Lists #359

Closed arjpar closed 7 months ago

arjpar commented 7 months ago

I've noticed with EPUBs numbered lists aren't supported. Is this because I'm using KEPUBs, or because it just isn't supported in Plato yet (despite using the built in reader)?

baskerville commented 7 months ago

Numbered lists are supported. Maybe you could extract a relevant excerpt from the KEPUB and the associated style?

arjpar commented 7 months ago

Numbered lists are supported. Maybe you could extract a relevant excerpt from the KEPUB and the associated style?

Book in Plato: screenshot-20240414_132048

Book in Calibre's ereader:

image

Relevant css:

li.x06-Questionairre-Q {
  font-size: 0.875em;
  list-style-type: decimal;
  margin: 0 0 0 1.43em;
  text-indent: 0;
}

Does Plato support list-style-type?

-- I was also thinking, could it be possible to replace Plato's built in epub engine with Servo for HTML/CSS rendering?

baskerville commented 7 months ago

Thanks. Could you also extract the HTML for the list?

arjpar commented 7 months ago

@baskerville sorry for the late response, here's the HTML if you still need it:

<ol>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Family (other than marriage or parenting)</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Marriage/couples/intimate relations</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Parenting</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Friends/social life</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Work</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Education/training</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Recreation/fun</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q"><span epub:type="pagebreak" id="page_236" title="236" />Spirituality</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Citizenship/community life</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Physical self-care (diet, exercise, sleep)</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Environmental issues</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
  <li class="x06-Questionairre-Q">
    <p class="x06-Questionairre-Q">Art, creative expression, aesthetics</p>
    <p class="x06-Questionairre-A">1   2    3   4    5   6   7   8    9   10</p>
  </li>
</ol>