[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a new command that converts XML Texinfo to Texinfo
From: |
Karl Berry |
Subject: |
Re: a new command that converts XML Texinfo to Texinfo |
Date: |
Mon, 10 Sep 2012 23:26:05 GMT |
Hi Patrice,
Regarding txixml2texi.
First, after installing XML::LibXML::Reader, I still can't get our own
dependencies to resolve.
$ pwd
/u/karl/gnu/src/texinfo/util
$ ./txixml2texi
Can't locate Texinfo/Common.pm in @INC (@INC contains:
/usr/local/share/texinfo/lib/libintl-perl/lib
/usr/local/share/texinfo/lib/Unicode-EastAsianWidth/lib
/usr/local/share/texinfo/lib/Text-Unidecode/lib
/usr/local/lib/perl5/site_perl/5.14.2/i686-linux
/usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/i686-linux
/usr/local/lib/perl5/5.14.2 /usr/local/lib/perl5/site_perl/5.12.3
/usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.8.4
/usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl/5.005
/usr/local/lib/perl5/site_perl .) at ./txixml2texi line 53.
BEGIN failed--compilation aborted at ./txixml2texi line 53.
$ cd ../tp # ok, try from tp to find our Texinfo::Common.
$ ../util/txixml2texi
Can't locate Locale/Messages.pm in @INC (@INC contains:
/usr/local/share/texinfo/lib/libintl-perl/lib
/usr/local/share/texinfo/lib/Unicode-EastAsianWidth/lib
/usr/local/share/texinfo/lib/Text-Unidecode/lib
/usr/local/lib/perl5/site_perl/5.14.2/i686-linux
/usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/i686-linux
/usr/local/lib/perl5/5.14.2 /usr/local/lib/perl5/site_perl/5.12.3
/usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.8.4
/usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl/5.005
/usr/local/lib/perl5/site_perl .) at Texinfo/Report.pm line 46.
BEGIN failed--compilation aborted at Texinfo/Report.pm line 46.
[...]
Second, can you give me a brief summary on what is and isn't expanded
with XML? I could do experiments, but it seems faster and more reliable
to ask you. Macros (defined with @macro) and @value are expanded,
right? And conditionals? But the original is still left behind in some
form?
Third, trivial, I wonder about moving the opening { for sub's to the sub
line, as in:
sub skip_until_end($$) {
I think I may have been the one who suggested putting the { in column
one, following C, but since then I've realized that it's not needed in
Perl, because the keyword "sub" lets one find functions in any case ...
thanks,
karl