[sword-devel] Web responsive Crosswire UI?

2024-04-14 Thread Matěj Cepl
Hello,

I have super simple single-page web app [1] displaying Daily
Watchwords of the Moravian Brothers [2]. Each daily watchword has
some references to the Bible and I would like to add link which
display real complete Biblical text. Currently I have there links
to https://www.crosswire.org/study/, but the primary platform
for my app are mobile phones and The Bible Tool kind of sucks on
small displays.

Then I tried to use on Android https://read.andbible.org/
links [3] , which made the biblical verse be shown in AndBible
application, but it seems that it is currently broken [4], so I
will have to temporarily revert, but I am also thinking about how
I don’t like separate Android applications.

Is there any Sword Web Application written in the Web Responsive
style, which would work well on a mobile phone?

Thank you for any suggestions,

Matěj

[1] https://hesla.ceplovi.cz
[2] https://en.wikipedia.org/wiki/Daily_Watchwords
[3] https://github.com/AndBible/and-bible/wiki/Bible-links
[4] https://github.com/AndBible/and-bible/issues/3210
-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Courage is resistance of fear, mastery of fear, not absence of
fear.


E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] Tumbleweek Packages

2024-03-13 Thread Matěj Cepl
On Wed Mar 13, 2024 at 2:57 AM CET, Greg Hellings wrote:
> I didn't run you away, but I am the pumpkin holder for libsword in SuSE.

No, you didn’t, my submission was truly less than well conceived
and not discussed with you.

> I can accept merge requests in the SuSE build infrastructure. But I
> wouldn't even attempt to create one or vet that it's working properly
> without having access to the distro.

Being a SUSE employee (working on Python packages, so please,
do not ask me to debug a large C++ library), I think I can help
here, if needed.

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
“Goodbye,” said the fox. “And now here is my secret, a very
simple secret: It is only with the heart that one can see
rightly; what is essential is invisible to the eye.”
   -- Antoine de Saint-Exupery



E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] Tumbleweek Packages

2024-03-11 Thread Matěj Cepl
On Mon Mar 11, 2024 at 9:44 PM CET, David "Judah's Shadow" Blue wrote:
> While we're on the topic of tumbleweed, do we know if there is a pumpkin 
> holder for the sword packages for openSUSE is, or if there even is one? I've 

These people https://build.opensuse.org/package/users/Education/sword ?

I have tried to make my own submission to sword (not very well
thought through, I am afraid) and I was rightfully run away by
somebody.

Blessings,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
If trains stop at train stations, what happens at work stations?



E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] SWORD Dependancies

2024-03-09 Thread Matěj Cepl
On Sat Mar 9, 2024 at 8:46 PM CET, Greg Hellings wrote:
> You really SHOULD have sword built against Curl. It can work without it,
> but only against FTP and local file sources. All support for HTTP, HTTPS
> (which most modern systems will require) only work with curl.

Right, I forgot libsword, which is here another package:

tumbleweed-pkg~$ rpm -qR libsword-1_8_1|awk -F '(' '{ print $1 ; }'|sort -u
libclucene-core.so.1
libc.so.6
libcurl.so.4
libgcc_s.so.1
libicui18n.so.73
libicuuc.so.73
libstdc++.so.6
libz.so.1
rpmlib
/sbin/ldconfig
tumbleweed-pkg~$ 

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
It is a rare mind indeed that can render the hitherto
non-existent blindingly obvious. The cry “I could have thought of
that” is a very popular and misleading one, for the fact is that
they didn’t, and a very significant and revealing fact it is too.
  -- Douglas Adams, Dirk Gently’s Holistic Detective Agency



E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] SWORD Dependancies

2024-03-09 Thread Matěj Cepl
On Sat Mar 9, 2024 at 8:05 PM CET, David "Judah's Shadow" Blue wrote:
> I'm trying to keep dependancies for BIBISH down to a minimum, so I'm curious
> as to what I can be reasonably assured will be installed on a system that has
> sword also installed.

Well, this is what I get on openSUSE/Tumbleweed:

tumbleweed-pkg~$ rpm -qR sword|awk -F '(' '{ print $1 ; }'|sort -u
config
libc.so.6
libgcc_s.so.1
libicuuc.so.73
libstdc++.so.6
libsword-1.8.1.so
rpmlib
tumbleweed-pkg~$ 

Really, not much.

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
A child can go only so far in life without potty training.  It
is not mere coincidence that six of the last seven presidents
were potty trained, not to mention nearly half of the nation’s
state legislators.
-- Dave Barry



E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] Making better use of the CrossWire GitHub project ?

2024-02-18 Thread Matěj Cepl
On Sun Feb 18, 2024 at 8:51 PM CET, Matěj Cepl wrote:
> It seems there was something on Sourceforge
> (https://sourceforge.net/p/sword/cvs/), but it is most likely
> gone.

Just for the record, the Sourceforge repo is more recent than SVN
(https://git.cepl.eu/cgit/sword/sword-sf-cvs/).

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
No matter what happens in the kitchen, never apologize.
  -- Julia Child



E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] Making better use of the CrossWire GitHub project ?

2024-02-18 Thread Matěj Cepl
On Sun Feb 18, 2024 at 8:57 AM CET, Peter von Kaehne wrote:
> The SVN site for libsword is the current, not old. It is just
> that very little changes over long stretches. Libsword is 30

Is it? The oldest revision in SVN I can find
(https://git.cepl.eu/cgit/sword/commit/?id=44ffa2f5aa5f)) is from
Tue May 4 22:03:32 1999? Is that just the time of CVS2SVN
conversion? Are there archives of the actual CVS somewhere? It
would be nice to include them to git as well.

It seems there was something on Sourceforge
(https://sourceforge.net/p/sword/cvs/), but it is most likely
gone.

> + year old and does its job. Errors and bugs get corrected ,
> big proposals happen once in a long while and then come into
> the code. Development happens in spurts, once every few years
> currently - but as users (other projects) are on disparate
> platforms consensus is needed.

Sorry, I completely agree with Arnaud here. This is just an
excuse: I am quite certain I am not the only one, who just
gave up proposing changes to libsword (e.g., new v11n for the
Protestant Deuterocanonic Bibles) when all my suggestinos were
ignored. There are many projects who are similarly very lightly
manned (to say it mildly; and I am or I was a maintainer on few
of these) and yet there is more life in them than in libsword.

No, I am not saying that just switching to git will fix all our
problems, it is just a sign of them not their cause, but bigger
visibility of the project would certainly not hurt.

Thank you for all your care your spent on the project so far, and
my blessings go with you!

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Reading after a certain age diverts the mind too much from its
creative pursuits. Any man who reads too much and uses his own
brain too little falls into lazy habits of thinking, just as the
man who spends too much time in the theater is tempted to be
content with living vicariously instead of living his own life.
  -- Albert Einstein to The Saturday Evening Post, October 1929



E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] Making better use of the CrossWire GitHub project ?

2024-02-17 Thread Matěj Cepl
On Sat Feb 17, 2024 at 4:46 PM CET, Arnaud Vié wrote:
> I think a lot of that could be improved by making better use of the
> crosswire github project , which is nowadays
> the first contact most young developers will have with these crosswire
> projects.

https://github.com/crosswire is mostly dead. There
is more life (especially for modules) at
https://gitlab.com/crosswire-bible-society and then there is
another GitLab at https://git.crosswire.org/ (for contributors
only).

>- *Revive the jsword github repository*.

jsword is organizationally in many aspects a separate project from libsword.

>   - *Create a new Git repository for the OSIS specification*.

See on gitlab.

>   - Ideally, I'd also suggest *moving the C++ sword code to github*.
>Having it only on an old SVN repo
>, not browsable or searchable
>online, really harms its visibility. I used a little bit of SVN while in
>engineering school 12 years ago, but I doubt that most young devs nowadays
>even know about it.

I don’t even comment on this one any more (just mirror it to
https://git.cepl.eu/cgit/sword/), because where there is no
advice, there is no help.

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Why should I travel, when I’m already there?
-- Bostonian lady, when being asked why she never visited
other places than Boston



E09FEF25D96484AC.asc
Description: application/pgp-keys


signature.asc
Description: PGP signature
___
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] PHP bindings

2024-01-30 Thread Matěj Cepl
On Tue Jan 30, 2024 at 10:33 AM CET, Aim for NaN wrote:
> This errors out, saying that std_list.i cannot be found for templates.i

Yes, it seems to be missing in swig templates for
PHP (if that’s the problem … I am one of few happy
programmers who know absolutely nothing about PHP), but
how difficult it would be to port those 23 LOC from Python
https://github.com/swig/swig/blob/master/Lib/python/std_list.i to
PHP?

If you do so, please, do not forget to send it upstream.

Best,

Matěj
-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Experience is what you get when you don’t get what you want.
   -- Dan Stanford



signature.asc
Description: PGP signature
___
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] Packaging Ezra Bible App for Snap and Flatpak users?

2024-01-21 Thread Matěj Cepl
On Sun Jan 21, 2024 at 4:14 PM CET, P Mosier wrote:
> OpenSUSE (Tumbleweed) user here.
>
> While fundamentally RPM based, I have both flatpak & snap working on it. 
> Flatpak does work better of the two.

I may have my information outdated, but
https://youtu.be/4WuYGcs0t6I is rather epic, and what’s even more
interesting, I cannot find any rebutals of it (although,
https://youtu.be/385ZkyoIU18 seems to claim it works, but it is
still not in the main repo).

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
I wouldn’t touch the imperial measuring system with a 3.048m
pole.
  -- Mark Cross



signature.asc
Description: PGP signature
___
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] Packaging Ezra Bible App for Snap and Flatpak users?

2024-01-20 Thread Matěj Cepl
On Sat Jan 20, 2024 at 7:18 PM CET, Aaron Rainbolt wrote:
> It appears that the Ezra Bible App can only be installed using
> upstream packages for a select group of popular Linux distributions
> currently. It would be handy for users to be able to install it by
> using widely available repositories such as the Snap Store and
> Flathub. I'm fairly skilled at software packaging for distros (though
> I haven't done Snap or Flatpak before - I'm interested in learning how
> though) and am thinking about trying to make Snap and Flatpak packages
> for Ezra Bible App.

Given that Snap really works only on Ubuntu (AFAIK, certainly it
does work neither with Fedora nor with openSUSE), then I would
hugely prefer Flatpak.

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
All men's miseries derive from not being able to sit in a quiet
room alone.
  -- Blaise Pascal



signature.asc
Description: PGP signature
___
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] Localization of the biblical names in sword (cs-CZ)?

2023-12-30 Thread Matěj Cepl
See https://tracker.crosswire.org/projects/API/issues/API-256 and
https://github.com/crosswire/xiphos/issues/1137.
Are changes in
https://git.crosswire.org/refdoc/sword/-/blob/master/locales.d/cs-utf8.conf
(and its non-UTF8 counterpart) everything required?

Where should I submit any patches changing that file (those files)?

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
In those days spirits were brave, the stakes were high, men were
real men, women were real women and small furry creatures from
Alpha Centauri were real small furry creatures from Alpha
Centauri.
-- Douglas Adams


signature.asc
Description: PGP signature
___
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] AKJV source.

2023-12-28 Thread Matěj Cepl
On Mon Dec 25, 2023 at 6:54 PM CET, Michael H wrote:
> Is there a KJV module on a CD image or in an offline repo somewhere
> containing the 1995ish version of a KJV module that is known to be sourced
> from Project Gutenberg etext 10?  I would like to obtain that to further
> bug-hunt the AKJV module.

Not a Crosswire module, but would CCEL (https://www.ccel.org) CD
from 2001 help? It includes some KJV text among other bibles.

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
To love another person
Is to see the face of God.
  -- yes, incredibly cheesy verse from the screenplay of the
 movie Les Miserables (2012)


signature.asc
Description: PGP signature
___
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] Python script for checking pairwise characters (PROFF-OF-CONCEPT)

2023-12-19 Thread Matěj Cepl
On Tue Dec 19, 2023 at 1:30 AM CET, Timothy Allen wrote:
> As a data point, when I was writing scripts for manipulating and 
> updating the BSB module, I found the `xml.etree.ElementTree` module in 
> the Python standard library to be many times faster than the SAX API. 
> The SAX API is a perhaps a bit more convenient, because you can just 
> subscribe to whatever events are meaningful for whatever processing you 
> want to do, but ElementTree is just so much faster I found it was worth it.

I have heard a good things about XMLPullParser, but I have never
tried to use it in anger.

I am not sure how the plain ElementTree (and I suppose you mean
its `findall()` method) could help me here. My main focus is on
the SAX `characters()` method, and here ElementTree with its
`.text` and `.tail` attributes doesn’t help much, although if
there was `findalltext()` method, it could get interesting.

> LXML is probably faster again, but that's a third-party dependency, and 
> that adds enough hassle for people who aren't Python developers that I 
> drew the line there.

Certainly, I am a big fan of writing just in the confines of the
Python standard library.

> If you've already written things using the SAX API that work well for 
> you, there's probably no point rewriting them, but if you're writing 
> more tools in the future, you might want to give it a try!

I know ElementTree and it is very useful for simple searches
in the XML tree, but I am not sure how it would help with this
project or with my CzeCSP conversion.

Blessings,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
“Anything essential is invisible to the eyes”, the little prince
repeated, in order to remember.
“It’s the time you spent on your rose that makes your rose so
important.”
“It’s the time I spent on my rose …,” the little prince
repeated, in order to remember.
“People have forgotten this truth.” the fox said. “But you
mustn’t forget it.  You become responsible forever for what
you’ve tamed. You’re responsible for your rose…”
“I’m responsible for my rose…,” the little prince repeated, in
order to remember.
-- Antoine de Saint-Exupéry: The Little Prince


signature.asc
Description: PGP signature
___
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] Python script for checking pairwise characters (PROFF-OF-CONCEPT)

2023-12-19 Thread Matěj Cepl
On Tue Dec 19, 2023 at 2:17 AM CET, Timothy Allen wrote:
> I tried running it over my BSB module, and I hit problems fairly 
> quickly, some of which are more easily solved than others.
>
> 1. No support for language “en”
>
> This was easy enough to handle, there's a configuration variable near 
> the top of the file that lets you configure which quotes are used for 
> which languages.

Patch sent to my email would be welcome.

