Re: [sword-devel] Greek/Hebrew Reader screenshots

2021-05-22 Thread Jeff Becker
Thank you for the feedback (not included here).  

 

I think I've figured out what I'd like to do:

-  Stay with Web delivery of this content

o   Screenshot_1
Screenshot_2
Screenshot 3
   Screenshot 4
   (see details below)

-  Implement the Crosswire / SWORD Project content (adhering to all
applicable licensing)

o   Including multilingual content and flexibility (English only seems
short-sighted)

-  Continue developing in ASP.Net / IIS / Visual Studio / CLR

o   Even after considering all of the suggestions and reviewing available
applications (partly because it's my wheelhouse)

-  Develop reusable code for the MS platform and make it available
for download  

o   I'd like to see a wrapper that parallels the existing Crosswire / SWORD
Project code base so that developers can easily implement it in VS20xx 

o   Possibly a dll that runs under MS Common Language Runtime (CLR) so that
it's readily available for C#, VB, C++, etc. developers (I'm not sure if
just making source code available is enough)

-  Find or develop a database of English (or any available language)
words derived from Biblical Greek words

o   Does anyone know anything about 'English derivatives from the Greek New
Testament' by Charles Van der Pool?

 

So, if that's acceptable, I could use some help getting started:

-  Advice from others who have developed in Visual Studio (the
latest code that I was able to find was for VS 2013)

-  A document or Wiki that would get content available in Windows
10, Windows Server 2019, etc.

-  Instructions on how to make this compliant with Crosswire / SWORD
Project standards including licensing of content

 

Thanks again for any help you can provide.

 

Jeff Becker

 

From: sword-devel [mailto:sword-devel-boun...@crosswire.org] On Behalf Of
Jeff Becker
Sent: Saturday, May 15, 2021 9:09 PM
To: 'SWORD Developers' Collaboration Forum'
Subject: [sword-devel] Greek/Hebrew Reader screenshots

 

Here are some screenshots of the Greek/Hebrew Reader that I've been
describing.

 

Some points of interest:

-  'guid=' in URL just indicates the user id used as a record key
for preferences and bookmarks on the server;

-  Navigation buttons shift to left for Hebrew to be out of the way
as much as possible;

-  Bookmark is stored when a verse reference number is
clicked/touched;

-  Shaded bookmark (paperclip) button: shaded at top means that
server has outdated info, bottom means bookmarks need to be downloaded;

-  Font enlarge and shrink buttons (per device basis);

-  Arrow buttons: up/down to top/bottom; center button scrolls to
current bookmark; left goes to previous chapter/book; right to next
chapter/book;

-  Banner at top displays relevant information and links (I'd like
to make this customizable for readers of varying skill levels);

-  Options panel displays when bookmark (paperclip) is clicked;

-  'Select / Go To Bookmark' displays select of stored bookmarks
(per user based on guid, see additional screenshot);

-  Books are marked as 'Done' when on the last chapter of the book
and the 'Next Chapter/Book' button is selected;

-  Reading plan is selected through select prompt;

-  Red text on Upload / Download buttons shows that client or server
has later information (also displayed in shading of paperclip nav button);

-  'Move verse to top on Click' scrolls bookmarked verse to top of
window when verse number is clicked;

-  'Store v1 on Next Chapter Click' automatically updates current
bookmark to next chapter/book when Next button is clicked;

-  Current bookmark is displayed;

