formula for sonnet and ktextwidgets