Re: [sword-devel] Diatheke - Psalm heading

2024-07-16 Thread brickviking
If you think that's bad, I just got this when I tried it for five of the
modules I have here:

Psalms 23:1: The LORD  is my shepherd; I shall not want.
Psalms 23:2: He makes me to lie down in green pastures; He leads me beside
the still waters.
Psalms 23:3: He restores my soul; He leads me in the paths of righteousness
For His name's sake.
Psalms 23:4: Yea, though I walk through the valley of the shadow of death,
I will fear no evil; For You  are with me; Your rod and Your staff, they
comfort me.
Psalms 23:5: You prepare a table before me in the presence of my enemies;
You anoint my head with oil; My cup runs over.
Psalms 23:6: Surely goodness and mercy shall follow me All the days of my
life; And I will dwell in the house of the LORD Forever.
(NKJV)
Okay so far.

A Psalm of David.
Psalms 23:1: The LORD is my shepherd; I shall not want.
A Psalm of David.
Psalms 23:2: He maketh me to lie down in green pastures: he leadeth me
beside the still waters.
A Psalm of David.
Psalms 23:3: He restoreth my soul: he leadeth me in the paths of
righteousness for his name’s sake.
A Psalm of David.
Psalms 23:4: Yea, though I walk through the valley of the shadow of death,
I will fear no evil: for thou art with me; thy rod and thy staff they
comfort me.
A Psalm of David.
Psalms 23:5: Thou preparest a table before me in the presence of mine
enemies: thou anointest my head with oil; my cup runneth over.
A Psalm of David.
Psalms 23:6: Surely goodness and mercy shall follow me all the days of my
life: and I will dwell in the house of the LORD for ever.
(KJV)
Definitely weird.

Psalms 23:1:  The LORD is my shepherd, I shall not be in want.
Psalms 23:2: He makes me lie down in green pastures, he leads me beside
quiet waters,
Psalms 23:3: he restores my soul. He guides me in paths of righteousness
for his name's sake.
Psalms 23:4: Even though I walk through the valley of the shadow of death,
I will fear no evil, for you are with me; your rod and your staff, they
comfort me.
Psalms 23:5: You prepare a table before me in the presence of my enemies.
You anoint my head with oil; my cup overflows.
Psalms 23:6: Surely goodness and love will follow me all the days of my
life, and I will dwell in the house of the LORD forever.
(NIV)

Again, quite okay. I don't know how the Front Matter was defined for Psa 23
in that version, if there even was any.

 A Psalm of David.
 Psalms 23:1:
The LORD is my shepherd, I shall not want.
 A Psalm of David.
 Psalms 23:2:
He makes me lie down in green pastures; He leads me beside quiet waters.
 A Psalm of David.
 Psalms 23:3:
He restores my soul; He guides me in the paths of righteousness For His
name’s sake.
 A Psalm of David.
 Psalms 23:4:
Even though I walk through the valley of the shadow of death, I fear no
evil, for You are with me; Your rod and Your staff, they comfort me.
 A Psalm of David.
 Psalms 23:5:
You prepare a table before me in the presence of my enemies; You have
anointed my head with oil; My cup overflows.
 A Psalm of David.
 Psalms 23:6:
Surely goodness and lovingkindness will follow me all the days of my life,
And I will dwell in the house of the LORD forever.
(NASB)

Definitely "more" broken.

And for the ESV:

A Psalm of David.
Psalms 23:1: The LORD is my shepherd; I shall not want.

A Psalm of David.
Psalms 23:2: He makes me lie down in green pastures.
He leads me beside still waters.

A Psalm of David.
Psalms 23:3: He restores my soul.
He leads me in paths of righteousness
for his name's sake.

A Psalm of David.
Psalms 23:4: Even though I walk through the valley of the shadow of death,
I will fear no evil,
for you are with me;
your rod and your staff,
they comfort me.

A Psalm of David.
Psalms 23:5: You prepare a table before me
in the presence of my enemies;
you anoint my head with oil;
my cup overflows.

A Psalm of David.
Psalms 23:6: Surely goodness and mercy shall follow me
all the days of my life,
and I shall dwell in the house of the LORD
forever.


(ESV)

I'm sure there's got to be a way to fix that, at least. It doesn't happen
for my NKJV module nor the NIV module, which are both created by myself.

Regards, brickviking


On Tue, 16 Jul 2024 at 21:34, David Haslam  wrote:

> It should but nobody ever got round to fixing this for diatheke.
>
> It stems from how SWORD stores and handles pre-verse content.
>
> David
>
> Sent from Proton Mail  for iOS
>
>
> On Tue, Jul 16, 2024 at 10:17, Marjan Šavli  > wrote:
>
>
> Hi!
>
> I would like to make text file from bible that can be used for making
> audio file with digital narrator (MS Word for example)
>
> When I export Psalms with diatheke.exe
>
> diatheke.exe -b KJV -o w -f plain -k "Ps 23" > export.txt
>
> I got
>
> =
> Psalms 23:1: The LORD is my shepherd; I shall not want.
> A Psalm of David.
> Psalms 23:2: He maketh me to lie down in green pastures: he leadeth me
> beside the still waters.
> Psalms 23:3: He restoreth my soul: he leadeth me in the paths of
> righteousness for his name’

Re: [sword-devel] Diatheke - Psalm heading

2024-07-16 Thread David Haslam
It should but nobody ever got round to fixing this for diatheke.

It stems from how SWORD stores and handles pre-verse content.

David

Sent from [Proton Mail](https://proton.me/mail/home) for iOS

On Tue, Jul 16, 2024 at 10:17, Marjan Šavli <[marjan.sa...@gmail.com](mailto:On 
Tue, Jul 16, 2024 at 10:17, Marjan Šavli < wrote:

> Hi!
>
> I would like to make text file from bible that can be used for making audio 
> file with digital narrator (MS Word for example)
>
> When I export Psalms with diatheke.exe
>
> diatheke.exe -b KJV -o w -f plain -k "Ps 23" > export.txt
>
> I got
>
> =
>
> Psalms 23:1: The LORD is my shepherd; I shall not want.
> A Psalm of David.
> Psalms 23:2: He maketh me to lie down in green pastures: he leadeth me beside 
> the still waters.
> Psalms 23:3: He restoreth my soul: he leadeth me in the paths of 
> righteousness for his name’s sake.
> Psalms 23:4: Yea, though I walk through the valley of the shadow of death, I 
> will fear no evil: for thou art with me; thy rod and thy staff they comfort 
> me.
> Psalms 23:5: Thou preparest a table before me in the presence of mine 
> enemies: thou anointest my head with oil; my cup runneth over.
> Psalms 23:6: Surely goodness and mercy shall follow me all the days of my 
> life: and I will dwell in the house of the LORD for ever.
> (KJV)
> 
>
> Problem is the second line: "A Psalm of David."
> Shouldn't this line be first and line Psalms 23:1 second?
>
>  Marjan -
>
> ---___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Diatheke - Psalm heading

2024-07-16 Thread Marjan Šavli
Hi!

I would like to make text file from bible that can be used for making audio
file with digital narrator (MS Word for example)

When I export Psalms with diatheke.exe

diatheke.exe -b KJV -o w -f plain -k "Ps 23" > export.txt

I got

=
Psalms 23:1: The LORD is my shepherd; I shall not want.
A Psalm of David.
Psalms 23:2: He maketh me to lie down in green pastures: he leadeth me
beside the still waters.
Psalms 23:3: He restoreth my soul: he leadeth me in the paths of
righteousness for his name’s sake.
Psalms 23:4: Yea, though I walk through the valley of the shadow of death,
I will fear no evil: for thou art with me; thy rod and thy staff they
comfort me.
Psalms 23:5: Thou preparest a table before me in the presence of mine
enemies: thou anointest my head with oil; my cup runneth over.
Psalms 23:6: Surely goodness and mercy shall follow me all the days of my
life: and I will dwell in the house of the LORD for ever.
(KJV)


Problem is the second line: "A Psalm of David."
Shouldn't this line be first and line Psalms 23:1 second?

      Marjan   -
   ---
___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Diatheke - rendering of text wrapped in the OSIS hi element

2018-04-12 Thread David Haslam
Something's changed in diatheke plain output format with regard to how it 
renders text wrapped in the OSIS hi element.

Currently, it places an asterisk and space before and a space and asterisk 
after the marked text.
From time immemorial, it simply placed an asterisk at both the start and end of 
the marked text.

My guess is that this was an unintended change. I don't see any merit in it, do 
you?

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke, section headings and Psalm titles?

2018-04-09 Thread Greg Hellings
The "strange reason" is a well understood design decision in the engine
that is, however, non obvious and leads frequently to this type  of
behavior for client applications.

It is also patched in Subversion already.

--Greg

On Mon, Apr 9, 2018, 14:00 David Haslam  wrote:

> Apologies.
>
> I seem to have forgotten what Greg pointed out only last week.
> For some strange reason, the Psalm titles are currently output *before
> verse 2* rather than before verse 1.
>
> Best regards,
>
> David
>
> Sent with ProtonMail  Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On 9 April 2018 7:36 PM, David Haslam  wrote:
>
> Going on from the earlier thread.
>
> It's evident that diatheke can output *section headings*, viz., try this:
> >diatheke -b ESV2011 -o h -f plain -k Matt.1
> The output includes:
> *The Genealogy of Jesus Christ*
> (before verse 2)
> *The Birth of Jesus Christ*
> (before verse 19)
> both of which are titles supplied by the ESV translators.
>
> Yet diatheke seems to be unable to output *canonical Psalm titles*, viz.,
> try this:
> >diatheke -b ESV2011 -o h -f plain -k Ps.3
> The 8 verses are output, but no Psalm title appears,
> neither the *uninspired* "*Save Me, O My God*" (supplied by the
> translators)
> nor the *inspired* "*A Psalm of David when he fled from Absolom his son.*"
> (as translated from the Hebrew).
>
> Surely it's a *serious deficiency* in diatheke that it can output *some*
> *uninspired* section headings but *not others* and *never* the *inspired*
> Psalm titles?
>
> Do the developers have any ideas on how to remedy this inconsistency?
>
> Or is it a problem in how modules are made that leaves these titles *in
> limbo* like this?
>
> Best regards,
>
> David
>
> Sent with ProtonMail  Secure Email.
>
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke, section headings and Psalm titles?

2018-04-09 Thread David Haslam
Apologies.

I seem to have forgotten what Greg pointed out only last week.
For some strange reason, the Psalm titles are currently output before verse 2 
rather than before verse 1.

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On 9 April 2018 7:36 PM, David Haslam  wrote:

> Going on from the earlier thread.
>
> It's evident that diatheke can output section headings, viz., try this:
>>diatheke -b ESV2011 -o h -f plain -k Matt.1
> The output includes:
> The Genealogy of Jesus Christ
> (before verse 2)
> The Birth of Jesus Christ
> (before verse 19)
> both of which are titles supplied by the ESV translators.
>
> Yet diatheke seems to be unable to output canonical Psalm titles, viz., try 
> this:
>>diatheke -b ESV2011 -o h -f plain -k Ps.3
> The 8 verses are output, but no Psalm title appears,
> neither the uninspired "Save Me, O My God" (supplied by the translators)
> nor the inspired "A Psalm of David when he fled from Absolom his son." (as 
> translated from the Hebrew).
>
> Surely it's a serious deficiency in diatheke that it can output some 
> uninspired section headings but not others and never the inspired Psalm 
> titles?
>
> Do the developers have any ideas on how to remedy this inconsistency?
>
> Or is it a problem in how modules are made that leaves these titles in limbo 
> like this?
>
> Best regards,
>
> David
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] Diatheke output format default change?

2018-04-09 Thread David Haslam
This used to be the syntax help for diatheke output format:
  Valid output_format values are: GBF, ThML, RTF, HTML, HTMLHREF, XHTML, OSIS, 
CGI, and plain (def)
This is the current syntax help:
  Valid output_format values are: CGI, GBF, HTML, HTMLHREF, LaTeX, OSIS, RTF, 
ThML, WEBIF, XHTML, plain, and internal (def)

So as well as adding the formats LaTeX, WEBIF, XHTML and internal,
it's also the case that the default has been changed from plain to internal.

As I have no knowledge of any discussion that led to this change of default, I 
would be interested to learn the reasons for it.

It's the kind of change that goes against the principle of Backwards 
Compatibility.
i.e. For any software or command files that made regular use of diatheke,
these would now have to be updated to include "-f plain" if they were 
previously relying on plain having been default.

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] Diatheke version numbering

2018-04-09 Thread David Haslam
Developers seem to have neglected attending to version numbers for diatheke.
See https://wiki.crosswire.org/Frontends:Diatheke#Release_history

Release history

This section needs expanding.

- Version 4.6 was released during 2013.
- Version 4.7 was released on Aug 30 2015.
- Several updates to diatheke have since been made, but the version number was 
not incremented each time.

Likewise, the copyright date range is still left untouched 

The first three lines of syntax help are:

Diatheke command-line SWORD frontend Version 4.7
Copyright 1999-2014 by the CrossWire Bible Society
http://www.crosswire.org/sword/diatheke/

Wouldn't it be sensible to bring back some good order into this process?

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] Diatheke, section headings and Psalm titles?

2018-04-09 Thread David Haslam
Going on from the earlier thread.

It's evident that diatheke can output section headings, viz., try this:
>diatheke -b ESV2011 -o h -f plain -k Matt.1
The output includes:
The Genealogy of Jesus Christ
(before verse 2)
The Birth of Jesus Christ
(before verse 19)
both of which are titles supplied by the ESV translators.

Yet diatheke seems to be unable to output canonical Psalm titles, viz., try 
this:
>diatheke -b ESV2011 -o h -f plain -k Ps.3
The 8 verses are output, but no Psalm title appears,
neither the uninspired "Save Me, O My God" (supplied by the translators)
nor the inspired "A Psalm of David when he fled from Absolom his son." (as 
translated from the Hebrew).

Surely it's a serious deficiency in diatheke that it can output some uninspired 
section headings but not others and never the inspired Psalm titles?

Do the developers have any ideas on how to remedy this inconsistency?

Or is it a problem in how modules are made that leaves these titles in limbo 
like this?

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke ?

2018-03-27 Thread David Haslam
Version number 

Copyright date range?

Best regards, David

Sent from ProtonMail Mobile

On Tue, Mar 27, 2018 at 23:40, Troy A. Griffitts  wrote:

> Nope, sorry Greg.  I reviewed and approved of it :)
>
> Applied.
>
> On 03/27/2018 08:43 AM, Greg Hellings wrote:
>
>> Troy,
>>
>> I know you were working on the repo quite a bit over the weekend. I didn't 
>> see this patch land. Did I miss it in the commit emails?
>>
>> --Greg
>>
>> On Wed, Mar 21, 2018 at 12:32 AM, Troy A. Griffitts  
>> wrote:
>>
>>> Thanks for the patch, Greg. Yes. Agreed it is not intuitive to the 
>>> uninitiated. The warring factions are that a module key can be changed with 
>>> a reference directly to its key, the module being oblivious to that fact 
>>> that it changed. Also, a module position might be incremented but never 
>>> asked to do all the heavy work to render the entry. We went with a manual 
>>> trigger that renders the entry of a module when desired. I tried to help by 
>>> not simply naming the method as a getter, getRenderText(), but instead 
>>> renderText() to imply this activates the rendering, not simply retrieving 
>>> the rendering. It's not perfect.
>>>
>>> Thanks again for the patch.
>>>
>>> Troy
>>>
>>> On March 20, 2018 8:33:21 PM MST, Greg Hellings  
>>> wrote:
>>>
 On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts  
 wrote:

> If I had to guess, I suspect diatheke is not calling renderText before 
> asking for the header. The renderText method triggers all entryAttributes 
> to be filled. The header is an entryAttribute.

 Spot on. If I were offering commentary, I would call that a bug in the UX 
 of the API. But I do get why it is that way. Attaching a patch that solves 
 the problem.

 --Greg

> On March 20, 2018 8:13:41 PM MST, Greg Hellings  
> wrote:
>
>> To be quite specific: diatheke does not encounter that header in the 
>> preverse content until it reaches Psalm 3:2 for some reason that is 
>> beyond my ken. Therefore, it is properly rendering that content as 
>> preverse, but it has attached it to the wrong verse. Output from my 
>> slightly modified diatheke confirms this:
>>
>> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
>> key: Psalms 3:1
>> header:
>> Psalms 3:1: LORD, how are they increased that trouble me! many are they 
>> that rise up against me.
>> key: Psalms 3:2
>> header: > savlm="strong:H04210">A Psalm of David, 
>> when he fled > savlm="strong:H06440">from Absalom > savlm="strong:H01121">his son.
>> A Psalm of David, when he fled from Absalom his son.
>> Psalms 3:2: Many there be which say of my soul, There is no help for him 
>> in God. Selah.
>>
>> --Greg
>>
>> On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings  
>> wrote:
>>
>>> It's easier to see the problem when using plain formatting:
>>>
>>> $ diatheke -b KJV -o h -f Plain -k Ps 3
>>> Psalms 3:1: LORD, how are they increased that trouble me! many are they 
>>> that rise up against me.
>>> A Psalm of David, when he fled from Absalom his son.
>>> Psalms 3:2: Many there be which say of my soul, There is no help for 
>>> him in God. Selah.
>>> Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the 
>>> lifter up of mine head.
>>> Psalms 3:4:
>>> I cried unto the LORD with my voice, and he heard me out of his holy 
>>> hill. Selah.
>>> Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained 
>>> me.
>>> Psalms 3:6: I will not be afraid of ten thousands of people, that have 
>>> set themselves against me round about.
>>> Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all 
>>> mine enemies upon the cheek bone; thou hast broken the teeth of the 
>>> ungodly.
>>> Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy 
>>> people. Selah.
>>> (KJV)
>>> --Greg
>>>
>>> On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings 
>>>  wrote:
>>>
 I'm not so sure your initial assertion is correct.

 $ diatheke -b KJV -o h -k Ps 3
 Psalms 3:1: >>> vineName>Lord, how 
 are they increased that trouble >>> savlm="strong:H07227">me! many >>> type="added">are they that 
 rise up against me.
 A 
 Psalm of David, >>> savlm="strong:H01272">when he fled >>> savlm="strong:H06440">from Absalom >>> savlm="strong:H01121">his son.Psalms 3:2: >>> savlm="strong:H07227">Many there 
 be which say >>> savlm="strong:H05315">of my soul, There 
 is no help >>> savlm="strong:H0430">for him in God. >>> savlm="strong:H05542">Selah.

 If you notice carefully, the canonical title is there. It is just 
 misplaced. It comes after the text of Psalm 3:1 and not before.

 --Greg

