[sword-devel] Diatheke ?

David Haslam dfhdfh at protonmail.com
Wed Mar 21 02:07:22 MST 2018


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: <w savlm="strong:H03068"><divineName>Lord</divineName></w>, <w  savl
m="strong:H07231">how are they increased</w> <w savlm="strong:H06862">that troub
le</w> <w savlm="strong:H07227">me! many</w> <transChange type="added">are</tran
sChange> <w  savlm="strong:H06965">they that rise up</w> against me.
<title canonical="true" type="psalm"><w savlm="strong:H04210">A Psalm</w> <w sav
lm="strong:H01732">of David</w>, <w savlm="strong:H01272">when he fled</w> <w sa
vlm="strong:H06440">from</w> <w savlm="strong:H053">Absalom</w> <w savlm="strong
:H01121">his son</w>.</title>Psalms 3:2: <w savlm="strong:H07227">Many</w> <tran
sChange type="added">there be</transChange> <w  savlm="strong:H0559">which say</
w> <w savlm="strong:H05315">of my soul</w>, <transChange type="added">There is</
transChange> <w savlm="strong:H03444">no help</w> <w savlm="strong:H0430">for hi
m in God</w>. <w savlm="strong:H05542">Selah</w>.
Psalms 3:3: <w savlm="strong:H03068">But thou, O <divineName>Lord</divineName></
w>, <transChange type="added">art</transChange> <w savlm="strong:H04043">a shiel
d</w> <w savlm="strong:H03519">for me; my glory</w>, <w  savlm="strong:H07311">a
nd the lifter up</w> <w savlm="strong:H07218">of mine head</w>.
Psalms 3:4: <w  savlm="strong:H07121">I cried</w> <w savlm="strong:H03068">unto
the <divineName>Lord</divineName></w> <w savlm="strong:H06963">with my voice</w>
, <w  savlm="strong:H06030">and he heard</w> <w savlm="strong:H06944">me out of
his holy</w> <w savlm="strong:H02022">hill</w>. <w savlm="strong:H05542">Selah</
w>.
Psalms 3:5: <w  savlm="strong:H07901">I laid me down</w> <w  savlm="strong:H0346
2">and slept</w>; <w  savlm="strong:H06974">I awaked</w>; <w savlm="strong:H0306

Aside: My SWORD path is subst drive S: and I have symbolic links to the locations for the different installed and downloaded utilities.

It would seem that the default output format has been surreptitiously changed from plain to internal.

Was this UI default change intended?   Looks as if the answer is "yes":

S:\>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 <greg.hellings at gmail.com> 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.hellings at gmail.com> wrote:
>
>> I'm not so sure your initial assertion is correct.
>>
>> $ diatheke -b KJV -o h -k Ps 3
>> Psalms 3:1: <w savlm="strong:H03068"><seg><divineName>Lord</divineName></seg></w>, <w  savlm="strong:H07231">how are they increased</w> <w savlm="strong:H06862">that trouble</w> <w savlm="strong:H07227">me! many</w> <transChange type="added">are</transChange> <w  savlm="strong:H06965">they that rise up</w> against me.
>> <title canonical="true" type="section"><w savlm="strong:H04210">A Psalm</w> <w savlm="strong:H01732">of David</w>, <w savlm="strong:H01272">when he fled</w> <w savlm="strong:H06440">from</w> <w savlm="strong:H053">Absalom</w> <w savlm="strong:H01121">his son</w>.</title>Psalms 3:2: <w savlm="strong:H07227">Many</w> <transChange type="added">there be</transChange> <w  savlm="strong:H0559">which say</w> <w savlm="strong:H05315">of my soul</w>, <transChange type="added">There is</transChange> <w savlm="strong:H03444">no help</w> <w savlm="strong:H0430">for him in God</w>. <w savlm="strong:H05542">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 <dfhdfh at protonmail.com> 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 <dfhdfh at protonmail.com> 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 at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180321/5410c404/attachment-0001.html>


More information about the sword-devel mailing list