reportlab  3.5.23
About: ReportLab generates high-quality dynamic PDF documents/charts in real-time & high volumes from any data source (commercial version also available).
  Fossies Dox: reportlab-3.5.23.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

paragraph.py File Reference

Go to the source code of this file.

Classes

class  reportlab.platypus.paragraph.ParaLines
 
class  reportlab.platypus.paragraph.FragLine
 
class  reportlab.platypus.paragraph._HSFrag
 
class  reportlab.platypus.paragraph._SplitFrag
 
class  reportlab.platypus.paragraph._SplitFragH
 
class  reportlab.platypus.paragraph._SplitFragHY
 
class  reportlab.platypus.paragraph._SplitFragHS
 
class  reportlab.platypus.paragraph._SplitWord
 
class  reportlab.platypus.paragraph._SplitWordH
 
class  reportlab.platypus.paragraph._SplitWordHY
 
class  reportlab.platypus.paragraph.cjkU
 
class  reportlab.platypus.paragraph.Paragraph
 

Namespaces

 reportlab.platypus.paragraph
 

Functions

def reportlab.platypus.paragraph._usConv (s, vMap, default=None)
 
def reportlab.platypus.paragraph.split (text, delim=None)
 
def reportlab.platypus.paragraph.strip (text)
 
def reportlab.platypus.paragraph.lstrip (text)
 
def reportlab.platypus.paragraph.rstrip (text)
 
def reportlab.platypus.paragraph._lineClean (L)
 
def reportlab.platypus.paragraph.cleanBlockQuotedText (text, joiner=' ')
 
def reportlab.platypus.paragraph.setXPos (tx, dx)
 
def reportlab.platypus.paragraph._nbspCount (w)
 
def reportlab.platypus.paragraph._leftDrawParaLine (tx, offset, extraspace, words, last=0)
 
def reportlab.platypus.paragraph._centerDrawParaLine (tx, offset, extraspace, words, last=0)
 
def reportlab.platypus.paragraph._rightDrawParaLine (tx, offset, extraspace, words, last=0)
 
def reportlab.platypus.paragraph._justifyDrawParaLine (tx, offset, extraspace, words, last=0)
 
def reportlab.platypus.paragraph.imgVRange (h, va, fontSize)
 
def reportlab.platypus.paragraph.imgNormV (v, nv)
 
def reportlab.platypus.paragraph._getDotsInfo (style)
 
def reportlab.platypus.paragraph._putFragLine (cur_x, tx, line, last, pKind)
 
def reportlab.platypus.paragraph._do_dots_frag (cur_x, cur_x_s, maxWidth, xs, tx)
 
def reportlab.platypus.paragraph._leftDrawParaLineX (tx, offset, line, last=0)
 
def reportlab.platypus.paragraph._centerDrawParaLineX (tx, offset, line, last=0)
 
def reportlab.platypus.paragraph._rightDrawParaLineX (tx, offset, line, last=0)
 
def reportlab.platypus.paragraph._justifyDrawParaLineX (tx, offset, line, last=0)
 
def reportlab.platypus.paragraph._trailingSpaceLength (text, tx)
 
def reportlab.platypus.paragraph._processed_frags (frags)
 
def reportlab.platypus.paragraph._getFragWords (frags, maxWidth=None)
 
def reportlab.platypus.paragraph._fragWordIter (w)
 
def reportlab.platypus.paragraph._splitFragWord (w, maxWidth, maxWidths, lineno)
 
def reportlab.platypus.paragraph._slash_parts (uri, scheme, slash)
 
def reportlab.platypus.paragraph._uri_split_pairs (uri)
 
def reportlab.platypus.paragraph._hyGenPair (hyphenator, s, ww, newWidth, maxWidth, fontName, fontSize, uriWasteReduce, embeddedHyphenation, hymwl)
 
def reportlab.platypus.paragraph._fragWordSplitRep (FW)
 
def reportlab.platypus.paragraph._rebuildFragWord (F)
 
def reportlab.platypus.paragraph._hyGenFragsPair (hyphenator, FW, newWidth, maxWidth, uriWasteReduce, embeddedHyphenation, hymwl)
 
def reportlab.platypus.paragraph._hyphenateFragWord (hyphenator, FW, newWidth, maxWidth, uriWasteReduce, embeddedHyphenation, hymwl=hyphenationMinWordLength)
 
def reportlab.platypus.paragraph._hyphenateWord (hyphenator, fontName, fontSize, w, ww, newWidth, maxWidth, uriWasteReduce, embeddedHyphenation, hymwl=hyphenationMinWordLength)
 
def reportlab.platypus.paragraph._splitWord (w, maxWidth, maxWidths, lineno, fontName, fontSize, encoding='utf8')
 
def reportlab.platypus.paragraph._yieldBLParaWords (blPara, start, stop)
 