> 2. Apostrophes
>
> In English, the apostrophe used for possession (“the boy’s train”) and 
> omission (“don’t let’s start") is traditionally set with the same 
> character used as the closing single quote, so in any non-trivial 
> document there will almost certainly be more "closing single quotes" 
> than opening single quotes, it's not worth reporting on.

Yes, I aware of it, and I feel very blessed that I don’t
have this problem in Czech. I have no idea what to do with
this without proper syntactic analysis, which is out of the
question. Perhaps, running `re.sub(r'’s\b', '@#s', whole_text)`
and then back, but it seems like a receipe for disaster.

> 3. Nested quotations
>
> In Genesis 20:11-13, Abraham tells Abimelech that he told Sarah to tell 
> other people that she was Abraham’s brother. In the BSB (and NIV, and 
> ESV, and NASB) this results in a triple-nested quotation. In English 
> typesetting conventions the outermost quotation gets double-quotes, the 
> second level gets single-quotes, and the third level gets double quotes 
> again. This causes the script to report an error:
>
> I couldn't immediately think of a way to get around this.

Me neither. We should probably make effort for error recovery, so
that the script would continue even after reporting a problem,
but I am not sure how to do that either.

> Another quirk that occurs to me is that in English typesetting, if one 
> person speaks multiple paragraphs (for example, the Sermon on the Mount) 
> then each paragraph gets an opening double-quote, but no closing 
> double-quote. That's going to play havoc with this kind of 
> quote-checking tool, too.

Yes, we don’t do this in Czech, but it is typographically
possible to just use paragraph indentation instead
of quoting and of course we don’t have anything like
indentation in the pure XML. I have just added quotes in
the appropriate places and plan sending the patch to the
Czech Biblical Society (after David reviews my fixes in
https://gitlab.com/crosswire-bible-society/CzeCEP/-/issues/2)
with some other clear bugs I have found.

> Perhaps this kind of tool just isn't suited to checking English text... 
> but I'm sure there's other languages with more sensible conventions that 
> it could help with. Good luck with it!

With https://gitlab.com/crosswire-bible-society/CzeCEP/-/merge_requests/4/diffs
I have managed to make CzeCEP behave. Now I will try other Czech modules.

Blessings,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Power tends to corrupt and absolute power corrupts
absolutely. Great men are almost always bad men, […]
  -- Lord Acton (including the more important part of the often
 misquoted statement)


signature.asc
Description: PGP signature
___
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] Python script for checking pairwise characters (PROFF-OF-CONCEPT)

2023-12-18 Thread Matěj Cepl
On Mon Dec 18, 2023 at 2:38 PM CET, Kristof Szabo wrote:
> I wrote some time back https://github.com/krisek/sword-test, with quite a
> few test cases, which, I think, covers your use case as well.

Couple of differences on the first look:

1. Functionally, I prefer my script which stops when the first
   unpaired character is found, thus allowing fixing the problem.
2. I use SAX API (xml.sax from the standard library) and it seems
   to me like better suited for the Bible processing than the
   traditional DOM (or LXML) interface. It nicely hides away all
   hard work going on in the background and let me work only on
   what’s relevant to my task. See
   https://gitlab.com/crosswire-bible-society/CzeCSP/-/blob/master/CEPtoOSIS.py
   for an example of much more complicated processing (and also,
   it is ten-fold or something like that faster than processing
   with Java and Saxon/XSLT).

> > Temporarily the script is in its own repo
> > (https://gitlab.com/mcepl/bible-freq-counter) and attached to
> > this message, but I would like to submit it to sword-utils. How
> > to do it?

Just an update … I have moved the script to
https://git.crosswire.org/mcepl/bible-freq-counter.

Best,

Matěj

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Nemo plus iuris ad alium transfere potest quam ipse habet.


signature.asc
Description: PGP signature
___
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] Python script for checking pairwise characters (PROFF-OF-CONCEPT)

2023-12-18 Thread Matěj Cepl
Hello,

I have decided not to rely on very kind help by David
with his Windows tools and I have written (hopefully)
completely platform neutral pure Python 3 script for checking
pairwise-characters. So, far it was used only for fixing
https://gitlab.com/crosswire-bible-society/CzeCEP/-/issues/2 and
I am quite sure it is pretty buggy, but it could be proven useful
for somebody.

Temporarily the script is in its own repo
(https://gitlab.com/mcepl/bible-freq-counter) and attached to
this message, but I would like to submit it to sword-utils. How
to do it?

Blessings,

Matěj
-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Afraid to die alone?
Become a bus driver.
  -- alleged easter egg in notepad++
#!/usr/bin/python3

import enum
import logging
import pprint
import sys
import xml.sax

from collections import Counter

logging.basicConfig(level=logging.INFO)
log = logging.getLogger()

QType=enum.Enum('QType', ['SINGLE', 'DOUBLE'])

class PairCheckerHandler(xml.sax.ContentHandler):
configuration = {
'cs': {
'OPEN' : "‚„",
'CLOSE' : "‘“",
'SINGLE' : "‚‘",
'DOUBLE' : "„“"
}
}

def __init__(self):
xml.sax.ContentHandler.__init__(self)
self.OPEN_CH = None
self.CLOSE_CH = None
self.SINGLE_CH = None
self.DOUBLE_CH = None
self.PAIR_CH = None

self.freq_table = Counter()
self.balance = Counter()
self.current_ref = None

def __process_character(self, c):
self.freq_table.update(c)
if c in self.OPEN_CH:
if c in self.SINGLE_CH:
self.balance[QType.SINGLE] += 1
elif c in self.DOUBLE_CH:
self.balance[QType.DOUBLE] += 1
log.debug(f"Opening character {c} (balance {self.balance})")
elif c in self.CLOSE_CH:
if c in self.SINGLE_CH:
self.balance[QType.SINGLE] -= 1
elif c in self.DOUBLE_CH:
self.balance[QType.DOUBLE] -= 1
log.debug(f"Closing character {c} (balance {self.balance})")

if any([self.balance[x] < 0 for x in self.balance]):
print(f"Balance for character {c} is below zero in {self.current_ref}",
  file=sys.stderr)
sys.exit(1)
elif any([self.balance[x] > 1 for x in self.balance]):
print(f"Balance for character {c} is over one in {self.current_ref}",
  file=sys.stderr)
sys.exit(1)

def startElement(self, name, attrs):
if 'osisText' in name:
lang = attrs.get('xml:lang')
log.debug(f'lang = {lang}')
self.OPEN_CH = self.configuration[lang]['OPEN']
self.CLOSE_CH = self.configuration[lang]['CLOSE']
self.SINGLE_CH = self.configuration[lang]['SINGLE']
self.DOUBLE_CH = self.configuration[lang]['DOUBLE']
self.PAIR_CH = self.OPEN_CH+self.CLOSE_CH
log.debug(f'self.PAIR_CH = {self.PAIR_CH}')
elif 'verse' in name:
if 'sID' in attrs:
log.debug(f'name = {name}, sID = {attrs["sID"]}')
self.current_ref = attrs['sID']

def characters(self, content):
log.debug(f'current_ref = {self.current_ref}, content: {content} ({type(content)})')
if self.current_ref is None:
return
for c in content:
if c in self.PAIR_CH:
self.__process_character(c)


if __name__ == "__main__":
parser = xml.sax.make_parser()
handler = PairCheckerHandler()
parser.setContentHandler(handler)
for bible_file in sys.argv[1:]:
parser.parse(bible_file)
pprint.pprint(dict(handler.freq_table))


signature.asc
Description: PGP signature
___
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] SWORD and type="x-split-#" where # is a numeric identifier?

2023-07-21 Thread Matěj Cepl
On 2023-07-21, 17:02 GMT, David Haslam wrote:
> PS. Are my emails to sword-devel getting through and being considered.
> Some of my past questions have elicited no responses.

I can read this perfectly clearly.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Experience is what you get when you don’t get what you want.
   -- Dan Stanford


___
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] CrossWire and git

2023-03-18 Thread Matěj Cepl
On 2023-03-18, 14:57 GMT, Troy A. Griffitts wrote:
> Guys who prefer GitLab, I am sorry. No university research
> project, no commercial job has ever asked me to use GitLab. They
> have all asked me use GitHub. From a purely popular choice and
> to prevent all of us from having to create yet another account
> (I am sure most everyone already has a GitHub account) and learn
> yet another tool, can't we just settle on GitHub. Would it make
> anyone extremely unhappy? GitLab is not my preferred choice.

I really don't care that much, git is a DISTRIBUTED versioning
control system, so we shouldn't be bound to one server anyway,
it is not healthy (especially when that one server is owned by
Microsoft). It will be a bit strange that the Crosswire
repositories will be spread over at least three servers (GitHub,
GitLab, git.crosswire.org, and if GitLab is not the official
Crosswire place, I may move Czech Bibles to sr.ht), but it is
possible.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
“Push to test.” (click) “Release to detonate…”
 -- from a bugzilla quip list


___
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] CrossWire and git

2023-03-18 Thread Matěj Cepl
On 2023-03-18, 09:55 GMT, Fr Cyrille wrote:
> I am very happy with this progress in your thinking about git. I just 
> reiterate my preference for gitlab, where as Peter has already pointed 
> out we now have all our modules. It would be consistent to add the sword 
> sources there as well.
> @David I don't particularly use github for my personal projects which 
> are all under gitlab.

+1

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Pain is inevitable, but misery is optional. We cannot avoid pain,
but we can avoid joy.
-- Tim Hansel


___
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] Correction for KJV module in 2 Corinthians 1:8

2023-01-24 Thread Matěj Cepl
On 2023-01-22, 09:22 GMT, Fr Cyrille wrote:
> Thinking about the copyright issue, I don't think it's necessary to put 
> the kjv on the private part of our git (git.crosswire.org). The normal 
> gitlab is quite enough if we only want to control the proposed changes. 
> We know well that on git every merge request must be approved. Moreover, 
> the whole process of updating modules is entrusted to the module team. 
> So I propose to go for the simplest solution which is to put the kjv 
> text on the open gitlab.
> Troy do you intend to move in this direction?
> Or will this case drag on for years?

This case DOES drag for years. There are two problems with this,
one easily overcome (but it would require change of hearts),
other not so.

1. Sword developers are more secretive and control-freaks than
   Albus Dubmledore. A simple questions: where is the public
   project of libsword with repository and issue tracker, where
   people can collaborate and/or contribute? Nowhere, that is
   where. The only official issue tracker is
   https://tracker.crosswire.org/projects/API with limited access
   (you have to ask for the account and you may eventually get
   it). No surprise then, that the official repository for source
   code is SVN [sic!] (http://crosswire.org/svn/sword/ … yes,
   that’s HTTP without S, see https://is.gd/6RgOCL) with
   basically no option to contribute whatsoever. All those git
   mirrors like https://github.com/refdoc/sword or
   https://git.crosswire.org/refdoc/sword are strictly unofficial
   and pull requests to them are ignored.

   Yes, conversion of Jira into anything more common is
   complicated operation (although there are tools to do it,
   https://docs.gitlab.com/ee/user/project/import/jira.html), so
   that can be a bit understandable (a bit), but not switching to
   git still doesn’t make any sense to me whatsoever.

2. The real problem is limited storage with GitLab.
   https://www.theregister.com/2022/08/04/gitlab_data_retention_policy/
   Hmm, when looking for the original reference to this I found
   https://docs.gitlab.com/ee/administration/inactive_project_deletion.html and
   
https://docs.gitlab.com/ee/user/gitlab_com/index.html#inactive-project-deletion,
   which seems it has been in the end disabled on gitlab.com
   after all.

Using gitlab.com is perhaps not so bad idea after all. Of course,
that neatly returns us to the organizational 

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
“I have read St. Paul’s epistle on charity,” he said, “and, after
long reflection, I am persuaded that there exists a greater thing
than charity—a thing of more value to the human family. Like
charity, it rejoiceth not in iniquity, but it does not bear all
things or believe all things, or endure all things; and, unlike
charity, it seeketh its own … Do you know what thing I mean,
Smallwood? I will tell you. It is Justice.”
  -- Uncle Abner in “The House of the Dead Man”
 by Melville Davisson Post


___
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] Correction for KJV module in 2 Corinthians 1:8

2023-01-17 Thread Matěj Cepl
On 2023-01-16, 21:34 GMT, Troy A. Griffitts wrote:
> We do make the source available from our wiki page regarding the work.
>
> https://wiki.crosswire.org/User:Dmsmith/KJV_2.6
>
> You will find a link to the source somewhere on that page.

Just to say that in times of plentiful free git repositories
(and actually having git.crosswire.org existing),
http://www.crosswire.org/~dmsmith/kjv2011/ is just a pitiful
effort.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Roses are red;
Violets are blue.
I’m schizophrenic,
And so am I.


___
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] Correction for KJV module in 2 Corinthians 1:8

2023-01-17 Thread Matěj Cepl
Dne 16. 01. 23 v 17:23 David Haslam napsal(a):
> And yes - it remains the case that the text of the KJV is protected
> by Royal Letters Patent within the United Kingdom, and that in
> principle, this copyright assertion should be upheld by subsequent
> mutual treaties in those nations that were signatories of the Berne
> Convention.

I have all respect for His Majesty (that’s weird … even as a Czech I
have still a strong tendency to write automatically Her Majesty), so I
don’t dispute this special copyright itself, but I always wondered what
does it actually mean. Which of the Four Freedoms
(https://www.gnu.org/philosophy/free-sw.html and
https://www.gnu.org/licenses/quick-guide-gplv3.html) are affected by it.

* Is there any limitation on my reading the text?
* Is there any limitation on my fixing problems with the given record of
the text (like what we do to it)?
* Is there any limitation on sharing such changed text with others?

Best,

Matěj

-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8

Besides, the determined Real Programmer can write Fortran
programs in any language.
  -- Ed Post, Real Programmers Don’t Use Pascal

OpenPGP_0x79205802880BC9D8.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature
___
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] Correction for KJV module in 2 Corinthians 1:8

2023-01-12 Thread Matěj Cepl
On 2023-01-12, 18:57 GMT, Fr Cyrille wrote:
> Unfortunately, the work on KJV is currently at a standstill, and bugs 
> are piling up on the tracker. I wanted to offer my help but I didn't get 
> any answer. This is a problem that should be treated seriously, 
> considering the importance of the KJV.

Well, it would probably help if 
https://gitlab.com/crosswire-bible-society/kjv/ actually 
contained sources.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
When you’re happy that cut and paste actually works I think it’s
a sign you’ve been using X-Windows for too long.
   -- from /. discussion on poor integration between KDE and
  GNOME

___
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] Correction for KJV module in 2 Corinthians 1:8

2023-01-12 Thread Matěj Cepl
On 2022-12-28, 10:25 GMT, vtamara wrote:
> The markup in 2 Corinthians 1:8 of KJV includes

Filed as https://tracker.crosswire.org/browse/MOD-448

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Perfection is finally attained not when there is no longer
anything to add, but when there is no longer anything to take
away.
  -- Antoine de Saint-Exupery

___
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] SWORDWeb

2022-10-05 Thread Matěj Cepl
On 2022-09-24, 07:43 GMT, Troy A. Griffitts wrote:
> This morning I sent Psalm 139 to remind a friend that God who
> created a 1000 galaxies formed her and wrote each of her days...
> and then I realized that she will likely click on the link from
> her phone and then I thought of you.  Any more thoughts on a 
> more mobile-friendly UI?

Unfortunately https://www.crosswire.org/study/passagestudy.jsp?key=Psalm+139
is a complete disaster on a mobile phone. I would love to add links to some
Sword-base web app to https://hesla.ceplovi.cz/ (PWA for
https://en.wikipedia.org/wiki/Daily_Watchwords) or even better
https://github.com/Verses/Common_Bible_Share_Sheet, but certainly
https://www.crosswire.org/study is not that target.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
… every Man has a Property in his own Person. This no Body has
any Right to but himself. The Labour of his Body, and the Work of
his Hands, we may say, are properly his. … The great and chief
end therefore, of Mens uniting into Commonwealths, and putting
themselves under Government, is the Preservation of their
Property.
-- John Locke, “A Treatise Concerning Civil Government”


___
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] Sources for Greek strong dictionary

2022-09-27 Thread Matěj Cepl
On 2022-09-11, 18:35 GMT, ZdPo Ster wrote:
> I am thinking about translating an English Strong's Greek Bible Dictionary
> into Slovak.