Re: [sword-devel] Diatheke ?

2018-03-27 Thread Troy A. Griffitts
Nope, sorry Greg.  I reviewed and approved of it :)

Applied.


On 03/27/2018 08:43 AM, Greg Hellings wrote:
> Troy,
>
> I know you were working on the repo quite a bit over the weekend. I
> didn't see this patch land. Did I miss it in the commit emails?
>
> --Greg
>
> On Wed, Mar 21, 2018 at 12:32 AM, Troy A. Griffitts
> mailto:scr...@crosswire.org>> wrote:
>
> Thanks for the patch, Greg. Yes. Agreed it is not intuitive to the
> uninitiated. The warring factions are that a module key can be
> changed with a reference directly to its key, the module being
> oblivious to that fact that it changed. Also, a module position
> might be incremented but never asked to do all the heavy work to
> render the entry. We went with a manual trigger that renders the
> entry of a module when desired. I tried to help by not simply
> naming the method as a getter, getRenderText(), but instead
> renderText() to imply this activates the rendering, not simply
> retrieving the rendering. It's not perfect.
>
> Thanks again for the patch.
>
> Troy
>
>
> On March 20, 2018 8:33:21 PM MST, Greg Hellings
> mailto:greg.helli...@gmail.com>> wrote:
>
>
>
> On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts
> mailto:scr...@crosswire.org>> wrote:
>
> If I had to guess, I suspect diatheke is not calling
> renderText before asking for the header. The renderText
> method triggers all entryAttributes to be filled. The
> header is an entryAttribute.
>
>
> Spot on. If I were offering commentary, I would call that a
> bug in the UX of the API. But I do get why it is that way.
> Attaching a patch that solves the problem.
>
> --Greg
>  
>
>
>
> On March 20, 2018 8:13:41 PM MST, Greg Hellings
> mailto:greg.helli...@gmail.com>>
> wrote:
>
> To be quite specific: diatheke does not encounter that
> header in the preverse content until it reaches Psalm
> 3:2 for some reason that is beyond my ken. Therefore,
> it is properly rendering that content as preverse, but
> it has attached it to the wrong verse. Output from my
> slightly modified diatheke confirms this:
>
> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
> key: Psalms 3:1
> header: 
> Psalms 3:1: LORD, how are they increased that trouble
> me! many are they that rise up against me.
> key: Psalms 3:2
> header:  savlm="strong:H04210">A Psalm  savlm="strong:H01732">of David,  savlm="strong:H01272">when he fled  savlm="strong:H06440">from  savlm="strong:H053">Absalom  savlm="strong:H01121">his son.
> A Psalm of David, when he fled from Absalom his son.
> Psalms 3:2: Many there be which say of my soul, There
> is no help for him in God. Selah.
>
> --Greg
>
> On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings
>  > wrote:
>
> It's easier to see the problem when using plain
> formatting:
>
> $ diatheke -b KJV -o h -f Plain -k Ps 3
> Psalms 3:1: LORD, how are they increased that
> trouble me! many are they that rise up against me.
> A Psalm of David, when he fled from Absalom his son.
> Psalms 3:2: Many there be which say of my soul,
> There is no help for him in God. Selah.
> Psalms 3:3: But thou, O LORD, art a shield for me;
> my glory, and the lifter up of mine head.
> Psalms 3:4: 
> I cried unto the LORD with my voice, and he heard
> me out of his holy hill. Selah.
> Psalms 3:5: I laid me down and slept; I awaked;
> for the LORD sustained me.
> Psalms 3:6: I will not be afraid of ten thousands
> of people, that have set themselves against me
> round about.
> Psalms 3:7: Arise, O LORD; save me, O my God: for
> thou hast smitten all mine enemies upon the cheek
> bone; thou hast broken the teeth of the ungodly.
> Psalms 3:8: Salvation belongeth unto the LORD: thy
> blessing is upon thy people. Selah.
> (KJV)
>
> --Greg
>
>
> On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings
>  > wrote:
>
>

Re: [sword-devel] Diatheke ?

2018-03-27 Thread Greg Hellings
Troy,

I know you were working on the repo quite a bit over the weekend. I didn't
see this patch land. Did I miss it in the commit emails?

--Greg

On Wed, Mar 21, 2018 at 12:32 AM, Troy A. Griffitts 
wrote:

> Thanks for the patch, Greg. Yes. Agreed it is not intuitive to the
> uninitiated. The warring factions are that a module key can be changed with
> a reference directly to its key, the module being oblivious to that fact
> that it changed. Also, a module position might be incremented but never
> asked to do all the heavy work to render the entry. We went with a manual
> trigger that renders the entry of a module when desired. I tried to help by
> not simply naming the method as a getter, getRenderText(), but instead
> renderText() to imply this activates the rendering, not simply retrieving
> the rendering. It's not perfect.
>
> Thanks again for the patch.
>
> Troy
>
>
> On March 20, 2018 8:33:21 PM MST, Greg Hellings 
> wrote:
>>
>>
>>
>> On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts > > wrote:
>>
>>> If I had to guess, I suspect diatheke is not calling renderText before
>>> asking for the header. The renderText method triggers all entryAttributes
>>> to be filled. The header is an entryAttribute.
>>>
>>
>> Spot on. If I were offering commentary, I would call that a bug in the UX
>> of the API. But I do get why it is that way. Attaching a patch that solves
>> the problem.
>>
>> --Greg
>>
>>
>>>
>>>
>>> On March 20, 2018 8:13:41 PM MST, Greg Hellings 
>>> wrote:

 To be quite specific: diatheke does not encounter that header in the
 preverse content until it reaches Psalm 3:2 for some reason that is beyond
 my ken. Therefore, it is properly rendering that content as preverse, but
 it has attached it to the wrong verse. Output from my slightly modified
 diatheke confirms this:

 $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
 key: Psalms 3:1
 header:
 Psalms 3:1: LORD, how are they increased that trouble me! many are they
 that rise up against me.
 key: Psalms 3:2
 header: >>> savlm="strong:H04210">A Psalm of David, >>> savlm="strong:H01272">when he fled from >>> savlm="strong:H053">Absalom his
 son.
 A Psalm of David, when he fled from Absalom his son.
 Psalms 3:2: Many there be which say of my soul, There is no help for
 him in God. Selah.

 --Greg

 On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings >>> > wrote:

> It's easier to see the problem when using plain formatting:
>
> $ diatheke -b KJV -o h -f Plain -k Ps 3
> Psalms 3:1: LORD, how are they increased that trouble me! many are
> they that rise up against me.
> A Psalm of David, when he fled from Absalom his son.
> Psalms 3:2: Many there be which say of my soul, There is no help for
> him in God. Selah.
> Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the
> lifter up of mine head.
> Psalms 3:4:
> I cried unto the LORD with my voice, and he heard me out of his holy
> hill. Selah.
> Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained
> me.
> Psalms 3:6: I will not be afraid of ten thousands of people, that have
> set themselves against me round about.
> Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten
> all mine enemies upon the cheek bone; thou hast broken the teeth of the
> ungodly.
> Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon
> thy people. Selah.
> (KJV)
>
> --Greg
>
>
> On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings <
> greg.helli...@gmail.com> wrote:
>
>> I'm not so sure your initial assertion is correct.
>>
>> $ diatheke -b KJV -o h -k Ps 3
>> Psalms 3:1: > vineName>Lord, how
>> are they increased that trouble > savlm="strong:H07227">me! many > type="added">are they that rise
>> up against me.
>> A
>> Psalm of David, > savlm="strong:H01272">when he fled from 
>> > savlm="strong:H053">Absalom his
>> son.Psalms 3:2: Many 
>> > type="added">there be which 
>> say
>> of my soul, There
>> is no help > savlm="strong:H0430">for him in God. > savlm="strong:H05542">Selah> >.
>>
>> If you notice carefully, the canonical title is there. It is just
>> misplaced. It comes after the text of Psalm 3:1 and not before.
>>
>> --Greg
>>
>> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam 
>> wrote:
>>
>>> Maybe someone could patch diatheke to fix this?
>>>
>>> Best regards, David
>>>
>>>
>>> Sent from ProtonMail Mobile
>>>
>>>
>>> On Wed, Mar 14, 2018 at 12:14, David Haslam 
>>> wrote:
>>>
>>> Diatheke does not output the canonical Psalm titles when
>>> output option h is used.
>>>
>>> Try this and see what I mean.
>>>
>>> diatheke -b KJV -o h -k Ps 3
>>>
>>> This i

Re: [sword-devel] Diatheke ?

2018-03-22 Thread David Haslam
No - that makes no difference, neither did using osis2mod version $3431



Salmo de David, cuando huía de 
delante de Absalom su hijo.
Jehová, ¡cuánto se han multiplicado 
mis enemigos! muchos se levantan contra mí.
Muchos dicen de mi alma: No hay 
para él salud en Dios. Selah.

However, examining the mod2imp output, it becomes evident that there really is 
a space between the title element and the div eID element.
https://www.dropbox.com/s/ezauqjw68dv36fi/Screenshot%202018-03-22%2014.29.07.png?dl=0

Is this perhaps a quirk of how osis2mod was enhanced a few years ago to handle 
all preverse content as a milestoned div element?

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.  This always seems 
to "top-post" when I hit reply.

‐‐‐ Original Message ‐‐‐
On 22 March 2018 1:57 PM, Greg Hellings  wrote:

> On Thu, Mar 22, 2018 at 8:51 AM, David Haslam  wrote:
>
>> Greg,
>>
>> Thanks for the comparison between KJV and SpaRV1909.
>>
>> It seems therefore that I assumed incorrectly that the "extra space" problem 
>> was more general, and that any module with Psalm titles could be used 
>> illustrate it.
>>
>> FYI. Test module SpaRV1865 only exists so far in the text development 
>> collaboration between myself and Vince LaRue.
>> btw. We're now in our third week of activity and have made very good 
>> progress.
>>
>> I suppose it might even depend on which version of osis2mod was used to 
>> build the module?
>> i.e. If there's nothing obvious in the OSIS source text that would result in 
>> the space.
>> FIO. Here's Psalm 3 in the OSIS file - there are no trailing spaces at all.
>>
>> 
>> 
>> 
>> Salmo de David, cuando huía 
>> de delante de Absalom su hijo.
>> Jehová, ¡cuánto se han 
>> multiplicado mis enemigos! muchos se levantan contra mí.
>> 
>
> I wonder if this newline before the eID verse element plus the empty element 
> itself is being converted into a newline and space character by the 
> OSIS->Plain filter? It would be worth comparing that ending to verse endings 
> in e.g. the KJV to see if they are similar. And also possibly worthwhile to 
> compare the results of osis2mod for your SpaRV1865 to what the compiled KJV 
> module is to see if that newline is preserved.
>
> --Greg
>
>> Muchos dicen de mi alma: No hay 
>> para él salud en Dios. Selah.
>> 
>> ...
>> 
>>
>> Nothing shouts "extra space" does it?
>>
>> I will therefore try the more recent version of osis2mod next time I rebuild 
>> the module.
>>
>> Maybe Peter can shed light on how diatheke works here?
>> - given that it was he who added the LaTeX format option - a major 
>> contribution which we owe him thanks for.
>> - to do that, he must have got deeply involved in the code.
>> Best regards,
>>
>> David
>>
>> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>>
>> ‐‐‐ Original Message ‐‐‐
>> On 22 March 2018 1:20 PM, Greg Hellings  wrote:
>>
>>> On Thu, Mar 22, 2018 at 4:01 AM, David Haslam  wrote:
>>>
 Hi Greg,

 With Plain output format, there's a minor side effect in the way the Psalm 
 title was output in the wrong place.
 Verse 2 of the same Psalm was output with a leading space before the 
 Reference.

 https://www.dropbox.com/s/uz1amnrp7ez0b4y/Screenshot%202018-03-22%2008.37.42.png?dl=0

 This might be less obvious in a terminal, but it's quite evident when the 
 output is piped to a file.

 Please ensure that the patch also removes this spurious space, if perhaps 
 it ddidn't do so already.
>>>
>>> As someone who isn't the maintainer of either Diatheke or the filters, I'm 
>>> not about to dig through the source to find one errant space in the output. 
>>> Doubly so in that I do not have nor can I easily locate the SpaRV1865 
>>> module that you have screenshot there. I don't see the same artifact in KJV 
>>> so I am going to conclude, for now, that this is either a bug that was 
>>> already fixed between the older version of Diatheke that you are using and 
>>> now or that it is an artifact of the module itself. Compare the KJV and the 
>>> Spa1909 that's on CrossWire's server:
>>>
>>> $ diatheke -b KJV -o h -f Plain -k Ps.3
>>> Psalms 3:1: LORD, how are they increased that trouble me! many are they 
>>> that rise up against me.
>>> A Psalm of David, when he fled from Absalom his son.
>>> Psalms 3:2: Many there be which say of my soul, There is no help for him in 
>>> God. Selah.
>>>
>>> $ diatheke -b SpaRV1909 -o h -f Plain -k Ps.3
>>> Psalms 3:1:
>>> Salmo de David, cuando huía de delante de Absalom su hijo.
>>>  ¡OH Jehová, cuánto se han multiplicado mis enemigos! muchos se levantan 
>>> contra mí.
>>> Psalms 3:2: Muchos dicen de mi vida: No hay para él salud en Dios. (Selah.)
>>>
>>> The SpaRV1909 module definitely has spurious spaces around many different 
>>> places. I suspect that your SpaRV1865 module is in a similar place.
>>>
>>> --Greg
>>>
 While I'm on a roll, I noticed also that there's a subtle 

Re: [sword-devel] Diatheke ?

2018-03-22 Thread Greg Hellings
On Thu, Mar 22, 2018 at 8:51 AM, David Haslam  wrote:

> Greg,
>
> Thanks for the comparison between *KJV* and *SpaRV1909*.
>
> It seems therefore that I assumed *incorrectly* that the "extra space"
> problem was more general, and that *any* module with Psalm titles could
> be used illustrate it.
>
> FYI. Test module *SpaRV1865* only exists so far in the *text development*
> collaboration between myself and Vince LaRue.
> btw. *We're now in our third week of activity and have made very good
> progress.*
>
> I suppose it might even depend on which version of *osis2mod* was used to
> build the module?
> i.e. If there's nothing obvious in the OSIS source text that would result
> in the space.
> FIO. Here's *Psalm 3* in the OSIS file - there are no trailing spaces at
> all.
>
> 
> 
> 
> Salmo de David, cuando huía
> de delante de Absalom su hijo.
> Jehová, ¡cuánto se han
> multiplicado mis enemigos! muchos se levantan contra mí.
> 
>

I wonder if this newline before the eID verse element plus the empty
element itself is being converted into a newline and space character by the
OSIS->Plain filter? It would be worth comparing that ending to verse
endings in e.g. the KJV to see if they are similar. And also possibly
worthwhile to compare the results of osis2mod for your SpaRV1865 to what
the compiled KJV module is to see if that newline is preserved.

--Greg


> Muchos dicen de mi alma: No
> hay para él salud en Dios. Selah.
> 
> ...
> 
>
> Nothing shouts "extra space" does it?
>
> I will therefore try the more recent version of *osis2mod* next time I
> rebuild the module.
>
> Maybe Peter can shed light on how diatheke works here?
> - given that it was he who added the LaTeX format option - a major
> contribution which we owe him thanks for.
> - to do that, he must have got deeply involved in the code.
>
> Best regards,
>
> David
>
> Sent with ProtonMail  Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On 22 March 2018 1:20 PM, Greg Hellings  wrote:
>
>
>
> On Thu, Mar 22, 2018 at 4:01 AM, David Haslam 
> wrote:
>
>> Hi Greg,
>>
>> With *Plain* output format, there's a minor side effect in the way the
>> Psalm title was output in the wrong place.
>> Verse 2 of the same Psalm was output with a *leading space* before the
>> Reference.
>>
>> https://www.dropbox.com/s/uz1amnrp7ez0b4y/Screenshot%202018-
>> 03-22%2008.37.42.png?dl=0
>>
>> This might be less obvious in a terminal, but it's quite evident when the
>> output is piped to a file.
>>
>> Please ensure that the patch also *removes* this spurious space, if
>> perhaps it ddidn't do so already.
>>
>
> As someone who isn't the maintainer of either Diatheke or the filters, I'm
> not about to dig through the source to find one errant space in the output.
> Doubly so in that I do not have nor can I easily locate the SpaRV1865
> module that you have screenshot there. I don't see the same artifact in KJV
> so I am going to conclude, for now, that this is either a bug that was
> already fixed between the older version of Diatheke that you are using and
> now or that it is an artifact of the module itself. Compare the KJV and the
> Spa1909 that's on CrossWire's server:
>
> $ diatheke -b KJV -o h -f Plain -k Ps.3
> Psalms 3:1: LORD, how are they increased that trouble me! many are they
> that rise up against me.
> A Psalm of David, when he fled from Absalom his son.
> Psalms 3:2: Many there be which say of my soul, There is no help for him
> in God. Selah.
>
> $ diatheke -b SpaRV1909 -o h -f Plain -k Ps.3
> Psalms 3:1:
> Salmo de David, cuando huía de delante de Absalom su hijo.
>  ¡OH Jehová, cuánto se han multiplicado mis enemigos! muchos se levantan
> contra mí.
> Psalms 3:2: Muchos dicen de mi vida: No hay para él salud en Dios. (Selah.)
>
> The SpaRV1909 module definitely has spurious spaces around many different
> places. I suspect that your SpaRV1865 module is in a similar place.
>
> --Greg
>
>
>>
>> While I'm on a roll, I noticed also that there's a subtle change in how
>> diatheke treats the start and end of a *hi* element.
>> There's now a *space* after the leading asterisk and *another space*
>> before the trailing asterisk.
>> https://www.dropbox.com/s/2h2u1768rgx9p95/Screenshot%202018-
>> 03-22%2008.38.21.png?dl=0
>>
>> If this change was unintended, it ought to be reverted for consistency
>> with earlier versions.
>>
>
> Sounds like a filter thing.
>
> --Greg
>
>
>>
>>
>> Best regards,
>>
>> David
>>
>> Sent with ProtonMail  Secure Email.
>>
>> ‐‐‐ Original Message ‐‐‐
>> On 21 March 2018 3:33 AM, Greg Hellings  wrote:
>>
>>
>>
>> On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts > > wrote:
>>
>>> If I had to guess, I suspect diatheke is not calling renderText before
>>> asking for the header. The renderText method triggers all entryAttributes
>>> to be filled. The header is an entryAttribute.
>>>
>>
>> Spot on. If I were offering commentary, I would call that a bug in the UX
>> of the API. But I 

