Sep 11 2008

Today is September 11, 2008

May God bless America.

Pho­tos:

*Hiro, *Hiro, *Hiro, *Hiro, TIO…,
NASA, Bren­dan Loy, DoD

All pho­tos licensed under Cre­ative Commons.


Jun 14 2008

Upgrade Your Browser!

…and set a World Record

It’s an excit­ing time for the web world, with some big devel­op­ments com­ing up.

notex­tile. Download Day 2008

Fire­fox 3

If you haven’t tried Fire­fox, the web browser bet­ter than that other one, now is the time.

Fire­fox is a web browser that is faster, more secure, and cus­tomiz­able. And it’s free. The cur­rent ver­sion is 2.0.0.14 for Win­dows, Mac OS X, and Linux.

Even bet­ter is Fire­fox 3, which will be released on June 17, 2008.

The cool kids at Mozilla are try­ing to set a new Guin­ness World Record, for most soft­ware down­loads in 24 hours. Down­load Day for Fire­fox 3 is Tues­day, June 17, 2008.

So, help us set a new Guin­ness World Record, and “Enjoy a Bet­ter Web.”

Opera 9.5

notex­tile. Opera 9.5 logo

In the mean­time, Opera 9.5 has been released. Opera is a pretty good browser too, though web devel­op­ers will prob­a­bly wait for Drag­on­fly.

notextile.

OpenOf­fice 3

OpenOffice logo

While you’re at it, you might want to upgrade your Office suite, as well. OpenOf­fice is a free open-source office soft­ware sui­tex, for doc­u­ments, spread­sheets, pre­sen­ta­tions, graph­ics, and data­bases. Lat­est release is ver­sion 2.4.1, and OpenOf­fice 3 is in beta.

In fact, my shiny almost-new Vista lap­top has never run Microsoft Office. A state­ment I never expected to write, but with OpenOf­fice, I don’t even miss it.


May 27 2008

Acts 2

Based on a chal­lenge from the ven­er­a­ble Carl Cam­era:

notextile.

Acts 2

The Holy Spirit Comes at Pentecost

1 When the day of Pen­te­cost came, they were all together in one place. 2 Sud­denly a sound like the blow­ing of a vio­lent wind came from heaven and filled the whole house where they were sit­ting. 3 They saw what seemed to be tongues of fire that sep­a­rated and came to rest on each of them. 4 All of them were filled with the Holy Spirit and began to speak in other tongues1 as the Spirit enabled them.

5 Now there were stay­ing in Jerusalem God-fearing Jews from every nation under heaven. 6 When they heard this sound, a crowd came together in bewil­der­ment, because each one heard them speak­ing in his own lan­guage. 7 Utterly amazed, they asked: “Are not all these men who are speak­ing Galileans? 8 Then how is it that each of us hears them in his own native lan­guage? 9 Parthi­ans, Medes and Elamites; res­i­dents of Mesopotamia, Judea and Cap­pado­cia, Pon­tus and Asia, 10 Phry­gia and Pam­phylia, Egypt and the parts of Libya near Cyrene; vis­i­tors from Rome 11 (both Jews and con­verts to Judaism); Cre­tans and Arabs–we hear them declar­ing the won­ders of God in our own tongues!” 12 Amazed and per­plexed, they asked one another, “What does this mean?”

13 Some, how­ever, made fun of them and said, “They have had too much wine2.”

Peter Addresses the Crowd

14 Then Peter stood up with the Eleven, raised his voice and addressed the crowd: “Fel­low Jews and all of you who live in Jerusalem, let me explain this to you; lis­ten care­fully to what I say. 15 These men are not drunk, as you sup­pose. It’s only nine in the morn­ing! 16 No, this is what was spo­ken by the prophet Joel:

notextile.

17 ” ‘In the last days, God says,

notextile.

I will pour out my Spirit on all peo­ple.
Your sons and daugh­ters will proph­esy,
your young men will see visions,
your old men will dream dreams.

18 Even on my ser­vants, both men and women,
I will pour out my Spirit in those days,
and they will prophesy.

19 I will show won­ders in the heaven above
and signs on the earth below,
blood and fire and bil­lows of smoke.

