In my document, my main heading contains two styles:
In order to apply the second style, I wrap the second line in an inline element, in this case 'span'.
Span is a PDF tag type:
But Prince does not seem to support Span. Even if I explicitly state that I want a Span, Prince still maps the span element to a P (paragraph).
Could you please add support for the Span tag type?
In order to apply the second style, I wrap the second line in an inline element, in this case 'span'.
<h2 class="heading--main">
Curriculum vitae:
<span>Dan Smith</span>
</h2>
.heading--main {
font-family: Merriweather, serif;
font-weight: 300;
font-style: italic;
}
.heading--main > span {
display: block;
font-weight: 900;
font-style: normal;
}
Span is a PDF tag type:
https://kbpdfstudio.qoppa.com/standard-pdf-tag-types/ wrote:
Inline
...
Span – An inline segment of text that is formatted differently than the surrounding text, usually to provide emphasis such as Bold or Italic.
https://www.pdfa.org/wp-content/until2016_uploads/2014/06/MatterhornProtocol_1-02.pdf wrote:
All of the following structure types must be taken into account:
Document, Part, Art, Sect, Div, BlockQuote, Caption, TOC, TOCI, Index, NonStruct, Private, P, H, H1, H2, H3, H4, H5, H6, L, LI, Lbl, LBody, Table, TR, TH, TD, THead, TBody, TFoot, Span, Quote, Note, Reference, BibEntry, Code, Link, Annot, Ruby, Warichu, RB, RT, RP, WT, WP, Figure, Formula, Form.
But Prince does not seem to support Span. Even if I explicitly state that I want a Span, Prince still maps the span element to a P (paragraph).
.heading--main span {
prince-pdf-tag-type: Span;
}
Could you please add support for the Span tag type?
Edited by dotherightthing