Re: [sword-devel] Diatheke ?

2018-03-22 Thread David Haslam
Greg,

Thanks for the comparison between KJV and SpaRV1909.

It seems therefore that I assumed incorrectly that the "extra space" problem 
was more general, and that any module with Psalm titles could be used 
illustrate it.

FYI. Test module SpaRV1865 only exists so far in the text development 
collaboration between myself and Vince LaRue.
btw. We're now in our third week of activity and have made very good progress.

I suppose it might even depend on which version of osis2mod was used to build 
the module?
i.e. If there's nothing obvious in the OSIS source text that would result in 
the space.
FIO. Here's Psalm 3 in the OSIS file - there are no trailing spaces at all.




Salmo de David, cuando huía de 
delante de Absalom su hijo.
Jehová, ¡cuánto se han multiplicado 
mis enemigos! muchos se levantan contra mí.

Muchos dicen de mi alma: No hay 
para él salud en Dios. Selah.

...


Nothing shouts "extra space" does it?

I will therefore try the more recent version of osis2mod next time I rebuild 
the module.

Maybe Peter can shed light on how diatheke works here?
- given that it was he who added the LaTeX format option - a major contribution 
which we owe him thanks for.
- to do that, he must have got deeply involved in the code.

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On 22 March 2018 1:20 PM, Greg Hellings  wrote:

> On Thu, Mar 22, 2018 at 4:01 AM, David Haslam  wrote:
>
>> Hi Greg,
>>
>> With Plain output format, there's a minor side effect in the way the Psalm 
>> title was output in the wrong place.
>> Verse 2 of the same Psalm was output with a leading space before the 
>> Reference.
>>
>> https://www.dropbox.com/s/uz1amnrp7ez0b4y/Screenshot%202018-03-22%2008.37.42.png?dl=0
>>
>> This might be less obvious in a terminal, but it's quite evident when the 
>> output is piped to a file.
>>
>> Please ensure that the patch also removes this spurious space, if perhaps it 
>> ddidn't do so already.
>
> As someone who isn't the maintainer of either Diatheke or the filters, I'm 
> not about to dig through the source to find one errant space in the output. 
> Doubly so in that I do not have nor can I easily locate the SpaRV1865 module 
> that you have screenshot there. I don't see the same artifact in KJV so I am 
> going to conclude, for now, that this is either a bug that was already fixed 
> between the older version of Diatheke that you are using and now or that it 
> is an artifact of the module itself. Compare the KJV and the Spa1909 that's 
> on CrossWire's server:
>
> $ diatheke -b KJV -o h -f Plain -k Ps.3
> Psalms 3:1: LORD, how are they increased that trouble me! many are they that 
> rise up against me.
> A Psalm of David, when he fled from Absalom his son.
> Psalms 3:2: Many there be which say of my soul, There is no help for him in 
> God. Selah.
>
> $ diatheke -b SpaRV1909 -o h -f Plain -k Ps.3
> Psalms 3:1:
> Salmo de David, cuando huía de delante de Absalom su hijo.
>  ¡OH Jehová, cuánto se han multiplicado mis enemigos! muchos se levantan 
> contra mí.
> Psalms 3:2: Muchos dicen de mi vida: No hay para él salud en Dios. (Selah.)
>
> The SpaRV1909 module definitely has spurious spaces around many different 
> places. I suspect that your SpaRV1865 module is in a similar place.
>
> --Greg
>
>> While I'm on a roll, I noticed also that there's a subtle change in how 
>> diatheke treats the start and end of a hi element.
>> There's now a space after the leading asterisk and another space before the 
>> trailing asterisk.
>> https://www.dropbox.com/s/2h2u1768rgx9p95/Screenshot%202018-03-22%2008.38.21.png?dl=0
>>
>> If this change was unintended, it ought to be reverted for consistency with 
>> earlier versions.
>
> Sounds like a filter thing.
>
> --Greg
>
>> Best regards,
>>
>> David
>>
>> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>>
>> ‐‐‐ Original Message ‐‐‐
>> On 21 March 2018 3:33 AM, Greg Hellings  wrote:
>>
>>> On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts  
>>> wrote:
>>>
 If I had to guess, I suspect diatheke is not calling renderText before 
 asking for the header. The renderText method triggers all entryAttributes 
 to be filled. The header is an entryAttribute.
>>>
>>> Spot on. If I were offering commentary, I would call that a bug in the UX 
>>> of the API. But I do get why it is that way. Attaching a patch that solves 
>>> the problem.
>>>
>>> --Greg
>>>
 On March 20, 2018 8:13:41 PM MST, Greg Hellings  
 wrote:

> To be quite specific: diatheke does not encounter that header in the 
> preverse content until it reaches Psalm 3:2 for some reason that is 
> beyond my ken. Therefore, it is properly rendering that content as 
> preverse, but it has attached it to the wrong verse. Output from my 
> slightly modified diatheke confirms this:
>
> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
> key: Psalms 3:1
> header:
>

Re: [sword-devel] Diatheke ?

2018-03-22 Thread Greg Hellings
On Thu, Mar 22, 2018 at 4:01 AM, David Haslam  wrote:

> Hi Greg,
>
> With *Plain* output format, there's a minor side effect in the way the
> Psalm title was output in the wrong place.
> Verse 2 of the same Psalm was output with a *leading space* before the
> Reference.
>
> https://www.dropbox.com/s/uz1amnrp7ez0b4y/Screenshot%
> 202018-03-22%2008.37.42.png?dl=0
>
> This might be less obvious in a terminal, but it's quite evident when the
> output is piped to a file.
>
> Please ensure that the patch also *removes* this spurious space, if
> perhaps it ddidn't do so already.
>

As someone who isn't the maintainer of either Diatheke or the filters, I'm
not about to dig through the source to find one errant space in the output.
Doubly so in that I do not have nor can I easily locate the SpaRV1865
module that you have screenshot there. I don't see the same artifact in KJV
so I am going to conclude, for now, that this is either a bug that was
already fixed between the older version of Diatheke that you are using and
now or that it is an artifact of the module itself. Compare the KJV and the
Spa1909 that's on CrossWire's server:

$ diatheke -b KJV -o h -f Plain -k Ps.3
Psalms 3:1: LORD, how are they increased that trouble me! many are they
that rise up against me.
A Psalm of David, when he fled from Absalom his son.
Psalms 3:2: Many there be which say of my soul, There is no help for him in
God. Selah.

$ diatheke -b SpaRV1909 -o h -f Plain -k Ps.3
Psalms 3:1:
Salmo de David, cuando huía de delante de Absalom su hijo.
 ¡OH Jehová, cuánto se han multiplicado mis enemigos! muchos se levantan
contra mí.
Psalms 3:2: Muchos dicen de mi vida: No hay para él salud en Dios. (Selah.)

The SpaRV1909 module definitely has spurious spaces around many different
places. I suspect that your SpaRV1865 module is in a similar place.

--Greg


> While I'm on a roll, I noticed also that there's a subtle change in how
> diatheke treats the start and end of a *hi* element.
> There's now a *space* after the leading asterisk and *another space*
> before the trailing asterisk.
> https://www.dropbox.com/s/2h2u1768rgx9p95/Screenshot%
> 202018-03-22%2008.38.21.png?dl=0
>
> If this change was unintended, it ought to be reverted for consistency
> with earlier versions.
>

Sounds like a filter thing.

--Greg


>
> Best regards,
>
> David
>
> Sent with ProtonMail  Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On 21 March 2018 3:33 AM, Greg Hellings  wrote:
>
>
>
> On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts 
> wrote:
>
>> If I had to guess, I suspect diatheke is not calling renderText before
>> asking for the header. The renderText method triggers all entryAttributes
>> to be filled. The header is an entryAttribute.
>>
>
> Spot on. If I were offering commentary, I would call that a bug in the UX
> of the API. But I do get why it is that way. Attaching a patch that solves
> the problem.
>
> --Greg
>
>
>>
>>
>> On March 20, 2018 8:13:41 PM MST, Greg Hellings 
>> wrote:
>>
>>> To be quite specific: diatheke does not encounter that header in the
>>> preverse content until it reaches Psalm 3:2 for some reason that is beyond
>>> my ken. Therefore, it is properly rendering that content as preverse, but
>>> it has attached it to the wrong verse. Output from my slightly modified
>>> diatheke confirms this:
>>>
>>> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
>>> key: Psalms 3:1
>>> header:
>>> Psalms 3:1: LORD, how are they increased that trouble me! many are they
>>> that rise up against me.
>>> key: Psalms 3:2
>>> header: >> savlm="strong:H04210">A Psalm of David, >> savlm="strong:H01272">when he fled from >> savlm="strong:H053">Absalom his
>>> son.
>>> A Psalm of David, when he fled from Absalom his son.
>>> Psalms 3:2: Many there be which say of my soul, There is no help for him
>>> in God. Selah.
>>>
>>> --Greg
>>>
>>> On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings 
>>> wrote:
>>>
 It's easier to see the problem when using plain formatting:

 $ diatheke -b KJV -o h -f Plain -k Ps 3
 Psalms 3:1: LORD, how are they increased that trouble me! many are they
 that rise up against me.
 A Psalm of David, when he fled from Absalom his son.
 Psalms 3:2: Many there be which say of my soul, There is no help for
 him in God. Selah.
 Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the
 lifter up of mine head.
 Psalms 3:4:
 I cried unto the LORD with my voice, and he heard me out of his holy
 hill. Selah.
 Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained
 me.
 Psalms 3:6: I will not be afraid of ten thousands of people, that have
 set themselves against me round about.
 Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all
 mine enemies upon the cheek bone; thou hast broken the teeth of the 
 ungodly.
 Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy
 p

Re: [sword-devel] Diatheke ?

2018-03-22 Thread David Haslam
Hi Greg,

With Plain output format, there's a minor side effect in the way the Psalm 
title was output in the wrong place.
Verse 2 of the same Psalm was output with a leading space before the Reference.

https://www.dropbox.com/s/uz1amnrp7ez0b4y/Screenshot%202018-03-22%2008.37.42.png?dl=0

This might be less obvious in a terminal, but it's quite evident when the 
output is piped to a file.

Please ensure that the patch also removes this spurious space, if perhaps it 
ddidn't do so already.

While I'm on a roll, I noticed also that there's a subtle change in how 
diatheke treats the start and end of a hi element.
There's now a space after the leading asterisk and another space before the 
trailing asterisk.
https://www.dropbox.com/s/2h2u1768rgx9p95/Screenshot%202018-03-22%2008.38.21.png?dl=0

If this change was unintended, it ought to be reverted for consistency with 
earlier versions.

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On 21 March 2018 3:33 AM, Greg Hellings  wrote:

> On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts  
> wrote:
>
>> If I had to guess, I suspect diatheke is not calling renderText before 
>> asking for the header. The renderText method triggers all entryAttributes to 
>> be filled. The header is an entryAttribute.
>
> Spot on. If I were offering commentary, I would call that a bug in the UX of 
> the API. But I do get why it is that way. Attaching a patch that solves the 
> problem.
>
> --Greg
>
>> On March 20, 2018 8:13:41 PM MST, Greg Hellings  
>> wrote:
>>
>>> To be quite specific: diatheke does not encounter that header in the 
>>> preverse content until it reaches Psalm 3:2 for some reason that is beyond 
>>> my ken. Therefore, it is properly rendering that content as preverse, but 
>>> it has attached it to the wrong verse. Output from my slightly modified 
>>> diatheke confirms this:
>>>
>>> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
>>> key: Psalms 3:1
>>> header:
>>> Psalms 3:1: LORD, how are they increased that trouble me! many are they 
>>> that rise up against me.
>>> key: Psalms 3:2
>>> header: A 
>>> Psalm of David, >> savlm="strong:H01272">when he fled from >> savlm="strong:H053">Absalom his 
>>> son.
>>> A Psalm of David, when he fled from Absalom his son.
>>> Psalms 3:2: Many there be which say of my soul, There is no help for him in 
>>> God. Selah.
>>>
>>> --Greg
>>>
>>> On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings  
>>> wrote:
>>>
 It's easier to see the problem when using plain formatting:

 $ diatheke -b KJV -o h -f Plain -k Ps 3
 Psalms 3:1: LORD, how are they increased that trouble me! many are they 
 that rise up against me.
 A Psalm of David, when he fled from Absalom his son.
 Psalms 3:2: Many there be which say of my soul, There is no help for him 
 in God. Selah.
 Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the 
 lifter up of mine head.
 Psalms 3:4:
 I cried unto the LORD with my voice, and he heard me out of his holy hill. 
 Selah.
 Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained me.
 Psalms 3:6: I will not be afraid of ten thousands of people, that have set 
 themselves against me round about.
 Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all 
 mine enemies upon the cheek bone; thou hast broken the teeth of the 
 ungodly.
 Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy 
 people. Selah.
 (KJV)
 --Greg

 On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings  
 wrote:

> I'm not so sure your initial assertion is correct.
>
> $ diatheke -b KJV -o h -k Ps 3
> Psalms 3:1:  savlm="strong:H03068">Lord,  savlm="strong:H07231">how are they increased  savlm="strong:H06862">that trouble me! 
> many are  savlm="strong:H06965">they that rise up against me.
> A 
> Psalm of David,  savlm="strong:H01272">when he fled from 
> Absalom his 
> son.Psalms 3:2: Many 
> there be  savlm="strong:H0559">which say of my 
> soul, There is  savlm="strong:H03444">no help for him in 
> God. Selah.
>
> If you notice carefully, the canonical title is there. It is just 
> misplaced. It comes after the text of Psalm 3:1 and not before.
>
> --Greg
>
> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam  
> wrote:
>
>> Maybe someone could patch diatheke to fix this?
>> Best regards, David
>>
>> Sent from ProtonMail Mobile
>>
>> On Wed, Mar 14, 2018 at 12:14, David Haslam  
>> wrote:
>>
>>> Diatheke does not output the canonical Psalm titles when output option 
>>> h is used.
>>>
>>> Try this and see what I mean.
>>>
>>> diatheke -b KJV -o h -k Ps 3
>>>
>>> This is a significant lack of feature.
>>>
>>> Best regards,
>>>
>>> David
>

[sword-devel] Diatheke and MarkDown format?

2018-03-21 Thread David Haslam
A thread was begun in December 2015 with this topic. My reminder was sent on 21 
November, last year.

See 
http://sword-dev.350566.n4.nabble.com/Diatheke-and-MarkDown-format-tt4655468.html#a4657703

Is anyone willing to step forward to develop the code for this?

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke ?

2018-03-21 Thread David Haslam
Has the UI changed without me noticing?

This is what I got using version 4.7 of diatheke that comes with Xiphos 4.0.6a 
for Windows.

S:\>xiphos\diatheke -b KJV -o h -k Ps 3
Psalms 3:1: LORD, how are they increased that trouble me! many are they that ris
e up against me.
Psalms 3:2: Many there be which say of my soul, There is no help for him in God.
Selah.
Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the lifter up o
f mine head.
Psalms 3:4: I cried unto the LORD with my voice, and he heard me out of his holy
hill. Selah.
Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained me.
Psalms 3:6: I will not be afraid of ten thousands of people, that have set thems
elves against me round about.
Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all mine ene
mies upon the cheek bone; thou hast broken the teeth of the ungodly.
Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy people.
Selah.
(KJV)

By contrast, this is what I get with one of the latest Windows binaries that 
Greg built.

S:\>utils32\diatheke -b KJV -o h -k Ps 3
Psalms 3:1: Lord, how are they increased that troub
le me! many are they that rise up against me.
A Psalm of David, when he fled from Absalom his son.Psalms 3:2: Many there be which say of my soul, There is no help for hi
m in God. Selah.
Psalms 3:3: But thou, O Lord, art a shiel
d for me; my glory, a
nd the lifter up of mine head.
Psalms 3:4: I cried unto
the Lord with my voice
, and he heard me out of
his holy hill. Selah.
Psalms 3:5: I laid me down and slept; I awaked; utils32\diatheke /?
...
Valid output_format values are: CGI, GBF, HTML, HTMLHREF, LaTeX, OSIS, RTF,
  ThML, WEBIF, XHTML, plain, and internal (def)

cf.
S:\>xiphos\diatheke /?
...
Valid output_format values are: GBF, ThML, RTF, HTML, HTMLHREF, XHTML, OSIS,
  CGI, and plain (def)

But had it been discussed and officially announced?

The really odd thing is that the diatheke version number is unchanged and is 
still 4.7...
S:\>utils32\diatheke /?
Diatheke command-line SWORD frontend Version 4.7
Copyright 1999-2014 by the CrossWire Bible Society
http://www.crosswire.org/sword/diatheke/
...
The copyright date range has not been refreshed either!

I trust this clarifies why I reported the matter, and explains how my output 
was different than Greg illustrated.

I suspect that we've had a series of patches to diatheke, including Peter's 
provision of LaTeX format.
Yet for none of these has diatheke been made subject to version number 
increments.

With so much water under the bridge since 2014, I suggest it's high time to 
release it as diatheke version 5.0

Best regards,

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On 21 March 2018 2:53 AM, Greg Hellings  wrote:

