help-texinfo
[Top][All Lists]
Advanced

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

[help-texinfo] Re: makeinfo: option for disable fill_column?


From: William Xu
Subject: [help-texinfo] Re: makeinfo: option for disable fill_column?
Date: Wed, 26 Mar 2008 12:00:41 +0900
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.92 (darwin)

address@hidden (Karl Berry) writes:

> Well, I'm glad to hear that.
>
> I can imagine defining a new command such as
> @justification off
> which would globally turn off filling in makeinfo.  I'm not sure what
> complications would ensue.

Looks easy, as shown below.  

> However, I don't know any feasible way to implement it in the TeX output
> -- it would be impossible to just do \obeylines or similar throughout
> the document, eol's are already an incredible special case everywhere in
> Texinfo since they are part of command parsing.  So it would have to be
> a no-op there.  I'm guessing that wouldn't bother you, since either
> you're using xetex and the line breaking works well enough or you don't
> care about the tex output.

Right.  From Texinfo, info and html outputs are usually enough for me.  

> What was the source change you made?

There are also two typo fixes.  

Index: makeinfo.c
===================================================================
RCS file: /sources/texinfo/texinfo/makeinfo/makeinfo.c,v
retrieving revision 1.117
diff -w -u -r1.117 makeinfo.c
--- makeinfo.c  22 Feb 2008 19:18:25 -0000      1.117
+++ makeinfo.c  26 Mar 2008 02:47:18 -0000
@@ -1,4 +1,4 @@
-/* makeinfo -- convert Texinfo source into other formats.
+/* makeinfo.c -- convert Texinfo source into other formats.
    $Id: makeinfo.c,v 1.117 2008/02/22 19:18:25 karl Exp $
 
    Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
@@ -2708,7 +2708,8 @@
            end of a sentence.  Insert an extra space, unless
            @frenchspacing is in effect.  */
         {
-          insert (' ');
+          /* insert (' '); */
+          insert ('\n');
           last_inserted_character = character;
         }
 
@@ -2725,7 +2726,8 @@
           if (html)
             insert ('\n');
           else
-            insert (' ');
+            /* insert (' '); */
+            insert ('\n');
         }
       break;
 
@@ -3266,7 +3268,7 @@
 }
 
 /* Search forward for STRING in input_text.
-   FROM says where where to start. */
+   FROM says where to start. */
 int
 search_forward (char *string, int from)
 {

-- 
William

http://williamxu.net9.org

        定风波
(三月七日浙江省沙湖道中遇雨。雨具先去,同行皆狼狈,余独不觉。已而遂晴。
故作此。)      苏轼
莫听穿林打叶声,何妨吟啸且徐行。
竹杖芒(左革右奚)轻胜马。
谁怕?一蓑烟雨任平生。
料峭春风吹酒醒,微冷。
山头斜照却相迎。
回首向来萧瑟处,归去,也无风雨也无晴。





reply via email to

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