Re: [sword-devel] How to get footnotes?

2007-08-25 Thread mmital
Thanks, much appreciated! - Original Message - From: "Troy A. Griffitts" <[EMAIL PROTECTED]> To: "SWORD Developers' Collaboration Forum" Sent: Saturday, August 25, 2007 10:55 PM Subject: Re: [sword-devel] How to get footnotes? > mmital, > > Try this (didn't check, but should be close):

Re: [sword-devel] How to get footnotes?

2007-08-25 Thread Troy A. Griffitts
mmital, Try this (didn't check, but should be close): AttributeList &fns = pModule->getEntryAttributes()["Footnote"]; for (AttributeList::iterator f = fns.begin(); f != fns.end(); f++) Footnotes.Add(pModule->RenderText(f->second["body"])); -Troy. mmital wrote: > Hi, > > I w

[sword-devel] How to get footnotes?

2007-08-25 Thread mmital
Hi, I was wondering how to obtain footnotes in a particulat format (example, a valid HTML or RTF text). Currently, I am using the following method that gives me the raw footnote string: CStringArray Footnotes; for (i1 = pModule->getEntryAttributes().begin(); i1 != pModule->getEntryAttribute

Re: [sword-devel] To DM and Troy: Questions about making a module , an extract byte

2007-08-25 Thread ZJ Li
Thanks, DM and Troy. I got it. I will also add this extra byte and try again. Yes. I am writing a new editor for genbook that will allow user write html(limited tags) in a wysiwyg way. Also, it allows module generating through the gui and deploy the module to sword genbook location. I tried to

Re: [sword-devel] SWConfig questions

2007-08-25 Thread Troy A. Griffitts
Manfred, SWConfig uses an stl multimap. This is similar to a map, but also allows duplicates. We've subclassed multimap and added back many of the nice accessors that map provides, like: SWConfig config("~/.sword/InstallMgr/InstallMgr.conf"); config["General"]["PassiveFTP"]="true"; But, like

Re: [sword-devel] To DM and Troy: Questions about making a module , an extract byte

2007-08-25 Thread Troy A. Griffitts
Dear Zj Li, If you are looking to write sword modules, the only supported way is to use the SWORD engine. We neither encourage nor support manipulation of the data files directly. Not to thwart your efforts, but can you not merely use a few simple calls to the sword engine to write your data?

[sword-devel] OSIS difficulties

2007-08-25 Thread Daniel Owens
I'm working on tagging a bible in OSIS, and when I use osis2mod the module shows up in Bibletime, but there are a few quirks I'd appreciate help with. I followed the examples from the OSIS website. 1. Section headings in the middle of a chapter result in a new line between the verse number and