Re: [sword-devel] BPBible 0.5.3 released

2016-01-12 Thread Jonathan Morgan
Hi Peter, On Tue, Jan 12, 2016 at 9:59 PM, Peter Von Kaehne wrote: > Jonathan, is there an 0.6 (av11n etc ) version in the pipeline? > Technically the answer is yes: I have done some work on it, and have even done work on it in the last month. Practically, though, as I can see

Re: [sword-devel] BPBible 0.5.3 released

2016-01-12 Thread Peter Von Kaehne
Jonathan, is there an 0.6 (av11n etc ) version in the pipeline?   Peter   Gesendet: Montag, 11. Januar 2016 um 13:00 Uhr Von: "Jonathan Morgan" An: "SWORD Developers' Collaboration Forum" Betreff: Re: [sword-devel] BPBible 0.5.3 released

Re: [sword-devel] Glossaries & LangSortOrder

2016-01-12 Thread Peter Von Kaehne
Is this not something which is included in Linux locales? Peter > Gesendet: Dienstag, 12. Januar 2016 um 12:27 Uhr > Von: "David Haslam" > An: sword-devel@crosswire.org > Betreff: [sword-devel] Glossaries & LangSortOrder > > I noticed that John Austin has this in >

Re: [sword-devel] Glossaries & LangSortOrder

2016-01-12 Thread David Haslam
Seeing as what DM just described was hitherto undocumented, I have justed added: http://www.crosswire.org/wiki/DevTools:conf_Files#CaseInsensitiveKeys David -- View this message in context: http://sword-dev.350566.n4.nabble.com/Glossaries-LangSortOrder-tp4655724p4655727.html Sent from the

Re: [sword-devel] Glossaries & LangSortOrder

2016-01-12 Thread David Haslam
It certainly looks that way, Peter. When John Austin does something particular like this, it's usually for a very sound reason. If adopted into SWORD, it wouldn't be the first time that one of his ideas has become mainstream. Best regards, David -- View this message in context:

Re: [sword-devel] Glossaries & LangSortOrder

2016-01-12 Thread Peter Von Kaehne
> Von: "DM Smith" > The problem is that the display order needs to follow something that makes > sense to a user when the dictionary is presented as a list. So, in absence of a existing mechanism the suggestion by David, coming from XULsword is probably sensible?

Re: [sword-devel] better UTF-sensitive sort

2016-01-12 Thread David Haslam
Thanks DM. Before tackling sorts of any kind, I first used three different programs to convert the UTF-8 to UTF-16LE. Although this is away from where Karl wishes to go, I still thought it would be interesting. BabelPad and TextPipe gave identical results which is a positive. Notepad++ didn't

Re: [sword-devel] better UTF-sensitive sort

2016-01-12 Thread David Haslam
FIO. Screenshot of the BabelPad sort dialog: https://www.dropbox.com/s/hedexkg6wc3fnhi/Screenshot%202016-01-12%2019.38.23.png?dl=0 David -- View this message in context: http://sword-dev.350566.n4.nabble.com/better-UTF-sensitive-sort-tp4655731p4655738.html Sent from the SWORD Dev mailing

Re: [sword-devel] better UTF-sensitive sort

2016-01-12 Thread David Haslam
Hi Karl, Windows is largely based on UTF-16, even though many applications can handle UTF-8 internally. Have you timed a round trip conversion of the language names from UTF-8 to UTF-16 and back again? Is it really so slow that it would be noticeable to users? Are you looking for a locale

Re: [sword-devel] BPBible 0.5.3 released

2016-01-12 Thread David Haslam
Also announced on the Facebook page for CrossWire. David -- View this message in context: http://sword-dev.350566.n4.nabble.com/BPBible-0-5-3-released-tp4655687p4655720.html Sent from the SWORD Dev mailing list archive at Nabble.com. ___

Re: [sword-devel] thread-safety in libsword?

2016-01-12 Thread Костя Маслюк
http://www.crosswire.org/tracker/browse/API-166 yet contain example and backtraces, is it something wrong with they? 2016-01-12 11:28 GMT+04:00 Troy A. Griffitts : > Dear Teus, > > In what way are you accessing this code in a multi threaded fashion? > > Can you produce a

Re: [sword-devel] Glossaries & LangSortOrder

2016-01-12 Thread DM Smith
No. The dictionary module uses a collation mechanism to byte order upper case keys. It then uses a binary search algorithm to find the keys. There is a CaseInsensitiveKeys=true that can be set in the conf which will make the order of the keys based upon the mixed case keys, but the index is

[sword-devel] Glossaries & LangSortOrder

2016-01-12 Thread David Haslam
I noticed that John Austin has this in https://github.com/johnaustindev/osis-converters Comparison of .conf files to CrossWire .conf These xulsword specific .conf file entries may be included: LangSortOrder = AaBbCcDdEe... is used by xulsword to sort the keys of a dictionary/glossary in

Re: [sword-devel] thread-safety in libsword?

2016-01-12 Thread Teus Benschop
Hi Troy, The libsword code is being accessed by multiple threads in Bibledit. In the demo at http://bibledit.org:8080/resource/index, then displaying multiple SWORD resources in parallel, each resource creates one thread on the sever, and that thread returns rendered text from libsword. The code

Re: [sword-devel] thread-safety in libsword?

2016-01-12 Thread Troy A. Griffitts
Dear Костя and Teus, Thank you for your help trying to track this down. Teus, your code shows that you are indeed creating a separate SWMgr for each thread, as the SWMgr object is a local variable in that function. Костя, thanks for the backtraces. I remember talking about this a long while

[sword-devel] better UTF-sensitive sort

2016-01-12 Thread Karl Kleinpaste
To produce Xiphos' module trees (sidebar, mod.mgr, adv.search), I sort by language using qsort+strcmp. This was recently pointed out as being poor for UTF-8 strings, and I replaced strcmp with strcoll. This works fine in Linux. Unfortunately, the Win32 version of strcoll believes in UTF-16, even

Re: [sword-devel] Glossaries & LangSortOrder

2016-01-12 Thread David Haslam
Here's an actual example for IBT module TKLDICT which has Lang=tk-Latn (i.e. Türkmençe): LangSortOrder=AaBbCcÇçDdEeÄ䯿FfGgHhIiJjKkLlMmNnŇňOoÖöPpQqRrSsŞşTtUuÜüVvWwXxYyÝýZzŽž David -- View this message in context:

Re: [sword-devel] better UTF-sensitive sort

2016-01-12 Thread DM Smith
For a localized list of language names see our wiki: http://www.crosswire.org/wiki/Localized_Language_Names You can take the second column and sort it by each of the locales mentioned. Example of the complexity: It used to be the

Re: [sword-devel] better UTF-sensitive sort

2016-01-12 Thread DM Smith
Is ICU4C out of the question? It has support for collation. See: http://site.icu-project.org/design/collation/v2 > On Jan 12, 2016, at 11:12 AM, Karl Kleinpaste wrote: > > To produce Xiphos' module trees (sidebar, mod.mgr,