texinfo-devel
[Top][All Lists]
Advanced

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

Re: Paragraph filling in texi2any


From: Bad Blue Bull
Subject: Re: Paragraph filling in texi2any
Date: Sat, 01 Sep 2018 03:23:46 +0300

 
 
27.08.2018, 19:27, "Gavin Smith" <address@hidden>:
On Mon, 27 Aug 2018, 15:51 Bad Blue Bull, <address@hidden> wrote:
Hi, can someone point to me where paragraph filling for texi2any is implemented?
 
In tp/Texinfo/Convert/ParagraphNonXS.pm and tp/Texinfo/XS/Paragraph in the Texinfo sources.
 
 
Thanks, but still can't find it:
I've found one place in the add_text subroutine, $result is a line broken but only small part of all lines matches condition:
 
      #print STDERR "delete END_SENTENCE($paragraph->{'end_sentence'}): spaces\n"
      #  if (defined($paragraph->{'end_sentence'}) and $paragraph->{'DEBUG'});
      #delete $paragraph->{'end_sentence'};
      if ($paragraph->{'counter'} + length($paragraph->{'space'})
                      > $paragraph->{'max'}) {
      $result .= _cut_line($paragraph);
      print $result;
     ...
    
 
I want to fix filling for infos so it will stretch lines up to fill-column not just break them.  Stretching should not be applied for the lines between paired tags (like @example and @end example) and also for the last line of a paragraph, any assistance would be very much appreciated because this looks like realy hard task (yet I don't know Perl and I'm hardly falling in love with it tbh).  Would be nice just to post-process infos with some Python (or Elisp) script but then need to make texi2any to store paired @-commands there also :-( yet need to find a way to distinguish them from @-commands that are just mentioned in the text (in Texinfo manual for example)...

Attachment: info.jpg
Description: JPEG image

Attachment: info2.jpg
Description: JPEG image


reply via email to

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