Re: texinfo.tex: hyphenation not working

2009-05-06 Thread Karl Berry
How to enable hyphenation of this word?

The hyphenation points are already being considered.  I put @loggingall
in the source and inspected the resulting paragraph breaking; it has the
expected discretionaries for the determining.

What's happening is that TeX is trying to minimize badness over the
entire paragraph, by making the interword spaces as equal as possible.
In this case, the whole thing has to be set far too loosely, due to the
vast unbreakable url.  So the interword space huge.  So the
intersentence space after Word_Boundaries., which is 3x the interword
space, becomes truly enormous.

The last line has normal interword spacing because the hfil glue at the
end of the paragraph overwhelms the stretchability between words.

I don't see how anything can make this paragraph look decent except
either allowing line breaks within the url or rewriting.  Just a few
more words before the url and it comes out ok.

karl




texinfo.tex: hyphenation not working

2009-05-01 Thread Bruno Haible
Hi Karl,

I'm using texinfo.tex from texinfo-4.13 (labeled version 2008-04-18.10).

In my .texi source file I have this paragraph:

  This is a more low-level API.  The word break property is a property defined
  in Unicode Standard Annex #29, section ``Word Boundaries'', see
  @url{http://www.unicode.org/reports/tr29/#Word_Boundaries}.  It is used
  for determining the word breaks in a string.

The output from texi2dvi (save in .pdf) is as attached. You can see too much
white space in the third line. It looks like hyphenating the word determining
could solve the issue. But it does not work. After I change the paragraph to

  This is a more low-level API.  The word break property is a property defined
  in Unicode Standard Annex #29, section ``Word Boundaries'', see
  @url{http://www.unicode.org/reports/tr29/#Word_Boundaries}.  It is used
  for d...@-ter@-...@-ning the word breaks in a string.

no hyphenation occurs. The output is still the same.

How to enable hyphenation of this word?

Bruno

inline: ugly-paragraph.png