20 The sun will be turned to dark­ness
and the moon to blood
before the com­ing of the great and glo­ri­ous day of the Lord.

21 And every­one who calls
on the name of the Lord will be saved3.’

notextile.

22 “Men of Israel, lis­ten to this: Jesus of Nazareth was a man accred­ited by God to you by mir­a­cles, won­ders and signs, which God did among you through him, as you your­selves know. 23 This man was handed over to you by God’s set pur­pose and fore­knowl­edge; and you, with the help of wicked men4, put him to death by nail­ing him to the cross. 24 But God raised him from the dead, free­ing him from the agony of death, because it was impos­si­ble for death to keep its hold on him.

25 David said about him:

notextile.

” ‘I saw the Lord always before me.
Because he is at my right hand,
I will not be shaken.

26 There­fore my heart is glad and my tongue rejoices;
my body also will live in hope,

27 because you will not aban­don me to the grave,
nor will you let your Holy One see decay.

28 You have made known to me the paths of life;
you will fill me with joy in your pres­ence5.’

notextile.

29 “Broth­ers, I can tell you con­fi­dently that the patri­arch David died and was buried, and his tomb is here to this day. 30 But he was a prophet and knew that God had promised him on oath that he would place one of his descen­dants on his throne. 31 See­ing what was ahead, he spoke of the res­ur­rec­tion of the Christ6, that he was not aban­doned to the grave, nor did his body see decay. 32 God has raised this Jesus to life, and we are all wit­nesses of the fact. 33 Exalted to the right hand of God, he has received from the Father the promised Holy Spirit and has poured out what you now see and hear.

34 For David did not ascend to heaven, and yet he said,

notextile.

” ‘The Lord said to my Lord:
“Sit at my right hand

35 until I make your ene­mies
a foot­stool for your feet7.” ‘

notextile.

36 “There­fore let all Israel be assured of this: God has made this Jesus, whom you cru­ci­fied, both Lord and Christ.”

37 When the peo­ple heard this, they were cut to the heart and said to Peter and the other apos­tles, “Broth­ers, what shall we do?”

38 Peter replied, “Repent and be bap­tized, every one of you, in the name of Jesus Christ for the for­give­ness of your sins. And you will receive the gift of the Holy Spirit. 39

40 With many other words he warned them; and he pleaded with them, “Save your­selves from this cor­rupt gen­er­a­tion.” 41 Those who accepted his mes­sage were bap­tized, and about three thou­sand were added to their num­ber that day.

The Fel­low­ship of the Believers

42 They devoted them­selves to the apos­tles’ teach­ing and to the fel­low­ship, to the break­ing of bread and to prayer. 43 Every­one was filled with awe, and many won­ders and mirac­u­lous signs were done by the apos­tles.
44 All the believ­ers were together and had every­thing in com­mon. 45 Sell­ing their pos­ses­sions and goods, they gave to any­one as he had need. 46 Every day they con­tin­ued to meet together in the tem­ple courts. They broke bread in their homes and ate together with glad and sin­cere hearts, 47 prais­ing God and enjoy­ing the favor of all the peo­ple. And the Lord added to their num­ber daily those who were being saved.

Acts 2:1–47

notextile.
notextile.

Foot­notes (NIV):

1 Acts 2:4 Or lan­guages; also in verse 11

2 Acts 2:13 Or sweet wine

3 Acts 2:21 Joel 2:28–32

4 Acts 2:23 Or of those not hav­ing the law (that is, Gentiles)

5 Acts 2:28 Psalm 16:8–11

6 Acts 2:31 Or Mes­siah. “The Christ” (Greek) and “the Mes­siah” (Hebrew) both mean “the Anointed One”; also in verse 36.

7 Acts 2:35 Psalm 110:1

New Inter­na­tional Ver­sion

Ccopy­right © 1973, 1978, 1984 by Inter­na­tional Bible Soci­ety [Zondervan]

notextile.

May 26 2008

Bible Markup Pattern: A Proposal

(Also pub­lished at God­bit.)

What is the best way to mark up text from the Bible? I’ve been think­ing about this ques­tion for more than a year, and in that time I have sought an answer, or at least a proposal.

If you’re impa­tient, here are the exam­ples: Exo­dus 20, Psalm 23, Matthew 5, and Matthew 6:5–15.