> It's easier to see the problem when using plain formatting:
>
> $ diatheke -b KJV -o h -f Plain -k Ps 3
> Psalms 3:1: LORD, how are they increased that trouble me! many are they that 
> rise up against me.
> A Psalm of David, when he fled from Absalom his son.
> Psalms 3:2: Many there be which say of my soul, There is no help for him in 
> God. Selah.
> Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the lifter 
> up of mine head.
> Psalms 3:4:
> I cried unto the LORD with my voice, and he heard me out of his holy hill. 
> Selah.
> Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained me.
> Psalms 3:6: I will not be afraid of ten thousands of people, that have set 
> themselves against me round about.
> Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all mine 
> enemies upon the cheek bone; thou hast broken the teeth of the ungodly.
> Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy 
> people. Selah.
> (KJV)
>
> --Greg
>
> On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings  
> wrote:
>
>> I'm not so sure your initial assertion is correct.
>>
>> $ diatheke -b KJV -o h -k Ps 3
>> Psalms 3:1: > savlm="strong:H03068">Lord, > savlm="strong:H07231">how are they increased > savlm="strong:H06862">that trouble me! many 
>> are they 
>> that rise up against me.
>> A Psalm 
>> of David, when he 
>> fled from > savlm="strong:H053">Absalom his 
>> son.Psalms 3:2: Many > type="added">there be which say 
>> of my soul, There 
>> is no help > savlm="strong:H0430">for him in God. Selah.
>>
>> If you notice carefully, the canonical title is there. It is just misplaced. 
>> It comes after the text of Psalm 3:1 and not before.
>>
>> --Greg
>>
>> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam  wrote:
>>
>>> Maybe someone could patch diatheke to fix this?
>>> Best regards, David
>>>
>>> Sent from ProtonMail Mobile
>>>
>>> On Wed, Mar 14, 2018 at 12:14, David Haslam  wrote:
>>>
 Diatheke does not output the canonical Psalm titles when output option h 
 is used.

 Try this and see what I mean.

 diatheke -b KJV -o h -k Ps 3

 This is a significant lack of fe

Re: [sword-devel] Diatheke ?

2018-03-21 Thread David Haslam
Thanks Greg for the patch.

Thanks also to everyone who provided insightful input.

Best regards,

David

Sent from ProtonMail Mobile

On Wed, Mar 21, 2018 at 03:33, Greg Hellings  wrote:

> On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts  
> wrote:
>
>> If I had to guess, I suspect diatheke is not calling renderText before 
>> asking for the header. The renderText method triggers all entryAttributes to 
>> be filled. The header is an entryAttribute.
>
> Spot on. If I were offering commentary, I would call that a bug in the UX of 
> the API. But I do get why it is that way. Attaching a patch that solves the 
> problem.
>
> --Greg
>
>> On March 20, 2018 8:13:41 PM MST, Greg Hellings  
>> wrote:
>>
>>> To be quite specific: diatheke does not encounter that header in the 
>>> preverse content until it reaches Psalm 3:2 for some reason that is beyond 
>>> my ken. Therefore, it is properly rendering that content as preverse, but 
>>> it has attached it to the wrong verse. Output from my slightly modified 
>>> diatheke confirms this:
>>>
>>> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
>>> key: Psalms 3:1
>>> header:
>>> Psalms 3:1: LORD, how are they increased that trouble me! many are they 
>>> that rise up against me.
>>> key: Psalms 3:2
>>> header: A 
>>> Psalm of David, >> savlm="strong:H01272">when he fled from >> savlm="strong:H053">Absalom his 
>>> son.
>>> A Psalm of David, when he fled from Absalom his son.
>>> Psalms 3:2: Many there be which say of my soul, There is no help for him in 
>>> God. Selah.
>>>
>>> --Greg
>>>
>>> On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings  
>>> wrote:
>>>
 It's easier to see the problem when using plain formatting:

 $ diatheke -b KJV -o h -f Plain -k Ps 3
 Psalms 3:1: LORD, how are they increased that trouble me! many are they 
 that rise up against me.
 A Psalm of David, when he fled from Absalom his son.
 Psalms 3:2: Many there be which say of my soul, There is no help for him 
 in God. Selah.
 Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the 
 lifter up of mine head.
 Psalms 3:4:
 I cried unto the LORD with my voice, and he heard me out of his holy hill. 
 Selah.
 Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained me.
 Psalms 3:6: I will not be afraid of ten thousands of people, that have set 
 themselves against me round about.
 Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all 
 mine enemies upon the cheek bone; thou hast broken the teeth of the 
 ungodly.
 Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy 
 people. Selah.
 (KJV)
 --Greg

 On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings  
 wrote:

> I'm not so sure your initial assertion is correct.
>
> $ diatheke -b KJV -o h -k Ps 3
> Psalms 3:1:  vineName>Lord, how are 
> they increased that trouble  savlm="strong:H07227">me! many  type="added">are they that rise 
> up against me.
> A 
> Psalm of David,  savlm="strong:H01272">when he fled from 
> Absalom his 
> son.Psalms 3:2: Many 
> there be  savlm="strong:H0559">which say of my 
> soul, There is  savlm="strong:H03444">no help for him in 
> God. Selah.
>
> If you notice carefully, the canonical title is there. It is just 
> misplaced. It comes after the text of Psalm 3:1 and not before.
>
> --Greg
>
> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam  
> wrote:
>
>> Maybe someone could patch diatheke to fix this?
>> Best regards, David
>>
>> Sent from ProtonMail Mobile
>>
>> On Wed, Mar 14, 2018 at 12:14, David Haslam  
>> wrote:
>>
>>> Diatheke does not output the canonical Psalm titles when output option 
>>> h is used.
>>>
>>> Try this and see what I mean.
>>>
>>> diatheke -b KJV -o h -k Ps 3
>>>
>>> This is a significant lack of feature.
>>>
>>> Best regards,
>>>
>>> David
>>>
>>> Sent from ProtonMail Mobile
>>
>> __ _
>> sword-devel mailing list: sword-devel@crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke ?

2018-03-20 Thread Troy A. Griffitts
Thanks for the patch, Greg. Yes. Agreed it is not intuitive to the uninitiated. 
The warring factions are that a module key can be changed with a reference 
directly to its key, the module being oblivious to that fact that it changed. 
Also, a module position might be incremented but never asked to do all the 
heavy work to render the entry.  We went with a manual trigger that renders the 
entry of a module when desired. I tried to help by not simply naming the method 
as a getter, getRenderText(), but instead renderText() to imply this activates 
the rendering, not simply retrieving the rendering. It's not perfect.

Thanks again for the patch.

Troy

On March 20, 2018 8:33:21 PM MST, Greg Hellings  wrote:
>On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts
>
>wrote:
>
>> If I had to guess, I suspect diatheke is not calling renderText
>before
>> asking for the header. The renderText method triggers all
>entryAttributes
>> to be filled. The header is an entryAttribute.
>>
>
>Spot on. If I were offering commentary, I would call that a bug in the
>UX
>of the API. But I do get why it is that way. Attaching a patch that
>solves
>the problem.
>
>--Greg
>
>
>>
>>
>> On March 20, 2018 8:13:41 PM MST, Greg Hellings
>
>> wrote:
>>>
>>> To be quite specific: diatheke does not encounter that header in the
>>> preverse content until it reaches Psalm 3:2 for some reason that is
>beyond
>>> my ken. Therefore, it is properly rendering that content as
>preverse, but
>>> it has attached it to the wrong verse. Output from my slightly
>modified
>>> diatheke confirms this:
>>>
>>> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
>>> key: Psalms 3:1
>>> header:
>>> Psalms 3:1: LORD, how are they increased that trouble me! many are
>they
>>> that rise up against me.
>>> key: Psalms 3:2
>>> header: savlm="strong:H04210">A
>>> Psalm of David, >> savlm="strong:H01272">when he fled savlm="strong:H06440">from >> savlm="strong:H053">Absalom his
>>> son.
>>> A Psalm of David, when he fled from Absalom his son.
>>> Psalms 3:2: Many there be which say of my soul, There is no help for
>him
>>> in God. Selah.
>>>
>>> --Greg
>>>
>>> On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings
>
>>> wrote:
>>>
 It's easier to see the problem when using plain formatting:

 $ diatheke -b KJV -o h -f Plain -k Ps 3
 Psalms 3:1: LORD, how are they increased that trouble me! many are
>they
 that rise up against me.
 A Psalm of David, when he fled from Absalom his son.
 Psalms 3:2: Many there be which say of my soul, There is no help
>for him
 in God. Selah.
 Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and
>the
 lifter up of mine head.
 Psalms 3:4:
 I cried unto the LORD with my voice, and he heard me out of his
>holy
 hill. Selah.
 Psalms 3:5: I laid me down and slept; I awaked; for the LORD
>sustained
 me.
 Psalms 3:6: I will not be afraid of ten thousands of people, that
>have
 set themselves against me round about.
 Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten
>all
 mine enemies upon the cheek bone; thou hast broken the teeth of the
>ungodly.
 Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon
>thy
 people. Selah.
 (KJV)

 --Greg


 On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings
>
 wrote:

> I'm not so sure your initial assertion is correct.
>
> $ diatheke -b KJV -o h -k Ps 3
> Psalms 3:1:  vineName>Lord, savlm="strong:H07231">how
> are they increased that trouble
> savlm="strong:H07227">me! many  type="added">are they that
>rise
> up against me.
> A
> Psalm of David,  savlm="strong:H01272">when he fled savlm="strong:H06440">from  savlm="strong:H053">Absalom his
> son.Psalms 3:2: Many
> type="added">there be which
>say
> of my soul, type="added">There
> is no help  savlm="strong:H0430">for him in God. savlm="strong:H05542">Selah >.
>
> If you notice carefully, the canonical title is there. It is just
> misplaced. It comes after the text of Psalm 3:1 and not before.
>
> --Greg
>
> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam
>
> wrote:
>
>> Maybe someone could patch diatheke to fix this?
>>
>> Best regards, David
>>
>>
>> Sent from ProtonMail Mobile
>>
>>
>> On Wed, Mar 14, 2018 at 12:14, David Haslam
>
>> wrote:
>>
>> Diatheke does not output the canonical Psalm titles when output
>option
>> h is used.
>>
>> Try this and see what I mean.
>>
>> diatheke -b KJV -o h -k Ps 3
>>
>> This is a significant lack of feature.
>>
>> Best regards,
>>
>> David
>>
>> Sent from ProtonMail Mobile
>>
>>
>> ___
>> sword-devel mailing list: sword-devel@crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Ins

Re: [sword-devel] Diatheke ?

2018-03-20 Thread Greg Hellings
On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts 
wrote:

> If I had to guess, I suspect diatheke is not calling renderText before
> asking for the header. The renderText method triggers all entryAttributes
> to be filled. The header is an entryAttribute.
>

Spot on. If I were offering commentary, I would call that a bug in the UX
of the API. But I do get why it is that way. Attaching a patch that solves
the problem.

--Greg


>
>
> On March 20, 2018 8:13:41 PM MST, Greg Hellings 
> wrote:
>>
>> To be quite specific: diatheke does not encounter that header in the
>> preverse content until it reaches Psalm 3:2 for some reason that is beyond
>> my ken. Therefore, it is properly rendering that content as preverse, but
>> it has attached it to the wrong verse. Output from my slightly modified
>> diatheke confirms this:
>>
>> $ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
>> key: Psalms 3:1
>> header:
>> Psalms 3:1: LORD, how are they increased that trouble me! many are they
>> that rise up against me.
>> key: Psalms 3:2
>> header: A
>> Psalm of David, > savlm="strong:H01272">when he fled from > savlm="strong:H053">Absalom his
>> son.
>> A Psalm of David, when he fled from Absalom his son.
>> Psalms 3:2: Many there be which say of my soul, There is no help for him
>> in God. Selah.
>>
>> --Greg
>>
>> On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings 
>> wrote:
>>
>>> It's easier to see the problem when using plain formatting:
>>>
>>> $ diatheke -b KJV -o h -f Plain -k Ps 3
>>> Psalms 3:1: LORD, how are they increased that trouble me! many are they
>>> that rise up against me.
>>> A Psalm of David, when he fled from Absalom his son.
>>> Psalms 3:2: Many there be which say of my soul, There is no help for him
>>> in God. Selah.
>>> Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the
>>> lifter up of mine head.
>>> Psalms 3:4:
>>> I cried unto the LORD with my voice, and he heard me out of his holy
>>> hill. Selah.
>>> Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained
>>> me.
>>> Psalms 3:6: I will not be afraid of ten thousands of people, that have
>>> set themselves against me round about.
>>> Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all
>>> mine enemies upon the cheek bone; thou hast broken the teeth of the ungodly.
>>> Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy
>>> people. Selah.
>>> (KJV)
>>>
>>> --Greg
>>>
>>>
>>> On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings 
>>> wrote:
>>>
 I'm not so sure your initial assertion is correct.

 $ diatheke -b KJV -o h -k Ps 3
 Psalms 3:1: >>> vineName>Lord, how
 are they increased that trouble >>> savlm="strong:H07227">me! many >>> type="added">are they that rise
 up against me.
 A
 Psalm of David, >>> savlm="strong:H01272">when he fled from >>> savlm="strong:H053">Absalom his
 son.Psalms 3:2: Many >>> type="added">there be which say
 of my soul, There
 is no help >>> savlm="strong:H0430">for him in God. Selah>>> >.

 If you notice carefully, the canonical title is there. It is just
 misplaced. It comes after the text of Psalm 3:1 and not before.

 --Greg

 On Tue, Mar 20, 2018 at 4:40 PM, David Haslam 
 wrote:

> Maybe someone could patch diatheke to fix this?
>
> Best regards, David
>
>
> Sent from ProtonMail Mobile
>
>
> On Wed, Mar 14, 2018 at 12:14, David Haslam 
> wrote:
>
> Diatheke does not output the canonical Psalm titles when output option
> h is used.
>
> Try this and see what I mean.
>
> diatheke -b KJV -o h -k Ps 3
>
> This is a significant lack of feature.
>
> Best regards,
>
> David
>
> Sent from ProtonMail Mobile
>
>
> ___
> sword-devel mailing list: sword-devel@crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>


