Re: [sword-devel] Where is the source code for individual SWORD modules?

2023-10-20 Thread Aaron Rainbolt
On Sat, Oct 21, 2023 at 12:20 AM Greg Hellings  
wrote:


In general the imported file will not be available since it is not the source 
of those modules. Other than for the KJV itself, Crosswire is not the 
authoritative source of the texts. Often any OSIS file is a product of a 
conversation from the original source. If anything has been kept it should be a 
script to produce that OSIS file so that, if the source material is updated, 
the module can be automatically created from it. Very old modules which have 
not been updated in a decade+ might not have any reproducible material floating 
around at all if they predate that process.


Well, right, I get that, but when the text I want to get at is in the 
form of a SWORD module, I don't need the authoritative source, I just 
need something I can parse and turn into what I want. Which it turns out 
mod2imp will give me, so I guess I don't need the OSIS / TEI / ThML 
sources after all. I just expected that Crosswire probably had them 
somewhere since https://wiki.crosswire.org/DevTools:Modules mentioned 
that Crosswire only accepted module source code when submitting a 
module, not a pre-built module.


The KJV(A) module pair are the exception to this and should be located on the 
server somewhere.

As for generating LaTeX, I thought the engine could already do that? I thought 
Peter had added a filter for that back when he was doing some work with the 
texts. You should be able to iterate module and generate the text from there, 
if a render filter exists for LaTeX. If not, now would be a great time for you 
to learn the filter API (it is akin to an XML SAX style of interface) and write 
one!


mod2imp claims to be able to generate LaTeX (something like `mod2imp -r 
LATEX AKJV`) but at least the Ubuntu build of libsword-utils mod2imp is 
broken in this regard - any time I try to use any of the filters, it 
tells me "mod2imp: Unknown argument: LATEX" or something similar for 
every single possible output format (OSIS, XHTML, RTF, etc.). I should 
try to build SWORD from source and see if that behaves any better.


I don't know what XML SAX even is but it sounds difficult and scary :P 
Might be fun to look into if I get the time though.


Thanks for your help!

Aaron


--Greg

On Fri, Oct 20, 2023, 23:28 Aaron Rainbolt  wrote:


Gah, I am forgetful. I can just use mod2imp to get parsable text. It's
not exactly what I was looking for but it'll work good enough :D

On 10/20/23 23:15, Aaron Rainbolt wrote:
> I don't know if I'm just blind or if these aren't public, but I cannot
> find the OSIS (or whatever format) code for individual SWORD modules
> in the Crosswire repository. Specifically I'm trying to find the
> source for the AKJV module. I'd like to take the code and parse it
> myself for a project of my own (I'm trying to typeset the AKJV
> translation using LaTeX, and may want to do the same sort of thing
> with other modules). As it is, I'm having to open the modules in
> Xiphos, and then copy and paste their text one chapter at a time into
> my formatting tools, which is... cumbersome. If I could get the source
> code for the modules, I could just write a parser that would do the
> whole job for me in one go.
>
> Are the OSIS sources kept private intentionally? If not, where would I
> find them to download them?
>
> (Note that I understand why some modules' source code might be
> private, for things like the NASB module. But it would be nice if the
> code for public domain or otherwise permissively licensed modules were
> available for public download.)
>
___
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


Re: [sword-devel] Where is the source code for individual SWORD modules?

2023-10-20 Thread Timothy Allen

On 21/10/23 15:15, Aaron Rainbolt wrote:
I don't know if I'm just blind or if these aren't public, but I cannot 
find the OSIS (or whatever format) code for individual SWORD modules 
in the Crosswire repository. Specifically I'm trying to find the 
source for the AKJV module.


I get the impression the SWORD project has a lot of different 
contributors with different work-flow preferences, so there's no Central 
Repository of All Modules or anything like that. When I'm looking for 
the source of a module (for example, to find out how some particular 
feature or style was implemented) and the module's description doesn't 
cite a source, I look in the following locations:


 * https://git.crosswire.org/explore
 * https://gitlab.com/crosswire-bible-society/

