") if book["titles"]: # Separated by a space, not run together. The spans record what USFM # called them -- mt2 and mt3 were lines above and below the main title # -- but they are set as one line here, and without the space between # them Genesis reads "The First Book of Moses,Commonly CalledGenesis". # The markup still says what each part is, so stacking them again is a # stylesheet away. out.append(" ".join('%s' % (part["style"], esc(part["text"])) for part in book["titles"])) else: out.append(esc(name)) out.append("
\n") # The title and nothing else. Both of the things that used to sit under it # are in the navbar now, where they are in reach from anywhere in the book # rather than only from the top of it: the chapter list became the # reference picker, which reads its chapters and verses straight off this # markup, and "All books" is what the navbar brand already does. In Psalms # the chapter list alone was a hundred and fifty links, carried in the # fragment and in every device's offline copy. out.append("\n')
for chapter in book["chapters"]:
render_chapter(chapter, code, out)
out.append("
\n")
out.append(' \n'
% (esc(translation["name"]), esc(translation["license"])))
out.append("