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

David Haslam dfhmch at googlemail.com
Mon Apr 11 07:31:14 MST 2011


As it does process individual files in Windows, I can write a CMD command to
process all the files matching a pattern. Something like this should work.

for %%f in (*.SFM) do perl %cwpl%\usfm2osis.pl %%f %%f


This should generate output files with dotty "extension"s viz.
filename.SFM.osis.xml

But that would be for the "Stage 1" chore - checking that each USFM can be
converted to valid OSIS.

The point is that once these checks on individual files are done, the same
Perl program should be able to make a single output OSIS file for the whole
Bible translation.
Hence the need to "glob" the wildcards within the Perl script.

>From a Google search, I found that globbing wildcards for Windows is a
frequently encountered problem for users of Perl. 

David

NB. cwpl is the environment variable pointing to where I downloaded the
CrossWire Perl utilities.

--
View this message in context: http://sword-dev.350566.n4.nabble.com/Re-Using-Perl-script-usfm2osos-pl-in-Windows-tp3441964p3442134.html
Sent from the SWORD Dev mailing list archive at Nabble.com.



More information about the sword-devel mailing list