The AKJV specifically does not appear in either of those locations. Its 
description text mentions the URL http://www.inspiredidea.com/akj.htm 
which no longer exists, but the earliest version on the Wayback Machine 
(2001-02-06) only points to CrossWire as the only official distribution 
source. I suspect that the person who made this version is also the 
person who provided the module to CrossWire and the source might never 
have been publicly accessible. Later revisions of the page (up to about 
2004) do provide a ZIP of the text, but the modification date inside the 
archive is 2001, and the CrossWire module claims to have been made in 
2007 (and be "version 1.4") so it's probably not the actual source text.


mod2imp works, but I don't like to use it to inspect modules because it 
only reports what comes *out* of the osis2mod compiler, not what went 
into it.


If you really want the text of the AKJV specifically, mod2imp may well 
be your best bet at extracting the text.


If you just want the King James Version updated to more modern language, 
you may be interested in the American Standard Version (1901)[1], or the 
World English Bible[2] which is available in many formats from USFM to 
Microsoft Word to XeTeX.



Timothy

[1]: https://gitlab.com/crosswire-bible-society/asv

[2]: https://worldenglish.bible/
___
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] Where is the source code for individual SWORD modules?

2023-10-20 Thread Greg Hellings
In general the imported file will not be available since it is not the
source of those modules. Other than for the KJV itself, Crosswire is not
the authoritative source of the texts. Often any OSIS file is a product of
a conversation from the original source. If anything has been kept it
should be a script to produce that OSIS file so that, if the source
material is updated, the module can be automatically created from it. Very
old modules which have not been updated in a decade+ might not have any
reproducible material floating around at all if they predate that process.

The KJV(A) module pair are the exception to this and should be located on
the server somewhere.

As for generating LaTeX, I thought the engine could already do that? I
thought Peter had added a filter for that back when he was doing some work
with the texts. You should be able to iterate module and generate the text
from there, if a render filter exists for LaTeX. If not, now would be a
great time for you to learn the filter API (it is akin to an XML SAX style
of interface) and write one!

--Greg

On Fri, Oct 20, 2023, 23:28 Aaron Rainbolt  wrote:

> Gah, I am forgetful. I can just use mod2imp to get parsable text. It's
> not exactly what I was looking for but it'll work good enough :D
>
> On 10/20/23 23:15, Aaron Rainbolt wrote:
> > I don't know if I'm just blind or if these aren't public, but I cannot
> > find the OSIS (or whatever format) code for individual SWORD modules
> > in the Crosswire repository. Specifically I'm trying to find the
> > source for the AKJV module. I'd like to take the code and parse it
> > myself for a project of my own (I'm trying to typeset the AKJV
> > translation using LaTeX, and may want to do the same sort of thing
> > with other modules). As it is, I'm having to open the modules in
> > Xiphos, and then copy and paste their text one chapter at a time into
> > my formatting tools, which is... cumbersome. If I could get the source
> > code for the modules, I could just write a parser that would do the
> > whole job for me in one go.
> >
> > Are the OSIS sources kept private intentionally? If not, where would I
> > find them to download them?
> >
> > (Note that I understand why some modules' source code might be
> > private, for things like the NASB module. But it would be nice if the
> > code for public domain or otherwise permissively licensed modules were
> > available for public download.)
> >
> ___
> 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


Re: [sword-devel] Where is the source code for individual SWORD modules?

2023-10-20 Thread Aaron Rainbolt
Gah, I am forgetful. I can just use mod2imp to get parsable text. It's 
not exactly what I was looking for but it'll work good enough :D


On 10/20/23 23:15, Aaron Rainbolt wrote:
I don't know if I'm just blind or if these aren't public, but I cannot 
find the OSIS (or whatever format) code for individual SWORD modules 
in the Crosswire repository. Specifically I'm trying to find the 
source for the AKJV module. I'd like to take the code and parse it 
myself for a project of my own (I'm trying to typeset the AKJV 
translation using LaTeX, and may want to do the same sort of thing 
with other modules). As it is, I'm having to open the modules in 
Xiphos, and then copy and paste their text one chapter at a time into 
my formatting tools, which is... cumbersome. If I could get the source 
code for the modules, I could just write a parser that would do the 
whole job for me in one go.


