<div dir="ltr"><div dir="ltr"><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 10, 2019 at 12:22 PM David Haslam &lt;<a href="mailto:dfhdfh@protonmail.com" target="_blank">dfhdfh@protonmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">   <div>I was rather hoping that a tool that takes just the ModuleName as its parameter might be available. </div><div><br></div><div>If we can have </div><div>mkfastmod ModuleName</div></blockquote><div><br></div><div>Creating indexes is a SWORD-specific feature</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>and</div><div>mod2zmod ModuleName</div></blockquote><div><br></div><div>Compressing a module is a SWORD-specific feature</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>then why not one like </div><div>zipmod ModuleName</div><div>that finds the right files by looking up the path in .conf file?</div></blockquote><div><br></div><div>Creating an archive from known file paths is a standard feature of the operating system you&#39;re working with or its default utilities. There&#39;s nothing really here for the library to do.</div><div><br></div><div>That said, here&#39;s a Python script that will do exactly what you asked for. <a href="https://github.com/greg-hellings/sword-helpers">https://github.com/greg-hellings/sword-helpers</a></div><div>It requires that you have the Sword Python bindings in place.</div><div><br></div><div>--Greg </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>David</div><div><br></div><div id="gmail-m_2978432190303060561m_3501740061687468131gmail-m_308299025470387442protonmail_mobile_signature_block">Sent from ProtonMail Mobile</div> <div><br></div><div><br></div>On Thu, Jan 10, 2019 at 18:13, Dudeck, John &lt;<a href="mailto:John.Dudeck@sim.org" target="_blank">John.Dudeck@sim.org</a>&gt; wrote:<blockquote class="gmail-m_2978432190303060561m_3501740061687468131gmail-m_308299025470387442protonmail_quote" type="cite">    <div align="left"><font face="Arial" size="2"><span style="font-size:10pt">David, here&#39;s a snippet from my bat files that I use for creating modules. The zip files import into AndBible without problem.</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br></span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">========================================</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">rem usage: OSIS2sword-bibles sourcepath/filename</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">set modname=%~n1</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br></span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">[snip]</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br></span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">rem create zip file</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">rem delete any previous zip</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">del &quot;%modname%.zip&quot;</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">rem (uses zip.exe from <a href="http://downloads.sourceforge.net/gnuwin32/zip-3.0-setup.exe" target="_blank">http://downloads.sourceforge.net/gnuwin32/zip-3.0-setup.exe</a>)</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">&quot;c:Program Files (x86)GnuWin32 inzip.exe&quot; -r -u &quot;%modname%.zip&quot; mods.d* modules*</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">========================================</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br></span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br></span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt"><br></span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; I normally use the Xiphos Module Manager (Maintenance | Archive) to create a compressed Zip</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; archive of a selected module.</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; Is there an equivalent Sword Utility to perform the same task in a command shell ?</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; Regards,</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; David</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt;</span></font></div><div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">&gt; Sent from ProtonMail Mobile</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br></span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">John Dudeck</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Programmer at Editions Cle                             Lyon, France</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><a href="mailto:john.dudeck@sim.org" target="_blank">john.dudeck@sim.org</a>                            <a href="mailto:john@editionscle.com" target="_blank">john@editionscle.com</a></span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">--</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Table saw: A large stationary power tool commonly used to launch wood</span></font></div><div align="left"><font face="Arial" size="2"><span style="font-size:10pt">projectiles for testing wall integrity.</span></font></div><div align="left">  </div></blockquote><div><br></div><div><br></div>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page</blockquote></div></div></div>