bugtexinfo - GNU documentation system - Bugs: bug #35614, mobile-phone friendly HTML output


You are not allowed to post comments on this tracker with your current authentification level.

bug #35614: mobile-phone friendly HTML output

Submitted by:  Seong-Kook Shin <cinsk>
Submitted on:  Fri 24 Feb 2012 12:24:57 AM UTC  
Category: makeinfoRelease: 
Priority: 5 - NormalSeverity: 3 - Normal
Item Group: enhancementPrivacy: Public
Open/Closed: OpenAssigned to: None
Status: None

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,

Seong-Kook Shin <cinsk>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cinsk (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup