Re: [sword-devel] Russian russynodal

2011-07-09 Thread Chris Little

On 7/9/2011 1:46 PM, Martin Denham wrote:

I loaded the new russynodal module from
ftp://ftp.crosswire.org/pub/sword/avraw into And Bible recently and it
seems to look fine.


Doesn't And Bible not support av11n? If it doesn't, I would not 
recommend making the avraw repo available to And Bible users. Since the 
book order, chapter counts, & verse counts are all radically different 
in the Synodal v11n (relative to the KJV), the correspondence between 
verse number (as reported by And Bible) and verse text will quickly 
become very inaccurate. (In the NT, it might not be so bad, though.)



I was wondering if this module should work well enough with existing
apps to make it available to users.  Most Russian users stopped using
And Bible when the original rst was removed.


"Most Russian users" quit using And Bible after a module that they had 
already installed was removed from the repo?


--Chris

___
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] Translating the TSK

2011-07-09 Thread Robert Hunt

On 10/07/11 03:17, Peter von Kaehne wrote:

Hi guys!

I am experimenting at the moment with some new found skills around XML
handling and other Perl stuff.

...

I pick out the references and translate them (libsword can do this for me)

I then take the keywords and get google to translate them. I take those
translations and check them against the relevant FarOPV verse text. If
the word is in the text, all is fine. If not, I highlight it as worth
checking.

...
What do you think?
Yes, this is exciting! I have been wanting to work on something similar 
for some time, except that I work more in minority languages, and Google 
translate falls down there (plus I believe Python is more maintable than 
Perl, sorry). Since translations aren't available for minority 
languages, the process has to be reduced to statistics applied to the 
translation.


Blessings,
Robert.

___
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] Russian russynodal

2011-07-09 Thread Martin Denham
I loaded the new russynodal module from
ftp://ftp.crosswire.org/pub/sword/avraw into And Bible recently and it seems
to look fine.

I was wondering if this module should work well enough with existing apps to
make it available to users.  Most Russian users stopped using And Bible when
the original rst was removed.

Martin
___
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] Enhanced test modules for av11n?

2011-07-09 Thread David Haslam
I just made one for the v11nGerman module, and it navigates as described
earlier.

Xiphos displays all the verse tags. A search for "<>" finds every verse in
the Bible.

I used imp2vs to make the enhanced test module, with the IMP file like
this...
$$$[ Module Heading ]

$$$[ Testament 1 Heading ]

$$$Genesis 0:0
<>
$$$Genesis 1:0
<>
$$$Genesis 1:1
<>
$$$Genesis 1:2
<>
$$$Genesis 1:3


David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Enhanced-test-modules-for-av11n-tp3656109p3656514.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
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] Translating the TSK

2011-07-09 Thread David Haslam
Peter,

During our recent bout of tasks for the update to the Belarusian Bible
module, I made a number of calls to Google Translate, just in order to check
a few things.

David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Translating-the-TSK-tp3656298p3656362.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
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] Translating the TSK

2011-07-09 Thread Peter von Kaehne
Hi guys!

I am experimenting at the moment with some new found skills around XML
handling and other Perl stuff.

I have created a Persian TSK module which might be of some interest to
some of you. The process could be used for any other language.

Basically the process is simple:

I pick out the references and translate them (libsword can do this for me)

I then take the keywords and get google to translate them. I take those
translations and check them against the relevant FarOPV verse text. If
the word is in the text, all is fine. If not, I highlight it as worth
checking.

The translation seems to get it absolutely right in about 30%. The
remainder are to 80% "near misses", i.e. perfectly valid synonyms. -
Khodavand instead of Khoda, shoru' instead of ebtedah. And then there
are real corkers "Let [there be light]" "Ejaseh bedehid" ("please allow
me") and some are simply not translated.

I have restricted myself to Gen:1 as I do not want to make myself
unpopular with google translate at this moment - once the process is
improved I will do in a slow way the whole module.

Ways I see forward are : using other online translation sources, testing
each on in turn against the text, and choose it if it works using a
locally installed dictionary (still looking for one) and finally
obviously publication and checking by hand (not something I can see
myself doing personally, but maybe there are volunteers).

What do you think?

Peter

___
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] Enhanced test modules for av11n?

