[sword-devel] How should front-ends handle Feature=NoParagraphs ?
Greg Hellings
greg.hellings at gmail.com
Thu Dec 4 09:17:36 MST 2014
On the programming side of this, Karl and I just reasoned out how it
might be intended for programmers to discover this entry. I'm not sure
this works, but it looks like the following code might be needed to
iterate through the possible multiple values of "Feature" in a config
file:
http://fpaste.org/156650/70958214/
Or, since that paste will eventually dry up and go away:
std::pair <sword::multimapwithdefault<SWBuf,SWBuf>::iterator,
sword::multimapwithdefault<SWBuf,SWBuf>::iterator > features =
module.getConfig().equal_range(SWBuf("Features"));
for ( sword::multimapwithdefault<SWBuf,SWBuf>::iterator it =
features.first; it != features.second; ++it) {
std::cout << it->second << std::endl;
}
If this is wrong or more roundabout than necessary, it'd be nice to be
corrected by Troy.
--Greg
On Thu, Dec 4, 2014 at 9:41 AM, David Haslam <dfhmch at googlemail.com> wrote:
> According to the wiki,
>
> http://crosswire.org/wiki/DevTools:conf_Files#Elements_required_for_proper_rendering
>
> modules that specify
>
> Feature=NoParagraphs
>
> are described as "(for modules without any paragraphing information, which
> are typically typeset with a verse per line)"
>
> with the note,
>
> This feature is intended to be informational to front-end developers.
> Ideally, front-ends will render these modules with a verse per line rather
> than as a single big chapter-length paragraph block.
>
> Question: Do any front-ends actually do this yet?
>
> i.e. Irrespective of the module option "Verse Per Line" being ticked or not,
> the module should always display VPL.
>
> Alternatively, this module option is automatically ticked and cannot be
> unticked.
>
> David
>
>
>
> --
> View this message in context: http://sword-dev.350566.n4.nabble.com/How-should-front-ends-handle-Feature-NoParagraphs-tp4654268.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel
mailing list