Do we actually have a Slovak Bible in Sword? I don’t see anything on
https://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Bibles 

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Q: Is vi an easy editor to learn, is it intuitive?
A: Yes, some of us think so. But most people think that we are
   crazy.
-- vi FAQ


___
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] Module release: Summa

2022-09-11 Thread Matěj Cepl
On 2022-09-10, 08:49 GMT, dom...@crosswire.org wrote:
> This is to announce that we have just now uploaded Summa
> in the CrossWire (main) repository.
>
> ## Language:
> en
>
> ## Description:
> Summa Theologica by St. Thomas Aquinas
>
> ## Category:
> Generic Book
>
> ## Version:
> This a new module. Version: 1.0
>
> ## What's new:
> Initial release

Wow! Thanks to anybody who worked on this!

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
He can compress the most words into the smallest idea of any man
I know.
  -- Abraham Lincoln

___
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] Module release: CzeCSP

2022-08-20 Thread Matěj Cepl
On 2022-08-19, 12:34 GMT, domcox wrote:
>> Where are the history elements and other elements coming
>> from? What is The One Source of Truth about those files?
>
> Simple. We keep track of changes to the module,

Where? My question is what should be kept in the git and what
should be generated.

https://en.wikipedia.org/wiki/Single_source_of_truth

> From the original conf file, we keep elements that describe the 
> text.
> I mean elements like 'ModName', 'Description', 'About', 'Copyright 
> infos', 'TextSource', 'Version' and so on.

Is there somewhere a script generating *.conf file? In
sword-tools, perhaps?

Or if it is done manually in a text editor, then we are back
to the square one, why these changes were not stored in the
git repository?

> That's exactly what we did for the conf update of CzeCSP.

I feel we are communicating each about something different. I
don't need to explain what the version is.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
I must not fear. // Fear is the mind-killer. // Fear is the
little-death that brings total obliteration. // I will face my
fear. // I will permit it to pass over me and through me. // And
when it has gone past I will turn the inner eye to see its path.
// Where the fear has gone there will be nothing. // Only I will
remain.
  -- Dune


___
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] Module release: CzeCSP

2022-08-19 Thread Matěj Cepl
On 2022-08-16, 11:51 GMT, domcox wrote:
> Besides this, our .conf files are now automatically and almost 
> completely rebuilt during our build process, based mainly on the 
> content of the OSIS files. Then, we run an utility
> to validate the generated .conf file, in order to avoid typos and 
> other oddities.

Where are the history elements and other elements coming
from? What is The One Source of Truth about those files?

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
The world is coming to an end!  Repent and return those library
books!


___
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] Module release: CzeCSP

2022-08-15 Thread Matěj Cepl
On 2022-08-15, 12:02 GMT, domcox wrote:
> czecsp.conf:
> History_1.4=(2018-12-16) New technology for generating data 
> inc. fixes and errata
> History_1.4.1=(2022-08-09) Fix typo in configuration file

Except it is not what's on GitLab:
https://gitlab.com/crosswire-bible-society/CzeCSP/-/blob/master/czecsp.conf

Where is the commit with this change?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
 Don’t come crying to me about your “30 minute
compiles”!! I have to build X uphill both ways! In the snow! With
bare feet! And we didn’t have compilers! We had to translate the
C code to mnemonics OURSELVES!  And I was 18 before we even had
assemblers!


___
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] Module release: CzeCSP

2022-08-14 Thread Matěj Cepl
On 2022-08-09, 09:49 GMT, dom...@crosswire.org wrote:
> ## Version:
> This is an update. Version: 1.4.1
>
> ## What's new:
> Fix typo in configuration file

Why in the world there is no update of
https://gitlab.com/crosswire-bible-society/CzeCSP ?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
If trains stop at train stations, what happens at work stations?


___
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] The Digital Bible Library® ??? What do you think?

2020-06-01 Thread Matěj Cepl

On Sun, 24 May 2020 13:11:52 -1000 Michael Johnson wrote:
I contribute some Bible translations to the DBL. If there are 
any in there that were submitted by "eBible.org" with 
problems, please let me know, specifically, what the problems 
are to correct them.


See https://gitlab.com/crosswire-bible-society/CzeBKR aside from 
OSIS XML source code, there are also generated USFM texts 
generated by the included Python script. Any errors in those 
texts could be reported via 
https://gitlab.com/crosswire-bible-society/CzeBKR/issues and 
I will work on merging any corrections to the WikiSource.


Blessings,

Matěj

--
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Therefore, faithful Christian, seek truth, hear truth, learn

truth, love truth, speak truth, hold truth, defend truth until
death: because truth will free you from sin, from devil, from the
death of soul and finally from the death eternal, which is a
separation from God's mercy.
 -- Master John Hus, Explanation of Credo, 1412


signature.asc
Description: Digital signature
___
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] The Digital Bible Library® ??? What do you think?

2020-06-01 Thread Matěj Cepl

On Sun, 24 May 2020 13:54:20 -0700 Troy A. Griffitts wrote:
Maybe I am misunderstanding, but I think Matěj is suggesting 
that the publisher of the CzeB21 is telling us that our next 
module update of the CzeB21 should come from their text they 
have uploaded to the DBL.


My real question was what do you know about this initiative, and 
whether we are not getting near the situation, where maintainers 
of Sword biblical modules should transfer their effort to DBL. 
Are there any plans to join effort under the DBL umbrella?


Not that I would be any eager to switch there, because just 
after we finally introduced true infrastructure for the modules 
maintenance on gitlab.com, I don’t see anything on the DBL site 
which would help me to maintain their modules.


And Matěj is saying that he thinks their text in the DBL is 
much worse than than what we are current using:


I am saying it about our module CzeBKR which is fixed comparing 
to what DBL (and eSword.org) have. I haven’t said anything about 
CzeB21, where the sources are from the publisher, and yes, we 
have some fixes on the top of that, but nothing significant 
(certainly, nothing of the magnitude of the incorrect version of 
New Testament as it was the case with CzeBKR).


Blessings,

Matěj

--
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Love doesn't just sit there, like a stone; it has to be made,

like bread, remade all the time, made new.
  -- Ursula K. LeGuin


signature.asc
Description: Digital signature
___
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] archives?

2020-05-25 Thread Matěj Cepl
What happened to poor 
http://www.crosswire.org/mailman/listinfo/sword-devel ?

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
In political activity men sail a boundless and bottomless sea;
there is neither harbor for shelter nor floor for anchorage,
neither starting point nor appointed destination.
   -- Michael Oakeshott: Rationalism in Politics


signature.asc
Description: This is a digitally signed message part
___
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] The Digital Bible Library® ??? What do you think?

2020-05-24 Thread Matěj Cepl
Hi,

what do you think about DBL (https://thedigitalbiblelibrary.org)?
Publishers of CzeB21 felt that our module could be replaced by 
their work for DBL (which I don’t think is very good, their 
equivalent of CzeBKR is the ancient version of incorrectly 
digitised incorrect version).

Are there any plans to cooperate with DBL?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
The truth is a beautiful and terrible thing, and should therefore
be treated with caution.
  -- Albus Dumbledore


___
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 1.3 Released [was: Signing of Binaries on macOS and Windows]

2019-08-07 Thread Matěj Cepl
On 2019-08-03, 16:11 GMT, Troy A. Griffitts wrote:
> Which reminds me, Bishop 1.3.4 is finally released in both the 
> Android and iOS store and represents the work of so many 
> people here from testers to translators to module developers 
> and software developers. Thank you all and more importantly, 
> thanks and praise to God for allowing me to work together with 
> you all and to accomplish this through us. May He use it to 
> bring a lost world to Himself.

Hello,

is Bishop a free software? Where are the sources? Would it be 
possible to publish the app in some independent store as well 
(e.g., F-Droid), please? Some of us don’t like to live on the 
Google leash …

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Be pitiful, for every man is fighting a hard battle.
  -- Ian MacLaren, at least 1898


___
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] python3 , StrongsGreek and unicodeDecodeError

2019-06-20 Thread Matěj Cepl
On 2019-06-16, 19:02 GMT, pierre amadio wrote:
> Playing with the python3 Sword module I hit a problem that 
> I did not have with python2 when dealing with Strongs 
> definition such as G1140 (daimonion). It looks like the 'æ' 
> character is causing problem.
>
> This example works with python2, but generate an error when 
> ran wiht python3:
>
> ##
> import Sword
> library = Sword.SWMgr()
> target=library.getModule("StrongsGreek")
> vk=Sword.SWKey("1140")
> target.setKey(vk)
> strongEntry=target.renderText().getRawData()
> ###
>
>   File "/usr/local/sword/python3/lib64/python3.4/site-packages/Sword.py",
> line 128, in getRawData
> def getRawData(self): return _Sword.SWBuf_getRawData(self)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position
> 73: invalid continuation byte
>
> Anyone knows how to be able to catch the content of this entry in a
> python variable ?

This is usually problem with C API providing C-style strings 
(bytes in Pythonesque) and Python expects Python strings (str in 
Pythonesque). Also, what encoding C library uses? Is it really 
UTF-8? If not (and it is for example Windows-friendly UTF-16) 
str.decode('utf-16') conversion must be done to get proper 
Python str object.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
He loves nature in spite of what it did to him.
  -- Forrest Tucker


___
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] Ezra Project 0.8.0 released

2019-06-03 Thread Matěj Cepl
On 2019-06-02, 18:29 GMT, Tobias Klein wrote:
> Good suggestion to add some more information about the 
> context. That would have been better, I can see that now.

And don't worry too much about it. Everybody does it, because it 
is really too easy to forget that not everybody has the project 
as the center of their lives. Somebody had to remind me quite 
sharply, before I started to do the same with my adopted project 
I maintain.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
The American Republic will endure, until politicians realize they
can bribe the people with their own money.
-- based on a statement of Alexander Fraser Tytler


___
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] Ezra Project 0.8.0 released

2019-06-02 Thread Matěj Cepl
On 2019-05-31, 16:34 GMT, Tobias Klein wrote:
>> Ezra Project 0.8.0 has been released. Downloads are available 
>> for Windows (tested on Windows 10) and Linux (tested on 
>> Ubuntu 18.04 LTS with official SWORD package).

When making any announcement about your project, please, never 
forgive to add one or two sentences description of what is the 
project about. I know that you are sleeping and breating the 
project, but many of us (me included) have no idea what it is 
about, and it is a bit rude to force us (effectively) to go to 
your project’s webpage just to find out what it is about.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Q: What is the chief end of man?
A: The chief end of man is to glorify God and to enjoy him
   forever.
  -- The Westminster Shorter Catechism


___
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] How to use Github Desktop (for Windows) with Gitlab (on our server)

2019-01-27 Thread Matěj Cepl
On 2019-01-26, 14:45 GMT, David Haslam wrote:
> Here's how:  
> https://itnext.io/how-to-use-github-desktop-with-gitlab-cd4d2de3d104
>
> The key is to generate a Personal Access Token while connected 
> in a browser via HTTPS to our git server git.crosswire.org

Cool! Congratulations! We will make a hacker out of you yet ;).

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
All parts should go together without forcing. You must remember
that the parts you are reassembling were disassembled by you.
Therefore, if you can't get them together again, there must be a
reason. By all means, do not use a hammer.
-- IBM maintenance manual, 1925


___
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] gitlab https

2019-01-20 Thread Matěj Cepl
On 2019-01-18, 21:48 GMT, Troy A. Griffitts wrote:
> Gitlab should now work correctly on https.  Please use https and let me
> know if you have any troubles.

Thanks.

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
в чужой монастырь со своим уставом не ходят.
-- Russian proverb (this time actually checked by a native
   Russian)


___
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] CrossWire Society on GitLab, our own GitLab server

2019-01-11 Thread Matěj Cepl
On 2019-01-11, 11:04 GMT, Peter von Kaehne wrote:
> So, with this explanation out of the way, can I invite 
> interested members of these mailing lists to join both our 
> CrossWire group on GitLab(the company) - particularly if you 
> are interested or involved in (public domain) text development 
> and our own GitLab instance on CrossWire server - particularly 
> if you already collaborate with others of us on restricted 
> license texts or our software.

Done. Please, review.

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
It is a rare mind indeed that can render the hitherto
non-existent blindingly obvious. The cry “I could have thought of
that” is a very popular and misleading one, for the fact is that
they didn’t, and a very significant and revealing fact it is too.
  -- Douglas Adams, Dirk Gently's Holistic Detective Agency


___
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] Text and module development on CrossWire

2019-01-09 Thread Matěj Cepl
On 2019-01-09, 14:53 GMT, David Haslam wrote:
> It’s unlikely that moving a repo from GitLab to CrossWire’s 
> GitLab will preserve all the useful information.

Gitlab has supported functionality for import from another 
GitLab instance including (of course) https://gitlab.com. When 
I try to use it though (http://git.crosswire.org/projects/new 
click on ImportProject and Gitlab.com) I get error message:

To enable importing projects from GitLab.com, ask your 
GitLab administrator to configure OAuth integration 
(http://git.crosswire.org/help/integration/gitlab).

(BTW, why don't we have https:// there, with LetsEncrypt it 
should be easy to get SSL certificate; it really is unconscious 
to communicate potentially secret information over unecnrypted 
Internet connections).

Could we get this integration switched on, if it is reasonably 
uncomplicated?

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Science is meaningless because it gives no answer to our
question, the only question important to us: ``What shall we do
and how shall we live?''
-- Lev Nikolaevich Tolstoy


___
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] Text and module development on CrossWire

2019-01-09 Thread Matěj Cepl
On 2019-01-08, 18:11 GMT, Peter von Kaehne wrote:
> we have now a fairly sophisticated GitLab instance installed 
> on CrossWire and I have started installing all kinds of 
> projects there which had been lying fallow in parts. I also 
> have invited several of you as contributors and developers 
> there and will invite more as it becomes obvious and 
> necessary.

If I am granted access, I will immediately move all my 
repositories from gitlab.com there.

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Less is more or less more.
   -- Y_Plentyn on #LinuxGER
  (from fortunes -- I cannot resist :-)


___
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] Export CzeCSP to format which could be imported to InDesign

2019-01-04 Thread Matěj Cepl
On 2018-12-14, 13:24 GMT, Michael H wrote:
> If you're familiar with linux, and have a partition to 
> dedicate, I recommend you install Wasta Linux, since it  
> provides several tools from SIL that help with publishing 
> biblical works, especially non-English works.

I am an employee of SUSE, so I should be able to include 
anything I could need into openSUSE. What exact SIL tools you 
are talking about?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
There is only one happiness here below: peace of mind and a heart
free of guilt. Greatness is dangerous and glory an empty game. It
gives only empty shadows; it takes so much away!
  -- Franz Grillparzer: Der Traum ein Leben


___
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] Export CzeCSP to format which could be imported to InDesign

2018-12-13 Thread Matěj Cepl
Hi,

people I got my sources for CzeCSP from, would like to publish 
their translation as a Book. Their publishing house uses 
InDesign, so I wonder whether it is possible to export OSIS XML 
somehow to something wordprocessor-like.

The easiest solution seemed

diatheke -b CzeCSP -f RTF -o fmhsinx -k Jn >jan-CSP.rtf

