File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ target/bin/xslt.sh \
352
352
<xsl : text >&lb; \let\pb\pbnomark}</xsl : text >
353
353
<xsl : text >&lb; \makeatletter</xsl : text >
354
354
<xsl : text >&lb; \AtStartEveryStanza{%</xsl : text >
355
- <xsl : text >&lb; \setRL\relax{}\ arabicobracket\@verse@meter\arabiccbracket\protect\newverse\relax\lednopb %</xsl : text >
355
+ <xsl : text >&lb; \setRL\arabicobracket\@verse@meter\arabiccbracket\protect\newverse%</xsl : text >
356
356
<xsl : text >&lb; }</xsl : text >
357
357
<xsl : text >&lb; \AtEveryStopStanza{%</xsl : text >
358
358
<xsl : text >&lb; %\ifthenelse{\equal{true}{\@verse@isembedded}}{}{}</xsl : text >
Original file line number Diff line number Diff line change @@ -299,6 +299,23 @@ target/bin/xslt.sh -config:saxon.he.xml -xsl:xsl/projects/alea/latex/prose.xsl -
299
299
<xsl : text >{</xsl : text >
300
300
<xsl : value-of select =" alea:meter(@met)" />
301
301
<xsl : text >}%&lb; </xsl : text >
302
+ <!-- Set stanza penalties.
303
+ Each verse needs its own stanza penalty which is accessed with \sza@\the\versenumber@!
304
+ -->
305
+ <xsl : text >&lb; \setstanzapenalties{1,10000</xsl : text >
306
+ <xsl : choose >
307
+ <xsl : when test =" self::l" >
308
+ <xsl : text >,0</xsl : text >
309
+ </xsl : when >
310
+ <xsl : otherwise >
311
+ <xsl : for-each
312
+ select =" 1 to count(descendant-or-self::l[not(ancestor::note | ancestor::app)]) - 1" >
313
+ <xsl : text >,10100</xsl : text >
314
+ </xsl : for-each >
315
+ <xsl : text >,13000</xsl : text >
316
+ </xsl : otherwise >
317
+ </xsl : choose >
318
+ <xsl : text >}</xsl : text >
302
319
</xsl : template >
303
320
304
321
<xsl : template mode =" rend:hook-before" match =" *[@met]" >
You can’t perform that action at this time.
0 commit comments