This code is intended to reproduce the line breaks of a printed text on large screens, but allowing a free flow on small screens:
Using the above code, the resulting prince-converted PDF displays the line after the hyphen overlapped on top of the previous line. A space between </span><span> is fine for media=screen, but results in "Eng lish", instead of "English" for media=handheld, so there should be no space between these span tags.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en">
<title>title</title>
<style media="screen">
.page { page-break-before:always; height:42.5em; width:25.9375em; }
p .span { white-space:nowrap; }
</style>
<style media="handheld">
p .span { white-space:normal; }
ins { display:none; }
</style>
</head>
<body>
<div class="page">
<p
><span>Nancies, and old women of the fashionable and literary</span>
<span>worlds of America extravagantly to extol every thing Eng<ins>-</ins></span
><span>lish, it will be deemed reprehensible temerity in any man, to</p>
</div>
</body>
</html>
Using the above code, the resulting prince-converted PDF displays the line after the hyphen overlapped on top of the previous line. A space between </span><span> is fine for media=screen, but results in "Eng lish", instead of "English" for media=handheld, so there should be no space between these span tags.