[sword-devel] 1.5.8RC3 / Locales

Lynn Allan l_d_allan at adelphia.net
Mon May 16 06:37:00 MST 2005


> RC3 is available for download and testing.  In this latest RC, we've
> fixed all error that were reported and also tackled one of the 3
> remaining items on the todo list (which was slated for push back):
the
> morphology EntryAttributes filter fixes.
>
> Please let me know what you find.
>
I'm experiencing what seems to be a problem with SWModule::StripText
(or user error on my part?  ... or flawed/obsolete WEB module?)

Using WEB 2 Kings 19:6 as an example,
.... Thus shall you<WTP> tell your master, ....

changes to
.... Thus shall you <P> tell your master, ...

My impression is that <WTP> should be entirely removed rather than
partially removed.

Here is a link to a sample program (with vc7.1 project files) that
illustrates:
http://lcdbible.sf.net/misc/showchapter-1.5.7.zip

#include <iostream>
#include <swmgr.h>
#include <versekey.h>
#include <swmodule.h>

#ifndef NO_SWORD_NAMESPACE
using sword::SWMgr;
using sword::SWModule;
using sword::VerseKey;
using sword::SWModule;
#endif

int main(int argc, char **argv)
{
  SWMgr manager;
  SWModule *mod = manager.Modules["WEB"];
  VerseKey vk("II Kings 19:1");
  vk.Persist(1);
  mod->setKey(vk);
  int chap = vk.Chapter();

  while (vk.Chapter() == chap) {
    std::cout << chap << ':' << vk.Verse() << ' '
              << (const char*)*mod << " " << std::endl;
    (*mod)++;
  }
  vk.Chapter(19);
  vk.Verse(6);
  mod->setKey(vk);
  std::cout << std::endl << std::endl
            << (const char*)*mod << " " << std::endl;

  const char* rawText = (const char*)mod->getRawEntry();
  const char* strippedText = (const char*)mod->StripText();
  std::cout << std::endl << std::endl << rawText << " " << std::endl;
  std::cout << std::endl << std::endl << strippedText << " " <<
std::endl;
  return 0;
}




More information about the sword-devel mailing list