>>>
>>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
Index: utilities/diatheke/corediatheke.cpp
===
--- utilities/diatheke/corediatheke.cpp	(revision 3563)
+++ utilities/diatheke/corediatheke.cpp	(working copy)
@@ -302,6 +302,9 @@
 		for (listkey = TOP; !listkey.popError() && maxverses; listkey++) {
 			target->setKey(listkey);
 			VerseKey *vk = SWDYNAMIC_CAST(VerseKey, target->getKey());
+			// Call this before all the pre-verse handling, as it needs to be
+			// executed before the preverse headers are populated
+			SWBuf text = target->renderText();
 			
 			// if we've got a VerseKey (Bible or Commentary)
 			if (vk) {
@@ -375,7 +378,7 @@
 *output << ": ";
 			}
 	
-			*output << target->renderText();
+			*output << text;
 			
 	
 			if (outputformat == FMT_HTML || outputformat == FMT_HTMLHREF || outputfor

Re: [sword-devel] Diatheke ?

2018-03-20 Thread Troy A. Griffitts
If I had to guess, I suspect diatheke is not calling renderText before asking 
for the header. The renderText method triggers all entryAttributes to be 
filled. The header is an entryAttribute.

On March 20, 2018 8:13:41 PM MST, Greg Hellings  wrote:
>To be quite specific: diatheke does not encounter that header in the
>preverse content until it reaches Psalm 3:2 for some reason that is
>beyond
>my ken. Therefore, it is properly rendering that content as preverse,
>but
>it has attached it to the wrong verse. Output from my slightly modified
>diatheke confirms this:
>
>$ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
>key: Psalms 3:1
>header:
>Psalms 3:1: LORD, how are they increased that trouble me! many are they
>that rise up against me.
>key: Psalms 3:2
>header: savlm="strong:H04210">A
>Psalm of David, savlm="strong:H01272">when he fled savlm="strong:H06440">from savlm="strong:H053">Absalom his
>son.
>A Psalm of David, when he fled from Absalom his son.
>Psalms 3:2: Many there be which say of my soul, There is no help for
>him in
>God. Selah.
>
>--Greg
>
>On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings
>
>wrote:
>
>> It's easier to see the problem when using plain formatting:
>>
>> $ diatheke -b KJV -o h -f Plain -k Ps 3
>> Psalms 3:1: LORD, how are they increased that trouble me! many are
>they
>> that rise up against me.
>> A Psalm of David, when he fled from Absalom his son.
>> Psalms 3:2: Many there be which say of my soul, There is no help for
>him
>> in God. Selah.
>> Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the
>> lifter up of mine head.
>> Psalms 3:4:
>> I cried unto the LORD with my voice, and he heard me out of his holy
>hill.
>> Selah.
>> Psalms 3:5: I laid me down and slept; I awaked; for the LORD
>sustained me.
>> Psalms 3:6: I will not be afraid of ten thousands of people, that
>have set
>> themselves against me round about.
>> Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten
>all
>> mine enemies upon the cheek bone; thou hast broken the teeth of the
>ungodly.
>> Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon
>thy
>> people. Selah.
>> (KJV)
>>
>> --Greg
>>
>>
>> On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings
>
>> wrote:
>>
>>> I'm not so sure your initial assertion is correct.
>>>
>>> $ diatheke -b KJV -o h -k Ps 3
>>> Psalms 3:1: >> vineName>Lord, how
>are
>>> they increased that trouble >> savlm="strong:H07227">me! many >> type="added">are they that
>rise
>>> up against me.
>>> A
>>> Psalm of David, >> savlm="strong:H01272">when he fled savlm="strong:H06440">from >> savlm="strong:H053">Absalom his
>>> son.Psalms 3:2: Many
>>> type="added">there be which
>say
>>> of my soul, type="added">There
>>> is no help >> savlm="strong:H0430">for him in God. savlm="strong:H05542">Selah>> >.
>>>
>>> If you notice carefully, the canonical title is there. It is just
>>> misplaced. It comes after the text of Psalm 3:1 and not before.
>>>
>>> --Greg
>>>
>>> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam
>
>>> wrote:
>>>
 Maybe someone could patch diatheke to fix this?

 Best regards, David


 Sent from ProtonMail Mobile


 On Wed, Mar 14, 2018 at 12:14, David Haslam 
 wrote:

 Diatheke does not output the canonical Psalm titles when output
>option h
 is used.

 Try this and see what I mean.

 diatheke -b KJV -o h -k Ps 3

 This is a significant lack of feature.

 Best regards,

 David

 Sent from ProtonMail Mobile


 ___
 sword-devel mailing list: sword-devel@crosswire.org
 http://www.crosswire.org/mailman/listinfo/sword-devel
 Instructions to unsubscribe/change your settings at above page

>>>
>>>
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke ?

2018-03-20 Thread Greg Hellings
To be quite specific: diatheke does not encounter that header in the
preverse content until it reaches Psalm 3:2 for some reason that is beyond
my ken. Therefore, it is properly rendering that content as preverse, but
it has attached it to the wrong verse. Output from my slightly modified
diatheke confirms this:

$ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3
key: Psalms 3:1
header:
Psalms 3:1: LORD, how are they increased that trouble me! many are they
that rise up against me.
key: Psalms 3:2
header: A
Psalm of David, when he fled from Absalom his
son.
A Psalm of David, when he fled from Absalom his son.
Psalms 3:2: Many there be which say of my soul, There is no help for him in
God. Selah.

--Greg

On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings 
wrote:

> It's easier to see the problem when using plain formatting:
>
> $ diatheke -b KJV -o h -f Plain -k Ps 3
> Psalms 3:1: LORD, how are they increased that trouble me! many are they
> that rise up against me.
> A Psalm of David, when he fled from Absalom his son.
> Psalms 3:2: Many there be which say of my soul, There is no help for him
> in God. Selah.
> Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the
> lifter up of mine head.
> Psalms 3:4:
> I cried unto the LORD with my voice, and he heard me out of his holy hill.
> Selah.
> Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained me.
> Psalms 3:6: I will not be afraid of ten thousands of people, that have set
> themselves against me round about.
> Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all
> mine enemies upon the cheek bone; thou hast broken the teeth of the ungodly.
> Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy
> people. Selah.
> (KJV)
>
> --Greg
>
>
> On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings 
> wrote:
>
>> I'm not so sure your initial assertion is correct.
>>
>> $ diatheke -b KJV -o h -k Ps 3
>> Psalms 3:1: > vineName>Lord, how are
>> they increased that trouble > savlm="strong:H07227">me! many > type="added">are they that rise
>> up against me.
>> A
>> Psalm of David, > savlm="strong:H01272">when he fled from > savlm="strong:H053">Absalom his
>> son.Psalms 3:2: Many > type="added">there be which say
>> of my soul, There
>> is no help > savlm="strong:H0430">for him in God. Selah> >.
>>
>> If you notice carefully, the canonical title is there. It is just
>> misplaced. It comes after the text of Psalm 3:1 and not before.
>>
>> --Greg
>>
>> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam 
>> wrote:
>>
>>> Maybe someone could patch diatheke to fix this?
>>>
>>> Best regards, David
>>>
>>>
>>> Sent from ProtonMail Mobile
>>>
>>>
>>> On Wed, Mar 14, 2018 at 12:14, David Haslam 
>>> wrote:
>>>
>>> Diatheke does not output the canonical Psalm titles when output option h
>>> is used.
>>>
>>> Try this and see what I mean.
>>>
>>> diatheke -b KJV -o h -k Ps 3
>>>
>>> This is a significant lack of feature.
>>>
>>> Best regards,
>>>
>>> David
>>>
>>> Sent from ProtonMail Mobile
>>>
>>>
>>> ___
>>> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke ?

2018-03-20 Thread Greg Hellings
It's easier to see the problem when using plain formatting:

$ diatheke -b KJV -o h -f Plain -k Ps 3
Psalms 3:1: LORD, how are they increased that trouble me! many are they
that rise up against me.
A Psalm of David, when he fled from Absalom his son.
Psalms 3:2: Many there be which say of my soul, There is no help for him in
God. Selah.
Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the lifter
up of mine head.
Psalms 3:4:
I cried unto the LORD with my voice, and he heard me out of his holy hill.
Selah.
Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained me.
Psalms 3:6: I will not be afraid of ten thousands of people, that have set
themselves against me round about.
Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all
mine enemies upon the cheek bone; thou hast broken the teeth of the ungodly.
Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy
people. Selah.
(KJV)

--Greg


On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings 
wrote:

> I'm not so sure your initial assertion is correct.
>
> $ diatheke -b KJV -o h -k Ps 3
> Psalms 3:1:  savlm="strong:H03068">Lord,
> how are they increased  savlm="strong:H06862">that trouble me!
> many are  savlm="strong:H06965">they that rise up against me.
> A
> Psalm of David,  savlm="strong:H01272">when he fled from  savlm="strong:H053">Absalom his
> son.Psalms 3:2: Many  type="added">there be which say
> of my soul, There
> is no help  savlm="strong:H0430">for him in God. Selah w>.
>
> If you notice carefully, the canonical title is there. It is just
> misplaced. It comes after the text of Psalm 3:1 and not before.
>
> --Greg
>
> On Tue, Mar 20, 2018 at 4:40 PM, David Haslam 
> wrote:
>
>> Maybe someone could patch diatheke to fix this?
>>
>> Best regards, David
>>
>>
>> Sent from ProtonMail Mobile
>>
>>
>> On Wed, Mar 14, 2018 at 12:14, David Haslam 
>> wrote:
>>
>> Diatheke does not output the canonical Psalm titles when output option h
>> is used.
>>
>> Try this and see what I mean.
>>
>> diatheke -b KJV -o h -k Ps 3
>>
>> This is a significant lack of feature.
>>
>> Best regards,
>>
>> David
>>
>> Sent from ProtonMail Mobile
>>
>>
>> ___
>> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke ?

2018-03-20 Thread Greg Hellings
I'm not so sure your initial assertion is correct.

$ diatheke -b KJV -o h -k Ps 3
Psalms 3:1: Lord, how are they increased that trouble me!
many are they that rise up against me.
A Psalm
of David, when he
fled from Absalom his
son.Psalms 3:2: Many there be which say
of my soul, There
is no help for him in God. Selah.

If you notice carefully, the canonical title is there. It is just
misplaced. It comes after the text of Psalm 3:1 and not before.

--Greg

On Tue, Mar 20, 2018 at 4:40 PM, David Haslam  wrote:

> Maybe someone could patch diatheke to fix this?
>
> Best regards, David
>
>
> Sent from ProtonMail Mobile
>
>
> On Wed, Mar 14, 2018 at 12:14, David Haslam  wrote:
>
> Diatheke does not output the canonical Psalm titles when output option h
> is used.
>
> Try this and see what I mean.
>
> diatheke -b KJV -o h -k Ps 3
>
> This is a significant lack of feature.
>
> Best regards,
>
> David
>
> Sent from ProtonMail Mobile
>
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke ?

2018-03-20 Thread David Haslam
Maybe someone could patch diatheke to fix this?

Best regards, David

Sent from ProtonMail Mobile

On Wed, Mar 14, 2018 at 12:14, David Haslam  wrote:

> Diatheke does not output the canonical Psalm titles when output option h is 
> used.
>
> Try this and see what I mean.
>
> diatheke -b KJV -o h -k Ps 3
>
> This is a significant lack of feature.
>
> Best regards,
>
> David
>
> Sent from ProtonMail Mobile___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] Diatheke ?

2018-03-14 Thread David Haslam
Diatheke does not output the canonical Psalm titles when output option h is 
used.

Try this and see what I mean.

diatheke -b KJV -o h -k Ps 3

This is a significant lack of feature.

Best regards,

David

Sent from ProtonMail Mobile___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke and MarkDown format?

2017-11-21 Thread Peter Von Kaehne

> Von: "David Haslam" 
> However, I've yet to see any set of Sword utilities for Windows that
> actually do that, as I observed back in October 2015.

You would not, because it had be kept out of releases. Only people building 
against SVNhead would have access to it. It will be in 1.8.0

Peter

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke and MarkDown format?

2017-11-21 Thread David Haslam
Thanks Peter,

I'm sure you're the best candidate for the task, in view of the stirling
work you did by adding LaTeX format to its output capabilities.

However, I've yet to see any set of Sword utilities for Windows that
actually do that, as I observed back in October 2015.

> When will the diatheke update with support for LaTeX output format be
> released?
> 
> cf. When Osk updated the wiki page in Feb 2014, LaTeX was already listed.
> 
> http://www.crosswire.org/wiki/Frontends:Diatheke#Output_formats
> 
> Valid output_format values are: CGI, GBF, HTML, HTMLHREF, LaTeX, OSIS,
> RTF, ThML, XHTML, and plain text (default).
> 
> I just tried using -f LaTeX, but got plain text format.

Regards,

David 





--
Sent from: http://sword-dev.350566.n4.nabble.com/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke and MarkDown format?

2017-11-21 Thread Peter Von Kaehne
> Von: "David Haslam" 
>
> A reminder for my suggestion made in December 2015 nearly two years ago:

> > It would be better to add a fully fledged output format for MarkDown, 
> > and leave the default to just plain text with no frills.

I have done some work on this but have nothing to offer for immediate 
inclusion. I probably should reactivate my own Git repo and see if I can share 
what I have done/are doing to make this happen. 

> Oh - it would be nice if someone could implement this and include it in
> SWORD 1.8.x before Christmas.

Not likely.

Peter

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke and MarkDown format?

2017-11-21 Thread David Haslam
A reminder for my suggestion made in December 2015 nearly two years ago:


David Haslam wrote
> When outputting plain text, diatheke currently makes a half-hearted
> attempt to use a tiny bit of MarkDown format for anything that was wrapped
> in the OSIS hi element, whether italics or bold type etc, which gets
> wrapped between two asterisks.
> 
> See also https://en.wikipedia.org/wiki/Markdown
> 
> IMHO, the plain text default output format shouldn't do this.
> 
> It would be better to add a fully fledged output format for MarkDown, 
> and leave the default to just plain text with no frills.
> 
> David

Oh - it would be nice if someone could implement this and include it in
SWORD 1.8.x before Christmas.

David




--
Sent from: http://sword-dev.350566.n4.nabble.com/

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-05-21 Thread Troy A. Griffitts
So, I did a little experimenting this weekend and found that the ICU
RegEx engine is actually really capable.

o  It's fast.

o  It supports {n,m} characters instead of bytes

o  It even works (though a little slow) with lookaheads and lookbacks,
e.g., for words in any order: (?=.*God)(?=.*world)(?=.*love)

whereas that fails to compile or simply doesn't work in our other
regex engine options.

So, I've added it as an option --with-icuregex  and actually made it the
default in usrinst.sh

You can check it out from trunk or else wait for the next RC.

Planning to look at the issues Peter mentioned and then push our another RC.

Troy


On 03/06/2017 06:17 PM, Troy A. Griffitts wrote:
>
> Yeah, so this page shows that c11x regex is still mostly unsupported
> in gcc:
>
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.tr1
>
> (see section 7)
>
> And the old school gnu regex we use otherwise I don't think knows
> anything about wide chars.  It simply compares bytes and does have a
> clue if some should be considered part of the same byte.  I suspect
> that because nowhere do we tell it that we're giving it UTF-8.
>
> Ultimately my hope is that gcc will improve eventually and solve our
> problem for us.  We could use
>
> We could add an option to use ICU RegexMatcher, but I'm still holding
> out for our compiler.
>
> Troy
>
>
> On 03/06/2017 05:52 PM, Karl Kleinpaste wrote:
>> On 03/06/2017 05:25 PM, Greg Hellings wrote:
>>> being off by 2 would seem strange to me
>> I don't understand this question at all.
>>
>> 0xE2 = 226 = 0342
>> 0x80 = 128 = 0200
>> 0x93 = 147 = 0223
>>
>> There's no off-by error at all.
>>
>> "od" is the "octal dump" tool; given -c, it tries to dump characters,
>> but outside 7-bit ASCII, it still dumps octal.
>>
>> For those familiar with dc(1), this will make sense
>> $ dc
>> 8o
>> 226p
>> 342
>> 128p
>> 200
>> 147p
>> 223
>> 16i
>> 0XE2p
>> 342
>> 0X80p
>> 200
>> 0X93p
>> 223
>>
>> The interesting questions are why C++11 regex can't find /en dash/,
>> and why non-C++11 regex doesn't understand multibyte.
>>
>>
>> ___
>> sword-devel mailing list: sword-devel@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-24 Thread Jaak Ristioja
Another possibility is to use Boost.Xpressive [1], which I think
supports the Perl regular expressions at runtime, and also static
regular expressions using C++ syntax:

using namespace boost::xpressive;
// sregex rex = sregex::compile( "(\\w+) (\\w+)!" );
sregex rex = (s1= +_w) >> ' ' >> (s2= +_w) >> '!';

But I suppose you don't want to introduce Boost as a dependency.

J


[1]: http://www.boost.org/doc/libs/1_63_0/doc/html/xpressive.html

On 07.03.2017 03:17, Troy A. Griffitts wrote:
> Yeah, so this page shows that c11x regex is still mostly unsupported in gcc:
> 
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.tr1
> 
> (see section 7)
> 
> And the old school gnu regex we use otherwise I don't think knows
> anything about wide chars.  It simply compares bytes and does have a
> clue if some should be considered part of the same byte.  I suspect that
> because nowhere do we tell it that we're giving it UTF-8.
> 
> Ultimately my hope is that gcc will improve eventually and solve our
> problem for us.  We could use
> 
> We could add an option to use ICU RegexMatcher, but I'm still holding
> out for our compiler.
> 
> Troy
> 
> 
> On 03/06/2017 05:52 PM, Karl Kleinpaste wrote:
>> On 03/06/2017 05:25 PM, Greg Hellings wrote:
>>> being off by 2 would seem strange to me
>> I don't understand this question at all.
>>
>> 0xE2 = 226 = 0342
>> 0x80 = 128 = 0200
>> 0x93 = 147 = 0223
>>
>> There's no off-by error at all.
>>
>> "od" is the "octal dump" tool; given -c, it tries to dump characters,
>> but outside 7-bit ASCII, it still dumps octal.
>>
>> For those familiar with dc(1), this will make sense
>> $ dc
>> 8o
>> 226p
>> 342
>> 128p
>> 200
>> 147p
>> 223
>> 16i
>> 0XE2p
>> 342
>> 0X80p
>> 200
>> 0X93p
>> 223
>>
>> The interesting questions are why C++11 regex can't find /en dash/,
>> and why non-C++11 regex doesn't understand multibyte.
>>
>>
>> ___
>> sword-devel mailing list: sword-devel@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] diatheke option filters e and n are implemented wrongly

2017-03-07 Thread David Haslam
OK, I've been tinkering more with *diatheke* and just found a bug in how
these two option filters act:

*-o e* should be Word *E*numerations
*-o n* should be Strongs *N*umbers

What actually happens with (say) output filter OSIS, is as follows:

*-o e* doesn't add anything
*-o n* adds Word E*n*umerations

This was with diatheke.exe version 4.7 as supplied with Xiphos 4.0.4 for
Windows.

Looks like somebody goofed in parsing the CL parameters and handled one of
them wrong and in effect masked the other.

If one of you can confirm the bug is real, I'll create an issue in the
tracker.


Best regards,

David





--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-option-filters-e-and-n-are-implemented-wrongly-tp4656921.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-07 Thread David Haslam
Thanks, Karl,

Xiphos 4.0.4 in Windows 7 x64 gave this:

S:\>xiphos\diatheke -b KJV -s regex -k Abed...nego
Verses containing "Abed...nego"-- Daniel 1:7 ; Daniel 2:49 ; Daniel 3:12 ;
Daniel 3:13 ; Daniel 3:14 ; Daniel 3:16 ; Daniel 3:19 ; Daniel 3:20 ; Daniel
3:22 ; Daniel 3:23 ; Daniel 3:26 ; Daniel 3:28 ; Daniel 3:29 ; Daniel 3:30
-- 14 matches total (KJV)

It's evident that in Windows it behaves like it did in Linux after you
recompiled without cxx11regex.

Question: Does *regex* mean the same to diatheke search as it does for
Xiphos advanced search?

Best regards,

David

PS. I'm sure we can all forgive Greg for the mistaken "off by 2" claim. 




--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656920.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread Karl Kleinpaste
On 03/06/2017 09:06 PM, DM Smith wrote:
> Does setting CLANG (or whatever it is) in the env help? In unix you
> have to tell the program what charset you are using. 

They already come along for the ride for free as a result of logging in,
per default specification when system was installed.

$ env|grep -i utf
LC_ALL=en_US.utf8
LANG=en_US.utf8

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread DM Smith
Does setting CLANG (or whatever it is) in the env help? In unix you have to 
tell the program what charset you are using. 

Cent from my fone so theer mite be tipos. ;)

> On Mar 6, 2017, at 7:52 PM, Karl Kleinpaste  wrote:
> 
>> On 03/06/2017 05:25 PM, Greg Hellings wrote:
>> being off by 2 would seem strange to me
> I don't understand this question at all.
> 
> 0xE2 = 226 = 0342
> 0x80 = 128 = 0200
> 0x93 = 147 = 0223
> 
> There's no off-by error at all.
> 
> "od" is the "octal dump" tool; given -c, it tries to dump characters, but 
> outside 7-bit ASCII, it still dumps octal.
> 
> For those familiar with dc(1), this will make sense
> $ dc
> 8o
> 226p
> 342
> 128p
> 200
> 147p
> 223
> 16i
> 0XE2p
> 342
> 0X80p
> 200
> 0X93p
> 223
> 
> The interesting questions are why C++11 regex can't find en dash, and why 
> non-C++11 regex doesn't understand multibyte.
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread Troy A. Griffitts

Yeah, so this page shows that c11x regex is still mostly unsupported in gcc:

http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.tr1

(see section 7)

And the old school gnu regex we use otherwise I don't think knows 
anything about wide chars.  It simply compares bytes and does have a 
clue if some should be considered part of the same byte.  I suspect that 
because nowhere do we tell it that we're giving it UTF-8.


Ultimately my hope is that gcc will improve eventually and solve our 
problem for us.  We could use


We could add an option to use ICU RegexMatcher, but I'm still holding 
out for our compiler.


Troy


On 03/06/2017 05:52 PM, Karl Kleinpaste wrote:

On 03/06/2017 05:25 PM, Greg Hellings wrote:

being off by 2 would seem strange to me

I don't understand this question at all.

0xE2 = 226 = 0342
0x80 = 128 = 0200
0x93 = 147 = 0223

There's no off-by error at all.

"od" is the "octal dump" tool; given -c, it tries to dump characters, 
but outside 7-bit ASCII, it still dumps octal.


For those familiar with dc(1), this will make sense
$ dc
8o
226p
342
128p
200
147p
223
16i
0XE2p
342
0X80p
200
0X93p
223

The interesting questions are why C++11 regex can't find /en dash/, 
and why non-C++11 regex doesn't understand multibyte.



___
sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread Karl Kleinpaste
On 03/06/2017 05:25 PM, Greg Hellings wrote:
> being off by 2 would seem strange to me
I don't understand this question at all.

0xE2 = 226 = 0342
0x80 = 128 = 0200
0x93 = 147 = 0223

There's no off-by error at all.

"od" is the "octal dump" tool; given -c, it tries to dump characters,
but outside 7-bit ASCII, it still dumps octal.

