bug-texinfo
[Top][All Lists]
Advanced

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

Re: makinfo (v 6.4): failure to support formats textcontent, rawtext, pl


From: Gavin Smith
Subject: Re: makinfo (v 6.4): failure to support formats textcontent, rawtext, plaintexinfo
Date: Mon, 31 Jul 2017 22:25:24 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Jul 29, 2017 at 01:17:56PM -0400, Randall Sawyer wrote:
> Shell commands and output:
> 
> > makeinfo -c TEXINFO_OUTPUT_FORMAT=textcontent t.texi
> Can't locate object method "converter" via package
> "Texinfo::Convert::TextContent" (perhaps you forgot to load
> "Texinfo::Convert::TextContent"?) at /usr/bin/makeinfo line 626.
> 
> >makeinfo -c TEXINFO_OUTPUT_FORMAT=rawtext t.texi
> Undefined subroutine &Texinfo::Convert::Text::fileparse called at
> /usr/share/texinfo/Texinfo/Convert/Text.pm line 669.
> 
> > makeinfo -c TEXINFO_OUTPUT_FORMAT=plaintexinfo t.texi
> Can't locate object method "converter" via package
> "Texinfo::Convert::PlainTexinfo" (perhaps you forgot to load
> "Texinfo::Convert::PlainTexinfo"?) at /usr/bin/makeinfo line 632.
> 
> Bug description: The following lines of 'texi2any' aka 'makeinfo' need to be
> changed from
> 
>   'textcontent' => {
>             'converter' =>
> sub{Texinfo::Convert::TextContent->converter(@_)},
>            },
>   'rawtext' => {
>             'converter' => sub{Texinfo::Convert::Text->converter(@_)},
>            },
>   'plaintexinfo' => {
>             'converter' =>
> sub{Texinfo::Convert::PlainTexinfo->converter(@_)},
>            },
> to
> 
>   'textcontent' => {
>             'module' => 'Texinfo::Convert::TextContent'
>            },
>   'rawtext' => {
>             'module' => 'Texinfo::Convert::Text'
>            },
>   'plaintexinfo' => {
>             'module' => 'Texinfo::Convert::PlainTexinfo'
>            },
> 
> The package Texinfo::Convert::Text (file: Text.pm) is missing this line:
> 
> use File::Basename;

Thank you for reporting this; I've committed both of these changes under 
your name. 

rawtext still doesn't work. Sample output:

$ ./texi2any.pl -c TEXINFO_OUTPUT_FORMAT=rawtext ../doc/info-stnd.texi
Can't locate object method "gdt" via package "Texinfo::Convert::Text" at 
../tp/Texinfo/Common.pm line 1254.

I haven't looked into why.




reply via email to

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