From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id oBE19EFi024709 for ; Mon, 13 Dec 2010 20:09:15 -0500 (EST) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-2.sys.kth.se (Postfix) with ESMTP id E2F3414C129 for ; Tue, 14 Dec 2010 02:09:08 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([130.237.32.160]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id OPlgyz2R96xA for ; Tue, 14 Dec 2010 02:09:07 +0100 (CET) X-KTH-Auth: kristaps [85.8.61.170] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: discuss@mdocml.bsd.lv Received: from h85-8-61-170.dynamic.se.alltele.net (h85-8-61-170.dynamic.se.alltele.net [85.8.61.170]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 0884614C223 for ; Tue, 14 Dec 2010 02:09:05 +0100 (CET) Message-ID: <4D06C3B1.6020702@bsd.lv> Date: Tue, 14 Dec 2010 02:09:05 +0100 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: Re: html div positioning References: <273936.43197.qm@web31402.mail.mud.yahoo.com> In-Reply-To: <273936.43197.qm@web31402.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > First, thank you for mdocml! I have been searching for a way to get > the man pages put together into an epub file for offline reading on > something like a Nook or Kindle. The ebook readers have very narrow > screens. man2html just wraps up the man pages in pre tags, which > doesn't allow the man pages to fit an entire line of text on the > narrow screen. mdocml is much closer, and the html displays well > even down to a 640x480 resolution. There is still some absolute > positioning going on in the html output, such as "padding-left: > 16.00em" on certain div tags. These add up on some portions of the > man pages, and produce the following example of a.out(5) on a Nook: > http://cisx1.uma.maine.edu/~wbackman/photo-1.JPG I'm not sure I can > override this with the -Ostyle=mycss.css option. Thoughts? > > And thank you once again. A fast and versatile tool. Will, welcome! Awesome use of mandoc, by the way... This is an issue with the browser's rendering of mandoc's heavy-handed CSS2. Basically, the only way I've found that produces ok-looking "Bl -tag" output is [div margin-left=xx] [div margin-right=-xx float=left] Left [/div] [div] Right [/div] [/div] where "xx" is the width of "Left" (usually given by the -width tag). This mark-up handles overruns in the left column more-or-less how they appear on a terminal, only without the line-break (I couldn't find a way to preserve it exactly). However, it only works with new browsers, and specifically, new browsers that I've tried. From mandoc.1: CAVEATS The -Thtml and -Txhtml CSS2 styling used for -mdoc input lists does not render properly in older browsers, such as Internet Explorer 6 and earlier. If you can suggest mark-up that works in this situation across more browsers, I'll immediately jump on implementing it. If, however, you've any even more awesome ideas, then I'm all ears: -T[x]html isn't burdened by "prior art". This has long since been an open issue, so any suggestions you have are very welcome! Thanks, Kristaps -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv