Poetry styles not coming across

I’m working on a hymn book, using USFM mark-up. Each line of the verse is marked with \q1, and each line of the refrain with \q2. I was surprised that they came out all aligned at the left edge, with no indent. I fiddled with the styles, but that didn’t seem to do anything, and then I looked at the HTML output, and saw that each line was marked as though it were \m, as in each line looked like this:

<div class="m top-spacing">1. Iesu, masi kapumami,</div>

A more extended example is this source:

\v 1 1. Anongonongoo mae,
\q1 ta ukolokolo.
\q1 Ukkaluea ssavoto,
\q1 me amaulue.
\b
\q2 Iesu, Vaughu, masi kapughu.
\q2 Ughaa velu ssavoto,
\q2 me amaulue.

Produces this HTML:

<div class="m top-spacing">1. Anongonongoo mae,</div>
<div class="m top-spacing">ta ukolokolo.</div>
<div class="m top-spacing">Ukkaluea ssavoto,</div>
<div class="m top-spacing">me amaulue.</div>
<div class="b">&nbsp;</div>
<div class="m">Iesu, Vaughu, masi kapughu.</div>
<div class="m top-spacing">Ughaa velu ssavoto,</div>
<div class="m top-spacing">me amaulue.</div>

Am I doing something wrong?

John

Some how my notifications go turned off for this group.

Is this still an issue? What version are you on?

Your SFM looks okay. Except the first \q1 is missing.

What does your Styles for div.q and div.q2 look like?

I built it with 8.6.3, and I now have 8.6.5 on my computer. The first \q1 is there, just not in the bit I clipped. Here’s the full SFM for the song:

\c 2
\cp Iesu, anongonongo
\s1 2. Iesu, anongonongo
\s2 I Hear Thy Welcome Voice (SDAH 282)
\q1
\v 1 1. Anongonongoo mae,
\q1 ta ukolokolo.
\q1 Ukkaluea ssavoto,
\q1 me amaulue.
\b
\q2 Iesu, Vaughu, masi kapughu.
\q2 Ughaa velu ssavoto,
\q2 me amaulue.
\b
\q1
\v 2 2. Saghuighuina ieghi,
\q1 ussausieghi.
\q1 Ughaa velu ekapala
\q1 gheeleiaaghi sesa.
\b
\q2 Iesu, Vaughu, masi kapughu.
\q2 Ughaa velu ssavoto,
\q2 me amaulue.
\b
\q1
\v 3 3. Ekolokoloaghi,
\q1 tani ainoane,
\q1 tale voto maamaatana,
\q1 ghaine me nau emae.
\b
\q2 Iesu, Vaughu, masi kapughu.
\q2 Ughaa velu ssavoto,
\q2 me amaulue.
\b
\q1
\v 4 4. Raena ateva Iesu!
\q1 Aielousiaane
\q1 ghe sio mae ta nimate,
\q1 etau maulue.
\b
\q2 Iesu, Vaughu, masi kapughu.
\q2 Ughaa velu ssavoto,
\q2 me amaulue.

The styles are the defaults, so div.q is
padding-left: 20%; padding-right: 2%; text-indent: -15%
and div.q2 is
padding-left: 20%; padding-right: 2%; text-indent: -8%;

It is still happening now, but an earlier version worked properly, as far as I recall, so I’m not sure what’s going wrong.

I thought it was probably just an omission. But best not to assume.

I tested on a Song app I had and it output the correct styles in HTML

The only odd thing is the two numbers after the \v 1 1. What is the purpose of that?

Can you make your project available in DropBox or Google Drive? Share the link by a private message.

I responded by direct email on Saturday, but I’m not sure if it came through, as the first time it got a bounce. Did it reach you, Ian?

I got your project from DropBox.

I had the same issue with the Project that you had.

I then modified your SFM file and removed the newline the \v and the first number.

Still yours did not change the HTML output.

I then created a new project and imported the changed SFM file. That has produced the correct HTML output.

I compared the .appdef files and could not see anything that made the difference.

I then removed your original file. Saved, closed and reopened RAB. Then imported the modified file. The HTML export then worked correctly.

So I removed the first project, then I got the original unmodified project. Put that in RAB. Opened the project. It still had the bad HTML issue. I then removed the SFM file from the project, saved the project. Closed RAB then reopened it. (otherwise it won’t accept a file with the same ID.) I then reimported the original SFM file and checked the HTML. All Good.

So that last process is my recommendation.

Looks like it worked, so thank you!