[sword-devel] diatheke plain output - line breaks missing?

Greg Hellings greg.hellings at gmail.com
Mon Jan 22 15:38:05 MST 2007


Sorry, disregard the previous patch.  It would also change the
config.h file and other things like that (which are regenerated in the
autogen.sh script).  I have attached a patch ONLY for the
osisplain.cpp file, still from the root of the sword directory.

Sorry,
Greg

On 1/22/07, Greg Hellings <greg.hellings at gmail.com> wrote:
> I have, for the moment, attached a patch, made against the latest svn,
> which will take a tag of type <l ... type="x-br"... and change it into
> a new-line.  It works in the aforementioned Psalm 43:1 of ESV.  I'm
> working on Mac and don't have any other front-ends installed, so I
> don't know if it breaks them.  It's very simple and based almost
> directly off of the code for the tag right above it.  Let me know if
> it works for you.  The patch was made in the root of the sword
> directory.
>
> Cheers,
> Greg
>
> On 1/22/07, benjie <cricketc at gmail.com> wrote:
> > Thanks for looking at this. I'm pretty busy right now, but if no one
> > else works on it, I'll probably see what I can do, since it's an itch
> > I want scratched.:)
> >
> > -Benjie
> >
> > On Mon, Jan 22, 2007 at 10:29:22AM -0500, DM Smith wrote:
> > > I took a look at osisplain.cpp and it does not handle what OSIS allows.
> > > So it is not just the handling of whitespace.
> > > Some other problems (just a quick glance):
> > >     Does not handle <q>...</q>. It probably should output quote marks,
> > > unless suppressed in the conf.
> > >     Does not handle <divineName>Lord</divineName>. It should uppercase
> > > the content.
> > >     Does not handle <transChange>...</transChange>. Most systems output
> > > this as [...]
> > >     Does not handle milestoned elements (i.e. elements with sID and
> > > eID). Which is the root of the complaint below.
> > >
> > > More probably can be found by comparing it with the osis html filter.
> > >
> > > When I have time, I'll see what I can do. Feel free to help if you have
> > > the time available.
> > >
> > > benjie wrote:
> > > > Hey,
> > > >
> > > > I'm trying to work with plaintext output, but when I try to use
> > > > diatheke on Psalm 43 (for example), it doesn't display very well.
> > > > Where there are line breaks & indents in BibleTime, diatheke just
> > > > outputs words squished together. In verse 1, for example, we get
> > > > "causeagainst" and "people,from". This is with Sword 1.5.9, and I'm
> > > > reading the ESV module. It seems that the osisplain filter doesn't
> > > > handle the <l eID="x4672" type="x-br"/> tag correctly, from what I've
> > > > been looking at, unless the ESV module just has errors in it. But the
> > > > passages are fine in BibleTime.
> > > >
> > > > Am I just missing something, or is this a bug that can be corrected?
> > > >
> > > > Thanks a lot,
> > > > Benjie
> > > >
> > > > _______________________________________________
> > > > sword-devel mailing list: sword-devel at crosswire.org
> > > > http://www.crosswire.org/mailman/listinfo/sword-devel
> > > > Instructions to unsubscribe/change your settings at above page
> > > >
> > > >
> > >
> > >
> > > _______________________________________________
> > > sword-devel mailing list: sword-devel at crosswire.org
> > > http://www.crosswire.org/mailman/listinfo/sword-devel
> > > Instructions to unsubscribe/change your settings at above page
> >
> > _______________________________________________
> > sword-devel mailing list: sword-devel at crosswire.org
> > http://www.crosswire.org/mailman/listinfo/sword-devel
> > Instructions to unsubscribe/change your settings at above page
> >
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: l-type-x-br.diff
Type: application/octet-stream
Size: 604 bytes
Desc: not available
Url : http://www.crosswire.org/pipermail/sword-devel/attachments/20070122/72537211/attachment.obj 


More information about the sword-devel mailing list