Jump to content


Photo

HTML Import: Formatting verses


  • Please log in to reply
4 replies to this topic

#1 Thomas

Thomas

    Bronze

  • Active Members
  • PipPip
  • 81 posts
  • Gender:Male
  • Location:Pasadena, CA

Posted 22 March 2007 - 12:26 PM

http://www.accordancebible.com/blog/
Monday, February 26, 2007
How Accordance Imports HTML

In an Accordance bible module, I can search by, say, "2:1" (i.e., {BookName} 2:1). If I import an HTML doc that has verses, how do I tag the verse reference so that I can search in a similar fashion? As it is now, if I search by "2:1" I get no returns—when searching by "titles" or "content". Ideas?

#2 Helen Brown

Helen Brown

    Mithril

  • Admin
  • 8,108 posts
  • Gender:Female
  • Location:heart in Israel
  • Accordance Version:10.x

Posted 22 March 2007 - 01:10 PM

When you import HTML into a user tool, Accordance automatically tags any identifiable scripture references. You should then be able to search for them in the Scripture field just like any other tool.
Helen Brown
OakTree Software

#3 Thomas

Thomas

    Bronze

  • Active Members
  • PipPip
  • 81 posts
  • Gender:Male
  • Location:Pasadena, CA

Posted 22 March 2007 - 11:27 PM

When you import HTML into a user tool, Accordance automatically tags any identifiable scripture references. You should then be able to search for them in the Scripture field just like any other tool.


I knew I should've included an example. Importing, say, a Quran comes with verses like "2:125". I'd like to be able to search by "2:125", but I don't know how to tag the "2:125" part as a verse header. Thought it's currently in {chapter}.{verse} format, e.g., "2.125" even for "2.125" comes up null. I'm asking if there's a specific mark-up for ({Book}) {Chapter}:{Verse} that Accordance recognizes.

Edit to above:
I just accidentally searched by 2 * 125 (i.e., 2{space}*{space}125) and did successfully find the reference. I'd still be interested in the above information nonetheless.


Thanks,

Attached Files


Edited by Thomas, 22 March 2007 - 11:31 PM.


#4 Joe Weaks

Joe Weaks

    Platinum

  • Active Members
  • PipPipPipPipPip
  • 1,043 posts
  • Gender:Male
  • Location:Raytown, MO (outside KC)
  • Interests:I like things that are Orange, and possibly Blue.
  • Accordance Version:8.x

Posted 23 March 2007 - 12:28 AM

Importing, say, a Quran comes with verses like "2:125". I'd like to be able to search by "2:125", but I don't know how to tag the "2:125" part as a verse header. Thought it's currently in {chapter}.{verse} format, e.g., "2.125" even for "2.125" comes up null. I'm asking if there's a specific mark-up for ({Book}) {Chapter}:{Verse} that Accordance recognizes.

Thomas,
As you discovered, searching for verse references isn't hard. But I now see what you're requesting, and I think it'd be a great idea. No functionality like that yet, but the use of heading tags really comes close to replicating what you're asking for, and may do the trick. Experiment with adding <H1> tags to the beginning of every chapter and then <H2> tags to every chapter.verse reference. If you can accomplish that with a search and replace using wildcards before you import the HTML, it will duplicate the "separate with space" text viewing option, but otherwise just might accomplish what you're wanting.

Also, have a look at how the TLG imports the Greek volumes. Basically, it makes each new chapter a chapter that appears in the Tool Browser. This way, you can both browse easily at least.

Attached File  ActPhilip_mariam.png   44.67KB   13 downloads

Another option to tag and search verse references, you could simply format them with one of the available tags that aren't being used (such as Rosetta). This would allow you to search by that tag. You'd have to manually change each reference though. So scratch that option.

A real kludge would be to add "Co" to the from of every chaper.verse reference. "Co" as in C/Koran... which should be Quran, I know, but it's the best I could think of. If you did so, on import, all the references would be tagged as scripture references and be searchable as such. (if you clicked them, they'd amplify to Colossians... but just don't click on them. :)

Edited by Joe Weaks, 23 March 2007 - 12:29 AM.

Joe Weaks
The Macintosh Biblioblog

Sometimes I'm so helpful even I can't stand it.

#5 Helen Brown

Helen Brown

    Mithril

  • Admin
  • 8,108 posts
  • Gender:Female
  • Location:heart in Israel
  • Accordance Version:10.x

Posted 23 March 2007 - 01:21 AM

In general Accordance recognizes as references only those which refer to the Bible. There are some specific options for finding references to non-Biblical texts from another corpus like Qumran or Pseudepigrapha, but the Quran is not one of them. Therefore you are asking simply to search the text content of a tool, and I think you have found the answer.

You cannot tag these as references, but you can use the asterisk to stand for the punctuation. This also works for finding orphan Bible references in other tools, that are not in the Scripture field because the algorithms could not identify them accurately.
Helen Brown
OakTree Software




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users