but that produced something my LibreOffice Writer seriously 
doesn't know what to do with (https://da.gd/wtsPp is 
diatheke-generated RTF, and Writer generated ODT is 
https://da.gd/Vpa6). I guess Windows Western European \ansi 
encoding is probably not the right one. Any ideas, how to fix 
it? HTML is generated correctly (https://da.gd/fZpue), but it 
doesn't contain any notes, footnotes, etc.

Any ideas?

Blessed Christmas,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
A man once asked Mozart how to write a symphony. Mozart told him
to study at the conservatory for six or eight years, then
apprentice with a composer for four or five more years, then
begin writing a few sonatas, pieces for string quartets, piano
concertos, etc. and in another four or five years he would be
ready to try a full symphony. The man said, "But Mozart, didn't
you write a symphony at age eight?" Mozart replied, "Yes, but
I didn't have to ask how."
   -- ripped from another sig


___
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] A new alternate versification?

2018-11-23 Thread Matěj Cepl
On 2018-11-23, 13:20 GMT, Matěj Cepl wrote:
> It's even worse. Take a look at AddEsth 10.3 which goes upto 
> 10.3l. I guess that's completely unmanageable with the current 
>state of Sword engine, right?

Or



Matěj


___
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] A new alternate versification?

2018-11-23 Thread Matěj Cepl
On 2018-11-23, 11:29 GMT, Peter von Kaehne wrote:
> Just had a look at CzeB21's osis file and noted one thing. 
> AddDan has 3 chapters, named 3 13 and 14. What you are dealing 
> here is a shortcoming of Sword on a more general level than 
> solvable with versifications - AddDan has 3 chapters,  so the 
> chapters need to be numbered 1, 2 and 
> 3. Similarly in Chapter 3 the verses start with verse 24 - but 
> the first text line needs to be verse 1. 

It's even worse. Take a look at AddEsth 10.3 which goes upto 
10.3l. I guess that's completely unmanageable with the current 
   state of Sword engine, right?

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
In the government of this Commonwealth, the legislative
department shall never exercise the executive and judicial
powers, or either of them: The executive shall never exercise the
legislative and judicial powers, or either of them: The judicial
shall never exercise the legislative and executive powers, or
either of them: to the end it may be a government of laws and not
of men.
-- John Adams in the Article XXXth of the Constitution of the
   Commonwealth of Massachusetts


___
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] A new alternate versification?

2018-11-23 Thread Matěj Cepl
On 2018-11-22, 09:08 GMT, Libor Štefek wrote:
> I have tried to create my own canon_.h header and 
> included that into versification manager and then created 
> module with this non-standard versification, but this seems to 
> be unusable with standard jsword front end (I use AndBible). 
> Looking into java code ... and I see - there is versification 
> info hard coded into java code as well.

Do you have that file somewhere? I have my git mirror of Sword 
SVN on https://gitlab.com/mcepl/sword, you can use it as a base.

> I also tried to cheat - I have run osis2mod with my own versification, 
> but then created module zip file with "Versification=Luther" in .conf 
> file. This allows AndBible app to open the module, but I'm not sure 
> about consequences of such cheating ...

Actually, it works here with Xiphos! Interesting. We should 
probably rename the av11n from B21 to something less one Bible 
specific.

> Is there any better way how to create Bible text sword module than just 
> to choose "best fit" predefined versification system and simply ignore 
> warnings?

Well, it depends on the number of warnings. I thought that
https://mcepl.fedorapeople.org/tmp/make-CzeB21-osis2mod-log.txt is just too
much. But perhaps it isn't.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Q: Is vi an easy editor to learn, is it intuitive?
A: Yes, some of us think so. But most people think that we are
   crazy.
-- vi FAQ


___
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] A new alternate versification?

2018-11-23 Thread Matěj Cepl
On 2018-11-23, 09:32 GMT, Peter von Kaehne wrote:
> 1) If there is substantial need for a new v11n for - a single 
>  historical hugely important text
>   - a group of texts following e.g. a particular translation  
> tradition (Like SYnodalProt for IBT texts, NRSV for UBS   and
> Wycliffe.

That would apply. I hope this av11n could apply to all 
Protestant Bibles keeping Apocrypha as separate books (not like 
Catholic Bibles, which incorporate deuterocanonical texts in 
particular books, if possible). I.e., the differentation factor 
is “Are there separate books called ‘Additions to Esther’ etc.”?

> "need" is vaguely defined as  more than ~ 100 verses out of 
> place or substantial other problems. 100 verses amount to 0.3% 
> are and unlikely to cause significant upset to any user. In 
> general I find that there are either only a few or many 
> hundreds out of line.

See the log on 
https://mcepl.fedorapeople.org/tmp/make-CzeB21-osis2mod-log.txt 
Is it enough wrong?

> Also, in order to help to find those reasons - can you link to 
> the OSIS file rather than your modue?

Not sure, what you mean. https://gitlab.com/mcepl/CzeB21 is pure 
OSIS XML, isn't it?

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Economics is the only discipline where two people can win a Nobel
Prize for saying exactly the opposite thing!
-- Eamonn Butler of Adam Smith Institute
   on Nobel Prize awards for year 2001


___
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] A new alternate versification?

2018-11-22 Thread Matěj Cepl
On 2018-11-22, 12:32 GMT, Libor Štefek wrote:
> Well, log itself is not so  different. I have added -z to osis2mod. Then 
> it started to be working for me.

-z should make no difference. And of course, adding new header 
file requires its incorporation in proper C++ source file and 
recompilation.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Whittaker Chambers said the particular temptation of the modern
world is to think that “the destiny of man is in the hands of
man.” Those who think so, he said, would end up committing
greater and greater evils in the name of saving humanity.


___
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] A new alternate versification?

2018-11-22 Thread Matěj Cepl
On 2018-11-22, 09:20 GMT, Tuomas Airaksinen wrote:
> I have created two finnish modules (FinRK and FinSTLK2017) by 
> choosing "best fit" and doing then some manual
> (or sometimes scripted) changes such that it matches with that
> versification of my choice (here: German, which is
> same as Luther, but without apogrypha). It was causing some 
> complaining by copyright holders, though, as my
> modules don't match 100% with their printed bibles.

I don't this is doable (even if I was willing to change the 
text, which I am not), because the difference from Luther is 
quite large. When running osis2mod against the current text 
I get 
https://mcepl.fedorapeople.org/tmp/make-CzeB21-osis2mod-log.txt 
osis2mod just isn't getting texts of Apocryphes at all, in my 
opinion.

On the other hand, it seems to me, that this organization of 
text (non-canonical text is separated into strictly distinct 
semi-book, e.g. Additions to Esther) is used quite often for 
Protestant editions of the Apocrypha, so it could be used as 
a foundation of other future Protestant Apocrypha.

Any hints how to create new av11n?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
This is a test of the emergency signature system. Were this an
actual signature, you would see amusing mottos, disclaimers,
a zillion net addresses, or edifying philosophical statements.
this is only test.


___
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] CrossWire tracker - mass closure of bugs

2018-11-21 Thread Matěj Cepl
On 2018-11-13, 23:51 GMT, Peter von Kaehne wrote:
> In both cases - the work now happens in Github, there is a bug 
> tracker there which is likely in use

??? Where on GitHub? Did we finally switched from SVN to Git? 
(PLEASE!)

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
I am certain there is too much certainty in the world.
  -- Michael Crichton


___
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] What devel libraries I am missing?

2018-10-01 Thread Matěj Cepl
On 2018-09-30, 21:06 GMT, Matěj Cepl wrote:
>> Patching back to 3.5.2 is fine - the only reason it's set to  
>> 3.7.0 that I'm aware if that's the oldest version I had 
>> available at the time and didn't want to over promise and 
>> under deliver. If 3.5.2 works for you, feel free to send 
>> along a patch for it and I'll include that in the next 
>> release.
>
> Trying https://is.gd/qm3UHC

Hmm, so it fails to build. Any ideas, what's wrong? (Full log is 
https://is.gd/pgIi6h)

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
The American Republic will endure, until politicians realize they
can bribe the people with their own money.
-- based on a statement of Alexander Fraser Tytler


___
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] What devel libraries I am missing?

2018-09-30 Thread Matěj Cepl
On 2018-09-29, 03:34 GMT, Greg Hellings wrote:
> I believe, if you're executing with CMake, you can just run 
> "make tests". But it's been a hot minute since I was in that 
> part of the code base, so I could be wrong.

That's exactly what I do (and what you do, isn't it?) and there 
are no run tests.

> Patching back to 3.5.2 is fine - the only reason it's set to 3.7.0
> that I'm aware if that's the oldest version I had available at the
> time and didn't want to over promise and under deliver. If 3.5.2 works
> for you, feel free to send along a patch for it and I'll include that
> in the next release.

Trying https://is.gd/qm3UHC

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Books aren't written - they're rewritten. Including your own. It
is one of the hardest things to accept, especially after the
seventh rewrite hasn't quite done it.
  -- Michael Crichton, alluding to Steele MacKaye (1889) article
 where he said this about theater plays.


___
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] What devel libraries I am missing?

2018-09-28 Thread Matěj Cepl
On 2018-09-28, 21:01 GMT, Matěj Cepl wrote:
> On 2018-09-28, 16:28 GMT, Greg Hellings wrote:
>> Sword is ready, but you have to define a particular complier flag. Your can
>> check the spec file from Fedora to see what I use, or you can pull from SVN
>> head to see if it includes the necessary check yet.
>
> You are right, I forgot the fundamental packaging piece of 
> wisdom: steal often and shamelessly!

Also, https://is.gd/qm3UHC is there any hope that sword could be 
patched to be buildable with cmake 3.5.2?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Faithful love is what people look for in a person; ...
   -- Proverbs 19:22 (NJB)


___
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] What devel libraries I am missing?

2018-09-28 Thread Matěj Cepl
On 2018-09-28, 16:28 GMT, Greg Hellings wrote:
> Sword is ready, but you have to define a particular complier flag. Your can
> check the spec file from Fedora to see what I use, or you can pull from SVN
> head to see if it includes the necessary check yet.

You are right, I forgot the fundamental packaging piece of 
wisdom: steal often and shamelessly!

Thank you,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
It is the mark of an educated mind to be able to entertain
a thought without accepting it.
  -- Aristotle


___
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] What devel libraries I am missing?

2018-09-28 Thread Matěj Cepl
On 2018-09-28, 16:28 GMT, Greg Hellings wrote:
> Sword is ready, but you have to define a particular complier 
> flag. Your can check the spec file from Fedora to see what 
> I use, or you can pull from SVN head to see if it includes the 
> necessary check yet.

Looking both at 
https://kojipkgs.fedoraproject.org//packages/sword/1.8.1/9.fc30/data/logs/x86_64/build.log
 
and 
https://build.opensuse.org/package/live_build_log/home:mcepl/sword/openSUSE_Tumbleweed/x86_64
 
I don't see any tests to be run. Is there any testsuite for 
sword?

Thanks for the help, nevertheless.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
http://xkcd.com/743/ … enough said.


___
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] What devel libraries I am missing?

2018-09-27 Thread Matěj Cepl
Hi,

trying to build sword 1.8.1 on Linux (openSUSE/Tumbleweed) using 
cmake and the result is not persuasive.

Anybody any idea, what's going on? What am I missing?

Blessings,

Matěj

matej@stitny: sword-1.8.1$ mkdir build && cd build
matej@stitny: build$ cmake -DSWORD_BINDINGS="Python Perl" ..
-- The CXX compiler identification is GNU 8.2.1
-- The C compiler identification is GNU 8.2.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring your system to build libsword.
-- SWORD Version 1008001000
-- 
-- SEARCHING FOR SYTEM PACKAGES
-- System regex.h: Yes
-- 
-- CONFIGURING SOURCE LIST
-- ZLib: system /usr/lib64/libz.so
-- bzip2: system /usr/lib64/libbz2.so
-- xz: no
-- cURL: system /usr/lib64/libcurl.so and /usr/include
-- CLucene: no
-- PkgConfig: yes
-- ICU: yes /usr/lib64/libicuuc.so and /usr/include
-- Regex.h: system /usr/include
-- Building Shared library.
-- Building Static library.
-- Setting SOVERSION to 1.8.1
-- cURL SFTP Support: Yes
-- Setting link libraries to 
/usr/lib64/libz.so;/usr/lib64/libbz2.so;/usr/lib64/libcurl.so;/usr/lib64/libicuuc.so;/usr/lib64/libicui18n.so
-- 
-- CONFIGURING INSTALLATION DESTINATIONS
-- Destination: /usr/local
-- 
-- CONFIGURING SWIG BINDINGS
-- Found SWIG: /usr/bin/swig (found version "3.0.12") 
-- Swig: yes
-- Found PythonInterp: /usr/bin/python3.6 (found version "3.6.5") 
-- Found PythonLibs: /usr/lib64/libpython3.6m.so (found version "3.6.5") 
-- Python: yes
-- Found Perl: /usr/bin/perl (found version "5.26.2") 
-- Perl: yes
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/matej/build/home/sword/sword-1.8.1/build
matej@stitny: build$ make
Scanning dependencies of target sword_static
[  0%] Building CXX object 
CMakeFiles/sword_static.dir/src/frontend/swdisp.cpp.o
[  0%] Building CXX object 
CMakeFiles/sword_static.dir/src/frontend/swlog.cpp.o
[  1%] Building CXX object CMakeFiles/sword_static.dir/src/keys/swkey.cpp.o
[  1%] Building CXX object 
CMakeFiles/sword_static.dir/src/keys/listkey.cpp.o
[  1%] Building CXX object CMakeFiles/sword_static.dir/src/keys/strkey.cpp.o
[  1%] Building CXX object 
CMakeFiles/sword_static.dir/src/keys/treekey.cpp.o
[  2%] Building CXX object 
CMakeFiles/sword_static.dir/src/keys/treekeyidx.cpp.o
[  2%] Building CXX object 
CMakeFiles/sword_static.dir/src/keys/versekey.cpp.o
[  2%] Building CXX object 
CMakeFiles/sword_static.dir/src/keys/versetreekey.cpp.o
[  3%] Building CXX object 
CMakeFiles/sword_static.dir/src/mgr/swconfig.cpp.o
[  3%] Building CXX object CMakeFiles/sword_static.dir/src/mgr/swmgr.cpp.o
In file included from 
/home/matej/build/home/sword/sword-1.8.1/src/mgr/swmgr.cpp:108:
/home/matej/build/home/sword/sword-1.8.1/include/utf8transliterator.h:53:2: 
error: ‘UnicodeString’ does not name a type
  UnicodeString resource;
  ^

/home/matej/build/home/sword/sword-1.8.1/include/utf8transliterator.h:56:24: 
error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
 typedef std::map SWTransMap;
^

/home/matej/build/home/sword/sword-1.8.1/include/utf8transliterator.h:56:50: 
error: wrong number of template arguments (1, should be at least 2)
 typedef std::map SWTransMap;
  ^
In file included from /usr/include/c++/8/map:61,
 from 
/home/matej/build/home/sword/sword-1.8.1/include/swmgr.h:60,
 from 
/home/matej/build/home/sword/sword-1.8.1/src/mgr/swmgr.cpp:33:
/usr/include/c++/8/bits/stl_map.h:100:11: note: provided for 
‘template class std::map’
 class map
   ^~~
In file included from 
/home/matej/build/home/sword/sword-1.8.1/src/mgr/swmgr.cpp:108:

/home/matej/build/home/sword/sword-1.8.1/include/utf8transliterator.h:57:19: 
error: ‘UnicodeString’ was not declared in this scope
 typedef std::pair SWTransPair;
   ^

