Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Numbered Lists #359

Closed
arjpar opened this issue Apr 13, 2024 · 4 comments
Closed

Support Numbered Lists #359

arjpar opened this issue Apr 13, 2024 · 4 comments

Comments

@arjpar
Copy link

arjpar commented Apr 13, 2024

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
Copy link
Owner

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

@arjpar
Copy link
Author

arjpar commented Apr 14, 2024

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
Copy link
Owner

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

@arjpar
Copy link
Author

arjpar commented Apr 26, 2024

@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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants