|
Alain Reguera Delgado |
25045c |
centos-art.sh-render(1)
|
|
Alain Reguera Delgado |
25045c |
=======================
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Name
|
|
Alain Reguera Delgado |
25045c |
----
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
centos-art.sh-render - Standardize production tasks based on
|
|
Alain Reguera Delgado |
25045c |
configuration files.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Synopsis
|
|
Alain Reguera Delgado |
25045c |
--------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
centos-art.sh render [OPTIONS] [DIRECTORY ...]
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Description
|
|
Alain Reguera Delgado |
25045c |
-----------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When you execute the *render* module, it looks for configuration files
|
|
Alain Reguera Delgado |
25045c |
inside the ``DIRECTORY'' specified in the command-line and processes
|
|
Alain Reguera Delgado |
25045c |
them in the order they were found. When no ``DIRECTORY'' is specified
|
|
Alain Reguera Delgado |
25045c |
to *centos-art.sh* script, the *render* module looks for configuration
|
|
Alain Reguera Delgado |
25045c |
files inside the current directory it was executed from. If no
|
|
Alain Reguera Delgado |
25045c |
configuration file is found, the *render* module will end its
|
|
Alain Reguera Delgado |
25045c |
execution with an error message.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Options
|
|
Alain Reguera Delgado |
25045c |
-------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The *render* module accepts the following options:
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
*--help*::
|
|
Alain Reguera Delgado |
25045c |
This option shows the *render* module's documentation (this page).
|
|
Alain Reguera Delgado |
25045c |
*--version*::
|
|
Alain Reguera Delgado |
25045c |
This option shows the *render* module's name and version.
|
|
Alain Reguera Delgado |
25045c |
*--filter="REGEX"*::
|
|
Alain Reguera Delgado |
25045c |
This option reduces the number of section blocks inside
|
|
Alain Reguera Delgado |
25045c |
configuration files the *render* module will take for processing.
|
|
Alain Reguera Delgado |
25045c |
``REGEX'' is a regular expression pattern matching one or more
|
|
Alain Reguera Delgado |
25045c |
section names inside the configuration files found under
|
|
Alain Reguera Delgado |
25045c |
``DIRECTORY''.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Configuration Files
|
|
Alain Reguera Delgado |
25045c |
-------------------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The configuration files are regular files with the +.conf+ extension.
|
|
Alain Reguera Delgado |
25045c |
The name of configuration files is frequently chosen for helping you
|
|
Alain Reguera Delgado |
25045c |
to remember what the configuration files are for and, in some cases,
|
|
Alain Reguera Delgado |
25045c |
for producing section blocks in specific order.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The format used in configuration files use section blocks in the form
|
|
Alain Reguera Delgado |
25045c |
+[section-name]+. Each section block ends when the next section block
|
|
Alain Reguera Delgado |
25045c |
begins or at the end of the file. Section blocks contain one or more
|
|
Alain Reguera Delgado |
25045c |
variable definitions in the form +option = "value"+. In the specific
|
|
Alain Reguera Delgado |
25045c |
case of *render* module, the +section-name+ is an alphanumeric value
|
|
Alain Reguera Delgado |
25045c |
and points to the final file or directory you want to save the
|
|
Alain Reguera Delgado |
25045c |
processing results in. The configuration variables describe how to
|
|
Alain Reguera Delgado |
25045c |
produce the file or directory specified as +section-name+. Name
|
|
Alain Reguera Delgado |
25045c |
values in the +section-name+ don't accept variables or any kind of
|
|
Alain Reguera Delgado |
25045c |
expansion in it, but configuration values do. Commentaries are
|
|
Alain Reguera Delgado |
25045c |
introduced by using the +#+ character at the beginning of lines.
|
|
Alain Reguera Delgado |
25045c |
Commentaries defined this way are excluded from processing so you can
|
|
Alain Reguera Delgado |
25045c |
use them freely.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The configuration files are processed from top to bottom. This is a
|
|
Alain Reguera Delgado |
25045c |
very important aspect to consider in situations where you need to
|
|
Alain Reguera Delgado |
25045c |
grantee specific priority for content production (e.g., you have
|
|
Alain Reguera Delgado |
25045c |
several files in a configuration file and need to produce some of them
|
|
Alain Reguera Delgado |
25045c |
before others). So, because configuration files are processed from top
|
|
Alain Reguera Delgado |
25045c |
to bottom, section blocks set first in the configuration file are
|
|
Alain Reguera Delgado |
25045c |
processed first and section blocks set later are processed later.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The configuration files can be divided in separated configuration
|
|
Alain Reguera Delgado |
25045c |
files to produce specific section blocks with a given priority. For
|
|
Alain Reguera Delgado |
25045c |
example, if you have the file ``render.conf'', you can divide its
|
|
Alain Reguera Delgado |
25045c |
content in ``render-1.conf'', ``render-2.conf'' to produce section
|
|
Alain Reguera Delgado |
25045c |
blocks inside ``render-1.conf'' first and ``render-2.conf'' later.
|
|
Alain Reguera Delgado |
25045c |
This sort of division might be very useful when the configuration file
|
|
Alain Reguera Delgado |
25045c |
begins to grow, or you want to control the order in which specific
|
|
Alain Reguera Delgado |
25045c |
groups of files are produced inside ``DIRECTORY''.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Inside configuration files, configuration variables can take different
|
|
Alain Reguera Delgado |
25045c |
meanings based on the section contexts. The context of a section block
|
|
Alain Reguera Delgado |
25045c |
is defined by the *render-type* variables.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
*render-type*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable specifies the type of content rendition
|
|
Alain Reguera Delgado |
25045c |
the *render* module will perform. This variable can take one of
|
|
Alain Reguera Delgado |
25045c |
the following values: ``archive'', ``asciidoc'', ``compress'',
|
|
Alain Reguera Delgado |
25045c |
``images'', ``palette'', and ``svg''. When this variable is not
|
|
Alain Reguera Delgado |
25045c |
set, the *render* module tries to determine the type of rendition
|
|
Alain Reguera Delgado |
25045c |
based on the file extension of the first file passed through
|
|
Alain Reguera Delgado |
25045c |
*render-from* variable. If no valid value is found there either,
|
|
Alain Reguera Delgado |
25045c |
the *render* module ends with an error message.
|
|
Alain Reguera Delgado |
25045c |
*render-from*::
|
|
Alain Reguera Delgado |
25045c |
Required. This variable specifies the file name of the source file
|
|
Alain Reguera Delgado |
25045c |
(design model) used to produce the final file specified in the
|
|
Alain Reguera Delgado |
25045c |
section line. This option can receive absolute paths and relative
|
|
Alain Reguera Delgado |
25045c |
paths. Absolute paths begin with a slash (``/'') character while
|
|
Alain Reguera Delgado |
25045c |
relative paths begin with the dot slash (``./'') characters or no
|
|
Alain Reguera Delgado |
25045c |
character at all. This variable can receive more than one value by
|
|
Alain Reguera Delgado |
25045c |
using either path expansion in one variable definition, or several
|
|
Alain Reguera Delgado |
25045c |
variables definitions.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Using Paths
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When you provide absolute paths inside configuration files, there
|
|
Alain Reguera Delgado |
25045c |
isn't confusion about the location where the file is or should be.
|
|
Alain Reguera Delgado |
25045c |
However, it introduces rigidity to directory structures inside the
|
|
Alain Reguera Delgado |
25045c |
working copy when it is necessary to move directories from one place
|
|
Alain Reguera Delgado |
25045c |
to another inside the working copy. To eliminate this mobility
|
|
Alain Reguera Delgado |
25045c |
restrictions, relative paths can be used to create modular directory
|
|
Alain Reguera Delgado |
25045c |
structures.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When you use relative paths inside configuration files, paths are
|
|
Alain Reguera Delgado |
25045c |
relative to the location where the configuration file is stored in.
|
|
Alain Reguera Delgado |
25045c |
This way it is possible to move whole directory structures without
|
|
Alain Reguera Delgado |
25045c |
touching the configuration file and still have a render-able
|
|
Alain Reguera Delgado |
25045c |
structures inside the working copy. However, relative paths get
|
|
Alain Reguera Delgado |
25045c |
limited in situations where the production process needs files outside
|
|
Alain Reguera Delgado |
25045c |
the directory where the configuration file is stored in. In such
|
|
Alain Reguera Delgado |
25045c |
cases, a combination of relative and absolute paths is the solution to
|
|
Alain Reguera Delgado |
25045c |
apply.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When we need to use absolute paths to several files in the same
|
|
Alain Reguera Delgado |
25045c |
directory (e.g., we are combining them all to produce a new image) but
|
|
Alain Reguera Delgado |
25045c |
outside the current directory the configuration file is stored in, it
|
|
Alain Reguera Delgado |
25045c |
is possible to use a list of absolute paths one beside another
|
|
Alain Reguera Delgado |
25045c |
separated by space or we can use path expansion which is shorter and
|
|
Alain Reguera Delgado |
25045c |
easier to read. Path expansion is interpreted when you enclose a list
|
|
Alain Reguera Delgado |
25045c |
of file names in curly brackets using comma as separator without
|
|
Alain Reguera Delgado |
25045c |
spaces (e.g., +/some/dir/{file1,file2,file3}+). In order for path
|
|
Alain Reguera Delgado |
25045c |
expansion to work correctly, all the file names you put inside the
|
|
Alain Reguera Delgado |
25045c |
curly brackets' list must exist in the location specified first.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Using Environment Variables
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The configuration files let you to use environment variables inside
|
|
Alain Reguera Delgado |
25045c |
them. This might result very useful when you need to provide absolute
|
|
Alain Reguera Delgado |
25045c |
paths based on variable information (e.g., the current locale
|
|
Alain Reguera Delgado |
25045c |
information). Some of the most important environment variables used
|
|
Alain Reguera Delgado |
25045c |
by *centos-art.sh* script -and its configuration files- are described
|
|
Alain Reguera Delgado |
25045c |
below:
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
+TCAR_BASEDIR+::
|
|
Alain Reguera Delgado |
25045c |
This variable contains the absolute path to your repository's
|
|
Alain Reguera Delgado |
25045c |
working copy. The value of this variable is defined as read-only
|
|
Alain Reguera Delgado |
25045c |
inside *centos-art.sh* script and cannot be modified later. As a
|
|
Alain Reguera Delgado |
25045c |
matter of convenience, users make use of their ``~/.bash_profile''
|
|
Alain Reguera Delgado |
25045c |
file to define this variable there and, this way, skip the
|
|
Alain Reguera Delgado |
25045c |
sometimes annoyance absolute path questioning the *centos-art.sh*
|
|
Alain Reguera Delgado |
25045c |
script does in order to know the absolute path of the working copy
|
|
Alain Reguera Delgado |
25045c |
it is going to work with.
|
|
Alain Reguera Delgado |
25045c |
+
|
|
Alain Reguera Delgado |
25045c |
Whenever you set absolute paths inside configuration files to refer
|
|
Alain Reguera Delgado |
25045c |
locations inside your working copy, it is necessary that you use the
|
|
Alain Reguera Delgado |
25045c |
+TCAR_BASEDIR+ environment variable in front of each path definition
|
|
Alain Reguera Delgado |
25045c |
you set.
|
|
Alain Reguera Delgado |
25045c |
+TCAR_SCRIPT_LANG_LL+::
|
|
Alain Reguera Delgado |
25045c |
This variable contains the language part of the current locale
|
|
Alain Reguera Delgado |
25045c |
information. For instance, if the current locale is
|
|
Alain Reguera Delgado |
25045c |
``en_US.UTF-8'', the value of this variable would be ``en''.
|
|
Alain Reguera Delgado |
25045c |
+TCAR_SCRIPT_LANG_CC+::
|
|
Alain Reguera Delgado |
25045c |
This variable contains the country part of the current locale
|
|
Alain Reguera Delgado |
25045c |
information. For instance, if the current locale is
|
|
Alain Reguera Delgado |
25045c |
``en_US.UTF-8'', the value of this variable would be ``US''.
|
|
Alain Reguera Delgado |
25045c |
+TCAR_SCRIPT_LANG_LC+::
|
|
Alain Reguera Delgado |
25045c |
This variable contains the current locale information in ll_CC
|
|
Alain Reguera Delgado |
25045c |
format (e.g., es_ES).
|
|
Alain Reguera Delgado |
25045c |
+LANG+::
|
|
Alain Reguera Delgado |
25045c |
This variable contains the environment's current locale
|
|
Alain Reguera Delgado |
25045c |
information.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering Archives
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render-type* variable is set to +archive+, the *render*
|
|
Alain Reguera Delgado |
25045c |
module takes the list of files set through *render-from* variable and
|
|
Alain Reguera Delgado |
25045c |
applies the value of *command* to them all in order to produce the
|
|
Alain Reguera Delgado |
25045c |
final file specified in the section line. When the command variable is
|
|
Alain Reguera Delgado |
25045c |
not specified, the +/bin/tar --remove-files -czf+ command is used as
|
|
Alain Reguera Delgado |
25045c |
default.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering Image Files
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render-type* variable is set to +svg+, the section block is
|
|
Alain Reguera Delgado |
25045c |
interpreted for rendering image files. When rendering image files, the
|
|
Alain Reguera Delgado |
25045c |
*render-from* variable must point to a SVG files (either compressed or
|
|
Alain Reguera Delgado |
25045c |
uncompressed). The following following complementary variables are
|
|
Alain Reguera Delgado |
25045c |
also accepted:
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
*render-flow*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable specifies the rendition flow to follow
|
|
Alain Reguera Delgado |
25045c |
when transforming SVG files into PNG images. This variable can
|
|
Alain Reguera Delgado |
25045c |
take either +base+ or +extended+ as value. The +base+ rendition
|
|
Alain Reguera Delgado |
25045c |
flow takes one SVG file and produces just one PNG image for it.
|
|
Alain Reguera Delgado |
25045c |
The +extended+ value applies the +base+ rendition flow and then
|
|
Alain Reguera Delgado |
25045c |
transform the final PNG image to different heights, formats,
|
|
Alain Reguera Delgado |
25045c |
foreground colors and background colors. By default, when this
|
|
Alain Reguera Delgado |
25045c |
variable is not set, the +base+ rendition flow is used.
|
|
Alain Reguera Delgado |
25045c |
*export-id*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable specifies the export id you want to use as
|
|
Alain Reguera Delgado |
25045c |
reference to produce PNG images from SVG files. The export-id is
|
|
Alain Reguera Delgado |
25045c |
an attribute you specified as unique value to an objects inside
|
|
Alain Reguera Delgado |
25045c |
the SVG file in order to export that object only but not the rest
|
|
Alain Reguera Delgado |
25045c |
in the SVG file. If this variable is not provided or it is empty,
|
|
Alain Reguera Delgado |
25045c |
the drawing area of the SVG file is used as reference to produce
|
|
Alain Reguera Delgado |
25045c |
the final PNG image.
|
|
Alain Reguera Delgado |
25045c |
*heights*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable is available only for +extended+ rendition
|
|
Alain Reguera Delgado |
25045c |
flow and specifies the different image heights you want to create
|
|
Alain Reguera Delgado |
25045c |
copies of the final PNG image. The values specified in this
|
|
Alain Reguera Delgado |
25045c |
variable are separated by white space and should be understandable
|
|
Alain Reguera Delgado |
25045c |
by ImageMagick tool set. When this variable is not provided, the
|
|
Alain Reguera Delgado |
25045c |
*render* module will create copies of final PNG image for several
|
|
Alain Reguera Delgado |
25045c |
standard heights.
|
|
Alain Reguera Delgado |
25045c |
*formats*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable is available only for +extended+ rendition
|
|
Alain Reguera Delgado |
25045c |
flow and specifies the different image formats you want to create
|
|
Alain Reguera Delgado |
25045c |
copies of the final PNG image. The values specified in this
|
|
Alain Reguera Delgado |
25045c |
variable are separated by white space and should be supported by
|
|
Alain Reguera Delgado |
25045c |
ImageMagick tool set. When this variable is not provided or set
|
|
Alain Reguera Delgado |
25045c |
in the configuration file, the *render* module will create copies
|
|
Alain Reguera Delgado |
25045c |
of final PNG image for several standard formats.
|
|
Alain Reguera Delgado |
25045c |
+
|
|
Alain Reguera Delgado |
25045c |
[TIP]
|
|
Alain Reguera Delgado |
25045c |
To see the list of possible image formats supported by ImageMagick
|
|
Alain Reguera Delgado |
25045c |
tool set, run the following command: *+identify -list format+*.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
*fgcolors*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable is available only for +extended+ rendition
|
|
Alain Reguera Delgado |
25045c |
flow and specifies the different foreground colors you want to
|
|
Alain Reguera Delgado |
25045c |
create copies of the final PNG image. To do this, the image you
|
|
Alain Reguera Delgado |
25045c |
want to copy should be rendered with black color (000000) so the
|
|
Alain Reguera Delgado |
25045c |
color replacement can be performed. The values specified in this
|
|
Alain Reguera Delgado |
25045c |
variable are separated by white space and should be understandable
|
|
Alain Reguera Delgado |
25045c |
by ImageMagick tool set. When this variable is not provided the
|
|
Alain Reguera Delgado |
25045c |
black foreground (+000000+) is used.
|
|
Alain Reguera Delgado |
25045c |
*bgcolors*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable is available only for +extended+ rendition
|
|
Alain Reguera Delgado |
25045c |
flow and specifies the different background colors you want to
|
|
Alain Reguera Delgado |
25045c |
create copies of the final PNG image. This variable uses
|
|
Alain Reguera Delgado |
25045c |
Inkscape's _--export-background_ and _--export-background-opacity_
|
|
Alain Reguera Delgado |
25045c |
options to control the background information of final PNG images.
|
|
Alain Reguera Delgado |
25045c |
Possible values to this variable take the form +XXXXXX-X+, where
|
|
Alain Reguera Delgado |
25045c |
the first six +X+ represent a color in hexadecimal format and the
|
|
Alain Reguera Delgado |
25045c |
final +X+ might be 1 or 0. 1 for full opacity and 0 for full
|
|
Alain Reguera Delgado |
25045c |
transparency. Intermediate values between 0 and 1 (e.g., 0.55)
|
|
Alain Reguera Delgado |
25045c |
can be given to control the background opacity. When this variable
|
|
Alain Reguera Delgado |
25045c |
is not provided, white background full transparency (+ffffff-0+)
|
|
Alain Reguera Delgado |
25045c |
is used as default value.
|
|
Alain Reguera Delgado |
25045c |
*command*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable specifies the command used to modify the
|
|
Alain Reguera Delgado |
25045c |
production of final images. During the rendition process, images
|
|
Alain Reguera Delgado |
25045c |
are produced inside a temporal directory, and later moved to its
|
|
Alain Reguera Delgado |
25045c |
final location using the command specified as value in this
|
|
Alain Reguera Delgado |
25045c |
variable. When this variable is not specified, it can take one of
|
|
Alain Reguera Delgado |
25045c |
two values based on the amount of files passed through
|
|
Alain Reguera Delgado |
25045c |
*render-from* variable. When just one file is passed through the
|
|
Alain Reguera Delgado |
25045c |
*render-from* variable, the default value for this variable is
|
|
Alain Reguera Delgado |
25045c |
+/bin/cp+, but when there are reference to more than one file, the
|
|
Alain Reguera Delgado |
25045c |
value of this option is +/usr/bin/convert +append+ which combines
|
|
Alain Reguera Delgado |
25045c |
all images into the final images.
|
|
Alain Reguera Delgado |
25045c |
*comment*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable contains a sentence describing the image
|
|
Alain Reguera Delgado |
25045c |
you are creating. This information is written in the +comment+
|
|
Alain Reguera Delgado |
25045c |
field of PNG images. When this variable is empty, no comment
|
|
Alain Reguera Delgado |
25045c |
information will be written to the final PNG image files.
|
|
Alain Reguera Delgado |
25045c |
*brand*::
|
|
Alain Reguera Delgado |
25045c |
Optional. This variable describes the branding information applied
|
|
Alain Reguera Delgado |
25045c |
to final images. The value of this variable has the form
|
|
Alain Reguera Delgado |
25045c |
+FILENAME:GEOMETRY+, where +FILENAME+ is the absolute path to the
|
|
Alain Reguera Delgado |
25045c |
PNG image you want to apply as brand and, +GEOMETRY+ takes the
|
|
Alain Reguera Delgado |
25045c |
form +xHEIGHT+X+Y+. In order to apply brand information to final
|
|
Alain Reguera Delgado |
25045c |
images correctly, the brand images files you want to apply must be
|
|
Alain Reguera Delgado |
25045c |
available. In case they don't exist the *render* module ends its
|
|
Alain Reguera Delgado |
25045c |
execution with an error message.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering Image Files From Other Image Files
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
To render image files from other image files, the *render-type*
|
|
Alain Reguera Delgado |
25045c |
variable must be set to ``images'' and one or more image files must be
|
|
Alain Reguera Delgado |
25045c |
provided in the *render-from* variable. When the *render* module finds
|
|
Alain Reguera Delgado |
25045c |
a section block with this characteristics, it applies the value of
|
|
Alain Reguera Delgado |
25045c |
*command* variable to all files found in *render-from* variable to
|
|
Alain Reguera Delgado |
25045c |
produce the final file specified in the section name.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *command* variable is not specified, the ``/usr/bin/convert
|
|
Alain Reguera Delgado |
25045c |
-append'' command is used as default. This command takes all the
|
|
Alain Reguera Delgado |
25045c |
images passed through *render-from* and appends them from top to
|
|
Alain Reguera Delgado |
25045c |
bottom and saves the result in the file you specified in the section
|
|
Alain Reguera Delgado |
25045c |
name. When you render files this way, the order in which you define
|
|
Alain Reguera Delgado |
25045c |
source files through *render-from* may affect the final result based
|
|
Alain Reguera Delgado |
25045c |
in the *command* you provided.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The ``images'' rendition type provides an interface for external image
|
|
Alain Reguera Delgado |
25045c |
manipulation programs, like ImageMagick and NetPbm. You can use these
|
|
Alain Reguera Delgado |
25045c |
programs to manipulate images in great detail through the
|
|
Alain Reguera Delgado |
25045c |
command-line.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering Images With Reduced Number Of Colors
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render-type* variable is set to +palette+, the section block
|
|
Alain Reguera Delgado |
25045c |
where this variable was defined is interpreted for producing images
|
|
Alain Reguera Delgado |
25045c |
with a reduced number of colors. In these cases, the *render-from*
|
|
Alain Reguera Delgado |
25045c |
variable must point to an image file. The following complementary
|
|
Alain Reguera Delgado |
25045c |
variables are also accepted:
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
*palette-gpl*::
|
|
Alain Reguera Delgado |
25045c |
Required. This variable addresses the palette of colors that will
|
|
Alain Reguera Delgado |
25045c |
be use for reducing colors. Generally, the palette of color file
|
|
Alain Reguera Delgado |
25045c |
ends with the +.gpl+ extension and is stored in the same directory
|
|
Alain Reguera Delgado |
25045c |
of the configuration file. This file can be produced by GIMP and
|
|
Alain Reguera Delgado |
25045c |
provides an optimized set of colors for the specific image you
|
|
Alain Reguera Delgado |
25045c |
provided in the *render-from* variable.
|
|
Alain Reguera Delgado |
25045c |
+
|
|
Alain Reguera Delgado |
25045c |
To find the optimized set of colors, you need to open the image
|
|
Alain Reguera Delgado |
25045c |
specified in *render-from* in GIMP, reduce its colors to the desired
|
|
Alain Reguera Delgado |
25045c |
number using GIMP's Indexed feature and, then, create a new palette by
|
|
Alain Reguera Delgado |
25045c |
importing it from the indexed image file. Once you have the palette
|
|
Alain Reguera Delgado |
25045c |
this way, you need to edit it using the Palettes dialog to add the
|
|
Alain Reguera Delgado |
25045c |
hexadecimal value of each color in the palette to the comment field,
|
|
Alain Reguera Delgado |
25045c |
so you have a palette file similar to the following:
|
|
Alain Reguera Delgado |
25045c |
+
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
GIMP Palette
|
|
Alain Reguera Delgado |
25045c |
Name: Syslinux-Default
|
|
Alain Reguera Delgado |
25045c |
Columns: 16
|
|
Alain Reguera Delgado |
25045c |
#
|
|
Alain Reguera Delgado |
25045c |
32 76 141 204c8d
|
|
Alain Reguera Delgado |
25045c |
37 82 146 255292
|
|
Alain Reguera Delgado |
25045c |
52 94 153 345e99
|
|
Alain Reguera Delgado |
25045c |
73 110 162 496ea2
|
|
Alain Reguera Delgado |
25045c |
91 124 172 5b7cac
|
|
Alain Reguera Delgado |
25045c |
108 136 180 6c88b4
|
|
Alain Reguera Delgado |
25045c |
120 146 186 7892ba
|
|
Alain Reguera Delgado |
25045c |
131 158 193 839ec1
|
|
Alain Reguera Delgado |
25045c |
255 255 255 ffffff
|
|
Alain Reguera Delgado |
25045c |
146 170 200 92aac8
|
|
Alain Reguera Delgado |
25045c |
162 182 209 a2b6d1
|
|
Alain Reguera Delgado |
25045c |
183 199 219 b7c7db
|
|
Alain Reguera Delgado |
25045c |
204 216 230 ccd8e6
|
|
Alain Reguera Delgado |
25045c |
221 229 238 dde5ee
|
|
Alain Reguera Delgado |
25045c |
235 241 245 ebf1f5
|
|
Alain Reguera Delgado |
25045c |
246 251 254 f6fbfe
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
+
|
|
Alain Reguera Delgado |
25045c |
{asciidoc-br}
|
|
Alain Reguera Delgado |
25045c |
+
|
|
Alain Reguera Delgado |
25045c |
Now that the palette has been created, you can set a path to
|
|
Alain Reguera Delgado |
25045c |
*palette-gpl* variable. Even you can set path of *palette-gpl* from
|
|
Alain Reguera Delgado |
25045c |
GIMP's palettes directory (+~/.gimp-x.x/palettes/+), it is much more
|
|
Alain Reguera Delgado |
25045c |
preferable that you copy the palette file from that location to the
|
|
Alain Reguera Delgado |
25045c |
configuration file's DIRECTORY inside the repository and put it under
|
|
Alain Reguera Delgado |
25045c |
version control, so others can take benefit of it. The palette file
|
|
Alain Reguera Delgado |
25045c |
is an integral part of color specific image reduction so it must be
|
|
Alain Reguera Delgado |
25045c |
near the configuration file you use for such actions.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering Documentation Files
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
To render documentation files, the *render-type* variable must be set
|
|
Alain Reguera Delgado |
25045c |
to ``asciidoc'' and the *render-from* variable must point to an
|
|
Alain Reguera Delgado |
25045c |
Asciidoc file. When the *render* module finds this information in a
|
|
Alain Reguera Delgado |
25045c |
section block, it takes the asciidoc file as source and transforms it
|
|
Alain Reguera Delgado |
25045c |
into a docbook file using the *asciidoc* program. The docbook file is
|
|
Alain Reguera Delgado |
25045c |
created temporarily for further format transformations and removed
|
|
Alain Reguera Delgado |
25045c |
later, once the final format has been rendered.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render* module creates the intermediate docbook file, it
|
|
Alain Reguera Delgado |
25045c |
considers the current locale information of your environment (e.g., by
|
|
Alain Reguera Delgado |
25045c |
reading the LANG environment variable). In case the current locale
|
|
Alain Reguera Delgado |
25045c |
information is different to English (e.g., the value of LANG
|
|
Alain Reguera Delgado |
25045c |
environment variable doesn't begin with the ``en'' characters), the
|
|
Alain Reguera Delgado |
25045c |
docbook file will be localized based on the translation file specified
|
|
Alain Reguera Delgado |
25045c |
in the *locale-from* variable, before applying further format
|
|
Alain Reguera Delgado |
25045c |
transformations to it. This way, further format transformations from
|
|
Alain Reguera Delgado |
25045c |
the temporarily docbook file will end up being localized as well. If
|
|
Alain Reguera Delgado |
25045c |
the *locale-from* variable is not present in the section block, the
|
|
Alain Reguera Delgado |
25045c |
intermediate docbook file won't be localized which make the final
|
|
Alain Reguera Delgado |
25045c |
result to be not localized either.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When you set the *render-type* variable to ``asciidoc'', the section
|
|
Alain Reguera Delgado |
25045c |
blocks need to have the *render-flow* variable set to ``article'',
|
|
Alain Reguera Delgado |
25045c |
``book'' or ``manpage''. This information defines the way the
|
|
Alain Reguera Delgado |
25045c |
intermediate docbook file is produced from the asciidoc file and, by
|
|
Alain Reguera Delgado |
25045c |
extension, the possible final results, too.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When *render-flow* variable is set to ``article'' or ``book'', it is
|
|
Alain Reguera Delgado |
25045c |
possible to produce final files in ``xhtml'' format but not in
|
|
Alain Reguera Delgado |
25045c |
``manpage'' format. This is because man pages require a specific
|
|
Alain Reguera Delgado |
25045c |
document structure that both articles and books don't need to have.
|
|
Alain Reguera Delgado |
25045c |
When producing articles and books in XHTML format, you can use the
|
|
Alain Reguera Delgado |
25045c |
*render-page* variable to control whether to produce the entire book
|
|
Alain Reguera Delgado |
25045c |
or article in just one file (``single'') or in separate files linked
|
|
Alain Reguera Delgado |
25045c |
one another (``chunks'').
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When *render-flow* variable is set to ``manpage'' it is possible to
|
|
Alain Reguera Delgado |
25045c |
set the *formats* variable to either ``manpage'' or ``xhtml'' in order
|
|
Alain Reguera Delgado |
25045c |
to render the docbook file as man page or XHTML format, respectively.
|
|
Alain Reguera Delgado |
25045c |
The final files produced this way are stored in the +man${MANSECT}/+
|
|
Alain Reguera Delgado |
25045c |
or +htmlman${MANSECT}+ directories based on the format you choose. If
|
|
Alain Reguera Delgado |
25045c |
you are producing man pages to a language different to English, these
|
|
Alain Reguera Delgado |
25045c |
directories would be +${LANG}/man${MANSECT}/+ and
|
|
Alain Reguera Delgado |
25045c |
+${LANG}/htmlman${MANSECT}+, instead. The structure of these paths is
|
|
Alain Reguera Delgado |
25045c |
required in order for *man* command to find the man pages in different
|
|
Alain Reguera Delgado |
25045c |
locales. The value of the man's volume section can be set using the
|
|
Alain Reguera Delgado |
25045c |
*mansect* variable. If this variable is not set, the value of man's
|
|
Alain Reguera Delgado |
25045c |
volume section will be 1.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When *render-flow* variable is not set, the ``article'' value is used
|
|
Alain Reguera Delgado |
25045c |
as default value.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *formats* variable has the ``xhtml'' value, you need to set
|
|
Alain Reguera Delgado |
25045c |
the *images-from* and *styles-from* variables inside the related
|
|
Alain Reguera Delgado |
25045c |
section block, no matter what the value of *render-flow* would be. The
|
|
Alain Reguera Delgado |
25045c |
value of *images-from* and *styles-from* variables must point to a
|
|
Alain Reguera Delgado |
25045c |
directory, inside the working copy, containing the share images and
|
|
Alain Reguera Delgado |
25045c |
CSS files used by XHTML documents, respectively. If none of these two
|
|
Alain Reguera Delgado |
25045c |
variables are set the directories
|
|
Alain Reguera Delgado |
25045c |
+${TCAR_BASEDIR}/Artworks/Icons/Webenv+ and
|
|
Alain Reguera Delgado |
25045c |
+${TCAR_BASEDIR}/Artworks/Webenv/Docbook/1.69.1/Css+ will be used for
|
|
Alain Reguera Delgado |
25045c |
them.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *formats* variable is not set, the ``xhtml'' value is used as
|
|
Alain Reguera Delgado |
25045c |
default value.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering Localized Images
|
|
Alain Reguera Delgado |
25045c |
--------------------------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
To produce localized content, you need to set the *locale-from*
|
|
Alain Reguera Delgado |
25045c |
variable in the section block you want to provide translations and
|
|
Alain Reguera Delgado |
25045c |
point its value to the translation file where string translations will
|
|
Alain Reguera Delgado |
25045c |
take place. Then, you need to check the value of LANG environment
|
|
Alain Reguera Delgado |
25045c |
variable to be sure it has the locale information you want to
|
|
Alain Reguera Delgado |
25045c |
translate messages for.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
If the LANG environment variable has the value you expect, run the
|
|
Alain Reguera Delgado |
25045c |
*locale* module on the ``DIRECTORY'' you want to locale content. This
|
|
Alain Reguera Delgado |
25045c |
read the source files you specified in *render-from* variable and
|
|
Alain Reguera Delgado |
25045c |
would create the translation files (a.k.a., portable objects) you need
|
|
Alain Reguera Delgado |
25045c |
to edit to provide the string translations from one language to
|
|
Alain Reguera Delgado |
25045c |
another. Verify the translation file exist and edit it to provide the
|
|
Alain Reguera Delgado |
25045c |
strings translations. Once the strings have been translated, execute
|
|
Alain Reguera Delgado |
25045c |
the *render* module on the ``DIRECTORY''.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render* module finds the *locale-from* variable in a section
|
|
Alain Reguera Delgado |
25045c |
block, it uses the *xml2po* program to create a localized instance of
|
|
Alain Reguera Delgado |
25045c |
each source file it finds in *render-from* variable. Then, using the
|
|
Alain Reguera Delgado |
25045c |
source files' localized instances, it produces the final files based
|
|
Alain Reguera Delgado |
25045c |
on *render-type* variable's value.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Examples
|
|
Alain Reguera Delgado |
25045c |
--------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Here are some practical configuration examples you can use as
|
|
Alain Reguera Delgado |
25045c |
reference to create your own configuration files.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
[Xhtml-single]
|
|
Alain Reguera Delgado |
25045c |
render-type = "asciidoc"
|
|
Alain Reguera Delgado |
25045c |
render-flow = "article"
|
|
Alain Reguera Delgado |
25045c |
render-from = "corporate.asciidoc"
|
|
Alain Reguera Delgado |
25045c |
locale-from = "${TCAR_SCRIPT_LANG_LC}/messages.po"
|
|
Alain Reguera Delgado |
25045c |
images-from = "${TCAR_BASEDIR}/Artworks/Icons/Webenv"
|
|
Alain Reguera Delgado |
25045c |
styles-from = "${TCAR_BASEDIR}/Artworks/Webenv/Docbook/1.69.1/Css"
|
|
Alain Reguera Delgado |
25045c |
formats = "xhtml"
|
|
Alain Reguera Delgado |
25045c |
render-page = "single"
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
{asciidoc-br}
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render* module reads this configuration file, it initiates
|
|
Alain Reguera Delgado |
25045c |
the +asscidoc+ module which in turn initiates the +xhtml+ module for
|
|
Alain Reguera Delgado |
25045c |
transforming the +corporate.asciidoc+ file into +corporate.docbook+ file
|
|
Alain Reguera Delgado |
25045c |
using +article+ as document type and
|
|
Alain Reguera Delgado |
25045c |
+${TCAR_SCRIPT_LANG_LC}/messages.po+ as source for localization. As
|
|
Alain Reguera Delgado |
25045c |
result, the *render* module produces the
|
|
Alain Reguera Delgado |
25045c |
+${TCAR_SCRIPTS_LANG_LC}/Xhtml-single/index.html+ file, using the same
|
|
Alain Reguera Delgado |
25045c |
directory of the configuration file as base directory.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
[centos-artwork.png]
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Brands/Types/Webenv/centos.org/{centos,artwork}.svgz"
|
|
Alain Reguera Delgado |
25045c |
formats = "xpm pdf jpg tif"
|
|
Alain Reguera Delgado |
25045c |
heights = "16 20 22 24 32 36 38 40 48 64 72 78 96 112 124 128 148 164 196 200 512"
|
|
Alain Reguera Delgado |
25045c |
fgcolors = "000000 ffffff"
|
|
Alain Reguera Delgado |
25045c |
bgcolors = "ffffff-0"
|
|
Alain Reguera Delgado |
25045c |
command = "/usr/bin/convert +append"
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
{asciidoc-br}
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render* module reads this configuration file, it takes the
|
|
Alain Reguera Delgado |
25045c |
+centos.svgz+ and +artwork.svgz+ files as source to produce the
|
|
Alain Reguera Delgado |
25045c |
+centos.png+ and +artwork.png+ files considering the first value in
|
|
Alain Reguera Delgado |
25045c |
the list of heights, background, foreground colors specified in the
|
|
Alain Reguera Delgado |
25045c |
configuration file. Then, it combines the results horizontally to
|
|
Alain Reguera Delgado |
25045c |
create the +centos-artwork.png+ file. Later, the +centos-artwork.png+
|
|
Alain Reguera Delgado |
25045c |
file is converted to produce one image file for each image format
|
|
Alain Reguera Delgado |
25045c |
specified in the configuration file. At this point, all the process
|
|
Alain Reguera Delgado |
25045c |
repeats again but for the next height and color values in the list.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
{asciidoc-br}
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
[syslinux-splash.png]
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Syslinux/syslinux-splash.svgz"
|
|
Alain Reguera Delgado |
25045c |
brand = "${TCAR_BASEDIR}/Artworks/Brands/Types/Default/Images/ffffff/ffffff-0/48/centos.png:x48+20+232"
|
|
Alain Reguera Delgado |
25045c |
brand = "${TCAR_BASEDIR}/Artworks/Brands/Types/Numbers/Images/ffffff/ffffff-0/96/5.png:x96+300+184"
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
[syslinux-splash.lss]
|
|
Alain Reguera Delgado |
25045c |
render-from = "syslinux-splash.png"
|
|
Alain Reguera Delgado |
25045c |
render-type = "palette"
|
|
Alain Reguera Delgado |
25045c |
palette-gpl = "colors.gpl"
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
{asciidoc-br}
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render* module reads this configuration file,
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
[screenshot.png]
|
|
Alain Reguera Delgado |
25045c |
render-type = "svg"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/screenshot.svgz"
|
|
Alain Reguera Delgado |
25045c |
render-flow = "base"
|
|
Alain Reguera Delgado |
25045c |
brand = "${TCAR_BASEDIR}/Artworks/Brands/Symbols/Default/Images/ffffff/ffffff-0/16/centos.png:x16+5+5"
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
[800x600.tar.gz]
|
|
Alain Reguera Delgado |
25045c |
render-type = "archive"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Motifs/${MOTIF}/Backgrounds/Images/800x600-final.png:background.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/GdmGreeterTheme.desktop"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/GdmGreeterTheme.xml"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-language.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-reboot.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-session.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-shutdown.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "screenshot.png"
|
|
Alain Reguera Delgado |
25045c |
command = "/bin/tar -czf"
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
[1360x768.tar.gz]
|
|
Alain Reguera Delgado |
25045c |
render-type = "archive"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Motifs/${MOTIF}/Backgrounds/Images/1360x768-final.png:background.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/GdmGreeterTheme.desktop"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/GdmGreeterTheme.xml"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-language.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-reboot.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-session.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "${TCAR_BASEDIR}/Artworks/Themes/Models/Distro/5/Gdm/icon-shutdown.png"
|
|
Alain Reguera Delgado |
25045c |
render-from = "screenshot.png"
|
|
Alain Reguera Delgado |
25045c |
command = "/bin/tar --remove-files -czf"
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
{asciidoc-br}
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
When the *render* module reads this configuration file,
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Bugs
|
|
Alain Reguera Delgado |
25045c |
----
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The *render* module has some issues I would like you to be aware of.
|
|
Alain Reguera Delgado |
25045c |
Mainly, to see if you could help me find better solutions for them ;)
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering Images With Reduced Number Of Colors
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
The process implemented to reduce image colors through GIMP's palettes
|
|
Alain Reguera Delgado |
25045c |
involves too much user intervention compared with ImageMagick's
|
|
Alain Reguera Delgado |
25045c |
--colors option that reduces image colors instantly without user
|
|
Alain Reguera Delgado |
25045c |
intervention. Nevertheless, the procedure of reducing color through
|
|
Alain Reguera Delgado |
25045c |
GIMP's palettes provides more quality to final images than
|
|
Alain Reguera Delgado |
25045c |
ImageMagic's --colors option does. Also, using GIMP's palettes let us
|
|
Alain Reguera Delgado |
25045c |
create LSS images from PNG images using the same exact information we
|
|
Alain Reguera Delgado |
25045c |
used to reduce colors on PNG images. This is very important in order
|
|
Alain Reguera Delgado |
25045c |
to have the same result in both image types. Because of these reasons
|
|
Alain Reguera Delgado |
25045c |
I prefer GIMP's palettes procedure against others methods like it is
|
|
Alain Reguera Delgado |
25045c |
the case of ImageMagick's for producing images with reduced number of
|
|
Alain Reguera Delgado |
25045c |
colors.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Rendering PDF Files From Localized Docbook Files
|
|
Alain Reguera Delgado |
25045c |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Even it is possible to produce PDF files from Docbook files using
|
|
Alain Reguera Delgado |
25045c |
current applications inside CentOS-5, there are some production issues
|
|
Alain Reguera Delgado |
25045c |
when we use localized docbook files as source to produce localized PDF
|
|
Alain Reguera Delgado |
25045c |
files that made me not to implement them as part of *centos-art.sh*
|
|
Alain Reguera Delgado |
25045c |
script by now.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
- When using the XML(DocBook)->XML(FO)->PDF transformation chain, the
|
|
Alain Reguera Delgado |
25045c |
result produced by _docbook-style-xsl-1.69.1-5.1_ and
|
|
Alain Reguera Delgado |
25045c |
_passivetex-1.25-5.1.1_ doesn't render heading boxes very well on
|
|
Alain Reguera Delgado |
25045c |
page's top and page's bottom. The text put inside these boxes seem
|
|
Alain Reguera Delgado |
25045c |
to have not enough space in their respective areas.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
- Tried using _dblatex-0.2.8-2.el5_ but didn't work for localized docbook files
|
|
Alain Reguera Delgado |
25045c |
(i.e., those who has the +lang="lang"+ string in their root
|
|
Alain Reguera Delgado |
25045c |
element). If you just remove the language specification string it
|
|
Alain Reguera Delgado |
25045c |
just work. We need the language specification in order for internal
|
|
Alain Reguera Delgado |
25045c |
document strings like +Abstract+ and +Table of contents+ to be
|
|
Alain Reguera Delgado |
25045c |
automatically translated. When the language specific attribute is
|
|
Alain Reguera Delgado |
25045c |
present in the root element, dblatex outputs the following:
|
|
Alain Reguera Delgado |
25045c |
+
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
Build the listings...
|
|
Alain Reguera Delgado |
25045c |
XSLT stylesheets DocBook - LaTeX 2e (0.2.8)
|
|
Alain Reguera Delgado |
25045c |
===================================================
|
|
Alain Reguera Delgado |
25045c |
Processing Revision History
|
|
Alain Reguera Delgado |
25045c |
Build 2912-corporate.docbook.pdf
|
|
Alain Reguera Delgado |
25045c |
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
|
|
Alain Reguera Delgado |
25045c |
entering extended mode
|
|
Alain Reguera Delgado |
25045c |
pdflatex failed
|
|
Alain Reguera Delgado |
25045c |
/usr/share/texmf/tex/latex/dblatex/docbook.sty:160: No counter 'chapter' defined.
|
|
Alain Reguera Delgado |
25045c |
/usr/share/texmf/tex/latex/dblatex/docbook.sty:160: leading text: \newfloat{example}{htb}{loe}[chapter]
|
|
Alain Reguera Delgado |
25045c |
/usr/share/texmf/tex/latex/dblatex/docbook.sty:164: No counter 'chapter' defined.
|
|
Alain Reguera Delgado |
25045c |
/usr/share/texmf/tex/latex/dblatex/docbook.sty:164: leading text: \newfloat{dbequation}{htb}{loe}[chapter]
|
|
Alain Reguera Delgado |
25045c |
2912-corporate.docbook_tmp.tex:62: Illegal parameter number in definition of \@the@H@page.
|
|
Alain Reguera Delgado |
25045c |
2912-corporate.docbook_tmp.tex:62: leading text: \maketitle
|
|
Alain Reguera Delgado |
25045c |
2912-corporate.docbook_tmp.tex:62: Illegal parameter number in definition of \@the@H@page.
|
|
Alain Reguera Delgado |
25045c |
2912-corporate.docbook_tmp.tex:62: leading text: \maketitle
|
|
Alain Reguera Delgado |
25045c |
2912-corporate.docbook_tmp.tex:62: Illegal parameter number in definition of \@the@H@page.
|
|
Alain Reguera Delgado |
25045c |
2912-corporate.docbook_tmp.tex:62: leading text: \maketitle
|
|
Alain Reguera Delgado |
25045c |
Error: pdflatex compilation failed
|
|
Alain Reguera Delgado |
25045c |
----------------------------------------------------------------------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Reporting Bugs
|
|
Alain Reguera Delgado |
25045c |
--------------
|
|
Alain Reguera Delgado |
25045c |
Report bugs on the *automation* category of *centos-artwork* project
|
|
Alain Reguera Delgado |
25045c |
at the https://centos.org.cu/bugs/[The CentOS Bugs] website.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Author
|
|
Alain Reguera Delgado |
25045c |
------
|
|
Alain Reguera Delgado |
25045c |
Written by mailto:al@centos.org.cu[Alain Reguera Delgado], 2009-2013
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Copyright
|
|
Alain Reguera Delgado |
25045c |
---------
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
Copyright (C) 2009-2013 The CentOS Project
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
This program is free software; you can redistribute it and/or modify
|
|
Alain Reguera Delgado |
25045c |
it under the terms of the GNU General Public License as published by
|
|
Alain Reguera Delgado |
25045c |
the Free Software Foundation; either version 2 of the License, or (at
|
|
Alain Reguera Delgado |
25045c |
your option) any later version.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
This program is distributed in the hope that it will be useful, but
|
|
Alain Reguera Delgado |
25045c |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Alain Reguera Delgado |
25045c |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Alain Reguera Delgado |
25045c |
General Public License for more details.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
You should have received a copy of the GNU General Public License
|
|
Alain Reguera Delgado |
25045c |
along with this program; if not, write to the Free Software
|
|
Alain Reguera Delgado |
25045c |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Alain Reguera Delgado |
25045c |
|
|
Alain Reguera Delgado |
25045c |
// vim: set syntax=asciidoc:
|