/home/matej/build/home/sword/sword-1.8.1/include/utf8transliterator.h:57:19: 
note: suggested alternative:
In file included from 
/home/matej/build/home/sword/sword-1.8.1/include/utf8transliterator.h:41,
 from 
/home/matej/build/home/sword/sword-1.8.1/src/mgr/swmgr.cpp:108:

Re: [sword-devel] Possibility of using Slack

2018-09-26 Thread Matěj Cepl
On 2018-06-28, 20:23 GMT, Greg Hellings wrote:
> On Thu, Jun 28, 2018 at 3:10 PM Daniel Bennett  wrote:
>
>> Totally understand. Slack is not a great solution in that case.
>>
>> How about Gitter? It’s basically a modern IRC.
>>
>
> The power of inertia is strong. Doubt you'll be able to move people.

Gitter would probably do, it has nice IRC gateway ;). I can hang 
there.

And sorry for not being in #sword, I had apparently forgot to 
join (although I have znc connected to Freenode, so I should 
have no problem with persistent connections)

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Basically, the only “intuitive” interface is the nipple.  After
that, it's all learned.
-- Bruce Ediger when discussing intuivity of Mac OS
   http://groups.google.com/group/comp.sys.next.advocacy\
   /msg/7fa8c580900353d0


___
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] Possibility of using Slack

2018-09-26 Thread Matěj Cepl
On 2018-06-28, 19:29 GMT, Daniel Bennett wrote:
> Just wanted to float the possibility of creating a Slack group 
> for sword development?

Given how huge crowds are currently in #sword channel on 
Freenode (you can link IRC channel to Slack, cannot you?), 
I don't feel that it is the greatest untapped opportunity for 
the Sword community.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Never ascribe to malice that which is adequately explained by
stupidity.
-- Napoleon Bonaparte (or many other people to whom this
   quote is ascribed)


___
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] RFC: new version of CzeCSP

2018-09-07 Thread Matěj Cepl
Hi,

I am planning to release a new version of CzeCSP module, and 
because I am using new script to generate it, I would love if 
somebody (hi, David!) took a look at it and tell me how much 
I screwed up.

https://mcepl.fedorapeople.org/tmp/CzeCSP.zip

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Do not long for the night, when people vanish in their place.
Be careful, do not turn to evil; for you have preferred this to
affliction.
  -- Job 36:20f (NASB)


___
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] HTML mail [Was: Re: Introductory material in OSIS (osis2mod)]

2018-06-14 Thread Matěj Cepl
On 2018-06-12, 00:11 GMT, John Dudeck wrote:
> ___
> 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

Please, do not post to any email list HTML emails. This is all 
I can see. Of course, you don't care about me (or about other 
readers’ of this list), but this is also what you get in the 
official archive of this list 
https://www.crosswire.org/pipermail/sword-devel/2018-June/045863.html 
(and subsequently this lovely reading 
https://www.crosswire.org/pipermail/sword-devel/attachments/20180611/a1b7227e/attachment.html
 
).

This list should be in my opinion switched of to the plain text 
only long time ago (or rather it should be left in its default 
configuration; of course, authors of mailman don't know anything 
worthy about email lists), but the maintainer of the list 
doesn't mind if his own posts are sabotaged, so it is left 
misconfigured and you have to take your own precautions.

This FAQ https://www.lifewire.com/plain-text-not-html-1173241 is 
probably rather outdated, but it should be generally useful.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
La vita è una combinazione di magia e pasta.
  -- Federico Fellini


___
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] Module submission, Wiki page

2018-06-04 Thread Matěj Cepl
On 2018-06-04, 16:09 GMT, Peter von Kaehne wrote:
> My sword git repo is simply an ancient private copy. I am not 
> sure it has ever been updated.

You know you can switch off pull requests and issues in Settings 
tab of your repository? It would probably made you more happy, 
because people wouldn't be confused by your expectations on the 
repo. Just thinking aloud.

> Also, it seems you misunderstand my overall role - I am not 
> the sword-engine guy.

Whoops, I am sorry.

> A git pull request would be nice but we do not have an 
> official git repo for the engine.

I shouldn't ask "Why?", right?

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Give a man a regular expression and he’ll match a string… teach
him to make his own regular expressions and you’ve got a man with
problems.
  -- yakugo in http://regex.info/blog/2006-09-15/247#comment-3022


___
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] Module submission, Wiki page

2018-06-04 Thread Matěj Cepl
On 2018-06-04, 16:25 GMT, Troy A. Griffitts wrote:
> This is my fault.  I missed it.  A wider audience has write 
> access to the locale's so they usually get approved and 
> committed by others, but ultimately I need to make sure the 
> submissions all get in. I'll take care of it.

So, what's the best way how to reach you: pull/merge request 
somewhere (where)? email with patches here (I would like that)?  
Email to you? Those owls?

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
It seemed that every spring the daffodils came out, every summer
the cherries ripened and every autumn William Wilberforce would
present his bill to the House.
  -- said to be written either by his (later?) wife Barbara Spooner,
 or perhaps by Samuel Johnson,
 but I could not find evidence for either.


___
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] Module submission, Wiki page

2018-06-04 Thread Matěj Cepl
On 2018-05-30, 10:19 GMT, Peter von Kaehne wrote:
> Given that module submission is and - has always been 
> -  a definitive bottleneck in our setup I have spent 
> significant time to make it automated, reproducible and 
> hopefully faster too. 

I don’t think that modules submission is the only bottleneck.  
Having no way how to provide submissions to the main sword repo 
even for something so trivial as language files support makes me 
really hesitant on doing more complicated work like developing 
new av11n schema (required for update of CzeB21, which has 
apocryphal books in the Protestant style). I tried everything: 
GitHub pull request https://github.com/refdoc/sword/pull/1, 
email to this list 
https://www.crosswire.org/pipermail/sword-devel/2018-March/045643.html 
(I believe I've sent CC to your personally, but not sure about 
that), considering sending CD with those patches via snail-mail 
moment I found your postal address, or perhaps buying a postal 
owl Harry Potter-style.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Monday, December 9th. We skip the bus tour of Stockholm to attend
the economics lecture. Our guest status is again good for front
row seats.  We hear about the theory of auctions. There are
integrals and derivatives. It's like physics except physics
works.


___
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] Fixes to versification/av11n.py script in sword-tools repo

2018-04-09 Thread Matěj Cepl
On 2018-04-09, 05:31 GMT, Greg Hellings wrote:
> I don't have permissions on SWORD main outside of bindings and 
> the CMakeFiles.

Ah, thank you.

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
The main idea of the pope's asking for forgiveness was not to be
afraid of the truth. DO NOT BE AFRAID OF TRUTH! We have to have
faith in the God's governing power to be able not to be afraid.
-- On NPR The Connection from March 13, 2000


___
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] intro material CSS

2018-04-09 Thread Matěj Cepl
On 2018-04-09, 07:11 GMT, ref...@gmx.net wrote:
> ___
> 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

Would you be please so kind, and switch your emailer to send 
plain text messages to this list? The above is what I get from 
all your emails and the result in the email archive is just 
a bit better 
https://www.crosswire.org/pipermail/sword-devel/2018-April/045665.html.  
I am willing to help you to find out how to set the options in 
your email client, if you don't know how.

Thank you very much,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
<"}}}><


___
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] Fixes to versification/av11n.py script in sword-tools repo

2018-04-08 Thread Matěj Cepl
On 2018-04-05, 02:34 GMT, Greg Hellings wrote:
> Feel free to submit future revisions directly through git. 

Ehm, I have to repeat: which git repo? And also, could I ask for 
those Czech locale being updated as well (previous set of 
patches sent to this list), please?

Thank you,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Of all tyrannies, a tyranny exercised for the good of its
victims may be the most oppressive. It may be better to live
under robber barons than under omnipotent moral busybodies. The
robber baron's cruelty may sometimes sleep, his cupidity may at
some point be satiated; but those who torment us for our own
good will torment us without end, for they do so with the
approval of their consciences.
-- C. S. Lewis


___
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] Fixes to versification/av11n.py script in sword-tools repo

2018-04-08 Thread Matěj Cepl
On 2018-04-08, 16:52 GMT, Jaak Ristioja wrote:
> Sword++ development. This is meant to be an unofficial 
> read-only mirror, so please don't submit pull requests. If 
> there are any problems with that mirror, please contact me.

Oh well, I have already my own git-svn mirror at 
https://gitlab.com/mcepl/sword (and I believe, better than 
yours, tags are tags, and I have found all authors and gave them 
proper names). So, I'll keep my git-send-email configuration 
up-to-date.

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
How many Bavarian Illuminati does it take to screw in a light
bulb?
Three: one to screw it in, and one to confuse the issue.


___
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] Fixes to versification/av11n.py script in sword-tools repo

2018-04-05 Thread Matěj Cepl
On 2018-04-05, 02:34 GMT, Greg Hellings wrote:
> Feel free to submit future revisions directly through git. 

??? There is some git? I thought 
https://github.com/refdoc/sword/ could be alive, but 
https://github.com/refdoc/sword/pull/1 persuaded me otherwise.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Be pitiful, for every man is fighting a hard battle.
  -- Ian MacLaren, at least 1898


___
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] Front-ends in which search can find words in the canonical Psalm headings?

2018-04-04 Thread Matěj Cepl
On 2018-04-04, 10:57 GMT, David Haslam wrote:
> Do any front-ends support this?
>
> e.g. Search the KJV for Neginoth.

https://www.stepbible.org/?q=version=KJV|xnave=neginoth=HNVUG

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Courage is resistance of fear, mastery of fear, not absence of
fear.


___
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] [PATCH 2/2] Add Apocryphal books abbreviations to Czech locale.

2018-03-31 Thread Matěj Cepl
Also some typos.
---
 locales.d/cs-utf8.conf | 88 +-
 locales.d/cs.conf  | 88 +-
 2 files changed, 174 insertions(+), 2 deletions(-)

diff --git a/locales.d/cs-utf8.conf b/locales.d/cs-utf8.conf
index b2066a3b..34a878e8 100644
--- a/locales.d/cs-utf8.conf
+++ b/locales.d/cs-utf8.conf
@@ -2,6 +2,7 @@
 #   Czech Bible books for Sword.
 #
 #   2000/04/12. (c) p...@kristof.cz, GNU GPL 2.0.
+#   2018/02/04. (c) Matěj Cepl, GNU GPL 2.0.
 #
 # Notice: the locales name of czech language is CS, not CZ.
 # CZ is shortcut name of state (Czech Republic).
@@ -10,6 +11,9 @@
 #
 # Notice: Names and abbreviations are in compliance with authority
 # A. Novotný: Biblický slovník (1967).
+# Corrections and additional apocryphal books added according to
+# the Český ekumenický překlad (1985) and Bible, Překlad 21.
+# století (2. edition, 2015)
 #
 
 [Meta]
@@ -54,7 +58,7 @@ Micah=Micheáš
 Nahum=Nahum
 Habakkuk=Abakuk
 Zephaniah=Sofoniáš
-Haggai=Aggeus
+Haggai=Ageus
 Zechariah=Zachariáš
 Malachi=Malachiáš
 Matthew=Matouš
@@ -85,6 +89,26 @@ III John=3. Janova
 Jude=Juda
 Revelation of John=Zjevení
 
+#Apocr
+I Esdras=1 Ezdráš
+II Esdras=2 Ezdráš
+Tobit=Tobiáš
+Judith=Judita
+Additions to Esther=Přídavky k Ester
+Esther (Greek)=Ester (řec.)
+Wisdom=Moudrost Šalamounova
+Sirach=Sirachovec
+Baruch=Baruch
+Prayer of Azariah=Modlitba Azariášova
+Susanna=Zuzana
+Bel and the Dragon=Bél a Drak
+Prayer of Manasses=Modlitba Menášeova
+I Maccabees=1 Makabejská
+II Maccabees=2 Makabejská
+III Maccabees=3 Makabejská
+IV Maccabees=4 Makabejská
+Additional Psalm=Přídavky k Žalmům
+
 [Book Abbrevs]
 
 GENESIS=Gen
@@ -276,3 +300,65 @@ JUDA=Jude
 JU=Jude
 ZJEVENÍ=Rev
 ZJ=Rev
+
+# Apokryfy
+
+1EZD=1Esd
+2EZD=2Esd
+
+TB=Tob
+TBT=Tob
+TOB=Tob
+
+MOUDR=Wis
+MOUDR=Wis
+
+SIR=Sir
+SIRACH=Sir
+
+MODLITBA AZARIÁŠOVA=PrAzar
+AZARIÁŠ=PrAzar
+AZAR=PrAzar
+
+MODLITBA MENÁŠEOVA=PrMan
+MENÁŠE=PrMan
+MAN=PrMan
+
+ZUZANA=Sus
+ZUZ=Sus
+
+1MAK=1Macc
+1 MAK=1Macc
+2MAK=2Macc
+2 MAK=2Macc
+3MAK=3Macc
+3 MAK=3Macc
+4MAK=4Macc
+4 MAK=4Macc
+
+BARUCH=Bar
+BAR=Bar
+
+JUDITA=Jdt
+JDT=Jdt
+
+PŘÍDAVKY K ESTERI=AddEsth
+
+ESTERr (ŘEC.)=EsthGr
+
+PŘÍDAVKY K ŽALMŮM=AddPs
+
+BEL=Bel
+BÉLA AND DRAK=Bel
+
+TOBIÁŠ=Tob
+JUDITA=Jdt
+ESTER (ŘEC.)=EsthGr
+MOUDROST=Wis
+SIRACHOVEC=Sir
+1 MAKABEJSKÁ=1Macc
+2 MAKABEJSKÁ=2Macc
+1 EZDRÁŠA=1Esd
+3 MAKABEJSKÁ=3Macc
+2 EZDRÁŠA=2Esd
+4 MAKABEJSKÁ=4Macc
diff --git a/locales.d/cs.conf b/locales.d/cs.conf
index 36869d2a..079998ad 100644
--- a/locales.d/cs.conf
+++ b/locales.d/cs.conf
@@ -2,6 +2,7 @@
 #   Czech Bible books for Sword.
 #
 #   2000/04/12. (c) p...@kristof.cz, GNU GPL 2.0.
+#   2018/02/04. (c) Mat�j Cepl, GNU GPL 2.0.
 #
 # Notice: the locales name of czech language is CS, not CZ.
 # CZ is shortcut name of state (Czech Republic).
@@ -10,6 +11,9 @@
 #
 # Notice: Names and abbreviations are in compliance with authority
 # A. Novotn�: Biblick� slovn�k (1967).
+# Corrections and additional apocryphal books added according to
+# the �esk� ekumenick� p�eklad (1985) and Bible, P�eklad 21.
+# stolet� (2. edition, 2015)
 #
 
 [Meta]
@@ -54,7 +58,7 @@ Micah=Miche
 Nahum=Nahum
 Habakkuk=Abakuk
 Zephaniah=Sofoni��
-Haggai=Aggeus
+Haggai=Ageus
 Zechariah=Zachari��
 Malachi=Malachi��
 Matthew=Matou�
@@ -85,6 +89,26 @@ III John=3. Janova
 Jude=Juda
 Revelation of John=Zjeven�
 
