") 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") out.append(' \n") out.append(' \n') 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("