Template talk:Ppoem

Headings
On Page:The works of Christopher Marlowe - ed. Dyce - 1859.djvu/75

The heading markup was not recognised. I assume this is a design choice, and it can be worked around. ShakespeareFan00 (talk) 18:43, 5 March 2021 (UTC)

In case someone else comes across this: {class} actually uses class ws-poem-class, as it's made to function with the "default" classes in Template:Ppoem/styles.css. — Alien333 (what I did &amp; why I did it wrong) 07:51, 5 June 2024 (UTC)

Italics
Could we have the same shorthand from table style for poem style? e.g. it for italics Cheers, Zoeannl (talk) 00:37, 4 November 2021 (UTC)


 * @Zoeannl generally, ppoem is trying to avoid explicit inline CSS, whether directly or via a shorthand (actually, especially via a shorthand, as ts is a huge mess). Usually, formatting on poems is shared amongst all or many poems in a work, so you can define a class, and apply that to the poem, stanza or line in question and then style that with an appropriate CSS rule in the CSS. This has the benefit of being re-usable, as well as semantically meaningful. Inductiveload— talk/contribs 17:56, 1 May 2022 (UTC)

Suppressing the default hanging indent
Is there a way to suppress or modify the default hanging indent on individual lines? Chrisguise (talk) 17:12, 5 March 2022 (UTC)


 * @Chrisguise: Hmm. Lines can have a  prefix that will add that class to the line's container, and then you can target that class from CSS (for example the per-work / Index CSS) and set the combination of margin/text-indent you need. What's your use-case? Xover (talk) 21:46, 6 March 2022 (UTC)
 * Hi,
 * I will take your word for that - I have no knowledge of HTML programming.
 * I have a couple of instances.
 * 1) I've done a lot of Algernon Charles Swinburne's poetry and, in some cases, if I had used, a line wrap of 4em would have been too much compared to how the work is printed.
 * 2) I'm doing work on Shakespeare's first folio. I had been using, which works fine (once you get the hang of which templates put in extra blank lines and which don't) but I recently switched to , as I'd encountered a couple of instances where a line continues across two pages. Most of the text is in verse, which works fine, but some is just prose. Using I had been doing this without line breaks so that the text wraps itself, which works, but with  it puts in the hanging indent, which isn't present in the text. I could use line breaks per the printed text, or keep dropping in and out of  as required, but I thought I'd ask the question ....... Chrisguise (talk) 01:19, 7 March 2022 (UTC)
 * A bit lat here, but I found in the module that it's overriden if you give any value to the no_hi parameter (also added to doc). — Alien333 (what I did &amp; why I did it wrong) 08:39, 12 June 2024 (UTC)

pline
The pline template only appears to partly work with ppoem. renders correctly but does not. The line number appears mid-way through the line, as if it is being offset to the right of the start of the line, rather than to the left of it. Chrisguise (talk) 07:56, 1 May 2022 (UTC)


 * @Chrisguise ppoem isn't designed to use pline, as it has built-in support for the  and   syntax. Inductiveload— talk/contribs 09:35, 1 May 2022 (UTC)
 * It seems a bit odd that while introducing a better means to format poems (which is), it should reduce useful functionality elsewhere (e.g. the use of pline, with its inbuilt 'anchor' capability and less distracting formatting, compared to the plain numbering with ppoem). I haven't tried applying formatting to the number in ppoem yet, but it's just more work if that's what's required.
 * Incidentally, the 'errata' mark-up also doesn't work properly with ppoem. See the difference between the errata in Demeter and other poems/To the Marquis of Dufferin and Ava, which uses, and Demeter and other poems/To Mary Boyle, which uses  . Chrisguise (talk) 05:06, 5 May 2022 (UTC)

Author or title links in
I intermittently get instances where author links or title links in won't work and I can't figure out what combination of things it is that causes this. My latest example is Page:Sketch of Connecticut, Forty Years Since.djvu/27. The link from the first line to an anchor in the poem text works, but the author link to Robert Burns and the general title link at the end of the poem extract don't. When the problem happens, it's always following either >> or >>>, but it doesn't consistently fail. Chrisguise (talk) 15:41, 29 July 2022 (UTC)


 * @Chrisguise: Long story short: Special:Diff/12515917. Xover (talk) 20:57, 29 July 2022 (UTC)
 * Thanks for that - although I'm sure I tried that myself. Heigh-ho. Chrisguise (talk) 21:52, 29 July 2022 (UTC)

Unnecessary line break with dropinitial
In the poem below

the width of the container doesn't increase to accommodate the second line, introducing unnecessary line break. Alnaling (talk) 17:03, 5 December 2022 (UTC)


 * @Alnaling sadly this is a known issue (under "Disadvantages", this is what prompted "Dropinitials can sometimes cause a line to wrap prematurely"). HTML and CSS seem to be very resistant to allowing this work robustly. Sometimes one wishes for the simpler days of moveable type! Ideas for fixing this in a robust way are very welcome. Inductiveload— talk/contribs 22:24, 5 December 2022 (UTC)
 * Sorry for the noise, I didn't notice that this disadvantage was listed. Alnaling (talk) 09:46, 6 December 2022 (UTC)

Option for manual centring
In a poem interrupted by regular text, the centring will not be the same on both sides if the ppoem tag is used twice. Perhaps a good way to deal with this would be to allow manually setting the width of a ppoem. I am using inside a center block, currently, but I would much rather use ppoem if I could!

Then here is some regular text.

Raketsla (talk) 16:38, 15 December 2022 (UTC)


 * style=width:[width] would work just fine to do that. — Alien333 (what I did &amp; why I did it wrong) 19:12, 8 June 2024 (UTC)

Indented first line
For poems with an indented first line, this templates seems to remove all initial whitespace. For example this poem:

Is this a limitation of templates, automatically removing initial whitespace from all parameters? -- Yodin T 12:58, 17 July 2023 (UTC)
 * @Yodin: Yes, removing leading and trailing whitespace is a limitation of all templates (it's base MediaWiki behaviour).But in this particular case: ppoem has its own little microlanguage for poem formatting, but you seem to be treating it as if it was any other template. Try  instead. The ":" is for creating just this kind of indentation in poems.Note that for ppoem I recommend the somewhat-unusual-for-a-template source code formatting convention you see here, with the template invocation on its own line, and the same for the closing braces. It makes it a lot more clear what is actually going on there, especially when you start adding start and end to the template call. --Xover (talk) 09:01, 18 July 2023 (UTC)
 * Thanks :) I did notice the difference between : (non breaking em spaces?) and spaces (non breaking spaces), and thought that the original spacing was a bit less than 1em. But trying out the : method, 1em does seem about right (and as you say looks much clearer!) I'll look over the rest of the syntax as it looks like a much better way to format poems! -- Yodin T 11:46, 18 July 2023 (UTC)

Template missing basic examples.
In my work, this template's default center is always sufficient, but in case of this page, where the poem is not centered, I resorted to an unorthodox approach. I used the left template with a 4em offset from the margin with newline, but I would rather learn to use this template properly. I looked all the examples, and also checked "What links here", but found none that would demonstrate how to apply the parameters. &#32;— ineuw (talk) 06:21, 2 March 2024 (UTC)


 * That specific poem is I think centered, it's just that the first lines pushes it left because it's long, so this should be enough.
 * To answer your question, though, style=margin-left:4em overrides the default auto and works just fine (see here). — Alien333 (what I did &amp; why I did it wrong) 13:00, 25 May 2024 (UTC)


 * How right you are. It is an appreciated wake up call and I centered it.&#32;— ineuw (talk) 23:07, 25 May 2024 (UTC)

Problem with line numbering and drop initial
Minimal example:

Mårtensås (talk) 16:14, 3 June 2024 (UTC)


 * @Mårtensås: Thanks for the report. This is most likely not fixable because drop initials are not actually supported in web browsers (there's a draft spec for it, but it hasn't moved in years and no browsers support it), meaning di tries to fake it using nested elements and floats. I'll make a note of the issue though, in case an opportunity arises. Xover (talk) 17:05, 3 June 2024 (UTC)


 * @Mårtensås This piqued my curiosity as well, and as I write this, it occurred to me that a floating image of a dropped initial may be possible. Can you post a link to the page? &#32;— ineuw (talk) 21:26, 12 June 2024 (UTC)
 * @Ineuw: You'll likely run into the same issue (manifesting slightly differently). The problem is that both ppoem and di are using left floats there, and there's no general way to make the two cooperate. Xover (talk) 06:20, 13 June 2024 (UTC)
 * I'm working on Swedish Wikisource, but I've imported ppoem so it's the same template and syntax as on ENWS. sv:Sida:Upplandslagen_efter_Ängsöhandskriften_(von_Freisen_1912).pdf/137 Mårtensås (talk) 13:50, 13 June 2024 (UTC)