Re: [sword-devel] Using Perl script usfm2osos.pl in Windows?

2011-04-12 Thread David Haslam
Thanks DM.

Very helpful response.

Just one point might need further elaboration (as I see it).

Were one to enhance the Perl code to take the directory name as the
argument, how would one know what Windows file extension the USFM filenames
might have?

We have already come across all of these: *.ptx, *.sfm, *.usfm
We have seen them too in uppercase as well as lowercase.
No doubt we'll encounter more variations as we collaborate with other
translation teams.

David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/Re-Using-Perl-script-usfm2osos-pl-in-Windows-tp3441964p3443989.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] Using Perl script usfm2osos.pl in Windows?

2011-04-12 Thread Peter von Kaehne
As one of the two current maintainers, I would loath to introduce extra 
complexity. Like testing for Windows and using modules I do not know and can 
not test, ever. Particularly as there exist perfectly adequate solutions for 
Windows users - i.e. installing Cygwin or presumably also mingsys.

I will consider introducing the "-d "  option. This makes sense.

All in all though I do think that while I want to make USFM import more useful, 
powerful and feature complete, (I have indroduced a whole bunch of new USFM 
tags, worked on improving xrefs etc) I struggle with the idea of making it 
easier for people who resist using a suitable working environment. This is not 
a dig at you David - you produce quality, all the time. But making it easier at 
the entry end without having the tail end dealt with adequately (dealing with 
USFM coding idiosyncrasies, full tag support etc, XML validity) will ultimately 
lead to poor quality modules. 

Peter

Peter
 Original-Nachricht 
> Datum: Mon, 11 Apr 2011 15:11:29 -0400
> Von: DM Smith 
> An: sword-devel@crosswire.org
> Betreff: Re: [sword-devel] Using Perl script usfm2osos.pl in Windows?

