bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #35614] mobile-phone friendly HTML output


From: Seong-Kook Shin
Subject: [bug #35614] mobile-phone friendly HTML output
Date: Fri, 24 Feb 2012 00:24:58 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.102 Safari/535.2

URL:
  <http://savannah.gnu.org/bugs/?35614>

                 Summary: mobile-phone friendly HTML output
                 Project: texinfo - GNU documentation system
            Submitted by: cinsk
            Submitted on: Fri 24 Feb 2012 12:24:57 AM GMT
                Category: makeinfo
                 Release: 
                Priority: 5 - Normal
                Severity: 3 - Normal
              Item Group: enhancement
                 Privacy: Public
             Open/Closed: Open
             Assigned to: None
         Discussion Lock: Any
                  Status: None

    _______________________________________________________

Details:

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,





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35614>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]