Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  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
 
                w = STRING_WIDTHS[piece] = canvas.stringWidth(piece)
            olist.append(Box(w, piece))
            olist.append(Penalty(hyphen_width, 100))
        olist.pop()
        olist.append(Glue(space_width, space_width * .5, space_width * .25))