Example #1
0
def _heading1(text):
    """Use this for chapters.  Lessons within a big chapter
    should now use heading2 instead.  Chapters get numbered."""
    rldu.getStory().append(rldu.PageBreak())
    p = rldu.Paragraph('Capitolo <seq id="Chapter"/> ' + rldu.quickfix(text),
                       rldu.H1)
    rldu.getStory().append(p)
Example #2
0
def _quickfix(text):
    return quickfix(unitext(text))
Example #3
0
def _bullet(text):
    text=u'<bullet><font name="Symbol">\xe2\x80\xa2</font></bullet>' + rldu.quickfix(text)
    P = Paragraph(text, rldu.BU)
    rldu.getStory().append(P)
Example #4
0
def _heading1(text):
    """Use this for chapters.  Lessons within a big chapter
    should now use heading2 instead.  Chapters get numbered."""
    rldu.getStory().append(rldu.PageBreak())
    p = rldu.Paragraph('Capitolo <seq id="Chapter"/> '+rldu.quickfix(text), rldu.H1)
    rldu.getStory().append(p)
Example #5
0
def _quickfix(text):
    return quickfix(unitext(text))
Example #6
0
def _bullet(text):
    text = u'<bullet><font name="Symbol">\xe2\x80\xa2</font></bullet>' + rldu.quickfix(
        text)
    P = Paragraph(text, rldu.BU)
    rldu.getStory().append(P)