Are the OSIS sources kept private intentionally? If not, where would I 
find them to download them?


(Note that I understand why some modules' source code might be 
private, for things like the NASB module. But it would be nice if the 
code for public domain or otherwise permissively licensed modules were 
available for public download.)



___
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] Where is the source code for individual SWORD modules?

2023-10-20 Thread Aaron Rainbolt
I don't know if I'm just blind or if these aren't public, but I cannot 
find the OSIS (or whatever format) code for individual SWORD modules in 
the Crosswire repository. Specifically I'm trying to find the source for 
the AKJV module. I'd like to take the code and parse it myself for a 
project of my own (I'm trying to typeset the AKJV translation using 
LaTeX, and may want to do the same sort of thing with other modules). As 
it is, I'm having to open the modules in Xiphos, and then copy and paste 
their text one chapter at a time into my formatting tools, which is... 
cumbersome. If I could get the source code for the modules, I could just 
write a parser that would do the whole job for me in one go.


Are the OSIS sources kept private intentionally? If not, where would I 
find them to download them?


(Note that I understand why some modules' source code might be private, 
for things like the NASB module. But it would be nice if the code for 
public domain or otherwise permissively licensed modules were available 
for public download.)


___
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] FYI: A source for the Brown-Driver-Briggs Hebrew Lexicon

2023-10-20 Thread Fr Cyrille

Waouh! Very good idea!

Le 20/10/2023 à 10:43, Timothy Allen a écrit :
I see on the Module Requests wiki page[1] that one of the requested 
modules is the unabridged Brown-Driver-Briggs Hebrew Lexicon. There's 
already a "BDBGlosses_Strongs" module in the Crosswire repository, 
based on the Open Scriptures Hebrew Bible Hebrew Lexicon[2], but it 
appears to be an abridged version.


I've discovered an openly-licensed (CC-BY) digital copy of the 
unabridged text that seems promising, at 
. The 
text is stored in HTML with lots of semantic markup, so it should be 
practical to reformat it nicely to different conventions. The main 
obstacle with this version (so far as I can tell) is that only English 
and Hebrew text is in the HTML, words in other languages (Arabic, 
Syriac, Ethiopic, Aramaic, Samaritan, Persian etc.) have not been 
transcribed and are just images. Still, it seems rich enough to be 
worth trying to convert it to a SWORD module.


[1]: https://wiki.crosswire.org/Module_Requests#Lexicons

[2]: https://github.com/openscriptures/HebrewLexicon


Timothy.

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


--
Vous aimer la Bible ? Vous êtes étudiant en théologie ? Utilisez 
l'application libre Xiphos  ou Andbible 
 et accédez aux textes sources, à des 
commentaires, des dictionnaires et beaucoup d'autres fonctionnalités... 
Me contacter pour des traductions en français.___
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] FYI: A source for the Brown-Driver-Briggs Hebrew Lexicon

2023-10-20 Thread Timothy Allen
I see on the Module Requests wiki page[1] that one of the requested 
modules is the unabridged Brown-Driver-Briggs Hebrew Lexicon. There's 
already a "BDBGlosses_Strongs" module in the Crosswire repository, based 
on the Open Scriptures Hebrew Bible Hebrew Lexicon[2], but it appears to 
be an abridged version.


I've discovered an openly-licensed (CC-BY) digital copy of the 
unabridged text that seems promising, at 
. The 
text is stored in HTML with lots of semantic markup, so it should be 
practical to reformat it nicely to different conventions. The main 
obstacle with this version (so far as I can tell) is that only English 
and Hebrew text is in the HTML, words in other languages (Arabic, 
Syriac, Ethiopic, Aramaic, Samaritan, Persian etc.) have not been 
transcribed and are just images. Still, it seems rich enough to be worth 
trying to convert it to a SWORD module.


[1]: https://wiki.crosswire.org/Module_Requests#Lexicons

[2]: https://github.com/openscriptures/HebrewLexicon


Timothy.

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