gregorio-project / gregorio

The Gregorio Project
http://gregorio-project.github.io
Other
155 stars 43 forks source link

Errors when translations inside <sc> </sc> style tags. #1572

Open sudobash1 opened 1 year ago

sudobash1 commented 1 year ago

I get errors when I try to add a translation to <sc> small-capital text segments. For instance, when I add a \gabcsnippet like this:

(c4) <sc>Test[testing](g)ing</sc>[/](g)

I get this error:

Runaway argument?
{\GreWriteTranslationWithCenterBeginning {\GreSmallCaps {testing}}{\GreSyllable
NoteCount \ETC.
! Paragraph ended before \GreSyllable was complete.
<to be read again>
\par
l.13

The error wasn't informative for me, so I started experimenting around. I was able to get what I wanted like this:

(c4) <sc>Test</sc>[<sc>testing</sc>](g)<sc>ing</sc>[/](g)

I had to close the <sc> style before I could add a translation, and reopen it after the translation. (I also had to add <sc>...</sc> inside the translation, but that doesn't seem problematic).

I think that one of two things should be done:

  1. Give a more descriptive error message
  2. Automatically close </sc> before the translation, and reopen it after.

I would lean towards the second option.