nlbdev / pipeline

NLB branch of the super-project that aggregates all Pipeline related code. See https://github.com/daisy/pipeline for the main branch.
http://repo.nlb.no/pipeline
3 stars 1 forks source link

CSS: hide halftitlepage (frontmatter) #219

Closed KariRudjord closed 1 year ago

KariRudjord commented 5 years ago

To be put into NLB-CSS: setion epub:type="frontmatter halftitlepage" is repeating the title in a new page in productions. Please add to CSS that halftitlepage should be hidden in productions.

To be put into NLB-CSS: <section id="d6e341" epub:type="frontmatter copyright-page"> shall placed in back of the book (just like colophon).

bertfrees commented 5 years ago

An example of a halftitlepage would be nice. I can't find any in the tests.

So basically there should just be a rule that completely hides sections with epub:type="frontmatter halftitlepage"? Is that correct?

[epub|type~='frontmatter'][epub|type~='halftitlepage'] {
  display: none;
}
KariRudjord commented 5 years ago
<section epub:type="frontmatter halftitlepage" id="level1_2">
<p><strong>DEN HVITE LØVEN</strong></p>
</section>
<section epub:type="frontmatter titlepage" id="level1_3">
<h1 class="title" epub:type="fulltitle" id="h1_1">DEN HVITE LØVEN</h1>
<p class="docauthor" epub:type="z3998:author"><strong>MONA GRIVI NORMAN</strong></p>
</section>

564290.zip

That's correct, halftitlepage should be hidden

bertfrees commented 5 years ago

I decided to implement this in pre-processing.xsl because that is also the place where titlepage is removed.

KariRudjord commented 4 years ago

Works.