macmillanpublishers / htmlmaker_js

Repo for testing and finalizing htmlmaker javascript implementation
0 stars 1 forks source link

List Alpha (al) items get numbers in pdf output, no numbers in epub #56

Open mattretzer opened 7 years ago

mattretzer commented 7 years ago

(Encountered when testing with our test manuscript)

There is a complex set of nested lists (for testing) near the end of Chapter 2 of our test manuscript. For the most part htmlmaker_js handles the lists much better than the xsl conversion did.

One discrepancy is with the alpha list: in the pdf output the alpha list items get numbers, and in the epub output they are indented and padded but have neither number nor bullet. I'm not sure which is the desired outcome here, it looks like they were handled as paragraphs and not list items in the xsl conversion.

Here is the relevant html from htmlmaker_js output:

<ol class="">
    <li class="ListAlphaal">
        <p class="ListAlphaal" id="idf9o5t1wyc">Here&#x2019;s a single-level alpha list</p>
    </li>
    <li class="ListAlphaal">
        <p class="ListAlphaal" id="id5og9whb7b">A second alpha list item</p>
    </li>
</ol>
nelliemckesson commented 7 years ago

Ah, we need to add new handling for these. In both the PDF and EPUB CSS, we need to add rules to apply lower-alpha numbering to these list items, a la:

li.ListAlphaal { list-style-type: lower-alpha; }