Re: Markuplist and formatted text
I’m printing out attribution information in which the title of a work from which the text was translated is in italics. Attached is an example of the my results before I started this thread. The comma after “Sponsa Christi” is in italics (as you suggested was the more normal typographic practice) because it was inside the \italic command (and directly attached to “Christi”. I was looking to turn it upright since the comma isn’t part of the title of the original sequence. The wrapping in this case is being handled by a modified \wordwrap-field, which was based on a discussion on the mailing list 6 years ago: https://www.mail-archive.com/lilypond-user@gnu.org/msg131928.html. At the time I hadn’t considered the possibility of punctuation that I didn’t want formatted in the same way as the text it would be “attached” to, and recent work had me exploring that possibility. If need be, I can post that tool in it’s current form, but in creating my MWE I tried to use standard LilyPond commands as much as possible, and would rely on applying it to my non-standard command myself (which I have done for the solution that has been posted using \wordwrap-lines). I’ll point out that at this point the \wordwrap-lines solution works (now that I understand where it’s allowed to make wrapping decisions), at this point my questions are purely about understanding your (David’s) comments about \wordwrap-string. ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ > On May 4, 2024, at 1:31 PM, David Kastrup wrote: > > "Fr. Samuel Springuel" writes: > >> Okay, so then I need to break up the string to create separate markups >> (except in the critical location around the italics text: >> >> \version "2.24.3" >> >> \markuplist \wordwrap-lines { test test test test test test test test >> test test test test test test test test test test test test test test >> test test test test \concat { \italic { "italic text" }"," } test test >> test test test test test test test test test test test test test test >> test test test test test test test } >> >> I can’t seem to get \wordwrap-string to work in this context (even >> after switching \markuplist to \markup). It barfs if \concat is >> inside of it (unrecognized escape string) and if it’s put inside >> \concat, then it only applies to the immediate string, not the >> resulting concatenated whole. > > What is the actual problem you are trying to solve here? > > -- > David Kastrup Ordinary_Time_Sundays.pdf Description: Adobe PDF document
Re: Markuplist and formatted text
On Sat 04 May 2024 at 11:18:52 (-0400), Fr. Samuel Springuel wrote: > How do I get the comma (which is not italicized) attached to the italics text > just before it? > > \version "2.24.3" > > \markuplist \wordwrap-lines { test test test \italic { italic text }, test > test test } You concat it. \markuplist \wordwrap-lines { test test test test test test test test test test test test test test test test test test test test test test, test test test test test test test test test test test test } \markuplist \wordwrap-lines {test test test test test test test test test test test test test test test test test test test test test test test test test test test test \concat { \italic { "italic text" } "," } test test test } Cheers, David. mark.pdf Description: Adobe PDF document
Re: Markuplist and formatted text
"Fr. Samuel Springuel" writes: > Okay, so then I need to break up the string to create separate markups > (except in the critical location around the italics text: > > \version "2.24.3" > > \markuplist \wordwrap-lines { test test test test test test test test > test test test test test test test test test test test test test test > test test test test \concat { \italic { "italic text" }"," } test test > test test test test test test test test test test test test test test > test test test test test test test } > > I can’t seem to get \wordwrap-string to work in this context (even > after switching \markuplist to \markup). It barfs if \concat is > inside of it (unrecognized escape string) and if it’s put inside > \concat, then it only applies to the immediate string, not the > resulting concatenated whole. What is the actual problem you are trying to solve here? -- David Kastrup
Re: Markuplist and formatted text
Okay, so then I need to break up the string to create separate markups (except in the critical location around the italics text: \version "2.24.3" \markuplist \wordwrap-lines { test test test test test test test test test test test test test test test test test test test test test test test test test test \concat { \italic { "italic text" }"," } test test test test test test test test test test test test test test test test test test test test test test test } I can’t seem to get \wordwrap-string to work in this context (even after switching \markuplist to \markup). It barfs if \concat is inside of it (unrecognized escape string) and if it’s put inside \concat, then it only applies to the immediate string, not the resulting concatenated whole. ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ > On May 4, 2024, at 1:13 PM, David Kastrup wrote: > > "Fr. Samuel Springuel" writes: > >> Word wrapping does not appear to be functioning in this solution: >> >> \version "2.24.3" >> >> \markuplist \wordwrap-lines {\concat { "test test test test test test >> test test test test test test test test test test test test test test >> test test test test test test test test test test test test test >> "\italic { "italic text" }", test test test" }} >> >> The text just runs of the page to the right. > > That is as intended. \wordwrap-lines breaks between individual markups, > and you only have one. > > You probably want \wordwrap-string (there is no \wordwrap-string-lines > though that would give you a markup list). > > -- > David Kastrup
Re: Markuplist and formatted text
"Fr. Samuel Springuel" writes: > Word wrapping does not appear to be functioning in this solution: > > \version "2.24.3" > > \markuplist \wordwrap-lines {\concat { "test test test test test test > test test test test test test test test test test test test test test > test test test test test test test test test test test test test > "\italic { "italic text" }", test test test" }} > > The text just runs of the page to the right. That is as intended. \wordwrap-lines breaks between individual markups, and you only have one. You probably want \wordwrap-string (there is no \wordwrap-string-lines though that would give you a markup list). -- David Kastrup
Re: Markuplist and formatted text
Word wrapping does not appear to be functioning in this solution: \version "2.24.3" \markuplist \wordwrap-lines {\concat { "test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test "\italic { "italic text" }", test test test" }} The text just runs of the page to the right. ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ > On May 4, 2024, at 11:30 AM, Jean Brefort wrote: > > Try this: > \markuplist \wordwrap-lines {\concat { "test test test "\italic { "italic > text" }", test test test" }} > > Le samedi 04 mai 2024 à 11:18 -0400, Fr. Samuel Springuel a écrit : >> How do I get the comma (which is not italicized) attached to the >> italics text just before it? >> >> \version "2.24.3" >> >> \markuplist \wordwrap-lines { test test test \italic { italic text }, >> test test test } >> >> ✝✝ >> Fr. Samuel, OSB >> (R. Padraic Springuel) >> St. Anselm’s Abbey >> 4501 South Dakota Ave, NE >> Washington, DC, 20017 >> 202-269-2300 >> (c) 202-853-7036 >> >> PAX ☧ ΧΡΙΣΤΟΣ >> >> >
Re: Markuplist and formatted text
"Fr. Samuel Springuel" writes: > How do I get the comma (which is not italicized) attached to the > italics text just before it? You got your question answered by another use already, so I'll just add that typesetters will usually tend to give punctuation the shape of the word adjacent to it for typographical rather than logical wholesomeness. That LilyPond makes it programmatically awkward to change shape without intervening space is not intentional; rather it is a side effect from punctuation usually being placed immediately adjacent to the preceding word. -- David Kastrup
Re: Markuplist and formatted text
Try this: \markuplist \wordwrap-lines {\concat { "test test test "\italic { "italic text" }", test test test" }} Le samedi 04 mai 2024 à 11:18 -0400, Fr. Samuel Springuel a écrit : > How do I get the comma (which is not italicized) attached to the > italics text just before it? > > \version "2.24.3" > > \markuplist \wordwrap-lines { test test test \italic { italic text }, > test test test } > > ✝✝ > Fr. Samuel, OSB > (R. Padraic Springuel) > St. Anselm’s Abbey > 4501 South Dakota Ave, NE > Washington, DC, 20017 > 202-269-2300 > (c) 202-853-7036 > > PAX ☧ ΧΡΙΣΤΟΣ > >
Markuplist and formatted text
How do I get the comma (which is not italicized) attached to the italics text just before it? \version "2.24.3" \markuplist \wordwrap-lines { test test test \italic { italic text }, test test test } ✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