def METHOD_NAME(self, tok):
    if isinstance(tok, Text):
        for word in tok.text.split():
            self.word(word)
    elif tok.tag == "i":
        self.style = "italic"
    elif tok.tag == "/i":
        self.style = "roman"
    elif tok.tag == "b":
        self.weight = "bold"
    elif tok.tag == "/b":
        self.weight = "normal"
    elif tok.tag == "small":
        self.size -= 2
    elif tok.tag == "/small":
        self.size += 2
    elif tok.tag == "big":
        self.size += 4
    elif tok.tag == "/big":
        self.size -= 4
    elif tok.tag == "br":
        self.flush()
    elif tok.tag == "/p":
        self.flush()
        self.cursor_y += VSTEP