Skip to content
ExamplesOpen editor ↗

TLHAKA

→ CHAR

A value that breaks the line wherever it must to stay inside the box.

TLHAKA

You hand it to kgaoloMokwalo. Where LEFOKO keeps words whole, TLHAKA splits them wherever it must to keep the text inside the box.

It is what you want when you do not know in advance what the text will be — a reader’s name, or text from somewhere else.

TLHAKA, not LETSHWAO. tlhaka is a letter of the alphabet — a word a child already knows. In Bopa, letshwao is the name of char, and it covers marks like ? and % as well. The break happens at any character, not only at letters, so TLHAKA is the easy word rather than the exactly right one — and letshwao was already spent.

A long word kept inside the box
tiro setaLoeto() {
  thalaKanefase(400, 220);
  bokamorago(242);
  bogoloJwaMokwalo(20);
  sebakaSaMela(26);
  kgaoloMokwalo(TLHAKA);

  tlogelaGoTlatsa();
  mothaloMmala(205, 210, 218);
  thalaKhutlonne(40, 40, 170, 150);

  tlogelaMothalo();
  tlatsaMmala(40, 50, 70);
  thalaMokwalo('Tlhakatlhakanya mafoko a maleele', 48, 66, 154);

  tlhalosa('Mokwalo o o kgaogantsweng mo ditlhakeng gore o nne mo lebokosong le lennye.');
}

kgaoloMokwalo, LEFOKO, letshwao