[Top][All Lists]

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

Re: [bug-libunistring] [PATCH] Allow latex to wrap long URLs.

From: Bruno Haible
Subject: Re: [bug-libunistring] [PATCH] Allow latex to wrap long URLs.
Date: Fri, 1 May 2009 23:08:47 +0200
User-agent: KMail/1.9.9

Hello Ralf,

> allows (pdf)latex to wrap some of the URLs, which significantly reduces
> the length of some lines, but still allows clickable URLs.  The patch
> changes all URLs I found, I do that to avoid having to adjust the
> wrapping when I change text later.

Thanks for the patch. But in fact, I think URLs should not be broken into
lines, because in the browser's text field they should not be entered
with a newline either.

I therefore chose to avoid the ugliness by inserting a line break before
or after the URL.

2009-05-01  Bruno Haible  <address@hidden>

        Avoid "overfull hboxes" in the TeXed documentation.
        * doc/libunistring.texi (texnl): New macro.
        (Unicode, Autoconf macro): Use it.
        * doc/unictype.texi (Canonical combining class,
        Bidirectional category): Likewise.
        * doc/uniwbrk.texi (Word break property): Likewise.
        Reported by Ralf Wildenhues.

--- doc/libunistring.texi.orig  2009-05-01 22:56:51.000000000 +0200
+++ doc/libunistring.texi       2009-05-01 22:04:42.000000000 +0200
@@ -54,6 +54,23 @@
 @end macro
address@hidden Macro for forcing a line break in TeX mode.
address@hidden Needed because there are long unbreakable pieces of text (such 
as URLs or
address@hidden formulas), TeX is too shy to move them to a new file. TeX 
considers only
address@hidden two choices: a line break in aligned mode (which it rejects due 
to aesthetic
address@hidden reasons) and writing into the margin. What we want in many cases 
is a line
address@hidden break without filling the first line. Like what @* delivers.
address@hidden But we need it only in TeX mode. info and HTML modes are fine.
address@hidden texnl
address@hidden macro
address@hidden iftex
address@hidden texnl
address@hidden macro
address@hidden ifnottex
 @dircategory Software development
@@ -339,7 +356,7 @@
 Definition of UTF-16: @url{http://www.rfc-editor.org/rfc/rfc2781.txt}
-Markus Kuhn's UTF-8 and Unicode FAQ:
+Markus Kuhn's UTF-8 and Unicode FAQ:@texnl
 @end itemize
@@ -834,7 +851,7 @@
 @cindex autoconf macro
 GNU Gnulib provides an autoconf macro that test for the availability
-of @code{libunistring}.  It is contained in the Gnulib module
+of @code{libunistring}.  It is contained in the Gnulib address@hidden
 @amindex gl_LIBUNISTRING
--- doc/unictype.texi.orig      2009-05-01 22:56:51.000000000 +0200
+++ doc/unictype.texi   2009-05-01 21:29:39.000000000 +0200
@@ -377,8 +377,8 @@
 The canonical combining class of a character is a number in the range
 0..255.  The possible values are described in the Unicode Character Database
address@hidden://www.unicode.org/Public/UNIDATA/UCD.html}.  The list here is not
-definitive; more values can be added in future versions.
address@hidden @url{http://www.unicode.org/Public/UNIDATA/UCD.html}.  The list 
here is
+not definitive; more values can be added in future versions.
 @deftypevr Constant int UC_CCC_NR
 The canonical combining class value for ``Not Reordered'' characters.
@@ -471,7 +471,7 @@
 Every Unicode character or code point has a @emph{bidirectional category}
 assigned to it.
-The bidirectional category guides the bidirectional algorithm
+The bidirectional category guides the bidirectional address@hidden
 (@url{http://www.unicode.org/reports/tr9/}).  The possible values are
 the following.
--- doc/uniwbrk.texi.orig       2009-05-01 22:56:51.000000000 +0200
+++ doc/uniwbrk.texi    2009-05-01 22:27:21.000000000 +0200
@@ -43,8 +43,8 @@
 This is a more low-level API.  The word break property is a property defined
 in Unicode Standard Annex #29, section ``Word Boundaries'', see
address@hidden://www.unicode.org/reports/tr29/#Word_Boundaries}.  It is used for
-determining the word breaks in a string.
address@hidden://www.unicode.org/reports/tr29/address@hidden  It is used
+for determining the word breaks in a string.
 The following are the possible values of the word break property.  More values
 may be added in the future.

reply via email to

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