Name

substitute_table_image — (obsolete) substitute background image paths in HTML table elements

VALUE

0 | 1

DEFAULT

0

DESCRIPTION

This pragma rewrites image background paths in <table>, <th>, <tr> and <td> HTML elements.

EXAMPLES

Example: Enabling table image paths rewriting

In the catalog.cfg file, add:

Pragma substitute_table_image

NOTES

The substitute_table_image pragma which was added in Interchange 4.6.2 was removed in 4.7, in favor of a general image rewriting system.

AVAILABILITY

substitute_table_image is available in Interchange versions:

4.6.0

SOURCE

Interchange 4.6.0 (1/1 contexts shown):

Source: lib/Vend/Interpolate.pm (rev. 1.47 from Fri Apr 13 21:08:50 2001)
Line 406 (context shows lines 396-410 in substitute_image():392)

($Vend::Cfg->{ImageDirSecure} || $Vend::Cfg->{ImageDir})  :
$Vend::Cfg->{ImageDir};

if ($dir) {
    $$text =~ s#(<i\w+\s+[^>]*?src=")(?!https?:)([^/][^"]+)#
                     $1 . $dir . $2#ige;
    $$text =~ s#(<body\s+[^>]*?background=")(?!https?:)([^/][^"]+)#
                     $1 . $dir . $2#ige;
    $$text =~ s#(<t[dhr]\s+[^>]*?background=")(?!https?:)([^/][^"]+)#
                     $1 . $dir . $2#ige
        if $Vend::Cfg->{Pragma}{substitute_table_image};
}
if($Vend::Cfg->{ImageAlias}) {
for (keys %{$Vend::Cfg->{ImageAlias}} ) {
      $$text =~ s#(<i\w+\s+[^>]*?src=")($_)#

AUTHORS

Stefan Hornburg (Racke), Interchange Development Group

SEE ALSO

no_image_rewrite(7ic), ImageDir(7ic)

DocBook! Interchange!