Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/python-bookbinding-HEAD/bookbinding/knuth.py   python-bookbinding(Download)
"""Classes that support Knuth TeX-style paragraph breaking."""
 
from texlib.wrap import ObjectList, Box, Glue, Penalty
from .hyphenate import hyphenate_word
 
 
    if indent:
        olist.append(Glue(indent, 0, 0))
 
    space_width = canvas.stringWidth(u' ')
            olist.append(Penalty(hyphen_width, 100))
        olist.pop()
        olist.append(Glue(space_width, space_width * .5, space_width * .25))
    olist.pop()
    olist.add_closing_penalty()