[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Texinfo - manual line breaks in URLs?
From: |
Michael Käppler |
Subject: |
Re: Texinfo - manual line breaks in URLs? |
Date: |
Tue, 13 Oct 2020 10:46:52 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 |
Am 13.10.2020 um 07:35 schrieb Werner LEMBERG:
* Both versions, however, correctly justify the paragraph in the
example,[*] while exactly the same code in the NR does not. This
makes me believe that we have a problem with our texinfo macro setup
that prevents correct justification of URLs. An alternative
explanation might be that we've hit a bug in `texinfo.tex` that gets
triggered by the NR setup.
It is much simpler.
I have to admit that there was a difference between our test files that
I was not aware of:
---------------------------
\input texinfo.tex
@c >>>>
@afourpaper
@c <<<<
In a different way, the full range of colors
@uref{https://en.wikipedia.org/wiki/X11_color_names, defined for X11}
can be accessed by using the Scheme function @code{x11-color}.
That function takes one argument.
@bye
-------------------------
With the different page dimensions of '@afourpaper', the ugly breaking
in the current texinfo.tex shows up.
Bisecting yielded that the change in 'texinfo.tex' behaviour is intended:
-------------------------
commit b3987a0f5c95fd3438ada69d36a8730ac3516710
Author: Gavin Smith <gavinsmith0123@gmail.com>
Date: Sun Mar 3 11:49:03 2019 +0000
No stretch around breakable characters in URL's.
* doc/texinfo.tex
(\urefprestretchamount, \urefpoststretchamount): Remove.
(\urefprestretch, \urefpoststretch): Remove. Replace calls with
\urefprebreak and \urefpostbreak.
(\urefallowbreak): New macro, to allow a ragged right break
within a URL.
* doc/texinfo-tex-test.texi (URL line breaking): New section.
This could lead to too much space being inserted, for example
around the two slashes in "http://". The ragged right break
prevents under-full or over-full boxes. (bug-texinfo, July 2018.)
-------------------------
Well, maybe it is a matter of taste if one prefers ragged right breaks over
under-full boxes. Personally I agree with you, Werner, that the ragged
spacing
is worse.
We could restore the old behaviour with a hack like
@tex
\gdef\urefallowbreak{%
\allowbreak
}
@end tex
in common-macros.itexi, I did not test this with the complete docs, at
least with
your test example it does work, though.
Have a nice day,
Michael
- Re: Texinfo - manual line breaks in URLs?, Werner LEMBERG, 2020/10/09
- Re: Texinfo - manual line breaks in URLs?, Michael Käppler, 2020/10/12
- Re: Texinfo - manual line breaks in URLs?, Werner LEMBERG, 2020/10/12
- Re: Texinfo - manual line breaks in URLs?, David Kastrup, 2020/10/12
- Re: Texinfo - manual line breaks in URLs?, Werner LEMBERG, 2020/10/13
- Re: Texinfo - manual line breaks in URLs?,
Michael Käppler <=
- Re: Texinfo - manual line breaks in URLs?, Werner LEMBERG, 2020/10/13
- Re: Texinfo - manual line breaks in URLs?, Michael Käppler, 2020/10/13
- Re: Texinfo - manual line breaks in URLs?, Michael Käppler, 2020/10/14
- Re: Texinfo - manual line breaks in URLs?, Werner LEMBERG, 2020/10/29
- Re: Texinfo - manual line breaks in URLs?, Michael Käppler, 2020/10/29