Quick question about introductions in modules: On 22/01/2013, at 2:07 AM, Troy A. Griffitts <scr...@crosswire.org> wrote:
> OK, to clear this up technically. > > setIntros() turns on and off the versification extra 'slots': > > TSTMT BK CH:0 - chapter intro > TSTMT BK 0:0 - book intro > TSTMT 0 0:0 - testament intro > 0 0 0:0 - module intro Is there any way to detect if a module contains these introductions? Right now PocketSword will display chapter intros if they exist (well, in v1.4.3, which is currently "in review" with Apple). After that, I am thinking about the rest of these intros. Do I programmatically check 69 different locations (well, for Bibles with 66 books) to test for 66 lots of (book intro != NULL) 2 lots of (testament intro != NULL) 1 lot of (module intro != NULL) and then know whether to offer a user to select these intros to view? Or is there a simpler way of knowing if these exist? Also, is there an English module that contains various of these intros that I can use for testing purposes? (actually, non-English will work as well, but I just won't be able to read the content!) Thanks heaps, ybic nic... :) ps: alternatively, I could check to see if I'm displaying chapter 1 & then include the book intro at the top. pps: along these lines, I could check if we're viewing the first book in a testament & then display the testament intro at the top as well? ppps: and, carrying on, check if we're viewing the first book in the first testament in a module, and display the module intro as well? pppps: However, all of these ps' will make things a little more messy for the reader... :/ _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page