+#Apocr
+I Esdras=1 Ezdr��
+II Esdras=2 Ezdr��
+Tobit=Tobi��
+Judith=Judita
+Additions to Esther=P��davky k Ester
+Esther (Greek)=Ester (�ec.)
+Wisdom=Moudrost �alamounova
+Sirach=Sirachovec
+Baruch=Baruch
+Prayer of Azariah=Modlitba Azari��ova
+Susanna=Zuzana
+Bel and the Dragon=B�l a Drak
+Prayer of Manasses=Modlitba Men��eova
+I Maccabees=1 Makabejsk�
+II Maccabees=2 Makabejsk�
+III Maccabees=3 Makabejsk�
+IV Maccabees=4 Makabejsk�
+Additional Psalm=P��davky k �alm�m
+
 [Book Abbrevs]
 
 GENESIS=Gen
@@ -276,3 +300,65 @@ JUDA=Jude
 JU=Jude
 ZJEVEN�=Rev
 ZJ=Rev
+
+# Apokryfy
+
+1EZD=1Esd
+2EZD=2Esd
+
+TB=Tob
+TBT=Tob
+TOB=Tob
+
+MOUDR=Wis
+MOUDR=Wis
+
+SIR=Sir
+SIRACH=Sir
+
+MODLITBA AZARI��OVA=PrAzar
+AZARI��=PrAzar
+AZAR=PrAzar
+
+MODLITBA MEN��EOVA=PrMan
+MEN��E=PrMan
+MAN=PrMan
+
+ZUZANA=Sus
+ZUZ=Sus
+
+1MAK=1Macc
+1 MAK=1Macc
+2MAK=2Macc
+2 MAK=2Macc
+3MAK=3Macc
+3 MAK=3Macc
+4MAK=4Macc
+4 MAK=4Macc
+
+BARUCH=Bar
+BAR=Bar
+
+JUDITA=Jdt
+JDT=Jdt
+
+P��DAVKY K ESTERI=AddEsth
+
+ESTERr (�EC.)=EsthGr
+
+P��DAVKY K �ALM�M=AddPs
+
+BEL=Bel
+B�LA AND DRAK=Bel
+
+TOBI��=Tob
+JUDITA=Jdt
+ESTER (�EC.)=EsthGr
+MOUDROST=Wis
+SIRACHOVEC=Sir
+1 MAKABEJSK�=1Macc
+2 MAKABEJSK�=2Macc
+1 EZDR��A=1Esd
+3 MAKABEJSK�=3Macc
+2 EZDR��A=2Esd
+4 MAKABEJSK�=4Macc
-- 
2.16.2


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

[sword-devel] Fix Czech locale (to sword repo)

2018-03-31 Thread Matěj Cepl
And while we are at it, I would love also to propose these two fixes to
Czech locale in the sword SVN.

Thank you,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Quod fuimus, estis; quod sumus, vos eritis.


___
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] [PATCH 1/2] Incorrect capitalisation.

2018-03-31 Thread Matěj Cepl
In all-caps words characters with diacritical marks were lower case.

Actually, I would question the wisdom of keeping two different versions
of the same file, when it can be easily generated by iconv(1) or similar
utility. This is just asking for maintenance bugs like this.
---
 locales.d/cs.conf | 28 ++--
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/locales.d/cs.conf b/locales.d/cs.conf
index f677aba2..36869d2a 100644
--- a/locales.d/cs.conf
+++ b/locales.d/cs.conf
@@ -134,9 +134,9 @@ RT=Ruth
 2PARALIPOMENON=2Chr
 2PA=2Chr
 
-EZDR��=Ezra
+EZDR��=Ezra
 EZD=Ezra
-NEHEMI��=Neh
+NEHEMI��=Neh
 NEH=Neh
 ESTER=Esth
 EST=Esth
@@ -151,45 +151,45 @@ KAZ=Eccl
 P�SE� �ALOMOUNOVA=Song
 P�SE� �ALAMOUNOVA=Song
 P�S=Song
-IZAI��=Isa
+IZAI��=Isa
 IZ=Isa
-JEREMI��=Jer
+JEREMI��=Jer
 JR=Jer
-PL�� JEREMI���V=Lam
+PL�� JEREMI���V=Lam
 PL=Lam
 EZECHIEL=Ezek
 EZ=Ezek
 DANIEL=Dan
 DN=Dan
-OZE��=Hos
+OZE��=Hos
 OZ=Hos
 JOEL=Joel
 JL=Joel
 AMOS=Amos
 AM=Amos
-ABDI��=Obad
+ABDI��=Obad
 ABD=Obad
-JON��=Jonah
+JON��=Jonah
 JON=Jonah
-MICHE��=Mic
+MICHE��=Mic
 MI=Mic
 NAHUM=Nah
 NA=Nah
 ABAKUK=Hab
 AB=Hab
-SOFONI��=Zeph
+SOFONI��=Zeph
 SF=Zeph
 AGGEUS=Hag
 AG=Hag
-ZACHARI��=Zech
+ZACHARI��=Zech
 ZA=Zech
-MALACHI��=Mal
+MALACHI��=Mal
 MAL=Mal
-MATOU�=Matt
+MATOU�=Matt
 MT=Matt
 MAREK=Mark
 MK=Mark
-LUK��=Luke
+LUK��=Luke
 LK=Luke
 L=Luke
 JAN=John
-- 
2.16.2


___
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] [PATCH 7/7] Use argparser.

2018-03-31 Thread Matěj Cepl
---
 versification/av11n.py | 77 --
 1 file changed, 50 insertions(+), 27 deletions(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index 198eeb4..88f8402 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -9,12 +9,15 @@
 # special as for ordering.
 #
 # Invoke simply by calling the program and the file name.
+import argparse
 import io
 import logging
 # in normal state level should be debug.WARNING, debug.INFO and debug.DEBUG
 # give additional information.
-logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
-level=logging.WARNING)
+logging.basicConfig(format='%(levelname)s:%(message)s',
+level=logging.INFO)
+log = logging.getLogger('versification')
+
 import re
 import sys
 try:
@@ -22,40 +25,54 @@ try:
 except ImportError:
 import xml.etree.ElementTree as ET
 
-VERSEID_RE = re.compile(r'^.+\..+\..+$')
+OSIS_NS = 'http://www.bibletechnologies.net/2003/OSIS/namespace'
+VERSEID_RE = re.compile(r'^(.+\.\d+\.\d+).*$')
 
 # Inform the user that we need the SWORD extension
 try:
 import Sword
 except ImportError:
-logging.exception(
+log.exception(
 "You do not have the SWORD library installed. Please install it.")
 sys.exit(1)
 
-# Without the name of a file, we cannot proceed any further
-if len(sys.argv) < 2 or sys.argv[1] == '--help':
-print >>sys.stderr, "Usage: %s " % sys.argv[0]
-sys.exit(1)
+arg_parser = argparse.ArgumentParser(
+description='Compare OSIS file with available v11ns.')
+
+arg_parser.add_argument('--verbose', '-v', action='count')
+arg_parser.add_argument('filename', nargs=1)
+
+
+args = arg_parser.parse_args()
+
+if args.verbose:
+log.setLevel = logging.DEBUG
+
+log.debug('args = %s', args)
 
 # Open the file
-logging.debug('Opening %s' % (sys.argv[1],))
+log.debug('Opening %s' % args.filename[0])
 
-tree = ET.parse(io.open(sys.argv[1], encoding='utf8')).getroot()
+tree = ET.parse(io.open(args.filename[0], encoding='utf8')).getroot()
 # Get the list of versifications
-logging.debug('Fetching a list of v11ns')
+log.debug('Fetching a list of v11ns')
 vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
 av11ns = vmgr.getVersificationSystems()
+log.debug('av11ns = %s', av11ns)
 
 # Get the list of all osisIDs
-logging.debug('Fetching a list of OSIS IDs')
+log.debug('Fetching a list of OSIS IDs')
 ids = set()
-for item in tree.iter():
+for item in tree.iter('{%s}verse' % OSIS_NS):
 if 'osisID' in item.attrib:
-ids.add(item.attrib['osisID'])
+ids.add(item.attrib['osisID'].split('!')[0])
+log.debug('ids = len(%d)', len(ids))
 
 # Iterate each versification scheme
 for v11n in av11ns:
-print('Checking %s' % v11n.c_str())
+v11n_name = v11n.c_str()
+print('\nChecking %s:\n%s' %
+  (v11n_name, (len(v11n_name) + 10) * '-'))
 # Construct a list of the IDs in this versification
 key = Sword.VerseKey()
 key.setVersificationSystem(v11n.c_str())
@@ -85,36 +102,42 @@ for v11n in av11ns:
 inNT = False
 # Now iterate the ones we have in this file
 for osisid in ids:
-logging.debug('Checking key %s', osisid)
+#log.debug('Checking key %s', osisid)
 if osisid in otkeyList:
 otkeyList.remove(osisid)
 elif osisid in ntkeyList:
 ntkeyList.remove(osisid)
 inNT = True
-elif VERSEID_RE.match(osisid) and inNT:
-ntextraKeys.append(osisid)
-elif VERSEID_RE.match(osisid) and not inNT:
-otextraKeys.append(osisid)
-# Ignore it if not VERSEID_RE.match()
+else:
+verse_match = VERSEID_RE.match(osisid)
+if verse_match and inNT:
+ntextraKeys.append(verse_match.group(1))
+elif verse_match and not inNT:
+otextraKeys.append(verse_match.group(1))
+# Ignore it if not VERSEID_RE.match()
 
 # Now let's see what is left over
 # Sets in Python cannot be ordered
 keyList = list(otkeyList.union(ntkeyList))
 keyList.sort()
 if len(keyList) > 0:
-logging.info('\tThe following IDs don’t appear in your file:\n%s',
- str("\n".join(keyList)))
+if len(keyList) < 100:
+log.info('\tThe following IDs don’t appear in your file:\n%s',
+ str(", ".join(keyList)))
 print ('\tThere are %d OT IDs and %d NT IDs ' +
-   'in v11n which arn’t in your file.') \
+   'in v11n which aren’t in your file.') \
 % (len(otkeyList), len(ntkeyList))
 else:
 print '\tYour file has all the references in this v11n'
 
 # Now let's see if you had extra
 if len(otextraKeys + ntextraKeys) > 0:
-logging.info(
-'\tThe following IDs don’t appear in v11n:\n%s',
-str("\n".join(keyList)))
+# It doesn't make sense to print out lists longer 

[sword-devel] [PATCH 6/7] Don’t fool with PyQuery and use standard XML libraries.

2018-03-31 Thread Matěj Cepl
---
 versification/av11n.py | 38 +++---
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index 9ade84e..198eeb4 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -9,6 +9,7 @@
 # special as for ordering.
 #
 # Invoke simply by calling the program and the file name.
+import io
 import logging
 # in normal state level should be debug.WARNING, debug.INFO and debug.DEBUG
 # give additional information.
@@ -16,7 +17,12 @@ 
logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
 level=logging.WARNING)
 import re
 import sys
-verseid = re.compile(r'^.+\..+\..+$')
+try:
+import lxml.etree as ET
+except ImportError:
+import xml.etree.ElementTree as ET
+
+VERSEID_RE = re.compile(r'^.+\..+\..+$')
 
 # Inform the user that we need the SWORD extension
 try:
@@ -26,15 +32,6 @@ except ImportError:
 "You do not have the SWORD library installed. Please install it.")
 sys.exit(1)
 
-# Inform the user that we need pyquery, as it makes parsing XML files
-# that much easier
-try:
-from pyquery import PyQuery as pq  # noqa
-except ImportError:
-logging.exception(
-"You do not appear to have PyQuery installed. Please install it.")
-sys.exit(2)
-
 # Without the name of a file, we cannot proceed any further
 if len(sys.argv) < 2 or sys.argv[1] == '--help':
 print >>sys.stderr, "Usage: %s " % sys.argv[0]
@@ -42,7 +39,8 @@ if len(sys.argv) < 2 or sys.argv[1] == '--help':
 
 # Open the file
 logging.debug('Opening %s' % (sys.argv[1],))
-d = pq(filename=sys.argv[1])
+
+tree = ET.parse(io.open(sys.argv[1], encoding='utf8')).getroot()
 # Get the list of versifications
 logging.debug('Fetching a list of v11ns')
 vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
@@ -50,7 +48,11 @@ av11ns = vmgr.getVersificationSystems()
 
 # Get the list of all osisIDs
 logging.debug('Fetching a list of OSIS IDs')
-ids = d("*[osisID]")
+ids = set()
+for item in tree.iter():
+if 'osisID' in item.attrib:
+ids.add(item.attrib['osisID'])
+
 # Iterate each versification scheme
 for v11n in av11ns:
 print('Checking %s' % v11n.c_str())
@@ -82,20 +84,18 @@ for v11n in av11ns:
 
 inNT = False
 # Now iterate the ones we have in this file
-for e in ids:
-logging.debug('e = %s', e)
-osisid = e.attrib.get('osisID')
-#print 'Checking key %s' % (osisid,)
+for osisid in ids:
+logging.debug('Checking key %s', osisid)
 if osisid in otkeyList:
 otkeyList.remove(osisid)
 elif osisid in ntkeyList:
 ntkeyList.remove(osisid)
 inNT = True
-elif verseid.match(osisid) and inNT:
+elif VERSEID_RE.match(osisid) and inNT:
 ntextraKeys.append(osisid)
-elif verseid.match(osisid) and not inNT:
+elif VERSEID_RE.match(osisid) and not inNT:
 otextraKeys.append(osisid)
-# Ignore it if not verseid.match()
+# Ignore it if not VERSEID_RE.match()
 
 # Now let's see what is left over
 # Sets in Python cannot be ordered
-- 
2.16.2


___
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] [PATCH 3/7] Switch to logging to make it a little bit more civilized.

2018-03-31 Thread Matěj Cepl
---
 versification/av11n.py | 57 --
 1 file changed, 27 insertions(+), 30 deletions(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index 7dabfee..54347a8 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -7,10 +7,12 @@
 # in the proper order, although within each testament, it requires nothing
 # special as for ordering.
 #
-# Invoke simply by calling the program and the file name.  If you want
-# more output, change the following line to be True instead of False
-verbose = False
-debug = True
+# Invoke simply by calling the program and the file name.
+import logging
+# in normal state level should be debug.WARNING, debug.INFO and debug.DEBUG
+# give additional information.
+logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
+level=logging.WARNING)
 import re
 import sys
 verseid = re.compile(r'^.+\..+\..+$')
@@ -19,7 +21,8 @@ verseid = re.compile(r'^.+\..+\..+$')
 try:
 import Sword
 except ImportError:
-print "You do not have the SWORD library installed. Please install it."
+logging.exception(
+"You do not have the SWORD library installed. Please install it.")
 sys.exit(1)
 
 # Inform the user that we need pyquery, as it makes parsing XML files
@@ -27,30 +30,29 @@ except ImportError:
 try:
 from pyquery import PyQuery as pq  # noqa
 except ImportError:
-print "You do not appear to have PyQuery installed. Please install it."
+logging.exception(
+"You do not appear to have PyQuery installed. Please install it.")
 sys.exit(2)
 
 # Without the name of a file, we cannot proceed any further
 if len(sys.argv) < 2 or sys.argv[1] == '--help':
-print "Usage: %s " % (sys.argv[0],)
+print >>sys.stderr, "Usage: %s " % sys.argv[0]
+sys.exit(1)
 
 # Open the file
