Menu

#129 stylesheets incorrectly handle word break across lines with paragraphos

future
done
stylesheets (5)
5(medium)
2020-11-10
2014-10-22
Tom Elliott
No

Consider this example in which a word is broken across a line with an intervening paragraphos:

<ab>
   <lb n="13"/> <w>τοῖϲ</w> <w>δ'</w> <w>ἀνθρώ
   <milestone rend="paragraphos" unit="undefined"/>
   <lb n="14" break="no"/>ποιϲ</w> 
</ab>

The stylesheets produce:

τοῖϲ δ' ἀνθρώ 
—— -
ποιϲ

Note the appearance of the hyphen after the paragraphos, instead of after the omega at the end of the preceding line where we would expect it.

Even if we remove the intervening whitespace-only text nodes...

<ab>
   <lb n="13"/> <w>τοῖϲ</w> <w>δ'</w> 
   <w>ἀνθρώ<milestone rend="paragraphos" unit="undefined"/><lb 
      n="14" break="no"/>ποιϲ</w> 
</ab>

... we still get this undesirable result.

If we remove the "milestone" element for the paragraphos entirely...

<ab>
   <lb n="13"/> <w>τοῖϲ</w> <w>δ'</w> <w>ἀνθρώ
   <lb n="14" break="no"/>ποιϲ</w> 
</ab>

... the stylesheets behave (NB: even with the intervening whitespace nodes):

τοῖϲ δ' ἀνθρώ-
ποιϲ

Stay tuned for more on this subject as the DCLP project delves into the code ...

Discussion

1 2 > >> (Page 1 of 2)
  • BODARD Gabriel

    BODARD Gabriel - 2014-10-22

    There is code in there to deal with the similar problem of intervening <g> and <space> elements, so adding <milestone> to that template ought to be trivial. (Let me know if I can help identify the relevant templates/tests.)

     
  • Tom Elliott

    Tom Elliott - 2014-10-22

    Here's where this first came up: https://github.com/DCLP/dclpxsltbox/issues/52

     
  • Tom Elliott

    Tom Elliott - 2014-10-29

    Courtesy of Chirag Gajjar, here's a list of the XSL files in which the strings "break" or "inWord" appear (these are attribute names or values, uniquely diagnostic for P5- and P4-era intra-word line breaks in EpiDoc):

    htm-teiab.xsl
    htm-teilb.xsl
    htm-teimilestone.xsl (no "inWord")
    teig.xsl
    teilb.xsl
    teilgandl.xsl
    teispace.xsl (no "inWord")
    teisupplied.xsl (no "inWord")
    tpl-apparatus.xsl (no "inWord")
    txt-teiab.xsl
    txt-teilb.xsl
    txt-teimilestone.xsl (no "inWord")

     

    Last edit: Tom Elliott 2014-10-29
  • Tom Elliott

    Tom Elliott - 2015-04-30
    • Group: future --> 8.20
     
  • Tom Elliott

    Tom Elliott - 2015-05-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     Consider this example in which a word is broken across a line with an intervening paragraphos:
    
     ~~~~~~~~~~~~
    
    • status: accepted --> done
     
  • Tom Elliott

    Tom Elliott - 2015-05-08

    fixed with [r2354]

     

    Related

    Commit: [r2354]

  • Tom Elliott

    Tom Elliott - 2015-05-08

    actually, not done properly. See https://github.com/DCLP/dclpxsltbox/issues/52

     
  • Tom Elliott

    Tom Elliott - 2015-05-08
    • status: done --> accepted
     
  • BODARD Gabriel

    BODARD Gabriel - 2015-06-16

    Punting this to next release.

     
  • BODARD Gabriel

    BODARD Gabriel - 2015-06-16
    • Group: 8.21 --> 8.22
     
  • Tom Elliott

    Tom Elliott - 2016-07-22

    I unfortunately do not have time to address this issue before 8.22 code freeze.

     
  • Tom Elliott

    Tom Elliott - 2016-07-22
    • Group: 8.22 --> future
     
  • BODARD Gabriel

    BODARD Gabriel - 2016-08-16
    • Group: future --> 8.23
     
  • Tom Elliott

    Tom Elliott - 2017-03-06
    • Group: 8.23 --> future
     
  • BODARD Gabriel

    BODARD Gabriel - 2017-03-21
    • Group: future --> 8.24
     
  • Tom Elliott

    Tom Elliott - 2017-05-10

    A fix for this has been tested and currently resides in /branches/dclp-issue52/example-p5-stylesheets

     
  • BODARD Gabriel

    BODARD Gabriel - 2017-10-17
    • Group: 8.24 --> 9.0
     
  • BODARD Gabriel

    BODARD Gabriel - 2018-03-13
    • Group: 9.0 --> future
     
  • BODARD Gabriel

    BODARD Gabriel - 2019-01-24
    • Group: future --> 9.1
     
  • Scott Vanderbilt

    • Group: 9.1 --> future
     
  • Scott Vanderbilt

    Bump -> Future

     
  • Tom Elliott

    Tom Elliott - 2020-01-21
    • Group: future --> 9.2
     
  • Pietro Maria Liuzzo

    I will look at this and check with @paregorios

     
  • BODARD Gabriel

    BODARD Gabriel - 2020-08-07

    According the comments above a fix for this ticket has been available since 2017. @pietroliuzzo, @paregorios: was this what you were both planning to try to merge into the Reference Stylesheets? If so, do you think this will be implemented by September?

     
  • BODARD Gabriel

    BODARD Gabriel - 2020-08-07
    • Group: 9.2 --> future
     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB