Uploaded image for project: 'SWORD'
  1. SWORD
  2. API-255

Rendering problem for OSIS markup items in Bible modules with Direction=RtoL

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.1
    • Fix Version/s: None
    • Component/s: core, filters
    • Labels:
      None
    • Environment:

      Observed with the latest releases of both Xiphos and PocketSword.

      Description

      This issue is prompted by observations in SWORD front-ends when displaying Hebrew Bible modules with semantic markup elements.

      For an example, see the OSHB module.

      When the SWORD API renders markup items, such as Strong's numbers or morphology codes, my observation is that in Xiphos, PocketSword and diatheke, they are always wrapped between < and >.

      eg. <H05684>

      NB. Some front-ends omit the H part of the Strong's Hebrew code.
      I therefore assume that the same is the case for all SWORD based front-ends, but I can't speak for JSword-based apps.

      Now, there is also a subtle but annoying rendering issue when the main text is for a language such as Hebrew that has a right to left direction.
      The leading < can sometimes get reversed by the bidirectional algorithm and in some such cases it can also get misplaced!
      And when a footnote contains a Strong's number, the symptoms are similar in nature but not exactly the same.

      In the main text, the problem is usually seen when the word with the markup is at the end of a display pane such that line wrap occurs.

      This is really a matter of getting the correct rendering of the left to right markup content in the context of right to left words in the main text.

      My guess is that it should be feasible to insert a U+200E LEFT-TO-RIGHT MARK [LRM] before the leading < and that this might well fix the issue.

      This would prevent the rendering engine from ever counting the leading < as part of Hebrew and mis-rendering it in some conditions.

      Gen.8.17 is illustrated for Xiphos in the first comment below for the OSHB module.

      btw. This is not like Strong's numbers in the main text, where the < and > are not included.

      NB. There are other rendering issues for Strong's in the main text pane, such as numbers that overlap below the short Hebrew words. This is more apparent in verses 18 & 19.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dfh David Haslam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: