standardebooks / manual

The source code for the Standard Ebooks Manual of Style.
https://standardebooks.org/manual
Other
134 stars 35 forks source link

Drama paragraph indentation #16

Closed robinwhittleton closed 4 years ago

robinwhittleton commented 4 years ago

In the drama CSS we use:

[epub|type~="z3998:drama"] td p{
        text-indent: 0;
}

With run-on monologues this has the effect of removing all paragraph separation. Should we add a first child pseudoclass?

[epub|type~="z3998:drama"] td p:first-child{
        text-indent: 0;
}
acabal commented 4 years ago

Can you give an example?

robinwhittleton commented 4 years ago

https://github.com/standardebooks/charles-babbage_passages-from-the-life-of-a-philosopher/blob/master/src/epub/text/chapter-22.xhtml#L899-L902

or,

https://github.com/standardebooks/christopher-marlowe_the-tragical-history-of-doctor-faustus/blob/master/src/epub/text/scene-7.xhtml#L303-L308

or

https://github.com/standardebooks/cicero_tusculan-disputations_c-d-yonge/blob/master/src/epub/text/chapter-1.xhtml#L292-L296

acabal commented 4 years ago

OK, I think you're right. We can actually just remove that block entirely from the manual and from all existing productions. core.css includes p:first-child{ text-indent: 0;} so that already takes care of the first paragraph. Anything else either has short multi-line dialog as verse styling (like Shakespeare) or has longer paragraphs that should be indented. I'll go ahead and do that.