09/22/2009, 12:43 AM
|
#221 (permalink) | |
|
Member
![]() Join Date: Sep 2009
Posts: 5
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
Last edited by jmichae3; 09/24/2009 at 05:11 AM. |
|
09/23/2009, 08:18 AM
|
#222 (permalink) | |
|
Member
![]() Join Date: Jun 2003
Posts: 54
Likes Received: 0
Thanks: 6
Thanked 20 Times in 5 Posts
|
Quote:
|
|
09/23/2009, 12:00 PM
|
#223 (permalink) | |
|
Member
![]() ![]() ![]() Join Date: Jul 2009
Posts: 202
Likes Received: 0
Thanks: 32
Thanked 111 Times in 23 Posts
|
Quote:
|
|
09/24/2009, 05:05 AM
|
#225 (permalink) | |
|
Member
![]() Join Date: Sep 2009
Posts: 5
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
http://jesusnjim.com/contactme.php Last edited by jmichae3; 09/24/2009 at 08:00 PM. Reason: change email to url |
|
09/24/2009, 06:12 AM
|
#226 (permalink) |
|
Member
![]() Join Date: Aug 2009
Location: Ї Ƈøṁε ℉яøṁ ṫɦε ℓαη∂ øḟ ṫɦε øḟḟ ṫø℘ḯ¢ !! NOW BACK OFF !! ltm ltm ltm
Posts: 9,126
Likes Received: 70
Thanks: 2,261
Thanked 2,792 Times in 2,201 Posts
|
When I turn my pre into landscape mode the header bar does not extend to the length of the screen like it should. Just wandering (telling someone) if it is a bug or not. It does however adjust the first time I go into landscape ,but when I change books it shortens back up like I turned back vertical or something lol
__________________
ĦṔ-ḶøØṫ-ŦḯØη Here is a direct link to webOS Doc for all carriers http://www.webos-internals.org/wiki/...octor_Versions P.S. if i have helped you and you are thankful please hit the thanks button to the right----> |
09/24/2009, 08:28 AM
|
#227 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
That question (about posting code) is why we strongly urge teams to post their code at public repositories.
For webos projects webos-internals or preware offers free git hosting. |
09/24/2009, 04:09 PM
|
#228 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
|
Quote:
Code:
this.couldBeSample(code);
__________________
frankos72 Simple Bible - Simple Bible Pro - Bits of God Website My Day Job: www.pigstands.com |
|
09/24/2009, 04:10 PM
|
#229 (permalink) |
|
Member
![]() ![]() Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
|
BTW, Yall, look for a new Version from stickywhipit SOON. For more info and a change log visit our website www.bitsofgodsoftware.com
__________________
frankos72 Simple Bible - Simple Bible Pro - Bits of God Website My Day Job: www.pigstands.com |
09/24/2009, 08:08 PM
|
#230 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 5
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
what are advanced posting tools? all I see here are plain editing controls in the reply box. you have got to help me out here. I am a complete newbie, and this editor appears to be way too simple for doing code. however, I will see if this comes out.
Code:
/*
I currently don't know how the pre handles reading documents by JS, so someone
will have to modify that section of code (commented).
all you need is a form with
<form action="somepage.html" method="POST">
<input type='text' name='searchtext'>
<input type='button' value='Word Search' onclick="wordsearch_and()">
<input type='button' value='Phrase Search' onclick="phrasesearch()"><br>
</form>
This is built on the premise that each verse line contains the complete verse
reference in the form (not including double quotes)
"1 Corinthans 12:2 " within at least the first 10 characters of the line.
Copyright 2009 Jim Michaels
*/
var books=Array(
Array("Genesis",0),
Array("Exodus",1),
Array("Leviticus",2),
Array("Numbers",3),
Array("Deuteronomy",4),
Array("Joshua",5),
Array("Judges",6),
Array("Ruth",7),
Array("1 Samuel",8),
Array("2 Samuel",9),
Array("1 Kings",10),
Array("2 Kings",11),
Array("1 Chronicles",12),
Array("2 Chronicles",13),
Array("Ezra",14),
Array("Nehemiah",15),
Array("Esther",16),
Array("Job",17),
Array("Psalms",18),
Array("Proverbs",19),
Array("Ecclesiastes",20),
Array("Song of Solomon",21),
Array("Isaiah",22),
Array("Jeremiah",23),
Array("Lamentations",24),
Array("Ezekiel",25),
Array("Daniel",26),
Array("Hosea",27),
Array("Joel",28),
Array("Amos",29),
Array("Obadiah",30),
Array("Jonah",31),
Array("Micah",32),
Array("Nahum",33),
Array("Habakkuk",34),
Array("Zephaniah",35),
Array("Haggai",36),
Array("Zecharaiah",37),
Array("Malachi",38),
Array("Matthew",39),
Array("Mark",40),
Array("Luke",41),
Array("John",42),
Array("Acts",43),
Array("Romans",44),
Array("1 Corinthians",45),
Array("2 Corinthians",46),
Array("Galatians",47),
Array("Ephesians",48),
Array("Philippians",49),
Array("Colossians",50),
Array("1 Thessalonians",51),
Array("2 Thessalonians",52),
Array("1 Timothy",53),
Array("2 Timothy",54),
Array("Titus",55),
Array("Philemon",56),
Array("Hebrews",57),
Array("James",58),
Array("1 Peter",59),
Array("2 Peter",60),
Array("1 John",61),
Array("2 John",62),
Array("3 John",63),
Array("Jude",64),
Array("Revelation",65)
);
//assuming the verse line starts like 1 Corinthans 12:2
//if a book like clarke's commentary is to be used instead, you will likely need to change this function.
function extractReferenceFromVerseLine(str) {
//search for book
var bookpos,i,j,nextspace,found=false;
var bookindex,chapter,verse;
for (i=0; i < books.length; i++) {
bookpos=str.indexOf(books[i][0],0);
if (bookpos < 10 && bookpos != -1) {
nextspace=str.indexof(" ",bookpos+books[i][0].length);
bookindex=i;
found=true;
break;
}
}
//return Array(book index, chapter#, verse#)
if (found) {
//extract chapter
i=nextspace+1;
while (str.charAt(i) != ':') {
i++;
}
//char found was a : so prev char was last char of chapter number.
chapter=p****Int(str.slice(nextspace+1,i)); //slice does not include end position i
i++;
j=i;
while (str.charAt(j) != ' ') {
j++;
}
verse=p****Int(str.slice(i,j)); //slice does not include end position j
return Array(bookindex,chapter,verse);
} else {
return Array(-1,-1,-1); //
}
}
function sortfunction(a, b){
//Compare "a" and "b" in some fashion, and return -1, 0, or 1
//note: these are going to be arrays of 4 items,
//bookindex,chapter,verse,verseline.
//we are only concerned with bookindex,chapter,verse
if (a[0]==b[0] && a[1]==b[1] && a[2]==b[2]) {
return 0;
}
if (a[0]<b[0] ||
a[0]==b[0] && a[1]<b[1]||
a[0]==b[0] && a[1]==b[1] && a[2]<b[2]
) {
return -1
}
if (a[0]>b[0] ||
a[0]==b[0] && a[1]>b[1]||
a[0]==b[0] && a[1]==b[1] && a[2]>b[2]
) {
return 1
}
}
function ltrim(str) {
vvar index=0;
while (str[index]==' '||
str[index]=='\t'||
str[index]=='\r'||
str[index]=='\b'||
str[index]=='\n'||
str[index]=='\f') {
index++;
}
//index now points to the first non-whitespace character.
return str.substring(index, str.length);
}
function rtrim(str) {
vvar index=str.length-1;
while (str[index]==' '||
str[index]=='\t'||
str[index]=='\r'||
str[index]=='\b'||
str[index]=='\n'||
str[index]=='\f') {
index--;
}
//index now points to the first non-whitespace character.
return str.substring(0, index);
}
function wordsearch_and() {
var words=document.forms[0].searchtext.value; //retrieve contents of textbox named searchtext from first form in document
//bogus character replace with space
//words=words.replace(",", " "); //treat commas as spaces
words=words.replace("\t", " "); //treat tabs as spaces
words=words.replace("\b", " "); //treat backspaces as spaces
words=words.replace("\r", " "); //treat returns as spaces
words=words.replace("\n", " "); //treat newlines as spaces
words=words.replace("\f", " "); //treat formfeeds as spaces
//eliminate repeat spaces
var i, L1, L2;
do {
L1=words.length;
words=words.replace(" ", " ");
L2=words.length;
} while (L1 != L2);
words=rtrim(ltrim(words)); //trim off whitespace from ends
//split up words
var wordslist = words.split(" ");
//now we have a useable set of words.
//from here on, use document.match() to search for strings using the following code:
var flag, j, k,found;
var arr=Array();
var resultsarr=Array();
var z;
//for every document use var a {
//somehow get document at var a.
for (i=0,flag=true; i < wordslist.length; i++) {
z=a.window.document.match(wordlist[i]); //match() returns an array of strings
//insert bookindex, chapter, verse along with the verseline result as an array
for (j=0; j < z.length; j++) {
k=z[j];
var t=extractReferenceFromVerseLine(k)
z[j]=Array(t[0],t[1],t[2],k); //book index,chapter,verse,verseline
}
arr[i]=z;
arr.sort(sortfunction);
}
/*eliminate duplicate match results and put results in resultsarr
we do this by enumerating across the entire 2D array (actually an
array of vectors if you are thinking STL or variable length arrays
if you are thinking JS) and then building a unique array of resultsarr.
*/
for (i=0; i < wordlist.length; i++) {
for (j=0; j < arr[i].length; i++) {
for (k=0,found=false; k < resultsarr.length; k++) {
if (arr[i][j]!=resultsarr[k] && !found) {
found=true;
}
}
}
}
//at this point, we should sort by book, chapter, and verse, like all Bible programs do, but that also means that we should have stored chapter and verse information in the array structure.
//since I don't know the structure of the html document, (did someone add the book, chapter, and verse as attributes? at least then we can extract it using standard getAttribute() and calls similar to getElementByID())
//it will also require a special sort routine. If we use qsort, we will probably have to come up with our own compare routine
//and keep an array of books up top of the script.
//write the report
document.write("<div style='color:blue;font-weight:bold;'>Search Results</div>");
for (k=0,found=false; k < resultsarr.length; k++) {
document.write("<div>"+resultsarr[k]+"</div>");
}
//} //end for every document
}
function phrasesearch() {
var words=document.forms[0].searchtext.value; //retrieve contents of textbox named searchtext from first form in document
//bogus character replace with space
//words=words.replace(",", " "); //treat commas as spaces
words=words.replace("\t", " "); //treat tabs as spaces
words=words.replace("\b", " "); //treat backspaces as spaces
words=words.replace("\r", " "); //treat returns as spaces
words=words.replace("\n", " "); //treat newlines as spaces
words=words.replace("\f", " "); //treat formfeeds as spaces
//eliminate repeat spaces
var i, L1, L2,z,k,j,t,arr;
do {
L1=words.length;
words=words.replace(" ", " ");
L2=words.length;
} while (L1 != L2);
words=rtrim(ltrim(words)); //trim off whitespace from ends
//from here on, use document.match() to search for strings using the following code:
var k;
var arr;
//for every document use var a {
//somehow get document at var a.
arr=a.window.document.match(wordlist[i]); //match() returns an array of strings
for (j=0; j < z.length; j++) {
k=z[j];
var t=extractReferenceFromVerseLine(k)
z[j]=Array(t[0],t[1],t[2],k); //book index,chapter,verse,verseline
}
arr[i]=z;
arr.sort(sortfunction);
//at this point, we should sort by book, chapter, and verse, like all Bible programs do, but that also means that we should have stored chapter and verse information in the array structure.
//since I don't know the structure of the html document, (did someone add the book, chapter, and verse as attributes? at least then we can extract it using standard getAttribute() and calls similar to getElementByID())
//it will also require a special sort routine. If we use qsort, we will probably have to come up with our own compare routine
//and keep an array of books up top of the script.
//write the report
document.write("<div style='color:blue;font-weight:bold;'>Search Results</div>");
for (k=0; k < arr.length; k++) {
document.write("<div>"+arr[k]+"</div>");
}
//} //end for every document
}
Last edited by jmichae3; 09/24/2009 at 08:22 PM. Reason: source formatting was rotten. and source contained my email. |
09/24/2009, 08:58 PM
|
#231 (permalink) |
|
Member
![]() ![]() Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
|
There you have it jmichae3. That's what I was talking about.
__________________
frankos72 Simple Bible - Simple Bible Pro - Bits of God Website My Day Job: www.pigstands.com |
09/24/2009, 09:01 PM
|
#232 (permalink) |
|
Member
![]() Join Date: Aug 2009
Location: Ї Ƈøṁε ℉яøṁ ṫɦε ℓαη∂ øḟ ṫɦε øḟḟ ṫø℘ḯ¢ !! NOW BACK OFF !! ltm ltm ltm
Posts: 9,126
Likes Received: 70
Thanks: 2,261
Thanked 2,792 Times in 2,201 Posts
|
i guess you dont really want info about the actions of the app. then right ????? bugs and stuff of that sort.
__________________
ĦṔ-ḶøØṫ-ŦḯØη Here is a direct link to webOS Doc for all carriers http://www.webos-internals.org/wiki/...octor_Versions P.S. if i have helped you and you are thankful please hit the thanks button to the right----> |
09/24/2009, 09:04 PM
|
#233 (permalink) |
|
Member
![]() Join Date: Aug 2009
Location: Ї Ƈøṁε ℉яøṁ ṫɦε ℓαη∂ øḟ ṫɦε øḟḟ ṫø℘ḯ¢ !! NOW BACK OFF !! ltm ltm ltm
Posts: 9,126
Likes Received: 70
Thanks: 2,261
Thanked 2,792 Times in 2,201 Posts
|
how about the message bible its a very good translation as well .....please?!??!?!
__________________
ĦṔ-ḶøØṫ-ŦḯØη Here is a direct link to webOS Doc for all carriers http://www.webos-internals.org/wiki/...octor_Versions P.S. if i have helped you and you are thankful please hit the thanks button to the right----> |
09/24/2009, 09:32 PM
|
#234 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
|
Quote:
For complete up-to-date information on the progress of Simple Bible, please visit the news section of our website at www.bitsofgodsoftware.com We have had to go this route since getting in the app catalog. We can't direct everyone here for support and it's just easier to maintain one central area than to keep that and this up.
__________________
frankos72 Simple Bible - Simple Bible Pro - Bits of God Website My Day Job: www.pigstands.com |
|
09/24/2009, 09:35 PM
|
#235 (permalink) |
|
Member
![]() ![]() Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
|
It is copyrighted. We are currently working with public domain or free to use versions since we don't charge for this application. There is more information on translations on the homepage of our website as well as in the FAQ in the application itself and on the website.
__________________
frankos72 Simple Bible - Simple Bible Pro - Bits of God Website My Day Job: www.pigstands.com |
09/24/2009, 09:41 PM
|
#236 (permalink) |
|
Member
![]() Join Date: Aug 2009
Location: Ї Ƈøṁε ℉яøṁ ṫɦε ℓαη∂ øḟ ṫɦε øḟḟ ṫø℘ḯ¢ !! NOW BACK OFF !! ltm ltm ltm
Posts: 9,126
Likes Received: 70
Thanks: 2,261
Thanked 2,792 Times in 2,201 Posts
|
ok just wanted to know if anyone was listening ,thanks for the response and what about the ,message bible could yall try to get that one too ? i would gladly pay for this app with all the different versions because it is great to study with several bibles . i had like ten or fifteen on my 755p . oh yeah will you be adding other stuff too like strongs numbers or the greek and hebrew translations ?? that would make me a happy man right there!!!
__________________
ĦṔ-ḶøØṫ-ŦḯØη Here is a direct link to webOS Doc for all carriers http://www.webos-internals.org/wiki/...octor_Versions P.S. if i have helped you and you are thankful please hit the thanks button to the right----> |
09/24/2009, 10:05 PM
|
#237 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
|
Quote:
Please take the time to read the available information before posting a question. When you do post a question, please give people time to answer them. By time I mean a day or two. This forum doesn't work like Instant Messaging but more like a cross between e-mail and snail mail. I just happen to be hanging out here tonight.
__________________
frankos72 Simple Bible - Simple Bible Pro - Bits of God Website My Day Job: www.pigstands.com Last edited by frankos72; 09/24/2009 at 11:29 PM. |
|
09/25/2009, 09:34 AM
|
#238 (permalink) | |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
Quote:
Also, why do you keep choosing not to download the simplebible app and the sdk and run it on your computer? Why write theoreticals in isolation like this? Rick |
|
09/25/2009, 04:08 PM
|
#239 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
Feature complete simple Big Book now posted as 1.0.0
Thanks again for sharing the framework to build on. All code in the IPK is gpl2. Enjoy. Rick |
09/27/2009, 03:48 PM
|
#240 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Jul 2009
Posts: 202
Likes Received: 0
Thanks: 32
Thanked 111 Times in 23 Posts
|
simple bible 0.10.6 has been released to the homebrew catalog with translations and a few other helpful features and bug fixes! we are very excited about this release because the #1 feature request is now pretty complete! we are still testing it out and debugging the delete code, but we thought releasing it to the homebrew community to help us test, while we finish up the first 2 new translations (NET and ESV), would be exciting for you all. enjoy it and test it out and let us know what you think! here is the link to the homebrew version of the app.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