> 
> 
> On 04/11/2011 02:11 PM, David Haslam wrote:
> > My expectations are simple enough...
> >
> > I'd like to be able to use usfm2osis.pl with Windows filespec wildcards.
> > e.g. *.SFM, as the last command line parameter ("like it says on the
> tin").
> 
> >
> > Is that not something that a good Perl programmer can add fairly simply?
> 
> The request is that the file globbing be done within the program rather 
> than at the command line. Or to allow for both.
> 
> There are various perl modules that allow for this. These probably are 
> not part of every distribution, so the program would need to 
> conditionally include them if the platform is windows and if not there, 
> complain (i.e. tell the user which module to use) and fall back to the 
> current behavior.
> 
> This would be something like:
> (from: http://www.perlmonks.org/?node_id=781801 )
> 
> # This BEGIN block avoids including File::DosGlob::Param for non-windows 
> systems BEGIN { if ( $^O =~ /win/i ) { require File::DosGlob::Param; 
> import File::DosGlob::Param qw( dosglob ); } }
> 
> # convert filename wildcards to actual filenames if ( $^O =~ /win/i ) # 
> only if DOS { if ( exists( $INC{'File/DosGlob/Param.pm'} ) ) # only if 
> loaded { dosglob( "Array_Ref" => \@ARGV, "Remove_Empty_Matches" => 1, 
> "Warn_On_Empty_Matches" => 1 ); } END { if ( ( $^O =~ /win/i ) and not 
> exists( $INC{'File/DosGlob/Param.pm'} ) ) { warn "Consider installing 
> module File::DosGlob::Param...\n"; } } }
> 
> Alternatively, one could modify the program to take a directory argument 
> instead of a file list.
> So if the argument is a directory it would look for all sfm files in
> there.
> if (-d $ARGV[i]) {
>$dir = $ARGV[i];
> 
> |   @files =<$dir/*.sfm>;
> ||   foreach $file (@files) {
>  print $file . "\n";
>}
> }
> |
> 
> 
> It might be reasonable to take a look at argv and do the following:
> if ($ARGV[$i] ~= m/\*/) {
> @files = <$ARGV[$i]>;
> }
> 
> Hopefully this is helpful to one that has time to actually work on it.
> 
> In a Un*x environment one can test this last approaches by putting 
> single quotes around the argument as in:
> prog.pl 'Bibles/*.sfm'
> 
> 
> In Him,
>  DM
> 

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!   
Jetzt informieren: http://www.gmx.net/de/go/freephone

___
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] KJV vs Russian Synodal versification comparison

2011-04-12 Thread Andy Harris
Hi all,

 

I am working on preparing text for 2 Central Asian languages and as we test
different applications we are trying to make sure that we cover as many
areas of possible error as possible.

I was wondering if as you, the app developers, have developed support for
different versifications if you have a document or some info on what exactly
is different between the KJV and Russian Synodal versification. 

Some kind of documented info on this would be of great help as at the moment
we just have some pointers which some people have given us but not a
complete list.

 

Many thanks,

Andy

 

___
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] KJV vs Russian Synodal versification comparison

2011-04-12 Thread Konstantin Maslyuk
I  have  sent  a  reply on your message but it was delayed before been
moderated. Also i have sent that attachment on your mail.

--
Hi,   Andy.   I   have  attached  file  with  description  of  Synodal
versification  used  in Sword and verse mappings to KJV versification.
This table would contain errors because i haven't checked every verse,
only  chapters  with  different  verse count. So i will be glad to get
help  from  you and, of course, to provide any kind of help for you on
this subject.

> I  am working on preparing text for 2 Central Asian languages and as
> we  test  different  applications we are trying to make sure that we
> cover  as  many areas of possible error as possible. I was wondering
> if  as you, the app developers, have developed support for different
> versifications  if  you have a document or some info on what exactly
> is different between the KJV and Russian Synodal versification. Some
> kind  of  documented  info  on this would be of great help as at the
> moment  we  just  have some pointers which some people have given us
> but not a complete list.


___
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] KJV vs Russian Synodal versification comparison

2011-04-12 Thread Greg Hellings
Andy,

Not pretending this is a complete list, but at present BibleTime
supports all the versifications that SWORD understand. Xiphos
partially understands them and support is in the works, but at present
it only has full support for the KJV versification. The SWORD Project
for Windows (I believe) supports them, as does SWORDweb. BibleDesktop
only supports KJV. I have no knowledge of BPBible's support. GoBible,
I believe, only supports KJV as well.  Other mobile frontends: I am
not aware of their status.

--Greg

On Tue, Apr 12, 2011 at 5:09 AM, Andy Harris  wrote:
> Hi all,
>
>
>
> I am working on preparing text for 2 Central Asian languages and as we test
> different applications we are trying to make sure that we cover as many
> areas of possible error as possible.
>
> I was wondering if as you, the app developers, have developed support for
> different versifications if you have a document or some info on what exactly
> is different between the KJV and Russian Synodal versification.
>
> Some kind of documented info on this would be of great help as at the moment
> we just have some pointers which some people have given us but not a
> complete list.
>
>
>
> Many thanks,
>
> Andy
>
>
>
> ___
> 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 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] KJV vs Russian Synodal versification comparison

2011-04-12 Thread Jonathan Morgan
On Wed, Apr 13, 2011 at 1:21 AM, Greg Hellings wrote:

> Andy,
>
> Not pretending this is a complete list, but at present BibleTime
> supports all the versifications that SWORD understand. Xiphos
> partially understands them and support is in the works, but at present
> it only has full support for the KJV versification. The SWORD Project
> for Windows (I believe) supports them, as does SWORDweb. BibleDesktop
> only supports KJV. I have no knowledge of BPBible's support. GoBible,
> I believe, only supports KJV as well.  Other mobile frontends: I am
> not aware of their status.
>
>
I would expect that SWORD for Windows only supports all versifications in
the new pre-release version.

BPBible does not support anything other than the KJV versification (while
other ones would probably open, that's about it - anything else could behave
in almost any strange way, including crashing).

Jon
___
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] KJV vs Russian Synodal versification comparison

2011-04-12 Thread David Haslam
Go Bible is neutral with regard to versification.  It is not tied to the KJV.

The only minor exception is the the full set of search scope radio buttons
applies only when the number of books is exactly 66.  i.e.

UI-All: All
UI-New-Testament: New Testament
UI-Old-Testament: Old Testament
UI-Gospels: Gospels
UI-Pauls-Letters: Paul's Letters
UI-Other-Letters: Other Letters
UI-Books-Of-Moses: Books of Moses
UI-Historical: Historical
UI-Poetic: Poetic
UI-Major-Prophets: Major Prophets
UI-Minor-Prophets: Minor Prophets


For anything else, the choice is the current book or the whole collection.

David

--
View this message in context: 
http://sword-dev.350566.n4.nabble.com/KJV-vs-Russian-Synodal-versification-comparison-tp3444189p3445135.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