Uploaded image for project: 'Module Tools'
  1. Module Tools
  2. MODTOOLS-29

diatheke does not include the font color table when output format is RTF, yet this is required to support option x (Red Words of Christ)

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: diatheke
    • Labels:
    • Environment:

      Windows 7 x64

      Description

      Here is what I entered at the Windows cmd line:

      utils\diatheke -b ESV -o x -f RTF -k "Gen - Rev">Export\ESV\ESV.diatheke.ox.rtf

      The Words of Jesus are marked in the RTF file using font color 6 like this: \cf6 ...\cf0

      Examples can be found throughout the Gospels, the first being in

      Matthew 3:15:

      {\f1 But Jesus answered him, \cf6 "Let it be so now, for thus it is fitting for us to fulfill all righteousness."\cf0 Then he consented.}

      \par

      For this to display correctly, the RTF file should include a font color table near the start of the file. It doesn't.

      The first output line begins:
      {\rtf1\ansi{\fonttbl

      {\f0\froman\fcharset0\fprq2 Times New Roman;} {\f1\fdecor\fprq2 Times New Roman;}

      {\f7\froman\fcharset2\fprq2 Symbol;}}

      and is immediately followed by Genesis 1:1:

      So three fonts are defined, but font colors are not defined. They should be!
      i.e. cf6 should be red, cf0 should be black.

      No attachment is added, as the issue is readily reproducible.

      David Haslam

        Attachments

          Activity

            People

            • Assignee:
              scribe Troy A Griffitts
              Reporter:
              dfh David Haslam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: