<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Looking a bit further. src/comments/rawfiles/rawfiles.cpp needs to be modified to support alternate versifications.<div class="">Change from (probably need to change corresponding header file too):</div><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> RawFiles::createModule(<span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">const</span> <span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> *path) {</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> *incfile = <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">new</span> <span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> [ strlen (path) + <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">16</span> ];</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> __u32 zero = <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0</span>;</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> zero = archtosword32(zero);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> FileDesc *datafile;</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> sprintf(incfile, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">%s</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">/incfile"</span>, path);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> datafile = FileMgr::getSystemFileMgr()->open(incfile, FileMgr::CREAT|FileMgr::WRONLY|FileMgr::TRUNC);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">delete</span> [] incfile;</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> datafile->write(&zero, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">4</span>);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> FileMgr::getSystemFileMgr()->close(datafile);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">return</span> RawVerse::createModule (path);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class="">}</div></div><div class=""><br class=""></div><div class="">To something like, add v11n and pass it to RawVerse::createModule(…):</div><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> RawFiles::createModule(<span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">const</span> <span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> *path, <span style="color: rgb(52, 189, 38);" class="">const</span> <span style="color: rgb(52, 189, 38);" class="">char</span> *v11n) {</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> *incfile = <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">new</span> <span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">char</span> [ strlen (path) + <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">16</span> ];</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> __u32 zero = <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0</span>;</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> zero = archtosword32(zero);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> FileDesc *datafile;</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> sprintf(incfile, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">%s</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">/incfile"</span>, path);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> datafile = FileMgr::getSystemFileMgr()->open(incfile, FileMgr::CREAT|FileMgr::WRONLY|FileMgr::TRUNC);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">delete</span> [] incfile;</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> datafile->write(&zero, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">4</span>);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> FileMgr::getSystemFileMgr()->close(datafile);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">return</span> RawVerse::createModule (path, v11n);</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class="">}</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Feb 4, 2016, at 12:49 PM, Karl Kleinpaste <<a href="mailto:karl@kleinpaste.org" class="">karl@kleinpaste.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
<div class="moz-cite-prefix">On 02/04/2016 12:33 PM, DM Smith wrote:<br class="">
</div>
<blockquote cite="mid:DE6B22B3-AB66-45AC-8803-A39CB9970C02@crosswire.org" type="cite" class="">Take a look at sword/utilities/addcomment.cpp.</blockquote>
<font face="FreeSerif" class="">Thanx. I had never noticed.<br class="">
<br class="">
It doesn't build. I have to ask for it individually ("make
addcomment") in sword/utilities, and that in turn makes me add
-I/usr/include/sword manually, and then it gets into further
problems.<br class="">
<br class="">
After adding "#include <swcomprs.h>" above zcom.h, it fails
on basic syntax errors, evidently.<br class="">
<br class="">
Evidently this hasn't been touched in a long, long time. Indeed,
"svn blame" shows that nothing of consequence has been done to it
since -r2.<br class="">
</font>
</div>
_______________________________________________<br class="">sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class=""><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">Instructions to unsubscribe/change your settings at above page</div></blockquote></div><br class=""></div></body></html>