Re: [sword-devel] Bishop for Android 1.0.7

2018-03-27 Thread Karl Kleinpaste
On 03/27/2018 06:48 PM, Troy A. Griffitts wrote:
> Let me know if 1.0.7 has troubles still on your 6.0 tablet.



OK, so hitting About didn't /actually/ put the app into a hard lock-up.
It just looked exactly like that, to the resolution of 50x of the
typical time frame that Joe Average expects when asking for About.

When I was getting this new tablet(*) configured, I copied my entire
module set into it. There are 450+ Bibles in there, out of almost 800
total, and the About handler is going to the trouble to crawl around
mods.d/*.conf for ALL of them. It takes upwards of half a minute, and
previously I had killed it off after waiting maybe 10 or 15
seconds...because it /looked/ like a hard lock-up when all I wanted was,
you know, About. Then I set it down while "locked up," to start writing
this email, and...

E, OK, so Joe Average Android User is not going to have 450 Bibles
installed. But as a matter of UI clarity, I'm unconvinced that reviewing
the Description of every single installed Bible is particularly useful.
A control to get that from a displayed Bible, or from a list of
installed Bibles, would be preferable.

--karl

* Walmart special, last year's model, used mostly as a Kindle + social
media device, website order only (no longer in stores):
  
https://www.walmart.com/ip/RCA-Viking-Pro-10-1-Android-2-in-1-Tablet-32GB-Quad-Core/45804387
___
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] Bishop for Android 1.0.7

2018-03-27 Thread Troy A. Griffitts
I hadn't updated http://crosswire.org/bishop.apk with 1.0.7 previous. 
It is there now.

I could include the version date in the URL each time, but then it would
change, making it inconvenient to remember what's the latest URL.  I
suppose we could symlink it each time, but then it becomes a much more
complex release task than: scp bishop.apk crosswire.org:/html/


Let me know if 1.0.7 has troubles still on your 6.0 tablet.  I am
surprised to hear from you and MPJ on the older tablets.  I tested with
an emulator running Android 4.1 and on my TV, which runs something crazy
old and both worked after I reverted a few things (which I wouldn't have
expected to be 'new'):

Java:
c-tor JSONArray([])

JavaScript:
Array.prototype.includes -> Array.prototype.indexOf !== -1
Array.prototype.find -> Array.prototype.filter.shift

I did add the display of the .conf ShortPromo in the About box after the
about section of each module.  Could it be related to a specific module,
maybe?

Troy

On 03/27/2018 06:10 AM, Karl Kleinpaste wrote:
> 2 things:
> - it would be nice if the app's version stamp could be part of the
> downloaded filename, when accessing from crosswire, so we know if
> we're getting an update or if we already have that.
> - on my 6.0 tablet, "About" completely hangs the app -- just stops
> dead cold with the sidebar out.
>
>
> ___
> 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-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
> > 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  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 

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 

Re: [sword-devel] Bishop for Android 1.0.7

2018-03-27 Thread Karl Kleinpaste
2 things:
- it would be nice if the app's version stamp could be part of the
downloaded filename, when accessing from crosswire, so we know if we're
getting an update or if we already have that.
- on my 6.0 tablet, "About" completely hangs the app -- just stops dead
cold with the sidebar out.
___
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] TEI2MOD - Output File Names

2018-03-27 Thread Johan
Please help.

 

I am using this command to create a SWORD dictionary module from TEI.

tei2mod ./modules/lexdict/zld/ts2009en/ TS2009enVer100.txt -z -c ts2009en

 

The output message is the following:

tei2mod normalized 1 verses to NFC

Suggested conf (replace ??? with appropriate values)

[ts2009en]

DataPath=./modules/lexdict/zld/ts2009en/dict

Description=???

SourceType=TEI

Encoding=UTF-8

ModDrv=zLD

CompressType=ZIP

CipherKey=ts2009en

 

It produces the files correctly, but the file names are all "dict.xxx", I
expected them to be "ts2009en.xxx".

 

Are these ("dict.xxx") the correct file names, is there a way to rather
produce "ts2009en.xxx"?

 

Thank you,

 

Johan Marais

 

 

___
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] Bishop for Android 1.0.7

2018-03-27 Thread Michael Johnson
You are welcome.
1.0.7 got farther on the old Android tablet. I was able to slide the menu out 
and change locations once. Then I tried to slide the menu out again, and it 
slid out, but it was just a blank, gray rectangle with no controls on it. :-(

On 03/26/2018 11:48 AM, Troy A. Griffitts wrote:
> Thanks for testing on older devices, Michael,
>
> It's a wonder what doesn't work.  I've fired up an old emulator and
> think the log is clear now of errors.  Please let me know how 1.0.7
> does.  Just pushed to the store.
>
>
> On 03/25/2018 05:22 PM, Michael Johnson wrote:
>> Alas, on my Acer Android 4.4.2 tablet, after the basic install, the menu 
>> icon fails to respond to a tap. This one is more of a problem. I don't see 
>> the same problem on my Motorola Android 7.1.1 phone, so it may be something 
>> to do with the older Android version. There are still a lot of older Android 
>> devices out there, and they usually can't be upgraded to newer versions of 
>> Android OS by average users.
>>
>>
>> On 03/26/2018 08:11 AM, Michael Johnson wrote:
>>> I just added the older Android tablet to the test set, with a fresh install 
>>> to verify that the basic set installation worked. It did. :-) I also did a 
>>> fresh install on iOS, and that worked. So far, so good...
>>>
>>> On 03/26/2018 08:06 AM, Michael Johnson wrote:
 Nice! Thank you, Troy!
 One tiny detail I noticed was a quick display of NaN% done while starting 
 a download. A conditional test for divide by zero might make that display 
 look a little more professional. (It seems to do no harm this way, and few 
 people would notice this, but I'm trained to pay attention to details.)

 I have loaded the new version on my iPhone, iPad, and Motorola Android 
 phone, and will be checking them out. The new icon is an improvement.

 On 03/26/2018 07:05 AM, Troy A. Griffitts wrote:
> OK, new Bishop 1.0.6 build for iOS is available and matches Android. 
> BibleSync on iOS is very untested as I don't have a device.  I wouldn't
> be surprised if turning it on crashed the app... but it's there in some
> infantile state.
>
> Also figured out how to add an icon :)  It's not the greatest.  I used
> the same icon from Android as both the icon and splash screen.  It looks
> pretty bad on the simulator, but at least it's not the Cordova blockhead.
>
> https://crosswire.org/bishop/manifest.plist
>
> https://crosswire.org/bishop.ipa
>
> Let me know if you have a chance to try.
>
> Troy
>
>
> On 03/25/2018 06:26 AM, Troy A. Griffitts wrote:
>> 1.0.6 has been pushed and includes:
>>
>> Better BibleSync support (thanks Karl!)
>>
>>     Allows on/off
>>
>>     New settings for BibleSync User Name and Passphrase
>>
>> Better Word Study support:
>>
>>     New setting to select Word Study module.
>>
>>     Any def modules work (previously was hardcoded to 'StrongsGreek' and
>> 'StrongsHebrew')
>>
>>     If either a Strongs Bible, Strongs Greek lex, or Strongs Hebrew lex
>> is not installed, now offers basic module set.  Not perfect, as it will
>> re-install modules in the basic set if they already exist, but not bad.
>>
>>
>> These haven't been pushed to Apple yet, as the java-jni bindings were
>> updated for both of these main features and thus the Swift bindings need
>> to come up to sync.
>>
>> Feedback welcome.  Blessings for your Sunday,
>>
>> Troy
>>
>>
>>
>> On 03/23/2018 05:12 AM, Michael Johnson wrote:
>>> On 03/23/2018 10:26 AM, Troy A. Griffitts wrote:
 ...
 Regarding anything left before promoting general usage...

 I still think one flaw to fix before promoting the app for general use
 is the warning when a module necessary for a function isn't installed.

 It's a pretty simple change.  When someone selects "Verse Study" / 
 "Word
 Study" and no Strongs lexicon is installed or no Bible module with
 Strongs is installed, then a popup suggesting to add the KJV +
 StrongsGreek + StrongsHebrew can be shown.

 Along with this though, I'd like to let the user choose which Greek and
 which Hebrew lexicon they would like to use.  I know the Xiphos repo 
 has
 something like StrongsRealGreek and StrongsRealHebrew and we also
 reference the Liddell-Scott from SWORDWeb, which could be a choice for
 online users... Probably others.  And with those selection options 
 under
 Settings, maybe we could add a Word Study Bible choice which let's a
 user pick, say the KJV as their Strongs Bible for word studies, but
 maybe they like to normally read a different Bible as their primary 
 text.

 Anway, the warning is a small change and I think