-  Previous / Next are chapters in reading plan (not that 'Next'
shows Matthew 1 after Mark 16 based on Daniel Wallace's reading plan;

-  Cookies are for debugging purposes;

-  Text is currently just a cleaned up version of the BibleHub
Interlinear page;

 

The BibleHub page content is the main problem that I'd like to change next
and, as such, is the main reason for all of this communication.  I'd like to
replace it with licensed content that is easier to control and display.

 

I hope that explains things better.

 

Jeff

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

Re: [sword-devel] Efficiently extracting section + chapter headers

2021-05-22 Thread Troy A. Griffitts
Hi Tobias. Have a look at sword/examples/cmdline/search.cpp. I believe it takes 
an optional range parameter.



On May 22, 2021 7:49:48 PM GMT+02:00, Tobias Klein  wrote:
>Hi Troy,
>
>I can't seem to get the scope parameter of the search function right
>... 
>I either get crashes or no results.
>
>How do I have to initialize the scope parameter for the module search
>so 
>that I get the headings for one particular Bible book as search
>results?
>
>Best regards,
>Tobias
>
>On 4/12/21 9:07 PM, Troy A. Griffitts wrote:
>> Sure Tobias,
>>
>> module->getEntryAttributes() will allow you to pull the headings from
>a
>> verse, and
>>
>> an Entry Attributes search for '/Heading' will give you only the
>verses
>> with Heading entries attributes.
>>
>> I've thrown together a quick example here, which you can use with
>> something like:
>>
>> ./showHeadings NASB Matt-John
>>
>> which will give you the headings from the Gospels.
>>
>> https://crosswire.org/svn/sword/trunk/examples/tasks/findHeadings.cpp
>>
>> Creating this example, I found I needed to fix a bug in the engine. 
>The
>> engine Entry Attributes search lets you search for values in the
>entry
>> attributes (e.g., a Strong's number 1234).  In your use case, when
>> searching, you don't care about the value; you only care about
>> presence.  This wasn't working, but simple presence can now be
>searched
>> for with my latest commit.
>>
>> Hope this helps,
>>
>> Troy
>>
>>
>> On 4/12/21 9:31 AM, Tobias Klein wrote:
>>> Hi,
>>>
>>> I have been getting a request from a user to render section headings
>independently of the currently opened bible translation module.
>>>
>>> So for example when opening the KJV still using the section/chapter
>headers of the NASB.
>>>
>>> This would be useful in those cases when the respective bible
>translation module does not come with section/chapter headers, but
>another one does.
>>>
>>> A requirement would be to efficiently extract section/chapter
>headers from a module using the SWORD API. As of now I only see that
>you can iterate over the verses of a book and individually scan each
>verse for the headers. Is there a more efficient way of doing that?
>>>
>>> Another use case could be to render a book outline. This is what I
>am already doing now in Ezra, but in a way that is not so clean (I am
>traversing the DOM looking for all section header elements of the
>current book).
>>>
>>> Best regards,
>>> Tobias
>>> ___
>>> 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 mailing list: sword-devel@crosswire.org
>> http://crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>___
>sword-devel mailing list: sword-devel@crosswire.org
>http://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://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Efficiently extracting section + chapter headers

2021-05-22 Thread Tobias Klein

Hi Troy,

I can't seem to get the scope parameter of the search function right ... 
I either get crashes or no results.


How do I have to initialize the scope parameter for the module search so 
that I get the headings for one particular Bible book as search results?


Best regards,
Tobias

On 4/12/21 9:07 PM, Troy A. Griffitts wrote:

Sure Tobias,

module->getEntryAttributes() will allow you to pull the headings from a
verse, and

an Entry Attributes search for '/Heading' will give you only the verses
with Heading entries attributes.

I've thrown together a quick example here, which you can use with
something like:

./showHeadings NASB Matt-John

which will give you the headings from the Gospels.

https://crosswire.org/svn/sword/trunk/examples/tasks/findHeadings.cpp

Creating this example, I found I needed to fix a bug in the engine.  The
engine Entry Attributes search lets you search for values in the entry
attributes (e.g., a Strong's number 1234).  In your use case, when
searching, you don't care about the value; you only care about
presence.  This wasn't working, but simple presence can now be searched
for with my latest commit.

Hope this helps,

Troy


On 4/12/21 9:31 AM, Tobias Klein wrote:

Hi,

I have been getting a request from a user to render section headings 
independently of the currently opened bible translation module.

So for example when opening the KJV still using the section/chapter headers of 
the NASB.

This would be useful in those cases when the respective bible translation 
module does not come with section/chapter headers, but another one does.

A requirement would be to efficiently extract section/chapter headers from a 
module using the SWORD API. As of now I only see that you can iterate over the 
verses of a book and individually scan each verse for the headers. Is there a 
more efficient way of doing that?

Another use case could be to render a book outline. This is what I am already 
doing now in Ezra, but in a way that is not so clean (I am traversing the DOM 
looking for all section header elements of the current book).

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

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