2011-07-09 Thread David Haslam
*A suggestion*:

For each defined av11n, in addition to the /contentless/ modules in
CrossWire Experimental, make a minimal content module for testing front-end
display and navigation support for av11n.

Each such enhanced test module would have as verse content an element that
would force the front-end to display the verse tag with "empty text", for
every defined verse.

As it happens, there is a flook of how SWORD works, whereby this could be
simple to implement. Assign as verse content an empty XML element, namely
"<>".

A further benefit from this proposal is that a module developer could
examine what is thought to be the most appropriate av11n, and see how well
it matches the v11n of the translation he/she is working on.

David



--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Enhanced-test-modules-for-av11n-tp3656109p3656109.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
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 am I doing wrong - Sword API, Perl?

2011-07-09 Thread Peter von Kaehne
On Sat, 2011-07-09 at 10:21 +0200, scribe...@gmail.com wrote:
>  You'll have to piece it together using the call I gave in the previous email 
> as the text node.

Thanks, yes, I did just that after your first mail. This is using
XML::LibXML:

-
[..]
foreach (@references) {
  my $ref = $_->getAttribute("osisRef");
  $scope->setText($ref);
  $_->firstChild->replaceDataString( $_->textContent(),
$scope->getRangeText() );
}



___
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 am I doing wrong - Sword API, Perl?

2011-07-09 Thread scribe...@gmail.com
Ah, I think I understand better what you're trying to obtain.

Something to note is that OSIS doesn't restrict the text child of  
to a parsable representation of the osisRef attr. For example, this is 
perfectly valid and acceptable:

Matthew begins his gospel here.

So you won't find any SWORD code which enforces this; i.e., SWORD won't try to 
i12ize this text. You'll have to piece it together using the call I gave in the 
previous email as the text node.

Hope this helps,

Troy

"scribe...@gmail.com"  wrote:

>Well, what did you think the 'convertToOSIS' method would do to a
>VerseKey? :)
>
>Not sure the binding language you're using's syntax, but try something
>like $scope->getRangeText();
>
>
>
>Peter von Kaehne  wrote:
>
>>What I want is to take an OSIS ref - say Matt.1.1 - and create a long
>>reference in a target language other than English - say
>>
>>متا 1:1
>>
>>What I am doing is:
>>
>>Sword::LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("fa");
>>my $scope= new Sword::VerseKey;
>>$scope->setText("Matt.1.1");   
>>
>>print Sword::VerseKey::convertToOSIS("Matt.1.1", $scope);
>>
>>What I get currently is:
>>
>>Matt.1.1
>>
>>What am I doing wrong?
>>
>>Thanks!
>>
>>Peter
>>
>>
>>___
>>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
>
>-- 
>Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
>___
>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

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

___
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 am I doing wrong - Sword API, Perl?

2011-07-09 Thread scribe...@gmail.com
Well, what did you think the 'convertToOSIS' method would do to a VerseKey? :)

Not sure the binding language you're using's syntax, but try something like 
$scope->getRangeText();



Peter von Kaehne  wrote:

>What I want is to take an OSIS ref - say Matt.1.1 - and create a long
>reference in a target language other than English - say
>
>متا 1:1
>
>What I am doing is:
>
>Sword::LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("fa");
>my $scope= new Sword::VerseKey;
>$scope->setText("Matt.1.1");   
>
>print Sword::VerseKey::convertToOSIS("Matt.1.1", $scope);
>
>What I get currently is:
>
>Matt.1.1
>
>What am I doing wrong?
>
>Thanks!
>
>Peter
>
>
>___
>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

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

___
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 am I doing wrong - Sword API, Perl?

2011-07-09 Thread Peter von Kaehne
What I want is to take an OSIS ref - say Matt.1.1 - and create a long
reference in a target language other than English - say

متا 1:1

What I am doing is:

Sword::LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("fa");
my $scope= new Sword::VerseKey;
$scope->setText("Matt.1.1");   

print Sword::VerseKey::convertToOSIS("Matt.1.1", $scope);

What I get currently is:

Matt.1.1

What am I doing wrong?

Thanks!

Peter


___
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