Fri 24 Feb 2012 12:24:57 AM UTC, original submission:
The HTML generated by makeinfo (texinfo 4.13) is hard to read from mobile phone such as iphone 4s.
Two things should be dealt with, for best iphone-safari experience.
1. Device-width aware HTML.
Simple, just inserting follow meta tags will be enough:
(See also https://github.com/h5bp/mobile-boilerplate)
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width">
<meta http-equiv="cleartype" content="on">
I'm not expecting this will be hard coded into texinfo, rather,
it will be grateful if there is a way to insert custom <meta>.
Contents between "@html .. @end html" are inserted in <body> so that, I cannot use it for my purpose.
2. "Reader" feature in Safari 5.x.
Safari 5.x in iphone renders HTML for easier reading on the device. See http://mathiasbynens.be/notes/safari-reader for more information.
In short, put everything in "<body><article> ... </article></body>" will trigger the "Reader" feature. Note that I didn't investigate much here so there will be better HTML markup for Safari reader.
After looking at makeinfo's source, it would be trivial to support safari reader. Replace every occurrence of "<body>" and "</body>" in html.c, makeinfo.c, and node.c into "<body><article>" and "</article><body>".
I tried that, and found for multiple HTML page output, it would be great. But for one huge HTML page output, Safari reader won't be triggered.
Since, my experiment was just for my personal use, non-general-purpose, I asking texinfo developers, so that there will be some solution about this.
Thank you,
|