<div>Johan,</div>
<div>
    <br />
</div>
<div>Why do you want to encrypt your dictionary module?</div>
<div>
    <br />
</div>
<div>Suggest first try building an unencrypted module without a &lt;cipher_key&gt;, without using the -c option.</div>
<div>
    <br />
</div>
<div>In any case, using "ts2009en" as the key is too&nbsp;easily crackable! It's only 8 characters long.</div>
<div>It wouldn't be of any&nbsp;value to protect intellectual property,&nbsp;if that's what you're concerned about.</div>
<div>
    <br />
</div>
<div>Module encryption isn't really oriented to protecting content against unauthorised copying.&nbsp;</div>
<div>It's only intended to provide a means for a&nbsp;user to unlock a module after obtaining the key from the supplier.&nbsp;</div>
<div>
    <br />
</div>
<div>David</div>
<div>
    <br />
</div>
<div id="protonmail_mobile_signature_block">Sent from ProtonMail Mobile</div>
<div>
    <br />
    <div>
        <div>
            <br />
        </div>On Thu, Mar 29, 2018 at 15:19, Johan &lt;<a href="mailto:johan.marais@messianic.co.za" class="">johan.marais@messianic.co.za</a>&gt; wrote:</div>
    <blockquote class="protonmail_quote" type="cite">
        <!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" ></o:shapedefaults>
</xml><![endif]-->
        <!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" ></o:idmap>
</o:shapelayout></xml><![endif]-->
        <div class="WordSection1">
            <p class="MsoNormal"><span lang="EN-GB">Thank you David for once again assisting me.<o:p></o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB">"ts2009en" is indeed the &lt;cipher key&gt;.<o:p></o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB">When I ran "./modules/lexdict/zld/ts2009en TS2009enVer100.txt -z -cts2009en", it gives me the error message:<o:p></o:p></span>
            </p>
            <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">You are running tei2mod: $Rev: 2138 $<o:p></o:p></span>
            </p>
            <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">tei2mod: Unknown argument: -cts2009en<o:p></o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB">It seems as if it doesn’t like the &lt;cipher key&gt; immediately following the [Option -c].<o:p></o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB">Where do I find the latest utilities please, the utilities I use are from the latest Xiphos download?<o:p></o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB">Best regards,<o:p></o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB">Johan Marais<o:p></o:p></span>
            </p>
            <p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span>
            </p>
            <p class="MsoNormal"><b>From:</b> David Haslam &lt;dfhdfh@protonmail.com&gt;
                <br /><b>Sent:</b> Thursday, 29 March 2018 14:10
                <br /><b>To:</b> SWORD Developers' Collaboration Forum &lt;sword-devel@crosswire.org&gt;
                <br /><b>Subject:</b> Re: [sword-devel] TEI2MOD - Output File Names
                <o:p></o:p>
            </p>
            <p class="MsoNormal">
                <o:p>&nbsp;</o:p>
            </p>
            <div>
                <p class="MsoNormal">Johan,
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">Option <b>-c</b> expects the <b>&lt;cipher_key&gt;</b> immediately after.
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">Because you followed it by the word "<span lang="EN-GB">ts2009en" it assumed that was the &lt;cipher_key&gt;.</span>
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal"><span lang="EN-GB">Here's the <b>syntax help</b> for the latest binary in Windows.</span>
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">Observe that the <b>[OPTIONS]</b> are at the <u>end</u> of the command line.
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">You are running <u>utils64</u>tei2mod: $Rev: 3416 $
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">TEI Lexicon/Dictionary/Daily Devotional/Glossary module creation tool for
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">The SWORD Project
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">usage: <u>utils64</u>tei2mod &lt;output/path&gt; &lt;teiDoc&gt; [OPTIONS]
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">&nbsp; -z &lt;l|z|b|x&gt; use compression (default: none)
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">l - LZSS; z - ZIP; b - bzip2; x - xz
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">&nbsp; -s &lt;2|4&gt; max text size per entry (default: 4)
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">&nbsp; -c &lt;cipher_key&gt; encipher module using supplied key
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">(default: none)
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">&nbsp; -N Do not convert UTF-8 or normalize UTF-8 to NFC
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">(default is to convert to UTF-8, if needed,
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">&nbsp; and then normalize to NFC. Note: all UTF-8
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">&nbsp; texts should be normalized to NFC.)
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">The options -z and -s are mutually exclusive.
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">----
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">NB. the <u>utils64</u> path is simply where I have a symbolic link to the downloaded tools
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <div>
                    <div>
                        <p class="MsoNormal">Best regards,
                            <o:p></o:p>
                        </p>
                    </div>
                    <div>
                        <p class="MsoNormal">
                            <o:p>&nbsp;</o:p>
                        </p>
                    </div>
                    <div>
                        <p class="MsoNormal">David
                            <o:p></o:p>
                        </p>
                    </div>
                </div>
                <div>
                    <p class="MsoNormal">
                        <o:p>&nbsp;</o:p>
                    </p>
                </div>
                <div>
                    <p class="MsoNormal">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.
                        <o:p></o:p>
                    </p>
                </div>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">On 27 March 2018 8:51 AM, Johan &lt;<a href="mailto:johan.marais@messianic.co.za">johan.marais@messianic.co.za</a>&gt; wrote:
                    <o:p></o:p>
                </p>
            </div>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
            <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                <div>
                    <p class="MsoNormal"><span lang="EN-GB">Please help.</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">I am using this command to create a SWORD dictionary module from TEI.</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">tei2mod ./modules/lexdict/zld/ts2009en/ TS2009enVer100.txt -z -c ts2009en</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">The output message is the following:</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">tei2mod normalized 1 verses to NFC</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">Suggested conf (replace ??? with appropriate values)</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">[ts2009en]</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">DataPath=./modules/lexdict/zld/ts2009en/dict</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">Description=???</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">SourceType=TEI</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">Encoding=UTF-8</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">ModDrv=zLD</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">CompressType=ZIP</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">CipherKey=ts2009en</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">It produces the files correctly, but the file names are all "dict.xxx", I expected them to be "ts2009en.xxx".</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">Are these ("dict.xxx") the correct file names, is there a way to rather produce "ts2009en.xxx"?</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">Thank you,</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">Johan Marais</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                    <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span>
                        <o:p></o:p>
                    </p>
                </div>
            </blockquote>
            <div>
                <p class="MsoNormal">
                    <o:p>&nbsp;</o:p>
                </p>
            </div>
        </div>
    </blockquote>
</div>