Forum Feature requests

prince-pdf-tag-type: Span

In my document, my main heading contains two styles:

Screen Shot 2019-10-01 at 1.57.20 PM.png

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>

.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: wrote:
Span – An inline segment of text that is formatted differently than the surrounding text, usually to provide emphasis such as Bold or Italic. 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;

Screen Shot 2019-10-01 at 2.03.04 PM.png

Screen Shot 2019-10-01 at 1.54.21 PM.png

Could you please add support for the Span tag type?
  1. Screen Shot 2019-10-01 at 1.54.21 PM.png206.2 kB
    H1>P structure warning in PAC 3
  2. Screen Shot 2019-10-01 at 1.57.20 PM.png14.3 kB
    Heading containing 2 styles
  3. Screen Shot 2019-10-01 at 2.03.04 PM.png19.3 kB
    PAC 3 Logical Structure

Edited by dotherightthing

prince-pdf-tag-type: Span should work with the latest version (20190814).
I downloaded prince-12.5-macosx.tar.gz on 2019/08/30, and that's the version I'm developing with (using the command line).

prince --version
Prince 12.5
Copyright 2002-2019 YesLogic Pty. Ltd.
Non-commercial License
prince-pdf-tag-type is a recent addition. It doesn't exist on the 12.x branch.
The latest builds are available for use now and will be frozen as Prince 13 in November.
Ah, great. Thanks Mike.
Thanks guys, PAC 3 accepts my PDF as 100% valid in prince-20190814-macosx.tar.gz