Re: js-info disabling sidebar for narrow windows (experimental)

2021-02-18 Thread Gavin Smith
On Thu, Feb 18, 2021 at 02:02:00PM -0800, Raymond Toy wrote:
> I'm pretty sure that page was generated using texinfo 3.7.

https://cmucl.org/docs/cmu-user/html/index.html says that it was
generated with Texinfo 6.6dev.



Re: js-info disabling sidebar for narrow windows (experimental)

2021-02-18 Thread Raymond Toy
> "Gavin" == Gavin Smith  writes:

Gavin> On Thu, Feb 18, 2021 at 08:05:42AM -0800, Raymond Toy wrote:
>> > "Per" == Per Bothner  writes:
>> 
Per> A goal was to automatically switch to "narrow" mode on
Per> smartphones, that isn't working yet.  (Smartphone browsers tend
Per> to do magic things with "viewport" and zooming, and dealing
Per> with that needs some more research and experimentation.)
>> 
>> Yeah, that would be awesome.  When I view the html version of
>> some texinfo docs, the display is rather messed up with tiny
>> fonts in some cases.  For example,
>> https://cmucl.org/docs/cmu-user/html/index.html looks great on
>> desktop, but the stuff at the very bottom renders in super tiny
>> fonts on my phone.

Gavin> This the font "boosting" issue.

Gavin> This issue should have been dealt with in two ways.  First,
Gavin> in the current development version, a  element is not
Gavin> used to lay out a menu by default (set with the FORMAT_MENU
Gavin> option).

Gavin> I had also thought it had been fixed after this discussion.

Gavin> https://lists.gnu.org/archive/html/bug-texinfo/2020-03/msg7.html

I'm pretty sure that page was generated using texinfo 3.7.

>> I suggest adding > content="width=device-width,initial-scale=1"> to the standard
>> HTML ... block. This will make the result noticeably
>> better on mobile/pads and is, so far as I have seen, harmless on
>> larger screens.

Gavin> It would be worth checking that both of these changes have
Gavin> happened properly.

Yes, the viewport ought to be set.

Still, while I'm dreaming, texinfo could do these for me since it's
generating the html files.  Ideally, texinfo would produce ok results
by default, and let the author fine tune things as needed.

But since I'm not actually contributing to fixing these issues, feel
free to ignore me. :-)

--
Ray






Re: js-info disabling sidebar for narrow windows (experimental)

2021-02-18 Thread Per Bothner

Works better on mobile now (thanks, Gavin):

http://per.bothner.com/tmp/DomTerm-txjs/
--
--Per Bothner
p...@bothner.com   http://per.bothner.com/



Re: js-info disabling sidebar for narrow windows (experimental)

2021-02-18 Thread Per Bothner

On 2/18/21 11:24 AM, Gavin Smith wrote:

I suggest adding

to the standard HTML ... block. This will make the result
noticeably better on mobile/pads and is, so far as I have seen, harmless
on larger screens.


It would be worth checking that both of these changes have happened
properly.


It seems to be done only for the redirection pages, created by
_default_format_node_redirection_page. No other match for "viewport".

Which seems rather backwards ...

--
--Per Bothner
p...@bothner.com   http://per.bothner.com/



Re: js-info disabling sidebar for narrow windows (experimental)

2021-02-18 Thread Gavin Smith
On Thu, Feb 18, 2021 at 08:05:42AM -0800, Raymond Toy wrote:
> > "Per" == Per Bothner  writes:
> 
> Per> A goal was to automatically switch to "narrow" mode on
> Per> smartphones, that isn't working yet.  (Smartphone browsers tend
> Per> to do magic things with "viewport" and zooming, and dealing
> Per> with that needs some more research and experimentation.)
> 
> Yeah, that would be awesome.  When I view the html version of some
> texinfo docs, the display is rather messed up with tiny fonts in some
> cases.  For example, https://cmucl.org/docs/cmu-user/html/index.html
> looks great on desktop, but the stuff at the very bottom renders in
> super tiny fonts on my phone.

This the font "boosting" issue.

This issue should have been dealt with in two ways.  First, in the
current development version, a  element is not used to lay out
a menu by default (set with the FORMAT_MENU option).

I had also thought it had been fixed after this discussion.

https://lists.gnu.org/archive/html/bug-texinfo/2020-03/msg7.html

> I suggest adding
> 
> to the standard HTML ... block. This will make the result
> noticeably better on mobile/pads and is, so far as I have seen, harmless
> on larger screens.

It would be worth checking that both of these changes have happened
properly.



Re: js-info disabling sidebar for narrow windows (experimental)

2021-02-18 Thread Raymond Toy
> "Per" == Per Bothner  writes:

Per> A goal was to automatically switch to "narrow" mode on
Per> smartphones, that isn't working yet.  (Smartphone browsers tend
Per> to do magic things with "viewport" and zooming, and dealing
Per> with that needs some more research and experimentation.)

Yeah, that would be awesome.  When I view the html version of some
texinfo docs, the display is rather messed up with tiny fonts in some
cases.  For example, https://cmucl.org/docs/cmu-user/html/index.html
looks great on desktop, but the stuff at the very bottom renders in
super tiny fonts on my phone.

I have played around with making some html pages work nicely on desktop
and mobile, but I'm not a web dev, so it took a lot of googling and
experimenting to get something to look reasonable.  And these were plain
html, not pages generated by texinfo.

--
Ray




js-info disabling sidebar for narrow windows (experimental)

2021-02-18 Thread Per Bothner

The js-info reader doesn't attempt to handle narrow windows/screens.
So I implemented something a bit more flexible.

For a rough prototype, see: http://per.bothner.com/tmp/DomTerm-txjs/

Note there is a "Hide sidebar" button (with crappy styling) on the lower left.
It does the obvious.

Furthermore, if the window is "narrow" then the sidebar is "transient":
Tt is automatically hidden when you click on a page link (in the sidebar).
There are also styling and size changes, most notably that the
sidebar overlays the main-bar, which is always full-width.

A goal was to automatically switch to "narrow" mode on smartphones,
that isn't working yet.  (Smartphone browsers tend to do magic
things with "viewport" and zooming, and dealing with that needs
some more research and experimentation.)

There are other issues.  Clicking on the cross-links in the mainbar
doesn't currently work when the sidebar is hidden.

Feedback welcome.
--
--Per Bothner
p...@bothner.com   http://per.bothner.com/