def reportlab.platypus.paragraph._split_blParaSimple (blPara, start, stop)
 
def reportlab.platypus.paragraph._split_blParaHard (blPara, start, stop)
 
def reportlab.platypus.paragraph._drawBullet (canvas, offset, cur_y, bulletText, style, rtl)
 
def reportlab.platypus.paragraph._handleBulletWidth (bulletText, style, maxWidths)
 
def reportlab.platypus.paragraph.splitLines0 (frags, widths)
 
def reportlab.platypus.paragraph._do_line (tx, x1, y1, x2, y2, nlw, nsc)
 
def reportlab.platypus.paragraph._do_under_line (i, x1, ws, tx, us_lines)
 
def reportlab.platypus.paragraph._doLink (tx, link, rect)
 
def reportlab.platypus.paragraph._do_link_line (i, t_off, ws, tx)
 
def reportlab.platypus.paragraph._do_post_text (tx)
 
def reportlab.platypus.paragraph.textTransformFrags (frags, style)
 
def reportlab.platypus.paragraph.makeCJKParaLine (U, maxWidth, widthUsed, extraSpace, lineBreak, calcBounds)
 
def reportlab.platypus.paragraph.cjkFragSplit (frags, maxWidths, calcBounds, encoding='utf8')
 
def reportlab.platypus.paragraph.dumpParagraphLines (P)
 
def reportlab.platypus.paragraph.fragDump (w)
 
def reportlab.platypus.paragraph.dumpParagraphFrags (P)
 
def reportlab.platypus.paragraph.flagged (i, TESTS=TESTS)
 

Variables

tuple reportlab.platypus.paragraph.__all__
 
string reportlab.platypus.paragraph.__version__ = '3.5.20'
 
string reportlab.platypus.paragraph.__doc__ = '''The standard paragraph implementation'''
 
 reportlab.platypus.paragraph.pyphen = None
 
string reportlab.platypus.paragraph._wsc
 
 reportlab.platypus.paragraph._wsc_re_split = re.compile('[%s]+'% re.escape(_wsc)).split
 
 reportlab.platypus.paragraph._wsc_end_search = re.compile('[%s]+$'% re.escape(_wsc)).search
 
int reportlab.platypus.paragraph._FK_TEXT = 0
 
int reportlab.platypus.paragraph._FK_IMG = 1
 
int reportlab.platypus.paragraph._FK_APPEND = 2
 
int reportlab.platypus.paragraph._FK_BREAK = 3
 
 reportlab.platypus.paragraph.uri_pat = re.compile(u'(^(?:[a-z0-9\\.\\-\\+]*)://)(?:\\S+(?::\\S*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xa1-\uffff0-9](?:[a-z\xa1-\uffff0-9-]{0,61}[a-z\xa1-\uffff0-9])?(?:\\.(?!-)[a-z\xa1-\uffff0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xa1-\uffff-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z', re.I)
 
string reportlab.platypus.paragraph._hy_shy = u'-\xad'
 
 reportlab.platypus.paragraph._hy_pfx_pat = re.compile(u'^[\'"([{\xbf\u2018\u201a\u201c\u201e]+')
 
 reportlab.platypus.paragraph._hy_sfx_pat = re.compile(u'[]\'")}?!.,;:\u2019\u201b\u201d\u201f]+$')
 
 reportlab.platypus.paragraph._hy_letters_pat = re.compile(u''.join((u"^[",_hy_letters,u"]+$")))
 
 reportlab.platypus.paragraph._hy_shy_letters_pat = re.compile(u''.join((u"^[",_hy_shy,_hy_letters,"]+$")))
 
 reportlab.platypus.paragraph._hy_shy_pat = re.compile(u''.join((u"([",_hy_shy,u"])")))
 
 reportlab.platypus.paragraph._scheme_re = re.compile('^[a-zA-Z][-+a-zA-Z0-9]+$')
 
 reportlab.platypus.paragraph.TESTS = sys.argv[1:]
 
 reportlab.platypus.paragraph.styleSheet = getSampleStyleSheet()
 
 reportlab.platypus.paragraph.B = styleSheet['BodyText']
 
 reportlab.platypus.paragraph.style = ParagraphStyle("discussiontext", parent=B)
 
 reportlab.platypus.paragraph.fontName
 
string reportlab.platypus.paragraph.text
 
 reportlab.platypus.paragraph.P = Paragraph(text,style)
 
 reportlab.platypus.paragraph.aW = 420
 
 reportlab.platypus.paragraph.aH = 500
 
 reportlab.platypus.paragraph.w
 
 reportlab.platypus.paragraph.h
 
def reportlab.platypus.paragraph.S = P.split(aW,aH)
 
 reportlab.platypus.paragraph.w0
 
 reportlab.platypus.paragraph.h0