For those familiar with dc(1), this will make sense
$ dc
8o
226p
342
128p
200
147p
223
16i
0XE2p
342
0X80p
200
0X93p
223

The interesting questions are why C++11 regex can't find /en dash/, and
why non-C++11 regex doesn't understand multibyte.
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread Greg Hellings
On Mon, Mar 6, 2017 at 4:15 PM, David Haslam  wrote:

> Are we sure it's an "off by 2" error and not just an email typo?
>

I'm not sure of that at all. It was my first guess, but being off by 2
would seem strange to me, as I would expect a "fat finger" error to produce
an off-by-1 or a spurious extra digit added. But Karl would need to verify
that.


>
> I wasn't expecting decimal, I just didn't parse it as octal.
>

In the context of Octal, the values make the most sense as a typo on one
side or the other, to me.

--Greg


>
> David
>
>
>
> --
> View this message in context: http://sword-dev.350566.n4.
> nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656914.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread David Haslam
Are we sure it's an "off by 2" error and not just an email typo?

I wasn't expecting decimal, I just didn't parse it as octal.

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656914.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread Greg Hellings
147 = 0223 (octal)
128 = 0200 (octal)
226 = 0340 (octal)

So it's off by 2 in the top order byte. Not sure why, but it seems you're
expecting decimal but the tool is obviously giving out octal.

--Greg

On Mon, Mar 6, 2017 at 3:02 PM, David Haslam  wrote:

> Thanks Karl,
>
> All the "hyphenated" names in the KJV OT use the *en dash* character U+2013
> which has 3 UTF-8 bytes E2 80 93.
>
> In decimal, these are 226 128 147 so we might well wonder how your tool
> gave
> 342 200 223 ?
>
> Best regards,
>
> David
>
>
>
> --
> View this message in context: http://sword-dev.350566.n4.
> nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656912.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread David Haslam
Thanks Karl,

All the "hyphenated" names in the KJV OT use the *en dash* character U+2013
which has 3 UTF-8 bytes E2 80 93.

In decimal, these are 226 128 147 so we might well wonder how your tool gave
342 200 223 ?

Best regards,

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656912.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-06 Thread Karl Kleinpaste
On 03/03/2017 09:16 PM, Troy A. Griffitts wrote:
> SWORD supports compiling with a variety of regex engines

I have an interesting result. My previous build of sword used
--with-cxx11regex, and that failed to find Abednego in any circumstance.
Reconfiguring without that option and rebuilding, I now get this result:

$ diatheke -b KJV -s regex -k Abednego
Entries containing "Abednego"-- none (KJV)
$ diatheke -b KJV -s regex -k Abed...nego
Entries containing "Abed...nego"-- Daniel 1:7Daniel 2:49 ; Daniel 3:12 ;
Daniel 3:13 ; Daniel 3:14 ; Daniel 3:16 ; Daniel 3:19 ; Daniel 3:20 ;
Daniel 3:22 ; Daniel 3:23 ; Daniel 3:26 ; Daniel 3:28 ; Daniel 3:29 ;
Daniel 3:30 ;  -- 14 matches total (KJV)
$ diatheke -b KJV -s regex -k Abed..nego
Entries containing "Abed..nego"-- none (KJV)
$ diatheke -b KJV -s regex -k Abed.nego
Entries containing "Abed.nego"-- none (KJV)

What's important here is that the dash in the middle of "Abed-nego" in
KJV appears as (from Dan.3.30, passed through "od -c"):
360   d   A   b   e   d 342 200 223   n   e   g   o   <   /   w

So diatheke with C++11 regex fails entirely, and diatheke without C++11
regex finds it only when the 3 component bytes of the dash character are
specified individually, which is to say, unaware of multibyte encoding
at all.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-04 Thread David Haslam
Corrigendum:  "everything outside ASCII"



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656901.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-04 Thread David Haslam
Thanks Troy,

The precise /flavour/ of *regex* supported by diatheke search really needs
to be properly documented.

Expecting the *dot* to be a byte when we're handling Unicode is just not on
at all.

I'm struggling more because I'm on Windows, where the UTF-16 verse UTF-8
disparity affects everything outside ANSI, but even the friends using
diatheke in Linux are having no success with the dot.

The character class *[.,;:]* treats it as just a full-stop punctuation mark.
cf.  I'm so used to having to escape the full-stop in most other contexts.
(e.g. Notepad++ search, TextPipe replace filters, etc).

If *regex* is to be of any real use, we shouldn't leave users to resort to
trial and error to see what works.

David





--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656900.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-03 Thread Troy A. Griffitts
SWORD supports compiling with a variety of regex engines-- typically GNU 
regex on most linux system.  We include 'internal regex' copy of this, 
as well.  We also will compile against the C++ standard regex engine 
including the language spec.  Each handles unicode characters different.


. is certainly recognized, but I would guess that in whatever regex 
library you are using during compile, it represents a byte and not a 
literal character.  Try .{1-6}



On 03/03/2017 07:36 AM, David Haslam wrote:

Created http://tracker.crosswire.org/browse/MODTOOLS-101

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656890.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-03 Thread David Haslam
Created http://tracker.crosswire.org/browse/MODTOOLS-101

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656890.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-03 Thread David Haslam
So what flavour of regex does diatheke actually use under Linux?

Why is it that the *dot metacharacter* is not recognized?

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656889.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-02 Thread Karl Kleinpaste
On 03/02/2017 02:14 PM, Greg Hellings wrote:
> I also get no results.

On the other hand...

$ mod2imp KJV | grep -B1 -i abed.nego | fgrep '$$'
$$$Daniel 1:7
$$$Daniel 2:49
$$$Daniel 3:12
$$$Daniel 3:13
$$$Daniel 3:14
$$$Daniel 3:16
$$$Daniel 3:19
$$$Daniel 3:20
$$$Daniel 3:22
$$$Daniel 3:23
$$$Daniel 3:26
$$$Daniel 3:28
$$$Daniel 3:29
$$$Daniel 3:30

Plain old regular expression search ("grep" origin is g/re/p, the
ancient syntax in UNIX' original line editor for "global regular
expression print") finds them. grep is locale-sensitive. and I have
LC_ALL=en_US.utf8.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-02 Thread David Haslam
Typo was only in the message, sorry!

The actual test in Windows shell with the -k there didn't give any matches.

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656884.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-02 Thread Greg Hellings
$ diatheke -b KJV -s regex -k Abed.nego
Verses containing "Abed.nego"-- none (KJV)

Once I correct the command to include the -k parameter, I also get no
results.

--Greg

On Thu, Mar 2, 2017 at 12:58 PM, David Haslam  wrote:

> I was under the impression that the metacharacter *dot* in a regex means
> "any
> single character".
>
> It would seem that for diatheke with *-s regex* this is not the case at
> all.
>
> Example:
>
> diatheke -b KJV -s regex Abed.nego
>
> In Windows command shell, that command line does not find the 15 instances
> of the name *Abed–nego* where the *en dash* (U+2013) is the punctuation
> mark
> in all such names.
>
> What happens in Linux?
>
> David
>
>
>
>
> --
> View this message in context: http://sword-dev.350566.n4.
> nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type regex and the dot ?

2017-03-02 Thread David Haslam
I suspect this may be a further symptom of what Greg suggested as the
explanation in my other thread.

i.e. That SWORD expects to search in UTF-8 encoded text, whereas Windows
uses UTF-16 internally.

Still can't quite make out why the dot isn't treated how regular expressions
use it.

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879p4656881.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] diatheke search type regex and the dot ?

2017-03-02 Thread David Haslam
I was under the impression that the metacharacter *dot* in a regex means "any
single character".

It would seem that for diatheke with *-s regex* this is not the case at all. 

Example:

diatheke -b KJV -s regex Abed.nego

In Windows command shell, that command line does not find the 15 instances
of the name *Abed–nego* where the *en dash* (U+2013) is the punctuation mark
in all such names.

What happens in Linux?

David




--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-regex-and-the-dot-tp4656879.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke search type default ?

2017-02-28 Thread David Haslam
Thanks Peter.

If after it gets fixed, one of the programmers can recompile it for Win32,
that would enable me to test it.

Best regards,

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-default-tp4656833p4656844.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type default ?

2017-02-28 Thread Peter Von Kaehne
There are two ways of looking at this - a programme bug or a documentation bug. 

> Gesendet: Dienstag, 28. Februar 2017 um 07:17 Uhr
> Von: "David Haslam" 

> So there's no sense in which "phrase" as a search type is (default), is
> there?

There is probably only in the sense that phrase search will work when there is 
no index and functions as default on all GUI programmes. I think someone had 
their thoughts in a twist when this was written. 

I will look at it and fix it in one way or another.

Peter

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type default ?

2017-02-27 Thread David Haslam
The command:

 diatheke -b ESV -s -k Merodach

might be thought of as what to use were "phrase" truly a default that could
be omitted.

However, this produces the error message:

Unknown search_type: -k
Try diatheke --help

So there's no sense in which "phrase" as a search type is (default), is
there?

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-default-tp4656833p4656838.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type default ?

2017-02-27 Thread David Haslam
In that case, the string "(default) " should be pruned from its syntax help,
n'est-ce pas?

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-default-tp4656833p4656836.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke search type default ?

2017-02-27 Thread Greg Hellings
The omission of the "-s" attribute does not lead to search behavior but
instead to Diatheke trying to open the book/chapter/verse specified by the
-k argument. So, it seems safe to say, there is no real concept of a
"default" search type.

It would make sense to say there is a default if there was a way to search
without specifying that argument, but such does not appear to be the case.
For that behavior we would have to reengineer diatheke to have sub commands
in the same way that git, svn, apt-get, yum/dnf, etc have. But it does not
currently have that.

So the issue is not that the search is wrong, but the concept of "default"
search doesn't even exist for the diatheke command.

--Greg

On Mon, Feb 27, 2017 at 2:46 PM, David Haslam  wrote:

> "Something not quite right in the state of Denmark ..."
>
> diatheke -b ESV -k Merodach
> gives no matches!
>
> diatheke -b ESV -s lucene Merodach
> gives 5 matches.
>
> The actual instances are as follows: (omitting the references)
> 2 matches to "Evil-merodach"
> 2 matches to "Merodach-baladan"
> 1 match to "Merodach"
>
> diatheke syntax help includes:
>
> Valid search_type values are: phrase (default), regex, multiword,
> attribute,
> lucene, multilemma.
>
> If the default search type really is "phrase", surely one ought to expect
> its omission to be equivalent to specifiying it explcitly?
>
> diatheke -b ESV -s phrase Merodach
> gives 5 matches
>
> Is it that the syntax help is lying when it tells us that search type
> phrase
> is (default) ?
>
> Observations made with diatheke.exe version 4.7 as supplied with Xiphos
> 4.0.4 (Windows).
>
> Best regards,
>
> David
>
>
>
>
>
> --
> View this message in context: http://sword-dev.350566.n4.
> nabble.com/diatheke-search-type-default-tp4656833.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] diatheke search type default ?

2017-02-27 Thread David Haslam
"Something not quite right in the state of Denmark ..."

diatheke -b ESV -k Merodach
gives no matches!

diatheke -b ESV -s lucene Merodach
gives 5 matches.

The actual instances are as follows: (omitting the references)
2 matches to "Evil-merodach"
2 matches to "Merodach-baladan"
1 match to "Merodach"

diatheke syntax help includes:

Valid search_type values are: phrase (default), regex, multiword, attribute,
lucene, multilemma.

If the default search type really is "phrase", surely one ought to expect
its omission to be equivalent to specifiying it explcitly?

diatheke -b ESV -s phrase Merodach
gives 5 matches

Is it that the syntax help is lying when it tells us that search type phrase
is (default) ?

Observations made with diatheke.exe version 4.7 as supplied with Xiphos
4.0.4 (Windows).

Best regards,

David





--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-search-type-default-tp4656833.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke double output

2016-10-24 Thread Teus Benschop
As for Ubuntu, running the code from the subversion trunk, it was the usual
mixup between the system-installed 'diatheke' at /usr/bin, and the binary
installed from the trunk at /usr/local/bin. After cleaning it up, the
diatheke from trunk behaves fine on Ubuntu. Sorry for the false alarm. :)
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke double output

2016-10-24 Thread Peter von Kaehne
Unfortunately Ubuntu is at least.2 iterations of releases behind the curve. 
Always. 

Sent from my phone. Apologies for brevity and typos.On 24 Oct 2016 1:02 pm, 
Teus Benschop  wrote:
>
> Something weird is happening to diatheke on Ubuntu 16.04 64 bits:
>
> $ diatheke -b NETfree -k Jn 3:16
>
> John 3:16: For this is the way God loved the world: He gave his one and only 
> Son, so that everyone who believes in him will not perish but have eternal 
> life.
>
> : For this is the way God loved the world: He gave his one and only Son, so 
> that everyone who believes in him will not perish but have eternal life.
>
> (NETfree)
>
>
> It outputs the verse text twice.
>
>
> Today's SVN edition of diatheke does not have this behaviour, that's on macOS.
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke double output

2016-10-24 Thread Michael H
That leading colon suggests something is trying to parse a null and
reverting to the last text after a fail. Instead of looking for {John
3:16}, it appears to be searching for {John 3:16,}  How the code detects
the end of the verse range (or whether the next range is null) is where I
would start.

On Mon, Oct 24, 2016 at 7:02 AM, Teus Benschop 
wrote:

> Something weird is happening to diatheke on Ubuntu 16.04 64 bits:
>
> $ diatheke -b NETfree -k Jn 3:16
>
> John 3:16: For this is the way God loved the world: He gave his one and
> only Son, so that everyone who believes in him will not perish but have
> eternal life.
>
> : For this is the way God loved the world: He gave his one and only Son,
> so that everyone who believes in him will not perish but have eternal life.
>
> (NETfree)
>
>
> It outputs the verse text twice.
>
>
> Today's SVN edition of diatheke does not have this behaviour, that's on
> macOS.
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke double output

2016-10-24 Thread Teus Benschop
Following up on the previous mail about diatheke, the SVN code, when
compiled on Ubuntu 16.04 64 bits, running diatheke still gives the double
output.
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] Diatheke double output

2016-10-24 Thread Teus Benschop
Something weird is happening to diatheke on Ubuntu 16.04 64 bits:

$ diatheke -b NETfree -k Jn 3:16

John 3:16: For this is the way God loved the world: He gave his one and
only Son, so that everyone who believes in him will not perish but have
eternal life.

: For this is the way God loved the world: He gave his one and only Son, so
that everyone who believes in him will not perish but have eternal life.

(NETfree)


It outputs the verse text twice.


Today's SVN edition of diatheke does not have this behaviour, that's on
macOS.
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-07 Thread Peter von Kaehne
On Sun, 2016-02-07 at 20:16 -0800, Brian Jolly wrote:
> Thank you Peter. I'll give it a shot with your .cls file.

Just delete the reference to sword.sty in diatheke's output. 

Peter
> 
> On Sat, Feb 6, 2016 at 12:59 AM, Peter von Kaehne 
> wrote:
> > On Fri, 2016-02-05 at 17:14 -0800, Brian Jolly wrote:
> > > 
> > > Peter, thanks for your work on the filters. Are any of the LaTeX
> > > support files shareable even outside of SVN? 
> > >
> > 
> > This is what i have started. My main aim so far was to make the
> > crossreferences work in a PDF. I have not put much effort into
> > making
> > things look nice.
> > 
> > As you see there are a whole bunch of tags which are commented
> > still.
> > 
> > I think I will do away with the call for sword.sty in the Diatheke.
> > 
> > I had hoped to have a latex subdirectory in /sword but Troy is not
> > keen. So this needs to go somewhere else. 
> > 
> > Peter
> > ___
> > sword-devel mailing list: sword-devel@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-07 Thread Brian Jolly
Thank you Peter. I'll give it a shot with your .cls file.

On Sat, Feb 6, 2016 at 12:59 AM, Peter von Kaehne  wrote:

> On Fri, 2016-02-05 at 17:14 -0800, Brian Jolly wrote:
> >
> > Peter, thanks for your work on the filters. Are any of the LaTeX
> > support files shareable even outside of SVN?
> >
>
> This is what i have started. My main aim so far was to make the
> crossreferences work in a PDF. I have not put much effort into making
> things look nice.
>
> As you see there are a whole bunch of tags which are commented still.
>
> I think I will do away with the call for sword.sty in the Diatheke.
>
> I had hoped to have a latex subdirectory in /sword but Troy is not
> keen. So this needs to go somewhere else.
>
> Peter
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-06 Thread Peter von Kaehne
Latex is used to produce scholarly editions with heavy apparatus, so i would 
dispute what you say re inability to achieve a good output

Sent from my phone. Apologies for brevity and typos.On 6 Feb 2016 5:39 am, 
Michael H  wrote:
>
> Brian, 
>
> You'll run into issues trying to build a Bible in Latex. Simon Cozens did, 
> and decided to fix it. Resulting in Sile. (That's a stretch and mangled 
> history, but theres a bit of truth in there.) 
>
> Sile is free and open source and is designed to produce printed books, with 
> Bibles in mind.
>
> https://www.youtube.com/watch?v=t_kk20vlamo
>
> It's also much younger and in active development.
>
> https://github.com/simoncozens/sile/
>
> Latex might produce a King James (text only, not references.. xrefs etc.) You 
> won't be very happy with it.  Sile can handle KJV with greek glossed in. 
> Mostly.  If you have time. 
>
> On Fri, Feb 5, 2016 at 7:14 PM, Brian Jolly  wrote:
>>
>> Thanks Guys,
>>
>> I am really trying to stick with the free and open set of tools 
>> (sword/diatheke/LaTeX).
>>
>> Peter, thanks for your work on the filters. Are any of the LaTeX support 
>> files shareable even outside of SVN? 
>>
>> Feel free to contact me off list if that's more appropriate. 
>>
>>
>> On Fri, Feb 5, 2016 at 12:17 AM, David Haslam  wrote:
>>>
>>> If you have the OSIS XML source file, why not use Prince XML to create the
>>> PDF for printing a Bible?
>>>
>>> Or do you only have the module and not the source text?
>>>
>>> http://www.princexml.com/
>>>
>>> Although the first page mentions HTML, the samples page gives an example for
>>> OSIS.
>>> http://www.princexml.com/samples/
>>>
>>> http://www.princexml.com/samples/titus.pdf
>>>
>>> It's all done using CSS for page layout and formating.
>>>
>>> btw. There was a companion program called Princess XML in 2010.
>>> https://code.google.com/archive/p/princess-2010/
>>>
>>> It's for Windows - so less interest for folk such as Peter.
>>> It's not been migrated to GitHub.
>>>
>>> Princess was developed at SIL by Jim Albright.
>>>
>>> Best regards,
>>>
>>> David
>>>
>>>
>>>
>>> --
>>> View this message in context: 
>>> http://sword-dev.350566.n4.nabble.com/diatheke-missing-bibletext-cls-and-sword-sty-tp4655990p4655992.html
>>> Sent from the SWORD Dev mailing list archive at Nabble.com.
>>>
>>> ___
>>> sword-devel mailing list: sword-devel@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-06 Thread Peter von Kaehne
On Fri, 2016-02-05 at 17:14 -0800, Brian Jolly wrote:
> 
> Peter, thanks for your work on the filters. Are any of the LaTeX
> support files shareable even outside of SVN? 
> 

