I have following html code:
<p><strong>Lorem Ipsum</strong> je fiktívny text, používaný pri návrhu tlačovín a typografie. Lorem Ipsum je štandardným výplňovým textom už od 16. storočia, keď neznámy tlačiar zobral sadzobnicu plnú tlačových znakov a pomiešal ich, aby tak vytvoril vzorkovú knihu. <em>Prežil nielen päť storočí</em>, ale aj skok do elektronickej sadzby, a pritom zostal v podstate nezmenený.</p>
After convert to pdf look this:
I try use word-wrap and also this: dompdf does wrong calculation for line breaks breaking words but not working for me.
In slovak language can not be "a" in the end of line. I need to have it like this:
"..tlačovín a typo-
grafie..."
or
"...tlačovín
a typografie..."
same problem in last but one with "v"
also we cant use numbers and century separately
"16.
storočia"
i need to have it like this:
už od
16. storočia, ... (together)
This problem can solve in html when i type 16.storočia without spacer.
dompdf does not have language parsing rules for languages other than English at this time (though investigating how to implement those rules might be worthwhile in the future). dompdf also does not yet support hyphenation. Initial support would be implemented for English first and non-English languages later.
Your particular problem, however, is addressable with some tweaks to the HTML. You can prevent a line break by surrounding a set of characters with the
nobr
element. I tweaked your sample text in the following CSS/HTML:(I did my best to mark up the text to wrap correctly based on your question, but I don't have knowledge of all the language rules.)