Caveats

Please remem­ber this arti­cle presents only a pro­posal for con­sid­er­a­tion. I am no the­olo­gian; nor am I a renowned expert on front-end code. Nor does every page of every site I’ve ever built have “best” markup, how­ever I do make every effort to do so.

How­ever, it seems to me that–of all texts in the world–it should be impor­tant to make an effort toward best prac­tices in mark­ing up the Bible.

Of course, I wel­come cor­rec­tions and com­men­tary, any thoughts or additions.

Back­ground

Some good work has been done on cita­tion of online Bible quotes, includ­ing BibleRef and OpenBible.info. There are even some Word­press plu­g­ins for BibleRef.

Bibleref is a sim­ple approach to auto­mat­i­cally iden­ti­fy­ing Bible ref­er­ences [in] web pages.

I use and rec­om­mend BibleRef, which is a foun­da­tional pro­posal that focuses directly on the cita­tion, for exam­ple: <cite class="bibleref">2 Tim 3:16</cite>. All of the present exam­ples use the BibleRef cita­tion format.

But I wanted some­thing more com­pre­hen­sive, that would help with mark­ing up entire bib­li­cal texts or even a whole Bible.

Bibleref is part of a gen­eral move­ment toward markup that expresses more seman­tic, rather than pre­sen­ta­tional, element.

So, my ques­tion is broader than cita­tion for­mat: what ele­ments should we use,
as best practice?

What’s “Best”?

When con­sid­er­ing what may be a “best” way to mark up the Bible, sev­eral require­ments or prin­ci­ples come to mind.

First, it means using (X)HTML in a way that is valid, min­i­mal, and seman­tic. In this case, the term “valid” means essen­tially “meet­ing the require­ments set by the W3C of the spec­i­fi­ca­tion selected by the Doc­type of that document.”

“Min­i­mal” refers to adding as few ele­ments and attrib­utes as rea­son­ably pos­si­ble to the text itself, while pre­serv­ing its structure.

And for pur­poses of this arti­cle, “seman­tic” means a few things: using mean­ing­ful ele­ments that match each por­tion of the text, and com­mu­ni­cate its func­tional mean­ing. In other words, if some text is a pri­mary head­ing, use an <h1> (head­ing) ele­ment; if it’s a para­graph, use a <p> (para­graph) ele­ment; if a block quote, use a <blockquote> ele­ment, etc.

The word “seman­tic” also man­dates gen­eral web stan­dards prin­ci­ples, including:

  • no tables for layout,
  • avoid inline styles,
  • avoid frames,
  • avoid numer­ous <div> and <span> ele­ments (espe­cially those with class attrib­utes that mimic other ele­ments, like head­ings and paragraphs),
  • don’t require JavaScript or Flash.

CMS – Friendly

Another prin­ci­ple for my project is to rec­og­nize the ubiq­uity of the con­tent man­age­ment sys­tem. Most cur­rent con­tent on the web is no longer in sta­tic web pages; rather, it is stored in a data­base and pre­sented dynam­i­cally when some­one asks for it.

So, the four exam­ples I’ve pre­pared are all marked up using the excel­lent Tex­tile syn­tax, the “humane Web text generator”.

Not a Microformat

I sup­port and use Micro­for­mats, but it should be noted that this Bible markup pat­tern is not a Micro­for­mat, and for var­i­ous rea­sons it prob­a­bly never will be.

Cur­rent Practice

I did some research on how some pub­lish­ers and ver­sions are pre­sented on the web, basi­cally by look­ing at as many of these four exam­ples in the four ver­sions that were avail­able on these five sites: Bible Gate­way, Eng­lish Stan­dard Ver­sion, eBible, You­Ver­sion, and WEB Bible.

The markup was about what you might expect from large sites with big con­tent man­age­ment sys­tems. With very few excep­tions, the markup of the pages were all invalid, not min­i­mal, and not semantic.

How­ever, they all at least declared a Doc­type, and com­pared to many enor­mous com­mer­cial sites, most of the markup was rather clean. In fact, almost all used head­ing ele­ments well, and used some arrange­ment of mainly para­graph ele­ments with some class attrib­utes. Depend­ing on the con­tent man­age­ment sys­tem, my impres­sion is that much of this Bible text markup could be much improved with­out undue effort.

