Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2359)

Issue 5495092: Directs output of texi2html to log files (GOP 9) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by PhilEHolmes
Modified:
12 years, 3 months ago
Reviewers:
Graham Percival, email, Julien Rioux, mail
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Directs output of texi2html to log files (GOP 9) for translated docs. There is a slight gotcha with this change, that if there is an error in running texi2html, then the dev has to know to look at the relevant log file. However, it's highly unlikely this will ever occur - we leave --error-limit for texi2html at its default value of 1000, so it's almost impossible to cause it to fail. The huge benefit of this change is further reduced output from make doc, and the ability to get a list of all the errors in the docs in a logfile. These could be sent to the relevant author/translator.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M make/doc-i18n-root-rules.make View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13
PhilEHolmes
Please review
12 years, 4 months ago (2011-12-19 16:37:10 UTC) #1
Julien Rioux
On 2011/12/19 16:37:10, PhilEHolmes wrote: > Please review Hi Phil, I was just looking at ...
12 years, 4 months ago (2011-12-19 20:23:29 UTC) #2
mail_philholmes.net
----- Original Message ----- From: <julien.rioux@gmail.com> To: <PhilEHolmes@googlemail.com>; <graham@percival-music.ca> Cc: <reply@codereview-hr.appspotmail.com>; <lilypond-devel@gnu.org> Sent: Monday, December ...
12 years, 4 months ago (2011-12-19 20:34:31 UTC) #3
Julien Rioux
On 2011/12/19 20:34:31, mail_philholmes.net wrote: > ----- Original Message ----- > From: <mailto:julien.rioux@gmail.com> > To: ...
12 years, 4 months ago (2011-12-19 20:53:49 UTC) #4
Graham Percival
On 2011/12/19 20:53:49, Julien Rioux wrote: > Oh, I don't mean to suggest to pull ...
12 years, 4 months ago (2011-12-20 19:19:51 UTC) #5
Julien Rioux
On 2011/12/20 19:19:51, Graham Percival wrote: > Does stepmake/stepmake/texinfo-rules.make apply to translations? I thought > ...
12 years, 4 months ago (2011-12-20 19:33:15 UTC) #6
Graham Percival
On Tue, Dec 20, 2011 at 07:33:15PM +0000, julien.rioux@gmail.com wrote: > On 2011/12/20 19:19:51, Graham ...
12 years, 4 months ago (2011-12-20 19:39:28 UTC) #7
Julien Rioux
On Tue, Dec 20, 2011 at 8:39 PM, Graham Percival <graham@percival-music.ca> wrote: > oh, *that's* ...
12 years, 4 months ago (2011-12-20 19:41:10 UTC) #8
Graham Percival
On Tue, Dec 20, 2011 at 08:41:10PM +0100, Julien Rioux wrote: > Yes, and things ...
12 years, 4 months ago (2011-12-20 19:46:22 UTC) #9
Julien Rioux
On Tue, Dec 20, 2011 at 8:46 PM, Graham Percival <graham@percival-music.ca> wrote: > On Tue, ...
12 years, 4 months ago (2011-12-20 19:54:11 UTC) #10
mail_philholmes.net
----- Original Message ----- From: <graham@percival-music.ca> To: <PhilEHolmes@googlemail.com>; <julien.rioux@gmail.com>; <mail@philholmes.net> Cc: <lilypond-devel@gnu.org>; <reply@codereview-hr.appspotmail.com> Sent: Tuesday, ...
12 years, 4 months ago (2011-12-21 09:29:37 UTC) #11
Graham Percival
On Wed, Dec 21, 2011 at 09:29:31AM -0000, Phil Holmes wrote: > I'll hold on ...
12 years, 4 months ago (2011-12-21 14:16:32 UTC) #12
email_philholmes.net
12 years, 4 months ago (2011-12-21 14:39:57 UTC) #13
----- Original Message ----- 
From: "Graham Percival" <graham@percival-music.ca>
To: "Phil Holmes" <mail@philholmes.net>
Cc: <PhilEHolmes@googlemail.com>; <julien.rioux@gmail.com>; 
<lilypond-devel@gnu.org>; <reply@codereview-hr.appspotmail.com>
Sent: Wednesday, December 21, 2011 2:16 PM
Subject: Re: Directs output of texi2html to log files (GOP 9) (issue 
5495092)


> On Wed, Dec 21, 2011 at 09:29:31AM -0000, Phil Holmes wrote:
>> I'll hold on this one and look again once Julien's patch is pushed.
>> As I said, it's almost inconceivable that there would be an error
>> from texi2pdf causing the build to fail.
>
> I've seen half a dozen in the past month.  (my fault, it was
> problems in @example vs. @verbatim).
>
>> As a default, it tolerates 1000 errors before terminating.  Most
>> of our translated docs already have a few hundred errors which
>> would cause the build to fail if we set the --error-limit to a
>> lower value.
>
> Are you sure?  I'd expect it to tolerate 1000 *warnings* before
> terminating.  Warnings are not errors.

My mistake - it's texi2html.

> ...
> hmm, as far as I can see, texi2pdf doesn't have any --error-limit
> flag, but makeinfo does.
>
> $ man makeinfo
> ...
>   General options:
>       --error-limit=NUM
>              quit after NUM errors (default 100)
>
> WTF?!  David: is this seriously giving a zero return value if
> there's any "errors" ?  Or does it still return a zero, but print
> out multiple errors?
>
>
>> Part of the difficulty in testing this patch was trying to get
>> texi2pdf to fail so I could see what happened!
>
> Easy way to make it fail immediately: add
>
> @example
> @\
> @end example
>
> to some file.  I recommend something in the CG.
>
> makeinfo will not fail, but texi2pdf will fail.

If you try that with texi2html, I'm 99% certain it won't fail.  It was 
driving me crazy trying to make it.

>
> What do you see if you set --error-limit=0 for makeinfo?  I'm
> wondering if this is why we sometimes see "make" compiling the
> docs but "make doc" failing.  If we can get "make" to be stricter
> about checking the texinfo, this could save a lot of time in
> writing docs.
>
> If it would take less than 10 hours to fix the english docs, I
> think we should set --error-limit=0.  We can leave it at 100 for
> the translations for the next X months.

I'd have to experiment with the English docs, but I'm deep in .Net and 
access on another project for another day.

> Wow, this is a really good find.
>
> Cheers,
> - Graham

:-)

--
Phil Holmes


Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b