-if debug:
-print 'Opening %s' % (sys.argv[1],)
+logging.debug('Opening %s' % (sys.argv[1],))
 d = pq(filename=sys.argv[1])
 # Get the list of versifications
-if debug:
-print 'Fetching a list of versifications'
+logging.debug('Fetching a list of versifications')
 vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
 av11ns = vmgr.getVersificationSystems()
 
 # Get the list of all osisIDs
-if debug:
-print 'Fetching a list of OSIS IDs'
+logging.debug('Fetching a list of OSIS IDs')
 ids = d("*[osisID]")
 # Iterate each versification scheme
 for v11n in av11ns:
-print 'Checking %s' % (v11n.c_str(),)
+print('Checking %s' % v11n.c_str())
 # Construct a list of the IDs in this versification
 key = Sword.VerseKey()
 key.setVersificationSystem(v11n.c_str())
@@ -98,26 +100,21 @@ for v11n in av11ns:
 keyList = list(otkeyList.union(ntkeyList))
 keyList.sort()
 if len(keyList) > 0:
-if verbose:
-print '\tThe following IDs do not appear in your file:'
-for k in keyList:
-print k
-else:
-print ('\tThere are %d OT IDs and %d NT IDs ' +
-   'in the versification which are not in your file.') \
-% (len(otkeyList), len(ntkeyList))
+logging.info('\tThe following IDs do not appear in your file:\n%s',
+ str("\n".join(keyList)))
+print ('\tThere are %d OT IDs and %d NT IDs ' +
+   'in the versification which are not in your file.') \
+% (len(otkeyList), len(ntkeyList))
 else:
 print '\tYour file has all the references in this versification'
 
 # Now let's see if you had extra
 if len(otextraKeys + ntextraKeys) > 0:
-if verbose:
-print '\tThe following IDs do not appear in the versification:'
-for k in ntextraKeys + otextraKeys:
-print k
-else:
-print ('\tThere are %d OT IDs and %d NT IDs ' +
-   'in your file which do not appear in the versification.') \
-% (len(otextraKeys), len(ntextraKeys))
+logging.info(
+'\tThe following IDs do not appear in the versification:\n%s',
+str("\n".join(keyList)))
+print ('\tThere are %d OT IDs and %d NT IDs ' +
+   'in your file which do not appear in the versification.') \
+% (len(otextraKeys), len(ntextraKeys))
 else:
 print '\tYour file has no extra references'
-- 
2.16.2


___
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] [PATCH 2/7] Don’t use deprecated API calls.

2018-03-31 Thread Matěj Cepl
* Use Sword.VersificationMgr.getSystemVersificationMgr() instead of
  Sword.VerseMgr.getSystemVerseMgr().
* Use popError() instead of Error().
---
 versification/av11n.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index 5e01c9e..7dabfee 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -41,7 +41,7 @@ d = pq(filename=sys.argv[1])
 # Get the list of versifications
 if debug:
 print 'Fetching a list of versifications'
-vmgr = Sword.VerseMgr.getSystemVerseMgr()
+vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
 av11ns = vmgr.getVersificationSystems()
 
 # Get the list of all osisIDs
@@ -64,7 +64,7 @@ for v11n in av11ns:
 ntextraKeys = []
 
 inNT = False
-while key.Error() == '\x00':
+while key.popError() == '\x00':
 skey = key.getOSISRef()
 # Assume we enter the NT when we hit Matthew
 if not inNT and re.match('^Matt', skey):
-- 
2.16.2


___
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] [PATCH 5/7] Shorten the labels so they are not overflowing the screen.

2018-03-31 Thread Matěj Cepl
---
 versification/av11n.py | 14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index c464fd9..9ade84e 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# coding: utf-8
 #
 # This does a very roughshod attempt to compare the osisIDs found in an
 # XML file with each of the versifications that SWORD knows about to help
@@ -43,7 +44,7 @@ if len(sys.argv) < 2 or sys.argv[1] == '--help':
 logging.debug('Opening %s' % (sys.argv[1],))
 d = pq(filename=sys.argv[1])
 # Get the list of versifications
-logging.debug('Fetching a list of versifications')
+logging.debug('Fetching a list of v11ns')
 vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
 av11ns = vmgr.getVersificationSystems()
 
@@ -82,6 +83,7 @@ for v11n in av11ns:
 inNT = False
 # Now iterate the ones we have in this file
 for e in ids:
+logging.debug('e = %s', e)
 osisid = e.attrib.get('osisID')
 #print 'Checking key %s' % (osisid,)
 if osisid in otkeyList:
@@ -100,21 +102,21 @@ for v11n in av11ns:
 keyList = list(otkeyList.union(ntkeyList))
 keyList.sort()
 if len(keyList) > 0:
-logging.info('\tThe following IDs do not appear in your file:\n%s',
+logging.info('\tThe following IDs don’t appear in your file:\n%s',
  str("\n".join(keyList)))
 print ('\tThere are %d OT IDs and %d NT IDs ' +
-   'in the versification which are not in your file.') \
+   'in v11n which arn’t in your file.') \
 % (len(otkeyList), len(ntkeyList))
 else:
-print '\tYour file has all the references in this versification'
+print '\tYour file has all the references in this v11n'
 
 # Now let's see if you had extra
 if len(otextraKeys + ntextraKeys) > 0:
 logging.info(
-'\tThe following IDs do not appear in the versification:\n%s',
+'\tThe following IDs don’t appear in v11n:\n%s',
 str("\n".join(keyList)))
 print ('\tThere are %d OT IDs and %d NT IDs ' +
-   'in your file which do not appear in the versification.') \
+   'in your file which don’t appear in v11n.') \
 % (len(otextraKeys), len(ntextraKeys))
 else:
 print '\tYour file has no extra references'
-- 
2.16.2


___
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] Fixes to versification/av11n.py script in sword-tools repo

2018-03-31 Thread Matěj Cepl
On Sat, 31 Mar 2018 12:02:02 -0500, Greg Hellings wrote:
> Personally I'd prefer to see this as a few separate patches.
> Especaially one that separates out the PEP8 stuff from the other
> problems.
  
With the greatest pleasure. I was trying to make things as simple as
possible.

You see, if we were using git (as every civilized project does
these days), I could just point you to the merge/pull request or to my
branch https://gitlab.com/mcepl/sword-tools/tree/fix_av11n_py and be
done with, but alas we are still stuck with SVN.

Christ is risen (almost here)!

Matěj

-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
в чужой монастырь со своим уставом не ходят.
-- Russian proverb (this time actually checked by a native
   Russian)

___
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] [PATCH 4/7] Don’t use RE when you don’t need it.

2018-03-31 Thread Matěj Cepl
---
 versification/av11n.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index 54347a8..c464fd9 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -69,7 +69,7 @@ for v11n in av11ns:
 while key.popError() == '\x00':
 skey = key.getOSISRef()
 # Assume we enter the NT when we hit Matthew
-if not inNT and re.match('^Matt', skey):
+if not inNT and skey.startswith('Matt'):
 inNT = True
 if inNT:
 ntkeyList.append(skey)
-- 
2.16.2


___
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] [PATCH 1/7] Make versification/av11n.py script PEP8-compliant.

2018-03-31 Thread Matěj Cepl
That unfortunately includes '\t' -> '' change (PEP8 doesn’t like
TABs), which makes for the massive diff.
---
 versification/av11n.py | 163 ++---
 1 file changed, 87 insertions(+), 76 deletions(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index 136a382..5e01c9e 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -11,102 +11,113 @@
 # more output, change the following line to be True instead of False
 verbose = False
 debug = True
-import sys
 import re
-verseid = re.compile('^.+\..+\..+$')
+import sys
+verseid = re.compile(r'^.+\..+\..+$')
 
 # Inform the user that we need the SWORD extension
 try:
-   import Sword
-except:
-   print "You do not have the SWORD library installed. Please install it."
-   sys.exit(1)
+import Sword
+except ImportError:
+print "You do not have the SWORD library installed. Please install it."
+sys.exit(1)
 
-# Inform the user that we need pyquery, as it makes parsing XML files that 
much easier
+# Inform the user that we need pyquery, as it makes parsing XML files
+# that much easier
 try:
-   from pyquery import PyQuery as pq
-except:
-   print "You do not appear to have PyQuery installed. Please install it."
-   sys.exit(2)
+from pyquery import PyQuery as pq  # noqa
+except ImportError:
+print "You do not appear to have PyQuery installed. Please install it."
+sys.exit(2)
 
 # Without the name of a file, we cannot proceed any further
 if len(sys.argv) < 2 or sys.argv[1] == '--help':
-   print "Usage: %s " % (sys.argv[0],)
+print "Usage: %s " % (sys.argv[0],)
 
 # Open the file
 if debug:
-   print 'Opening %s' % (sys.argv[1],)
+print 'Opening %s' % (sys.argv[1],)
 d = pq(filename=sys.argv[1])
 # Get the list of versifications
 if debug:
-   print 'Fetching a list of versifications'
+print 'Fetching a list of versifications'
 vmgr = Sword.VerseMgr.getSystemVerseMgr()
 av11ns = vmgr.getVersificationSystems()
 
 # Get the list of all osisIDs
 if debug:
-   print 'Fetching a list of OSIS IDs'
+print 'Fetching a list of OSIS IDs'
 ids = d("*[osisID]")
 # Iterate each versification scheme
 for v11n in av11ns:
-   print 'Checking %s' % (v11n.c_str(),)
-   # Construct a list of the IDs in this versification
-   key = Sword.VerseKey()
-   key.setVersificationSystem(v11n.c_str())
-   otkeyList = [] # Anything left in this afterwards is missing from the 
OSIS ot
-   ntkeyList = [] # Anything left in this afterwards is missing from the 
OSIS nt
-   otextraKeys = [] # Anything that gets placed in here is extraneous OT 
material (we think)
-   ntextraKeys = [] # Anything that gets placed in here is extraneous NT 
material (we think)
-   
-   inNT = False
-   while key.Error() == '\x00':
-   skey = key.getOSISRef()
-   if not inNT and re.match('^Matt', skey): # Assume we enter the 
NT when we hit Matthew
-   inNT = True
-   if inNT:
-   ntkeyList.append(skey)
-   else:
-   otkeyList.append(skey)
-   key.increment()
-   ntkeyList = set(ntkeyList) # The 'in' operator only works on a set
-   otkeyList = set(otkeyList)
-   
-   inNT = False
-   # Now iterate the ones we have in this file
-   for e in ids:
-   osisid = e.attrib.get('osisID')
-   #print 'Checking key %s' % (osisid,)
-   if osisid in otkeyList:
-   otkeyList.remove(osisid)
-   elif osisid in ntkeyList:
-   ntkeyList.remove(osisid)
-   inNT = True
-   elif verseid.match(osisid) and inNT:
-   ntextraKeys.append(osisid)
-   elif verseid.match(osisid) and not inNT:
-   otextraKeys.append(osisid)
-   # Ignore it if not verseid.match() 
-   
-   # Now let's see what is left over
-   keyList = list(otkeyList.union(ntkeyList)) # Sets in Python cannot be 
ordered
-   keyList.sort()
-   if len(keyList) > 0:
-   if verbose:
-   print '\tThe following IDs do not appear in your file:'
-   for k in keyList:
-   print k
-   else:
-   print '\tThere are %d OT IDs and %d NT IDs in the 
versification which are not in your file.' % (len(otkeyList), len(ntkeyList))
-   else:
-   print '\tYour file has all the references in this versification'
-   
-   # Now let's see if you had extra
-   if len(otextraKeys + ntextraKeys) > 0:
-   if verbose:
-   print '\tThe following IDs do not appear in the 
versification:'
-   for k in ntextraKeys + otextraKeys:
-   print k
-  

[sword-devel] [PATCH] Make versification/av11n.py script working again.

2018-03-31 Thread Matěj Cepl
That means:
* Make it PEP8 compliant
* That unfortunately includes '\t' -> '' change (PEP8 doesn’t
  like TABs), which makes for the massive diff.
* Don’t use deprecated API calls.
Use Sword.VersificationMgr.getSystemVersificationMgr() instead
of Sword.VerseMgr.getSystemVerseMgr().
Use popError() instead of Error().
* Switch to logging to make it a little bit more civilized.
* Don’t use RE when you don’t need it.
* Shorten the labels so they are not overflowing the screen.
* Don’t fool with PyQuery and use standard XML libraries.
* Use argparser.
---
 versification/av11n.py | 213 -
 1 file changed, 124 insertions(+), 89 deletions(-)

diff --git a/versification/av11n.py b/versification/av11n.py
index 136a382..5386b8e 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# coding: utf-8
 #
 # This does a very roughshod attempt to compare the osisIDs found in an
 # XML file with each of the versifications that SWORD knows about to help
@@ -7,106 +8,140 @@
 # in the proper order, although within each testament, it requires nothing
 # special as for ordering.
 #
-# Invoke simply by calling the program and the file name.  If you want
-# more output, change the following line to be True instead of False
-verbose = False
-debug = True
-import sys
+# Invoke simply by calling the program and the file name.
+from __future__ import print_function
+import argparse
+import io
+import logging
 import re
-verseid = re.compile('^.+\..+\..+$')
+import sys
+
+# in normal state level should be debug.WARNING, debug.INFO and debug.DEBUG
+# give additional information.
+logging.basicConfig(format='%(levelname)s:%(message)s',
+level=logging.INFO)
+log = logging.getLogger('versification')
+
+try:
+import lxml.etree as ET
+except ImportError:
+import xml.etree.ElementTree as ET
+
+OSIS_NS = 'http://www.bibletechnologies.net/2003/OSIS/namespace'
+VERSEID_RE = re.compile(r'^(.+\.\d+\.\d+).*$')
 
 # Inform the user that we need the SWORD extension
 try:
-   import Sword
-except:
-   print "You do not have the SWORD library installed. Please install it."
-   sys.exit(1)
+import Sword
+except ImportError:
+log.exception(
+"You do not have the SWORD library installed. Please install it.")
+sys.exit(1)
 
-# Inform the user that we need pyquery, as it makes parsing XML files that 
much easier
-try:
-   from pyquery import PyQuery as pq
-except:
-   print "You do not appear to have PyQuery installed. Please install it."
-   sys.exit(2)
+arg_parser = argparse.ArgumentParser(
+description='Compare OSIS file with available v11ns.')
 
-# Without the name of a file, we cannot proceed any further
-if len(sys.argv) < 2 or sys.argv[1] == '--help':
-   print "Usage: %s " % (sys.argv[0],)
+arg_parser.add_argument('--verbose', '-v', action='count')
+arg_parser.add_argument('filename', nargs=1)
+
+
+args = arg_parser.parse_args()
+
+if args.verbose:
+log.setLevel = logging.DEBUG
+
+log.debug('args = %s', args)
 
 # Open the file
-if debug:
-   print 'Opening %s' % (sys.argv[1],)
-d = pq(filename=sys.argv[1])
+log.debug('Opening %s', args.filename[0])
+
+tree = ET.parse(io.open(args.filename[0], encoding='utf8')).getroot()
 # Get the list of versifications
-if debug:
-   print 'Fetching a list of versifications'
-vmgr = Sword.VerseMgr.getSystemVerseMgr()
+log.debug('Fetching a list of v11ns')
+vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
 av11ns = vmgr.getVersificationSystems()
+log.debug('av11ns = %s', av11ns)
 
 # Get the list of all osisIDs
-if debug:
-   print 'Fetching a list of OSIS IDs'
-ids = d("*[osisID]")
+log.debug('Fetching a list of OSIS IDs')
+ids = set()
+for item in tree.iter('{%s}verse' % OSIS_NS):
+if 'osisID' in item.attrib:
+ids.add(item.attrib['osisID'].split('!')[0])
+log.debug('ids = len(%d)', len(ids))
+
 # Iterate each versification scheme
 for v11n in av11ns:
-   print 'Checking %s' % (v11n.c_str(),)
-   # Construct a list of the IDs in this versification
-   key = Sword.VerseKey()
-   key.setVersificationSystem(v11n.c_str())
-   otkeyList = [] # Anything left in this afterwards is missing from the 
OSIS ot
-   ntkeyList = [] # Anything left in this afterwards is missing from the 
OSIS nt
-   otextraKeys = [] # Anything that gets placed in here is extraneous OT 
material (we think)
-   ntextraKeys = [] # Anything that gets placed in here is extraneous NT 
material (we think)
-   
-   inNT = False
-   while key.Error() == '\x00':
-   skey = key.getOSISRef()
-   if not inNT and re.match('^Matt', skey): # Assume we enter the 
NT when we hit Matthew
-   inNT = True
-   if inNT:
-   ntkeyList.append(skey)
-   else:
-

Re: [sword-devel] Bishop for Android and iOS / JavaScript bindings

2018-03-01 Thread Matěj Cepl
On 2018-03-01, 02:26 GMT, Troy A. Griffitts wrote:
> Android users can install the app from:
>
> https://play.google.com/store/apps/details?id=org.crosswire.bishop

Would it be possible to have plain APK somehwere for us 
weirdoes, who don't have Google Play store, please?

Thank you,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Microwave oven?  Whaddya mean, it's a microwave oven?  I've been
watching Channel 4 on the thing for two weeks.


___
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] canon.bible.xml and alternate versification questions