Thing One, and Thing Two

Some infor­mal study indi­cates there seem to be two basic seman­tic types or “gen­res” of bib­li­cal text.

The first type can be cat­e­go­rized as prose, and includes para­graphs, lists, and block quotes. The sec­ond type may be called verse, which includes poems, songs, and other lyri­cal matter.

I real­ize this may be gross over-simplification, but when con­struct­ing any tax­on­omy there is a ten­sion in select­ing the num­ber of cat­e­gories. In this case, I pro­pose sim­ply two cat­e­gories, which adds seman­tic rich­ness while being sim­ple enough for this intro­duc­tory article.

The two main gen­res in the Bible are nar­ra­tive and poetry.
Edi­tors’ Pref­ace to the ESV Lit­er­ary Study Bible

Even a sim­ple two-category tax­on­omy can yield pow­er­ful results: pick up a Bible and com­pare Gen­e­sis to Psalms, which con­tain mostly prose and verse respec­tively. It’s obvi­ous they are pre­sented dif­fer­ently, and this basic pre­sen­ta­tional char­ac­ter can be pre­served in the markup.

Exam­ples

As exam­ples of this pro­posed Bible markup pat­tern, it seemed appro­pri­ate to use pas­sages from both Old and New Tes­ta­ments, includ­ing prose, block quotes, and verse.

I selected four texts as exam­ples, which are posted on my blog: Exo­dus 20, Psalm 23, Matthew 5, and Matthew 6:5–15. These pas­sages are also known as the Ten Com­mand­ments, the Beat­i­tudes, the Lord’s Prayer, and … the Twenty-Third Psalm.

Each exam­ple is pre­sented in a dif­fer­ent ver­sion: Exo­dus 20 in the NIV, Psalm 23 in the ESV, Matthew 5 in the WEB, and Matthew 6:5–15 in the KJV.

Overview: The Method

  1. Bible: The first step is sim­ple: a con­tainer ele­ment, such as a <div>, gets a class attribute of “bible”.
  1. Head­ings: The sec­ond step is also easy: Head­ings use head­ing ele­ments, such as <h2>, <h3>, etc.
  1. Para­graphs: Put almost every­thing else in a paragraph.
  1. Block quotes: sur­round one or more para­graphs of a block quote in with <blockquote> and </blockquote> tags.
  1. Verse num­bers and Foot­notes: At first, I thought it would be clever to use ordered lists for the verse num­bers, but that only works if every­one begins all their Bible quo­ta­tions from the begin­ning of a chap­ter. So, verse num­bers are <sup> ele­ments. Sim­i­larly, foot­note ref­er­ence num­bers are </sup><sup> ele­ments with a class attribute of “footnote”.
  1. Verse, Poetry, etc.: As between “prose” and “verse,” I chose to make “prose” the default. If some or all of a pas­sage is verse, then enclose that text with an ele­ment (such as a <span>) with a class attribute of “verse”.
  1. Addi­tional: There are a few addi­tional aspects, includ­ing div ele­ments to enclose multi-paragraph “stan­zas” of verse (see Psalm 23), and the markup of the footnotes.

The Styles

For ease of ref­er­ence, the Bible style infor­ma­tion is embed­ded in the head of the exam­ples, so you can sim­ply view the page source.

In actual use, they should be included in a sep­a­rate CSS file with the other styles for that page. A sam­ple CSS file of the Bible styles is avail­able for down­load.

The Future

Some thoughts for the future:

  • How to markup Selah or a clos­ing Amen? Per­haps class="affirmation"?
  • Ini­tial caps for the chap­ter num­ber, super­sed­ing the verse num­ber of the first verse of that chapter?
  • Per­haps a print stylesheet, for select­ing a slightly dif­fer­ent font stack, or siz­ing the printed text in points.
  • And the one I’m almost afraid to ask, what about class="wordsofchrist"?

Let the dis­cus­sion begin….

This arti­cle is © Mont­gomery 2008. Some rights released with a Cre­ative Com­mons Attribution-NonCommercial-ShareAlike 2.5 License.