This is what i have started. My main aim so far was to make the
crossreferences work in a PDF. I have not put much effort into making
things look nice.

As you see there are a whole bunch of tags which are commented still.

I think I will do away with the call for sword.sty in the Diatheke.

I had hoped to have a latex subdirectory in /sword but Troy is not
keen. So this needs to go somewhere else. 

Peter\LoadClass[11pt,a4paper,twoside,headinclude=true,footinclude=true,BCOR=0mm,DIV=calc]{scrbook}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{sword}[2015/03/29 CrossWire LaTeX class for Biblical texts]
\RequirePackage[perpage, para]{footmisc}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\RequirePackage[verbose,
  colorlinks=true,
  naturalnames=true,
  linkcolor=blue,]{hyperref}

\RequirePackage{polyglossia}


\newcommand{\swordchapter}[3]{\hypertarget{#1}{\small{#3} }}
\newcommand{\swordverse}[3]{\hypertarget{#1}{\small{#3} }}
\newcommand{\swordxref}[2]{\hyperlink{#1}{#2}}
\newcommand{\swordfootnote}[6]{\footnote{#6}}
\newcommand{\swordpoetryline}[1]{#1}
\newcommand{\sworddivinename}[1]{\textsc{#1}}
\newcommand{\swordmodule}{}
\newcommand{\swordtestament}{\part*}
\newcommand{\swordbook}{\chapter*}
%\sworddiclink{%s}{%s}{
%\sworddictref{%s}{%s}{
%\sworddict{%s}{

%\newcommand{\sworddivinename}{%s}{



%\swordfont{

%\swordfootnote{%s}{%s}{%s}{
%\swordfootnote{%s}{%s}{%s}{%s}{
%\swordmorph{
%\swordmorph[Greek]{%s}
%\swordmorph[lemma]{%s}
%\swordmorph{%s}
%\swordquote{
%\swordref{%s}{%s}{
%\swordsection{
%\swordsection{}{
%\swordsection{book}{
%\swordsection{sechead}{
%\swordstrong[Greek]{
%\swordstrong[Greektense]{
%\swordstrong[Hebrew]{
%\swordstrong[Hebrewtense]{
%\swordstrong[%s]{%s}{
%\swordstrong{%s}{%s}
\newcommand{\swordtitle}[3]{\textbf{#3}}
%\swordtranschange{supplied}{
%\swordtranschange{tense}{
%\swordwoj{
%\swordxref{
%\swordxref{%s}{%s}{
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-05 Thread Michael H
Brian,

You'll run into issues trying to build a Bible in Latex. Simon Cozens did,
and decided to fix it. Resulting in Sile. (That's a stretch and mangled
history, but theres a bit of truth in there.)

Sile is free and open source and is designed to produce printed books, with
Bibles in mind.

https://www.youtube.com/watch?v=t_kk20vlamo

It's also much younger and in active development.

https://github.com/simoncozens/sile/

Latex might produce a King James (text only, not references.. xrefs etc.)
You won't be very happy with it.  Sile can handle KJV with greek glossed
in. Mostly.  If you have time.

On Fri, Feb 5, 2016 at 7:14 PM, Brian Jolly  wrote:

> Thanks Guys,
>
> I am really trying to stick with the free and open set of tools
> (sword/diatheke/LaTeX).
>
> Peter, thanks for your work on the filters. Are any of the LaTeX support
> files shareable even outside of SVN?
>
> Feel free to contact me off list if that's more appropriate.
>
>
> On Fri, Feb 5, 2016 at 12:17 AM, David Haslam 
> wrote:
>
>> If you have the OSIS XML source file, why not use Prince XML to create the
>> PDF for printing a Bible?
>>
>> Or do you only have the module and not the source text?
>>
>> http://www.princexml.com/
>>
>> Although the first page mentions HTML, the samples page gives an example
>> for
>> OSIS.
>> http://www.princexml.com/samples/
>>
>> http://www.princexml.com/samples/titus.pdf
>>
>> It's all done using CSS for page layout and formating.
>>
>> btw. There was a companion program called Princess XML in 2010.
>> https://code.google.com/archive/p/princess-2010/
>>
>> It's for Windows - so less interest for folk such as Peter.
>> It's not been migrated to GitHub.
>>
>> Princess was developed at SIL by Jim Albright.
>>
>> Best regards,
>>
>> David
>>
>>
>>
>> --
>> View this message in context:
>> http://sword-dev.350566.n4.nabble.com/diatheke-missing-bibletext-cls-and-sword-sty-tp4655990p4655992.html
>> Sent from the SWORD Dev mailing list archive at Nabble.com.
>>
>> ___
>> sword-devel mailing list: sword-devel@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-05 Thread Brian Jolly
Thanks Guys,

I am really trying to stick with the free and open set of tools
(sword/diatheke/LaTeX).

Peter, thanks for your work on the filters. Are any of the LaTeX support
files shareable even outside of SVN?

Feel free to contact me off list if that's more appropriate.


On Fri, Feb 5, 2016 at 12:17 AM, David Haslam  wrote:

> If you have the OSIS XML source file, why not use Prince XML to create the
> PDF for printing a Bible?
>
> Or do you only have the module and not the source text?
>
> http://www.princexml.com/
>
> Although the first page mentions HTML, the samples page gives an example
> for
> OSIS.
> http://www.princexml.com/samples/
>
> http://www.princexml.com/samples/titus.pdf
>
> It's all done using CSS for page layout and formating.
>
> btw. There was a companion program called Princess XML in 2010.
> https://code.google.com/archive/p/princess-2010/
>
> It's for Windows - so less interest for folk such as Peter.
> It's not been migrated to GitHub.
>
> Princess was developed at SIL by Jim Albright.
>
> Best regards,
>
> David
>
>
>
> --
> View this message in context:
> http://sword-dev.350566.n4.nabble.com/diatheke-missing-bibletext-cls-and-sword-sty-tp4655990p4655992.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-05 Thread Peter von Kaehne
$495 for a desktop licence

Sent from my phone. Apologies for brevity and typos.On 5 Feb 2016 8:17 am, 
David Haslam  wrote:
>
> If you have the OSIS XML source file, why not use Prince XML to create the 
> PDF for printing a Bible? 
>
> Or do you only have the module and not the source text? 
>
> http://www.princexml.com/ 
>
> Although the first page mentions HTML, the samples page gives an example for 
> OSIS. 
> http://www.princexml.com/samples/ 
>
> http://www.princexml.com/samples/titus.pdf 
>
> It's all done using CSS for page layout and formating. 
>
> btw. There was a companion program called Princess XML in 2010. 
> https://code.google.com/archive/p/princess-2010/ 
>
> It's for Windows - so less interest for folk such as Peter. 
> It's not been migrated to GitHub. 
>
> Princess was developed at SIL by Jim Albright. 
>
> Best regards, 
>
> David 
>
>
>
> -- 
> View this message in context: 
> http://sword-dev.350566.n4.nabble.com/diatheke-missing-bibletext-cls-and-sword-sty-tp4655990p4655992.html
>  
> Sent from the SWORD Dev mailing list archive at Nabble.com. 
>
> ___ 
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-05 Thread Peter von Kaehne
Prince Whatnot is not open source. It is also a fairly rubbish output. 


Sent from my phone. Apologies for brevity and typos.On 5 Feb 2016 8:17 am, 
David Haslam  wrote:
>
> If you have the OSIS XML source file, why not use Prince XML to create the 
> PDF for printing a Bible? 
>
> Or do you only have the module and not the source text? 
>
> http://www.princexml.com/ 
>
> Although the first page mentions HTML, the samples page gives an example for 
> OSIS. 
> http://www.princexml.com/samples/ 
>
> http://www.princexml.com/samples/titus.pdf 
>
> It's all done using CSS for page layout and formating. 
>
> btw. There was a companion program called Princess XML in 2010. 
> https://code.google.com/archive/p/princess-2010/ 
>
> It's for Windows - so less interest for folk such as Peter. 
> It's not been migrated to GitHub. 
>
> Princess was developed at SIL by Jim Albright. 
>
> Best regards, 
>
> David 
>
>
>
> -- 
> View this message in context: 
> http://sword-dev.350566.n4.nabble.com/diatheke-missing-bibletext-cls-and-sword-sty-tp4655990p4655992.html
>  
> Sent from the SWORD Dev mailing list archive at Nabble.com. 
>
> ___ 
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-05 Thread David Haslam
If you have the OSIS XML source file, why not use Prince XML to create the
PDF for printing a Bible?

Or do you only have the module and not the source text?

http://www.princexml.com/

Although the first page mentions HTML, the samples page gives an example for
OSIS.
http://www.princexml.com/samples/

http://www.princexml.com/samples/titus.pdf

It's all done using CSS for page layout and formating.

btw. There was a companion program called Princess XML in 2010.
https://code.google.com/archive/p/princess-2010/

It's for Windows - so less interest for folk such as Peter.
It's not been migrated to GitHub.

Princess was developed at SIL by Jim Albright.

Best regards,

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-missing-bibletext-cls-and-sword-sty-tp4655990p4655992.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-04 Thread Peter von Kaehne
Hi,

I am glad i am not the only potential user. The reason this is only in svn and 
not in release is the absence of that aspect. I am slowly working in it and 
have privately more, but it is not complete. 

Peter

Sent from my phone. Apologies for brevity and typos.On 4 Feb 2016 11:10 pm, 
Brian Jolly  wrote:
>
> Hi Everyone,
>
> I am working on a personal project to print and bind my own bible. I'm trying 
> to use diatheke with LaTeX output to generate a set of pdf's to print from.
>
> I checked out what I believe to be the latest in SVN:
>     Repository Root: http://crosswire.org/svn/sword
>     Repository UUID: bcd7d363-81e1-0310-97ec-a550e20fc99c
>     Revision: 3399
>
> The diatheke output looks good, but I am missing some sword related LaTeX 
> dependencies and do not know where to find them.
>
> When I run pdflatex on the .tex file it gives the following two errors:
>     ! LaTeX Error: File `bibletext.cls' not found.
>     ! LaTeX Error: File `sword.sty' not found.
>
> Any tips would be greatly appreciated, Thanks!
>
> Here is my command line:
> >sword  ~/projects/sword/utilities/diatheke/diatheke -b KJV -f LaTeX -k Jn 
> >3:16 | tee testjohn.tex
>     \documentclass{bibletext}                                                 
>           
>     \usepackage{sword}
>     \title{King James Version (1769) with Strongs Numbers and Morphology 
> \\\small Jn 3:16}
>     \setmainlanguage{english}
>     \date{}
>     \begin{document}
>     \maketitle
>     \swordverse{John.3.16}{John 3:16}{16}  ¶For God so loved the world, that 
> he gave his only     begotten Son, that whosoever believeth in him should not 
> perish, but have everlasting life.
>     (KJV, General public license for distribution for any purpose)
>     \end{document}
>
> >sword  pdflatex testjohn.tex                                                 
> >                    
>     This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Arch Linux) 
> (preloaded     format=pdflatex)
>      restricted \write18 enabled.
>     entering extended mode
>     (./testjohn.tex
>     LaTeX2e <2015/10/01> patch level 2
>     Babel <3.9m> and hyphenation patterns for 79 languages loaded.
>
>     ! LaTeX Error: File `bibletext.cls' not found.
>
>
>
>
>
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] diatheke missing bibletext.cls and sword.sty

2016-02-04 Thread Brian Jolly
Hi Everyone,

I am working on a personal project to print and bind my own bible. I'm
trying to use diatheke with LaTeX output to generate a set of pdf's to
print from.

I checked out what I believe to be the latest in SVN:
Repository Root: http://crosswire.org/svn/sword
Repository UUID: bcd7d363-81e1-0310-97ec-a550e20fc99c
Revision: 3399

The diatheke output looks good, but I am missing some sword related LaTeX
dependencies and do not know where to find them.

When I run pdflatex on the .tex file it gives the following two errors:
! LaTeX Error: File `bibletext.cls' not found.
! LaTeX Error: File `sword.sty' not found.

Any tips would be greatly appreciated, Thanks!

Here is my command line:
>sword  ~/projects/sword/utilities/diatheke/diatheke -b KJV -f LaTeX -k Jn
3:16 | tee testjohn.tex
\documentclass{bibletext}

\usepackage{sword}
\title{King James Version (1769) with Strongs Numbers and Morphology
\\\small Jn 3:16}
\setmainlanguage{english}
\date{}
\begin{document}
\maketitle
\swordverse{John.3.16}{John 3:16}{16}  ¶For God so loved the world,
that he gave his only begotten Son, that whosoever believeth in him
should not perish, but have everlasting life.
(KJV, General public license for distribution for any purpose)
\end{document}

>sword  pdflatex testjohn.tex

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Arch
Linux) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./testjohn.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9m> and hyphenation patterns for 79 languages loaded.

! LaTeX Error: File `bibletext.cls' not found.
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke and MarkDown format?

2015-12-20 Thread Peter von Kaehne
Whenever it happens i am the first to acknowledge! ;-)

Sent from my phone. Apologies for brevity and typos.On 20 Dec 2015 4:36 pm, 
David Haslam  wrote:
>
> One of those rare occasions, eh, Peter ?  :) 
>
>
>
> -- 
> View this message in context: 
> http://sword-dev.350566.n4.nabble.com/Diatheke-and-MarkDown-format-tp4655468p4655474.html
>  
> Sent from the SWORD Dev mailing list archive at Nabble.com. 
>
> ___ 
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke and MarkDown format?

2015-12-20 Thread David Haslam
One of those rare occasions, eh, Peter ?  :)



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Diatheke-and-MarkDown-format-tp4655468p4655474.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke and MarkDown format?

2015-12-20 Thread Peter von Kaehne
I think you are right. 

Sent from my phone. Apologies for brevity and typos.On 20 Dec 2015 11:20 am, 
David Haslam  wrote:
>
> When outputting plain text, diatheke currently makes a half-hearted attempt 
> to use a tiny bit of MarkDown format for anything that was wrapped in the 
> OSIS hi element, whether italics or bold type etc, which gets wrapped 
> between two asterisks. 
>
> See also https://en.wikipedia.org/wiki/Markdown 
>
> IMHO, the plain text default output format shouldn't do this. 
>
> It would be better to add a fully fledged output format for MarkDown, 
> and leave the default to just plain text with no frills. 
>
> David 
>
>
>
> -- 
> View this message in context: 
> http://sword-dev.350566.n4.nabble.com/Diatheke-and-MarkDown-format-tp4655468.html
>  
> Sent from the SWORD Dev mailing list archive at Nabble.com. 
>
> ___ 
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Diatheke and MarkDown format?

2015-12-20 Thread David Haslam
When outputting plain text, diatheke currently makes a half-hearted attempt
to use a tiny bit of MarkDown format for anything that was wrapped in the
OSIS hi element, whether italics or bold type etc, which gets wrapped
between two asterisks.

See also https://en.wikipedia.org/wiki/Markdown

IMHO, the plain text default output format shouldn't do this.

It would be better to add a fully fledged output format for MarkDown, 
and leave the default to just plain text with no frills.

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Diatheke-and-MarkDown-format-tp4655468.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Diatheke on Mac OSX 10.11.1

2015-10-25 Thread S Virgil Goodwin
When I updated to Mac OS 10.11.1, diatheke quit working for me. When I use
`cd $SWORD_PATH` it will still take me to the correct directory. While in
the correct directory, I can use diatheke but not any where else. My
SWORD_PATH is set to /Users/UserName/Library/Application Support/Sword.

I am currently useing fish as my default shell, but I have also tried it in
bash.

Shawn
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] diatheke methods exportable?

2014-02-03 Thread Chris Little

On 01/23/2014 05:11 AM, Peter von Kaehne wrote:


This a tentative question mostly re the doquery method of our diatheke.

I think it would be really useful if we could have this method somehow
be more part of our offerings, including e.g. in the bindings etc.

Reason: We are currently very much geared towards interactive continuous
Bible reading/study, but the doquery method represents an option which
is underutilised - a one-off static request for some text. No follow up.

This could e.g. be used very well for various word processor plugins etc
- something we do not offer at all, but would be well placed to offer.
The only current option for getting text from a sword text into e.g. an
OpenOffice document is by way of cutting and pasting from a frontend.

Similarly the various existing church projection software packages.
Insofar as they are sword-aware they seem to go through great
contortions of exporting texts into databases etc instead of actually
using the library

I am obviously aware that the doquery effect could be easily reached
with a few lines of code, but why not offer an extremely simple to use
and very comprehensive one-off output method which requires absolutely
zero knowledge of the engine?

I would be happy to run with this once I got my LaTeX filters where I
want them. I probably would require some assistance dt my lack of
knowledge and experience, but would do the bulk lifting.

Opinions?


Higher level APIs aren't unheard of, so I wouldn't object to pushing 
diatheke's guts up into the library. It's conceivable we would want to 
split it into a few different functions, in case the application can 
stay open across multiple calls (though caching tends to make repeated 
calls to diatheke very quick anyway).


We could split doquery into something like an init function to construct 
the SWMgr, etc., the doquery function for repeated individual queries, 
and a cleanup function to free memory. But maybe that makes things too 
complicated already.


--Chris


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] diatheke methods exportable?

2014-01-24 Thread David Haslam
I had been musing during an idle moment about designing a GUI for Diatheke
using the VBA that comes with MS Office.

A very low priority "back-burner" item in my tasks list.

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/diatheke-methods-exportable-tp4653427p4653428.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] diatheke methods exportable?

2014-01-23 Thread Peter von Kaehne

This a tentative question mostly re the doquery method of our diatheke.

I think it would be really useful if we could have this method somehow
be more part of our offerings, including e.g. in the bindings etc.

Reason: We are currently very much geared towards interactive continuous
Bible reading/study, but the doquery method represents an option which
is underutilised - a one-off static request for some text. No follow up.

This could e.g. be used very well for various word processor plugins etc
- something we do not offer at all, but would be well placed to offer.
The only current option for getting text from a sword text into e.g. an
OpenOffice document is by way of cutting and pasting from a frontend. 

Similarly the various existing church projection software packages.
Insofar as they are sword-aware they seem to go through great
contortions of exporting texts into databases etc instead of actually
using the library

I am obviously aware that the doquery effect could be easily reached
with a few lines of code, but why not offer an extremely simple to use
and very comprehensive one-off output method which requires absolutely
zero knowledge of the engine?

I would be happy to run with this once I got my LaTeX filters where I
want them. I probably would require some assistance dt my lack of
knowledge and experience, but would do the bulk lifting. 

Opinions?

Peter





___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke doen't show anything...

2013-11-08 Thread pHep
Okay it works 

I've been misleaded by my bad english...
I thought I've to create the mods.conf - So the installmgr installed the
*.conf files in the mods.conf folder (but why?) and diatheke didn't find it!

I've deleted these folder and restarted the installmgr init and the other
stuff - and now does it work!!!

Thank you all for your great help!!!

God bless you...

Paul



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Diatheke-doen-t-show-anything-tp4653226p4653232.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke doen't show anything...

2013-11-08 Thread Troy A. Griffitts
There should be no mods.conf. you should see a modules/ data folder created by 
installmgr in the same folder along side your mods.d/ configuration folder. Did 
installmgr create this folder for the data files? Did installmgr place any 
module configuration files inside your mods.d/ folder?

pHep  wrote:
>Thank you for your help!
>
>But I did some tests...
>This is the Output for diatheke without arguments:
>/C:\Users\Familie\Desktop\SWORD\TEST\installmgr>diatheke
>Diatheke command-line SWORD frontend Version 4.5
>Copyright 1999-2009 by the CrossWire Bible Society
>http://www.crosswire.org/sword/diatheke/
>usage:
>  diatheke <-b module_name> [-s search_type] [-r search_range]
>[-o option_filters] [-m maximum_verses] [-f output_format]
>[-e output_encoding] [-t script] [-v variant#(-1=all|0|1)]
>[-l locale] <-k query_key>
>
>If  is "system" you may use these system keys: "modulelist",
>"modulelistnames", and "localelist".
>Valid search_type values are: regex, multiword, and phrase(def).
>Valid option_filters values are: n (Strong's numbers),
>  f (Footnotes), m (Morphology), h (Section Headings),
>c (Cantillation), v (Hebrew Vowels), a (Greek Accents), p (Arabic
>Vowels)
>  l (Lemmas), s (Scripture Crossrefs), r (Arabic Shaping),
>  b (Bi-Directional Reordering), x (Red Words of Christ)
>Maximum verses may be any integer value
>Valid output_format values are: GBF, ThML, RTF, HTML, OSIS, CGI, and
>plain
>(def)
>
>Valid output_encoding values are: Latin1, UTF8 (def), UTF16, HTML, and
>RTF
>Valid locale values depend on installed locales. en is default.
>The query_key must be the last argument because all following
>  arguments are added to the key.
>
>Example usage:
>  diatheke -b KJV -o fmnx -k Jn 3:16
>  diatheke -b WHNU -t Latin -o mn -k Mt 24
>  diatheke -b KJV -s phrase -r Mt -k love
>
>C:\Users\Familie\Desktop\SWORD\TEST\installmgr>/
>
>And this is the output for: diatheke -b system -k modulelist
>/C:\Users\Familie\Desktop\SWORD\TEST\installmgr>diatheke -b system -k
>modulelist
>Biblical Texts:
>Commentaries:
>Dictionaries:
>Generic books:/
>
>
>It looks like it doesn't find my modules...
>I've created the "mods.conf" and the "mods.d" in the directory
>containing
>the diatheke.exe the modules are installed in the same directory
>("C:\Users\Familie\Desktop\SWORD\TEST\installmgr").
>SWORD_PATH is set to
>"SWORD_PATH=C:\Users\Familie\Desktop\SWORD\TEST\installmgr"!
>Installmgr finds the SWORD_PATH, it works and installs the modules to
>the
>directory...
>
>Is there something I've missed?
>-kind regards,
>Paul
>
>
>
>
>
>--
>View this message in context:
>http://sword-dev.350566.n4.nabble.com/Diatheke-doen-t-show-anything-tp4653226p4653230.html
>Sent from the SWORD Dev mailing list archive at Nabble.com.
>
>___
>sword-devel mailing list: sword-devel@crosswire.org
>http://www.crosswire.org/mailman/listinfo/sword-devel
>Instructions to unsubscribe/change your settings at above page

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke doen't show anything...

2013-11-08 Thread pHep
Thank you for your help!

But I did some tests...
This is the Output for diatheke without arguments:
/C:\Users\Familie\Desktop\SWORD\TEST\installmgr>diatheke
Diatheke command-line SWORD frontend Version 4.5
Copyright 1999-2009 by the CrossWire Bible Society
http://www.crosswire.org/sword/diatheke/
usage:
  diatheke <-b module_name> [-s search_type] [-r search_range]
[-o option_filters] [-m maximum_verses] [-f output_format]
[-e output_encoding] [-t script] [-v variant#(-1=all|0|1)]
[-l locale] <-k query_key>

If  is "system" you may use these system keys: "modulelist",
"modulelistnames", and "localelist".
Valid search_type values are: regex, multiword, and phrase(def).
Valid option_filters values are: n (Strong's numbers),
  f (Footnotes), m (Morphology), h (Section Headings),
  c (Cantillation), v (Hebrew Vowels), a (Greek Accents), p (Arabic Vowels)
  l (Lemmas), s (Scripture Crossrefs), r (Arabic Shaping),
  b (Bi-Directional Reordering), x (Red Words of Christ)
Maximum verses may be any integer value
Valid output_format values are: GBF, ThML, RTF, HTML, OSIS, CGI, and plain
(def)

Valid output_encoding values are: Latin1, UTF8 (def), UTF16, HTML, and RTF
Valid locale values depend on installed locales. en is default.
The query_key must be the last argument because all following
  arguments are added to the key.

Example usage:
  diatheke -b KJV -o fmnx -k Jn 3:16
  diatheke -b WHNU -t Latin -o mn -k Mt 24
  diatheke -b KJV -s phrase -r Mt -k love

C:\Users\Familie\Desktop\SWORD\TEST\installmgr>/

And this is the output for: diatheke -b system -k modulelist
/C:\Users\Familie\Desktop\SWORD\TEST\installmgr>diatheke -b system -k
modulelist
Biblical Texts:
Commentaries:
Dictionaries:
Generic books:/


It looks like it doesn't find my modules... 
I've created the "mods.conf" and the "mods.d" in the directory containing
the diatheke.exe the modules are installed in the same directory
("C:\Users\Familie\Desktop\SWORD\TEST\installmgr").
SWORD_PATH is set to
"SWORD_PATH=C:\Users\Familie\Desktop\SWORD\TEST\installmgr"!
Installmgr finds the SWORD_PATH, it works and installs the modules to the
directory...

Is there something I've missed?
-kind regards,
Paul





--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Diatheke-doen-t-show-anything-tp4653226p4653230.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke doen't show anything...

2013-11-07 Thread Chris Little
I suspect Greg is correct that Diatheke isn't finding your Sword module 
path. But you might also simply try running 'diatheke' (no arguments). 
If it prints the help text, you've at least got a working binary. If it 
fails to print anything at all, there's a problem with the binary, the 
Sword DLL, linking, or similar. It should really throw up an error 
dialog in that case, but I've admittedly never tried the utilities on 
Win 8 or 8.1.


--Chris


On 11/07/2013 01:49 PM, Greg Hellings wrote:

Paul,

The first thing to test is if diatheke is actually finding your install.
To do this, ask diatheke to give you a module list:

diatheke -b system -k modulelist

If that lists KJV, then the problem is with diatheke or its filter. If
that doesn't list any entries, then it's not finding your install
directory properly. Others might be able to advise you more on that
(Perhaps diatheke has a "verbose" switch while doing this. I haven't
tried to diagnose diatheke problems in a little while so that
information isn't on the top of my head.)

--Greg


On Thu, Nov 7, 2013 at 3:40 PM, pHep mailto:paul.hep...@gmx.de>> wrote:

Hi,

I've got a problem with diatheke!

I've successfully compiled installmgr, libsword, ... and diatheke! (I'm
working on Windows 8.1 And VS2012)

I've installed the KJV module with the installmgr. Now I'm trying to
lookup
a verse with diatheke but it doesn't show anything...

That's my cmd output:
/C:\Users\Familie\Desktop\SWORD\TEST\installmgr>diatheke -b KJV -k G 1:1

C:\Users\Familie\Desktop\SWORD\TEST\installmgr>/

No error and no text...

I've the mods.d and mods.conf installed at the working dir and also
set the
SWORD_PATH to the working dir!

What might there be wrong?

Regards and God bless you
Paul




--
View this message in context:

http://sword-dev.350566.n4.nabble.com/Diatheke-doen-t-show-anything-tp4653226.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke doen't show anything...

2013-11-07 Thread Greg Hellings
Paul,

The first thing to test is if diatheke is actually finding your install. To
do this, ask diatheke to give you a module list:

diatheke -b system -k modulelist

If that lists KJV, then the problem is with diatheke or its filter. If that
doesn't list any entries, then it's not finding your install directory
properly. Others might be able to advise you more on that (Perhaps diatheke
has a "verbose" switch while doing this. I haven't tried to diagnose
diatheke problems in a little while so that information isn't on the top of
my head.)

--Greg


On Thu, Nov 7, 2013 at 3:40 PM, pHep  wrote:

> Hi,
>
> I've got a problem with diatheke!
>
> I've successfully compiled installmgr, libsword, ... and diatheke! (I'm
> working on Windows 8.1 And VS2012)
>
> I've installed the KJV module with the installmgr. Now I'm trying to lookup
> a verse with diatheke but it doesn't show anything...
>
> That's my cmd output:
> /C:\Users\Familie\Desktop\SWORD\TEST\installmgr>diatheke -b KJV -k G 1:1
>
> C:\Users\Familie\Desktop\SWORD\TEST\installmgr>/
>
> No error and no text...
>
> I've the mods.d and mods.conf installed at the working dir and also set the
> SWORD_PATH to the working dir!
>
> What might there be wrong?
>
> Regards and God bless you
> Paul
>
>
>
>
> --
> View this message in context:
> http://sword-dev.350566.n4.nabble.com/Diatheke-doen-t-show-anything-tp4653226.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] Diatheke doen't show anything...

2013-11-07 Thread pHep
Hi,

I've got a problem with diatheke!

I've successfully compiled installmgr, libsword, ... and diatheke! (I'm
working on Windows 8.1 And VS2012)

I've installed the KJV module with the installmgr. Now I'm trying to lookup
a verse with diatheke but it doesn't show anything...

That's my cmd output:
/C:\Users\Familie\Desktop\SWORD\TEST\installmgr>diatheke -b KJV -k G 1:1

C:\Users\Familie\Desktop\SWORD\TEST\installmgr>/

No error and no text...

I've the mods.d and mods.conf installed at the working dir and also set the
SWORD_PATH to the working dir!

What might there be wrong?

Regards and God bless you
Paul




--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Diatheke-doen-t-show-anything-tp4653226.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke Patch (was Re: Next version)

2013-04-09 Thread Raphaël Pinson
Hi,

Actually, I had another reason to suggest adding these to Diatheke.
Specifically, I'd like to have get to a full LaTeX exporter at some point,
i.e. supporting the options (Word of Christ in Red, etc.). I don't really
see how that could be done without using the API.

Any idea?


God bless

Raphaël


On Sun, Mar 31, 2013 at 8:56 PM, Peter von Kaehne  wrote:

> On Sun, 2013-03-31 at 09:21 -0500, Greg Hellings wrote:
>
> >  I don't know the limits of LaTeX and whether a custom exporter
> > program is feasible, but is there any particular reason to not want
> > changes to Diatheke?
>
> Only starting now to get to grips with latex, but FWIW, Latex allows
> embedding of various languages into new macros, so a use of e.g. the
> Perl bindings within Latex is entirely feasible and would be a great
> addition.
>
> I think that is the way to go and not via some circuitous shell
> construct.
>
> Peter
>
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke Patch (was Re: Next version)

2013-03-31 Thread Peter von Kaehne
On Sun, 2013-03-31 at 09:21 -0500, Greg Hellings wrote:

>  I don't know the limits of LaTeX and whether a custom exporter
> program is feasible, but is there any particular reason to not want
> changes to Diatheke?

Only starting now to get to grips with latex, but FWIW, Latex allows
embedding of various languages into new macros, so a use of e.g. the
Perl bindings within Latex is entirely feasible and would be a great
addition.

I think that is the way to go and not via some circuitous shell
construct. 

Peter 


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Diatheke Patch (was Re: Next version)

2013-03-31 Thread Greg Hellings
On Sun, Mar 31, 2013 at 3:35 AM, Chris Little wrote:

> On 3/30/2013 12:54 PM, Greg Hellings wrote:
>
>> There was a patch just the other day to add a few small command-line
>> options to diatheke.
>>
>>  I'd really prefer that this patch not be added, especially not without
> discussion. I see these types of formatting options/decisions as being
> appropriate to post-processing regexes, not changes to a front end.
> Diatheke isn't a text exporter and won't necessarily output in the way that
> is most convenient to your particular unspecified use. If it doesn't work
> for you, filter diatheke's output or write your own tool.


The person proposing this change is writing LaTeX functions that a user can
use to embed scripture quotations directly into the generated files. He is
currently using post-processing regular expressions but these options would
eliminate the possibility of problems with the regular expressions.

Since Diatheke already has quite a few options for changing its formats and
filters, stripping the extra markers seems reasonable for applications like
this one where having a C or C++ file do the exporting might not be
feasible. I don't know the limits of LaTeX and whether a custom exporter
program is feasible, but is there any particular reason to not want changes
to Diatheke?

--Greg
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

[sword-devel] Diatheke formatting options

2013-03-26 Thread Raphaël Pinson
Hello,

For some time, I've been struggling with Diatheke's output, piping it
into sed and other string editors when I need to grab simple verses.

To make things easier, I'm attaching a patch to this email which adds
3 flags to Diatheke:

  * --no-refs suppresses reference printing in output
  * --no-mod-name suppresses the module name in output
  * --no-newlines replaces new lines with a space in output

When combining the 3 flags, Diatheke outputs the all the verses as a
single paragraph without references or module name.

Here are a few examples:

$ diatheke -b KJV -k Jn 3:16-17
John 3:16:
For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting
life.

John 3:17: For God sent not his Son into the world to condemn the
world; but that the world through him might be saved.

(KJV)

$ diatheke -b KJV --no-mod-name -k Jn 3:16
John 3:16:
For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting
life.

John 3:17: For God sent not his Son into the world to condemn the
world; but that the world through him might be saved.


$ diatheke -b KJV --no-refs -k Jn 3:16-17

For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting
life.

For God sent not his Son into the world to condemn the world; but that
the world through him might be saved.

(KJV)

$ diatheke -b KJV --no-refs --no-mod-name --no-newlines -k Jn 3:16-17

For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting
life.
 For God sent not his Son into the world to condemn the world; but
that the world through him might be saved.




Blessings,


Raphaël


diatheke_opts.patch
Description: Binary data
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Diatheke + XHTML

2012-09-17 Thread David Haslam
Chris,

Re: http://www.crosswire.org/tracker/browse/MODTOOLS-29

If I (or anyone else) wished to use diatheke to export a substantial part or
all of a module (one with red-letters for Words of Jesus) to a standalone
RTF file, I don't see any valid reason to not include the single line to
define the font color information. Omitting it was a mistake, I contend.
Something that was probably overlooked from the very early days.

I've done all the homework, even specified the simplest contents of the
missing line.
All that needs to be done is a minor tweak to the source code.

If some front-ends happen to make use of RTF output from the engine (via
diatheke), that really has little bearing on the issue.

David





--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Diatheke-XHTML-tp4651002p4651031.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke + XHTML

2012-09-16 Thread Greg Hellings
On Sun, Sep 16, 2012 at 7:27 PM, Chris Little  wrote:
> On 09/15/2012 12:19 PM, David Haslam wrote:
>>
>> Greg,
>>
>> While you're into the code for Diatheke, please see if you can fix the RTF
>> font color table issue as well.
>
>
> I would contend that we should move in the opposite direction and eliminate
> all of the extra wrapper-type-stuff that diatheke generates to make more
> complete RTF & HTML documents.
>

This. Also, I refuse to interact with RTF unless someone is paying me well.

--Greg

> The typical use for diatheke today is to determine the result of a Sword
> query run through some set of option and render filters. The precision of
> this is degraded by the extra stuff diatheke inserts to make aid RTF & HTML
> rendering.
>
> --Chris
>
>
>
> ___
> sword-devel mailing list: sword-devel@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke + XHTML

2012-09-16 Thread Chris Little

On 09/15/2012 12:19 PM, David Haslam wrote:

Greg,

While you're into the code for Diatheke, please see if you can fix the RTF
font color table issue as well.


I would contend that we should move in the opposite direction and 
eliminate all of the extra wrapper-type-stuff that diatheke generates to 
make more complete RTF & HTML documents.


The typical use for diatheke today is to determine the result of a Sword 
query run through some set of option and render filters. The precision 
of this is degraded by the extra stuff diatheke inserts to make aid RTF 
& HTML rendering.


--Chris


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Diatheke + XHTML

2012-09-15 Thread David Haslam
Greg,

While you're into the code for Diatheke, please see if you can fix the RTF
font color table issue as well.

I can't access JIRA right now. See
http://www.crosswire.org/bugs/JiraLockedError

David





--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Diatheke-XHTML-tp4651002p4651004.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Diatheke + XHTML

2012-09-15 Thread Greg Hellings
The following patch adds XHTML output support to Diatheke and also
updates the help text to reflect the support for HTMLHREF and XHTML.

--Greg


diatheke-xhtml-support.patch
Description: Binary data
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

  1   2   3   >