<div dir="ltr">Currently, BPBible uses the name in places, as often the description is just too long.<br>I think a short abbreviation would be a good idea (which is what the module name often would be, so it could default to using the module name for backwards compatibility)<br>
<br>The only problem then would be in generating a module name from the short abbreviation, if you were creating modules in your frontend.<br><br>Also, currently the only restriction in the SWORD source code I can see on the module name is that it can't contain ]. <br>
I don't think any error checking is likely to be done.<br><br clear="all">God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>The Lord is not slow to fulfill his promise as some count slowness,<br>
but is patient toward you, not wishing that any should perish,<br>but that all should reach repentance.<br>2 Peter 3:9 (ESV)<br>
<br><br><div class="gmail_quote">On Tue, Aug 12, 2008 at 2:42 PM, Chris Little <span dir="ltr"><<a href="mailto:chrislit@crosswire.org">chrislit@crosswire.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is isalnum actually used anywhere in Sword for this check? I think it<br>
should instead be iscsym, since underscore is also permitted in the<br>
module ID.<br>
<div class="Ih2E3d"><br>
On Aug 11, 2008, at 8:35 PM, Ben Morgan wrote:<br>
<br>
> Hi Karl,<br>
><br>
> Currently such module names are not "allowed".<br>
><br>
> Quoting from the wiki:<br>
> Each conf file begins with [name], replacing "name" with be a short<br>
> well known abbreviation. This must be on the first line, and start<br>
> the first line. It can only contain A-Z, a-z and 0-9.<br>
> The name of the file should be the lowercase of this name followed<br>
> by .conf. For example, [MyModule] would be mymodule.conf.<br>
<br>
</div>The wiki was a little off, so I've made the correction regarding<br>
underscore. If other characters are valid, I can't think of them, but<br>
we should add them to the wiki. Hyphen, space, period, and non-ASCII<br>
letters aren't valid, though.<br>
<div class="Ih2E3d"><br>
><br>
> I think foreign languages are hard done by with the module names for<br>
> two reasons:<br>
> 1. They can't be non-english<br>
> 2. They seem to start with a prefix based on the language (e.g.<br>
> FreBBB, GerAlbrecht, BurJudson).<br>
> I don't think these prefixes help anything, and they just waste<br>
> available screen space.<br>
><br>
> Maybe we should prefix every english module with Eng :-) (e.g.<br>
> EngKJV, EngABS_Essay_GoodSam_SWB)<br>
<br>
</div>The rule for Bibles and Commentaries at least, is that texts in<br>
original languages and English get no language prefix. Texts in other<br>
languages get prefixes consisting of the first three letters of the<br>
language, as it is spelled in English.<br>
<br>
There are old exceptions to this rule. For example, the Russian<br>
Synodal Translation is RST--but it will likely be changed to<br>
RusSynodal when we do the update. There is also a new exception to<br>
this rule found in the WBTI modules, which still use a language<br>
prefix, but use the ISO language code instead of the English name.<br>
<br>
As to the utility of this language prefix, please bear in mind two<br>
facts:<br>
1) There was a time before we added the lang tag to .confs, when the<br>
prefix helped enormously.<br>
2) The module name is intended for use by developers, not necessarily<br>
for display to users. That's why the constraint is iscsym--to<br>
facilitate use within code. If you want to suggest the addition of a<br>
short abbreviation .conf tag, that's a different matter.<br>
<font color="#888888"><br>
--Chris<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br></div>