bug-texinfo
[Top][All Lists]
Advanced

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

Re: Question about @tie{}


From: Torsten Bronger
Subject: Re: Question about @tie{}
Date: Mon, 27 Dec 2004 18:42:32 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Hallöchen!

address@hidden (Karl Berry) writes:

> [...]
>
>     If nobody objects, I remove the call of cm_w() for XML/HTML/DocBook
>     targets and let insert a   (=  ) directly.
>
> I agree that the nobreak space is the way to go for *ML.  Glad you noticed.
>
> For HTML, is   more portable (in practice) than   or  ?
> Maybe it doesn't matter, so we might as well do the same for all.

With all non-ancient browsers it mustn't matter, but it can be done
flexibly: The attached patch inserts   for HTML,   for XML
and DocBook (for which   is not defined by default) and the
same as before otherwise.

Tschö,
Torsten.


===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/cmds.c,v
retrieving revision 1.55
diff -u -r1.55 cmds.c
--- cmds.c      14 Dec 2004 00:15:36 -0000      1.55
+++ cmds.c      27 Dec 2004 17:34:02 -0000
@@ -1283,17 +1283,23 @@

 /* An unbreakable word space.  Same as @w{ } for makeinfo, but different
    for TeX (the space stretches and stretches, and does not inhibit
-   hyphenation).  */
+   hyphenation).  For XML and HTML, insert the non-breaking-space
+   character and entity, respectively */
 void
 cm_tie (int arg)
 {
   if (arg == START)
+    if (html)
+      insert_string (" ");
+    else if (xml)
+      insert_string (" ");
+    else
     {
       cm_w (START);
       add_char (' ');
     }
   else
-    cm_w (END);
+    if (!html && !xml) cm_w (END);
 }

 /* Explain that this command is obsolete, thus the user shouldn't





reply via email to

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