[texdoc] Bug#557861: texdoc.tlu: Please enable compressed file support (support_zipped)

Norbert Preining preining at logic.at
Sun Jan 3 08:59:33 CET 2010

On So, 03 Jan 2010, Jean-Sébastien Trottier wrote:
> Like I said before, it "worked perfectly" by enabling support_zipped
> (false->true) in this script:
>     /usr/share/texmf-texlive/scripts/texdoc/constants.tlu

Hehe, yes, there it works.

> Indeed, I see the problem: support_zipped is not an "option" but
> a constant. To get it to easily fake it as an option you need to add it
> to known_options (gets you passed the warning) and also create a special
> case in set_config_element (to change the constant).

The set_config_element part I didn't check.

Manuel, you might include that in your scripts, otherwise it
cannot be enabled at all...

> --- /usr/share/texmf-texlive/scripts/texdoc/config.tlu.orig     2010-01-03 02:27:34.000000000 -0500
> +++ /usr/share/texmf-texlive/scripts/texdoc/config.tlu  2010-01-03 02:28:03.000000000 -0500
> @@ -80,6 +80,8 @@
>          else
>              config_warn (key, value, context)
>          end
> +    elseif key == "support_zipped" then
> +        C.support_zipped = value
>      else -- string
>          real_set_config(key, value)
>      end
> --- /usr/share/texmf-texlive/scripts/texdoc/constants.tlu.orig  2010-01-03 02:32:03.000000000 -0500
> +++ /usr/share/texmf-texlive/scripts/texdoc/constants.tlu       2010-01-03 02:32:15.000000000 -0500
> @@ -52,6 +52,7 @@
>  notfound_msg_ph = 'PKGNAME'
>  known_options = {
> +    'support_zipped',
>      'viewer_.*',
>      'mode',
>      'interact_switch',

> Now, is there a good reason to make it an option? Having it enabled all
> the time *should* not cause any issues with non-zipped documentation.

I leave that to Manuel to answer.

> I think you should just set it to true in constants.tlu and remove it
> from texdoc.cnf.

Could be done, but then, upstream TeX Live doe snot distribute
any gzipped documetnation, and also the TeX Live packages in Debian
don't have zipped (gz) documentaiton (pdf is already compressed), but
other packages have them ...

Thanks for the patch.

Since I will wait for the texlive to testing transition before doing
another upload it will have to wait some days (if nothing bad happens
6 days)

Best wishes

Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan            TU Wien, Austria           Debian TeX Task Force
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
`She hit me on the head with the rock again.'
`I think I can confirm that that was my daughter.'
`Sweet kid.'
`You have to get to know her,' said Arthur.
`She eases up does she?'
but you get a better sense of when to
                 --- Ford and Arthur on Random.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy

More information about the texdoc mailing list