2018-02-19 Thread Matěj Cepl
On 2018-02-19, 14:47 GMT, David Haslam wrote:
> Before we'd contemplate creating a new av11n for a Spanish 
> Bible, a lot of detailed research would be required to show 
> how and why this might be required.
> It's the kind of work that Dominique did for (Protestant) 
> French Bibles, as tabled in this wiki page:
> https://wiki.crosswire.org/Survey_of_versification_schemes_in_French_Bibles
> NB. Such a survey must always be based on printed Bibles or 
> facsimile copies, rather than on any available digital 
> editions.

I am still trying to understand what's the situation with that 
Czech Protestant Bible21 with Apocrypha (aka deuterocanonical 
books). I still cannot believe that these variations are 
complete random. Most modern Protestant Bibles are now based on 
Biblia Hebraica Stuttgartensia, aren’t they? Don’t they follow 
its v11n?

Otherwise, creating such table for all Czech Bibles should be 
doable. I will (eventually).

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Whenever Christ our life is revealed, then also you will be
revealed with Him in glory.
-- Colossians 3:4 (Green's Literal Translation)


___
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] Inclusion of the Reina-Valera 1865

2018-02-16 Thread Matěj Cepl
On 2018-02-16, 15:48 GMT, Vince LaRue wrote:
> Another question: if OSIS is no longer the best way to produce 
> digital texts (which is my only interest currently), then why 
> is nothing said about a different preferred method on the 
> Crosswire wiki?

OSIS XML is still the preferred method of producing Sword 
modules. However, many people believe that hand-editing large 
XML documents is beyond ability of most people who are dealing 
with the Bible texts and who are thus more humanities oriented.

I am a programmer by trade, so I don't have a problem to just 
open XML file in vim and deal with it. However, even I had to 
admit (when working on https://gitlab.com/bible_sword/CzeBKR) 
that files in USFM are easier to deal with (see 
https://is.gd/60jiQV as an example, that’s Genesis). So, CzeBKR 
is effectively maintained in USFM (generated by Python script 
from https://cs.wikisource.org/wiki/Bible_kralick%C3%A1), CzeCSP 
(https://gitlab.com/bible_sword/CzeKMS) is OSIS XML generated 
(by XSLT and that’s mistake, too complicated XSL is basically 
unmaintaineable by me, e.g., I am not able to debug 
https://gitlab.com/bible_sword/CzeKMS/issues/9 where the script 
generates duplicate titles, I will probably rewrite the script 
to Python and SAX), and CzeB21 and CzeCEP are hand-edited OSIS 
XML.

So, USFM may be easier to edit, but certainly it is possible to 
maintain a Bible text in OSIS XML directly, and if the text 
begins to be really complicated (two different sets of 
footnotes, cross-references from notes, etc.) perhaps it is 
easier than to deal with conversion from other formats.

Just pull out your preferred $EDITOR (vim, Emacs has an 
excellent XML support, or any other) and don’t let ignorance of 
others discourage you.

Blessings,

Matěj
-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
If we rise from prayer better persons, our prayers have been
answered.
  -- a Jewish prayer book


___
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] Update of locale.d/cs* files

2018-02-05 Thread Matěj Cepl
I have just some small fixes for locale.d/cs* files in 
https://github.com/refdoc/sword/pull/1 . Anybody any comments to 
it?

Blessings,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
According to the Franciscan priest Richard Rohr, spirituality is
not for people who are trying to avoid hell; it is for people
who have been through hell. In many ways, spirituality is about
what we do with our pain. And the truth is, if we don't
transform it, we will transmit it.
-- Al Gustafson


___
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] Who maintains https://www.crosswire.org/study/ ?

2018-02-02 Thread Matěj Cepl
Hi,

could we get update of that page? It still contains Czech Bible 
translations whcih we agreed to put into attic (namely “Czech 
Nova kralicka Bible” and “Czech Preklad KMS Nova smlouva”, which 
are draft versions of CzeB21 and CzeCSP, respectively), and in 
the same time CzeCSP is missing.

Thank you,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Our lives are spectacles of powerlessness.
-- Richard Rohr


___
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] Catholic or Luther v11n?

2018-01-12 Thread Matěj Cepl
On 2018-01-12, 15:14 GMT, David Haslam wrote:
> btw. Windows users can readily convert NCRs to Unicode (or 
> vice versa) using the  
> [BabelPad](http://www.babelstone.co.uk/Software/BabelPad.html) 
> Unicode text editor.

Users of vim can use Ctrl-KNS and users of any *ix (not sure 
whether it includes Mac OS X) system can use (when properly 
configured) X Compose https://en.wikipedia.org/wiki/Compose_key 
([Compose][space][space]).

Best,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
But if we find we have left our bones to bleach in these desert
sands for nothing, beware the fury of the legions...
  -- Centurion in a letter home from North Africa
 3rd Century


___
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] CzeB21 strange deuterocanonical v11n [Was: Re: Versifications]

2018-01-11 Thread Matěj Cepl
On 2018-01-09, 13:21 GMT, Matěj Cepl wrote:
> To my surprise CzeB21 sources provided to me by Peter contain 
> deuterocanonical/apocryphal books (yay, we would have Czech 
> Bible with these!), but av11n using sword 1.8.1 is completely 
> confused (see log on 
> https://mcepl.fedorapeople.org/tmp/CzeB21-av11n.log).

After some struggle I found out that my choices are quite 
limited … only Luther v11n contains additional chapters to OT 
books as separate items, which is exactly what B21 does.  
However, when I run CzeB21 against Luther v11n I get this huge 
list of issues https://mcepl.fedorapeople.org/tmp/make-log.txt

Do you think I am still in the range of acceptable number of 
errors, or should I start working on new v11n?

Blessings,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Experience is what you get when you don't get what you want.
   -- Dan Stanford


___
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] Versifications

2018-01-09 Thread Matěj Cepl
On 2018-01-03, 16:50 GMT, Peter Von Kaehne wrote:
> When Troy discussed the recent new catholic versifications 
> I advised him not to accept these into the current release 
> unless someone else considers them as a) needed and b) 
> correctly done. When Domcox put his 3 French versifications in 
> there had been a long accepted need for just these which 
> preceeded Chris' leaving, so it was a lot easier to simply 
> agree to put them in. But this is now missing. from now on for 
> all new currently discussed versifications and potential other 
> ones.

To my surprise CzeB21 sources provided to me by Peter contain 
deuterocanonical/apocryphal books (yay, we would have Czech 
Bible with these!), but av11n using sword 1.8.1 is completely 
confused (see log on 
https://mcepl.fedorapeople.org/tmp/CzeB21-av11n.log).

How can I check against those other Catholic v11ns? Or do I have 
to develop yet another one? Seems wrong. Generally Czech Bibles 
seem to be close enough to German v11n, that I use it in other 
Cze* bibles, but of course it doesn’t have deuterocanonical 
books.

Blessings,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
It is a rare mind indeed that can render the hitherto
non-existent blindingly obvious. The cry “I could have thought of
that” is a very popular and misleading one, for the fact is that
they didn’t, and a very significant and revealing fact it is too.
  -- Douglas Adams, Dirk Gently's Holistic Detective Agency


___
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] Changelog

2018-01-09 Thread Matěj Cepl
So, I was reminded in 
https://gitlab.com/mcepl/czecep/merge_requests/1 that I should 
add a revisionDesc elements to my OSIS XML.

So, now we have essentially the same information in:

*  elements
* History_* items in *.conf file
* git/svn changelog

Moreover, I am not completely persuaded that the information is 
ever used anywhere. Is it?

In any case, http://wiki.c2.com/?DontRepeatYourself so couldn't 
we unfiy all changelogs into one place (I would suggest git log) 
and generate all other cases from that via script?

Best,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
A conclusion is simply the place where someone got tired of
thinking.


___
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] Catholic and Catholic2 versification

2018-01-09 Thread Matěj Cepl
On 2018-01-09, 12:33 GMT, Cyrille wrote:
> Maybe you can test with your language? It can be interesting 
> if you have a Catholic bible?

See my other thread about CzeB21. How can I test it?

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
The main idea of the pope's asking for forgiveness was not to be
afraid of the truth. DO NOT BE AFRAID OF TRUTH! We have to have
faith in the God's governing power to be able not to be afraid.
-- On NPR The Connection from March 13, 2000


___
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] Catholic and Catholic2 versification

2018-01-09 Thread Matěj Cepl
On 2018-01-09, 10:12 GMT, Cyrille wrote:
> Ok, then I think a "quick" solution (waiting a more "complete") is to
> add almost the Catholic3_lit. Because We have more than 100 verses
> different. And If I have to chose a v11n for Catholic bible I will chose
> this one.

How is this v11n doing with other languages? Is it truly 
Catholic or just FrenchCatholic? Is there some Catholic standard 
of v11n for Bibles (I can imagine there is, e.g., everybody 
should do as (Neo-)Vulgata does)?

Blessings,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
"Goodbye," said the fox. "And now here is my secret, a very
simple secret: It is only with the heart that one can see
rightly; what is essential is invisible to the eye."
   -- Antoine de Saint-Exupery


___
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] Versifications

2018-01-04 Thread Matěj Cepl
On 2018-01-04, 09:08 GMT, Cyrille wrote:
> Afterwards, I would like to add my point of view regarding 
> Catholic modules. I deplore the lack of initiative on the part 
> of Catholics (I am, so I do not accuse anyone from outside), 
> the obstinacy to keep the rights and the refusal to freely 
> spread the Word of God. For example I have 5 private Catholic 
> modules that I can not share.

Unfortunately, the problem is not only on the side of Catholics.  
I am a Protestant but Czech so I see clearly need for Catholic 
Bibles (i.e., including apocryphal/deuterocanonical books). When 
I suggested it earlier, I got *some* (not all) rather harsh 
responses with anti-Catholic slant 
(https://www.mail-archive.com/sword-devel@crosswire.org/msg27385.html).  
I believe that the situation has improved since then, but just 
to say that the support for the deuterocanonical books is 
surprisingly recent.

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
According to the Franciscan priest Richard Rohr, spirituality is
not for people who are trying to avoid hell; it is for people
who have been through hell. In many ways, spirituality is about
what we do with our pain. And the truth is, if we don't
transform it, we will transmit it.
-- Al Gustafson


___
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] New LXX module

2018-01-04 Thread Matěj Cepl
On 2018-01-04, 10:53 GMT, Peter Von Kaehne wrote:
> Wrt the wider question of keeping source files for 
> collaborative work - we do keep source about, since I started 
> doing the module uploads, so currently we hold teh source for 
> about 80 or so modules.

How can I get access to this shared repository? I have so far 
kept my sources for Czech modules in my own repositories on 
gitlab.com (https://is.gd/BhaE2D for CzeKMS, CzeCEP, CzeBKR), 
but if there is something more official I would gladly 
participate.

Best,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
In those days spirits were brave, the stakes were high, men were
real men, women were real women and small furry creatures from
Alpha Centauri were real small furry creatures from Alpha
Centauri.
-- Douglas Adams


___
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] Poedit - for editing PO files for localizing [front-end] apps

2017-12-19 Thread Matěj Cepl
On 2017-12-19, 17:06 GMT, David Haslam wrote:
> Last month I came across and installed the free version of 
> Poedit from https://poedit.net/

.po files are text files in the end, so if you have some $EDITOR 
you like, if it has at least some extensibility it has probably 
support for ediitng po file. Emacs has 
https://www.emacswiki.org/emacs/Gettext two modes, the latter 
has some nice functions to support jumping around the file and 
simplifies copying texts between different nodes. vim has 
https://github.com/vim-scripts/po.vim--Jelenak, which has nide 
key shortcuts as well. I am certain that SubEdit, VSCode, and 
Atom will have some support for po files as well.

What I wanted to say that poedit.net is not that super deal as 
it tries to look like. Of course, if anybody likes it, go for 
it!

Best,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
He uses statistics as a drunken man uses lamp-posts... for
support, rather than illumination.
  -- Andrew Lang


___
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] SWORD 1.8.0RC5 Final RC

2017-11-29 Thread Matěj Cepl
On 2017-11-29, 14:23 GMT, Greg Hellings wrote:
> On Wed, Nov 29, 2017 at 8:13 AM, Cyrille wrote:
>> That's for sure, but not enough (from my point of view).  
>> What's you experience of gitlab?

(I am the leader of the M2Crypto revival project hosted on 
https://gitlab.com/m2crypto/m2crypto/ )

My experience is very good. There are some moments of 
instability, but they are rather rare and I don't remember when 
was the last time I couldn't do something because of problems 
with the server.

It is true that GitHub has still more features than GitLab, but 
I really don't see anything which I would be missing. It seems 
to me that GitHub is firmly moving into the area of creeping 
featuretitis when it adds features which are available 
elsewhere, just to get better lock-in (in-GitHub Slack, 
really?).

Three features which for-free GitLab has and GitHub will 
probably never have:

* private projects; it could be particularly interesting for 
  some of our Biblical modules, which need to be developed in 
  private before shared;

* export between different GitLab hosts; not sure how well it 
  works with GitLab.com, one would probably have to ask support 
  for help, but the fact is that whatever data you enter into 
  GitHub (aside from the code itself) is more or less forever 
  locked there. I have participated in couple of efforts to move 
  a project out of the GitHub and it was never good experience, 
  and there was always a significant data loss.

* CI on dedicated machines; not sure if anybody cares here.

Best,

Matěj
-- 
http://matej.ceplovi.cz/blog/, Jabber: mceplceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Anger is often what pain looks like when it shows itself in public.
  -- Krista Tippett


___
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   4   >