bugtexinfo - GNU documentation system - Bugs: bug #20444, inconsistent number of spaces...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #20444: inconsistent number of spaces after a period

Submitted by:  Karl Berry <karl>
Submitted on:  Tue 10 Jul 2007 11:24:23 PM UTC  
 
Category: makeinfoRelease: 
Priority: 3 - LowSeverity: 2 - Minor
Item Group: bugPrivacy: Public
Open/Closed: ClosedAssigned to: Patrice Dumas <pertusus>
Status: Fixed

Sun 19 Oct 2014 10:09:04 PM UTC, comment #3:

I can confirm that it is indeed fixed.

Patrice Dumas <pertusus>
Project MemberIn charge of this item.
Fri 18 Feb 2011 04:53:26 PM UTC, comment #2:

According to recent discussions with Patrice, the reimplementation of makeinfo will support inserting end-of-sentence spaces everywhere, not just at the end of the lines. So closing this.

Here are some notes from Patrice about it, for posterity:

[The implementation] is in Texinfo/Convert/Paragraph.pm. It is basically an object that
is fed with text and returns it split as should be, keeping an internal
state to know what should be done next. And there are callbacks
to be able to give all the information needed (like 'following is not
an end of sentence' or following is an end of sentence' or 'now we are
in something that keeps spaces and ignores end of lines' as is for @w...),
to cover @: @ @. @* @w and so on. Also indentation is handled in that
class.

The API is also implemented in Texinfo/Convert/Line.pm for the
formatting of lines, and Texinfo/Convert/UnFilled.pm for text in
preformatted environments.

Those classes, in fact, have nothing Texinfo specific, although their API
was of course done in order to be able to process Texinfo...

If you want to see the association of @-commands with those callbacks
you'll have to have a look at Texinfo/Convert/Plaintext.pm.

Karl Berry <karl>
Project Administrator
Tue 10 Jul 2007 11:27:11 PM UTC, comment #1:

Right now we just copy the info except when a sentence-ender occurs at the end of the line. Fixing this would mean looking for sentence ends everywhere. Yikes.

Karl Berry <karl>
Project Administrator
Tue 10 Jul 2007 11:24:23 PM UTC, original submission:

Vincent Lefevre <vincent@vinc17.org> wrote:

> Package: texinfo
> Version: 4.8.dfsg.1-6
> Severity: minor
>
> makeinfo yields sometimes a single space and sometimes two spaces after
> a period. For instance, consider a test.texi file containing:
>
> Foo. Bar.
>
> Foo.
> Bar.
>
> "makeinfo test.texi" generates a test.info file containing:
>
> Foo. Bar.
>
> Foo. Bar.
>
> (a single space in the first case, two spaces in the second case).

Karl Berry <karl>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pertusus (Posted a comment)
  • -unavailable- added by karl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 19 Oct 2014 10:09:04 PM UTCpertususStatusNone=>Fixed
    Fri 18 Feb 2011 04:53:26 PM UTCkarlOpen/ClosedOpen=>Closed
      Assigned toNone=>pertusus

    Back to the top


    Powered by Savane 3.1-cleanup1