Update render module of centos-art.sh script.
- Previously, svg_checkModelAbsref was set to work with file names in
the form WIDTHxHEIGHT-final.png, where WIDTH is the image width and
HEIGHT the image height both in pixels. The -final string was used
to mark the image as final work. This update changes the
svg_checkModelAbsref to remove the string "-final" from regular
expression patterns set inside svg_checkModelAbsref.
- Previously, inside svg_checkModelAbsref, both svg_getColors and
svg_checkColorFormats functions were called without being previously
defined. This made the centos-art.sh script to fail when background
images weren't found and it tried to create a generic background
image automatically, using the color defined by svg_getColors. This
update changessvg_checkModelAbsref to remove svg_getColors and
svg_checkColorFormats functions and set #204C8D as default
background color.
- Previously, svg_checkModelAbsref didn't print any information about
image cropping. This update changes svg_checkModelAbsref to print
the width and height of target image being cropped.
- Previously, svg_setBaseRendition was creating temporal files through
variable concatenation. Such variable concatenation is already set
in tcar_setTemporalFile function. This update changes
svg_setBaseRendition to use tcar_setTemporalFile function instead of
variable concatenation, when it needs to create temporal files.
- Previously, svg_setBaseRendition only verified the mime type of
design models. When the file didn't exist, centos-art.sh script
print an error message telling that the file its a text/xml file but
it doens't mention that the file doesn't exist at all. This update
changes svg_setBaseRendition to verify existence of regular files
first and then mime type verification. This way, when the file
doesn't exit, centos-art.sh script will tell so before printing the
error message related to mime type.
- Previously, render_setLocalizedXml was using an if construction to
determine the type of the file and, based on it, define the command
use to read the file. This update changes the render_setLocalizedXml
file to remove such if construction and a function named
tcar_printFile, instead. The tcar_printFile function prints the
content of the file passed in the first argument to standard output,
based on file's mime type (e.g., whether it is plain text file or a
compressed file).
- Previously, to produce artwork for installation media it was
required to create one design model for each image you need to
produce. In an environment where it is required to produce artwork
for different media (e.g., CD, DVD), different releases, different
architectures, creating one design model per image is too
inefficient. This update changes the way artworks for installation
media are produced through a child module name "media". This module
uses configuration files as source to produce artwork. Inside the
configuration file you can set the way you want to produce labels
and sleeves for both installation and live media for different
releases, architectures with a minimal of design models.
- Previously, file names and file extensions were extracted from paths
using a combination of basename and sed commands. These operations
are very common inside centos-art.sh script. This update adds
tcar_getFileName and tcar_getFileExtension functions to retrieve the
file name and the file extension from a path, respectively. These
function standardize the way we do such actions inside centos-art.sh
script so, as convention, don't repeat the basename and sed commands
to retrieve filename and file extensions inside centos-art.sh
script, use tcar_getFileName and tcar_getFileExtension functions
instead.
- Previously, prepare module wasn't able to create configuration files
for both render and locale module. This update changes the
prepare_getOptions to adds the --conf option. This option calls a
sub-module of prepare named "conf" which creates configuration files
automatically based on configuration templates and the source files
found in the directory where the configuration file will be stored
in.
- Previously, tcar_setModuleEnvironment read module translations and
module documentation from Locales and Manuals directories in a
per-module basis, no matter what the level of the module could be.
Too many levels of Locales and Manuals directories aren't
appropriate when we package automation scripts. It is not convenient
to package child modules independently from parent modules because
the invocation of child modules depends of options defined in their
parent modules. Parent modules and all its child-modules are
considered "an integral module" on its own and it is that integral
module what we would create an RPM package for. If we package child
modules apart from their parent module, child modules will need to
be installed anyway as a requisite for the parent module to work as
expected. This way, all the documentation files related to child
modules must be moved from the child module directory to the parent
module directory in order to be read from there. This update changes
tcar_setModuleEnvironment to read module translations and module
documentation from Locales and Manuals directories in the directory
structure of the first module loaded.
- Previously, svg_setBaseRendition was localizing the source file
provided to it without verifying whether it was already localized or
not. This made possible for svg_baseRendition to execute
render_setLocalizedXml function more than one in situations where
the source file has been processed before reaching the
svg_baseRendition function and then call svg_baseRendition to
complete the rendition process (e.g., see media module). This
update changes the svg_baseRendition to localize only files that
come from a source different to /tmp directory.
- Previously, when there was not a translation file associated to a
source file, the final file was stored inside the locale-specific
directory of final the location, based current locale information
set in the environment. This update changes the file processing to
store final files without translation outside the language-specific
directory but still inside the directory dedicated to final files.
In order to prevent source files without translation from being
rendered more than once for different locales, you can use the
--filter option from render module.
- Previously, .po files had a top comment holding the copyright
information. This top comment make the file (4.17-28) command to
identify the .po file as text/plain instead of text/x-po. This
update removes top comment from .po files in order for centos-art.sh
script to pass verification of text/x-po files correctly.
Update design models used by theme motifs.
- Previously, design models related to installation media didn't show
the distribution release version very clear. This update reorganizes
components inside media related design models to show the
distribution release version in a prominent place. The directory
structure of localization files related to installation media was
also update to match the current implementation of locale module.
- Update configuration files inside theme models directory structure
to match current implementation of locale module.
- Previously, the render module was using the Images directory to
store final files. The current implementation of render module is
using the Final directory instead. This update changes the path
information inside design models to match the current implementation
of render module.