Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psalm formatting: verse numbers and spacing #2

Open
MRoth1910 opened this issue Dec 30, 2023 · 1 comment
Open

Psalm formatting: verse numbers and spacing #2

MRoth1910 opened this issue Dec 30, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@MRoth1910
Copy link
Owner

MRoth1910 commented Dec 30, 2023

Ben Bloomfield's default format for psalm verses downloaded as a .tex file is a list with \item. Currently we have as follows this command which formats the list with the psalm contained in another folder of the same directory.

\NewDocumentCommand{\pstexte}{ m }{%
    \smallskip%
    \noindent%
    \begin{itemize}[%
    		label=\null, %
			leftmargin=0pt, %
			itemindent=0mm, %
			labelsep=0pt, %
			labelwidth=0pt, %
			rightmargin=0pt, %
			parsep=0pt, %
			topsep=0pt, %
			itemsep=0pt]%
    \input{psaumes/#1}
    \end{itemize}}

The first screenshot shows the formatting. Note that there is no indentation, unlike in the Liber Usualis (second screenshot) which has slight indentation of the first line of a verse. Further, the psalm numbers are added manually (gulp). This is probably a bad idea. As this project was originally conceived, keeping them seems helpful for choir directors, particularly as the received biblical verse numbers don't correspond to the psalms as ordered for chanting in the office. (Removing numbers, regardless of how they are applied, requires reformatting the whole text in order to make the verses distinct…so if that's a better route, suggest a fix.)

Sometimes, the period is not correctly treated, so a large sentence space is applied (the LU follows French convention, but in any case, there is no real reason why the space after N. should be so variable… letting LaTeX do its thing results in the Sicut erat spacing being consistently larger than those of most other verses)

This is related to the issue of ~ having (too much) stretch noted in #1 (comment). This is made worse when the sentence spacing is incorrectly applied.

Switching to frenchspacing makes everything too tight and does not fix the stretch of v. 4 in ps. 110.

Screenshot 2023-12-30 at 11 32 32 Screenshot 2023-12-30 at 11 30 59
@MRoth1910 MRoth1910 added the help wanted Extra attention is needed label Dec 30, 2023
@MRoth1910 MRoth1910 changed the title Psalm formatting Psalm formatting: verse numbers and spacing Dec 30, 2023
@MRoth1910
Copy link
Owner Author

This is far from being perfect as I have now also introduced code for the canticles which begin on verse 3.

This uses enumerate rather than inserting numbers in .tex file while using itemize (a horrible, horrible idea which wasted a lot of time and caused problems). The start value is controlled via enumitem package.

These values reflect Liber Usualis but do not appear as if typed on a typewriter. Single words (particularly monosyllables) may need adjustment.

leftmargin=* and itemindent=* appear to be the way to a hanging indent like the modern antiphonal (but that isn't very pleasing, so we avoid it.

\NewDocumentCommand{\pstexte}{m}{%
    \smallskip%
    \noindent%
    \begin{enumerate}[%
			label=\arabic*.,%
%			align=left,%
			leftmargin=10pt, %
			itemindent=15pt, %
			labelsep=3pt, %
			labelwidth=0pt,
			rightmargin=0pt, %
			parsep=0pt, %
			topsep=0pt, %
			itemsep=0pt,%
			start=2]
       \input{psaumes/#1}
    \end{enumerate}}

The text is all within the text area as provided by the showframe package. hspace* is sometimes needed after the mediant in order to kern infelicitous pairings; either the hyphen is simply not printed, or the hspace is ignored, so the entire word moves to the next line but the letter before the italicized syllable has the
usual, bad default kerning applied. hspace* ensures a break in a normal place, that the hyphen is printed, and that the letters are kerned.

Screenshot 2024-06-14 at 16 15 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant