author | Patrick PIERRE |
jeu., 02 févr. 2017 17:07:31 +0100 | |
changeset 153 | 488df57386e9 |
parent 141 | adcde9f2ff7d |
permissions | -rw-r--r-- |
Patrick@141 | 1 |
# $Id$ |
Patrick@141 | 2 |
|
Patrick@141 | 3 |
# ----------------------------------------------------------------------------- |
Patrick@141 | 4 |
[Initialization] |
Patrick@141 | 5 |
directories = Images Audios Videos |
Patrick@141 | 6 |
templates = Publidoc2XHtml |
Patrick@141 | 7 |
script = |
Patrick@141 | 8 |
|
Patrick@141 | 9 |
[template:Publidoc2XHtml] |
Patrick@141 | 10 |
path = |
Patrick@141 | 11 |
exclude = |
Patrick@141 | 12 |
exclude[!js] = Js pulse.gif |
Patrick@141 | 13 |
exclude[!aud] = audio.png |
Patrick@141 | 14 |
|
Patrick@141 | 15 |
# ----------------------------------------------------------------------------- |
Patrick@141 | 16 |
[Input] |
Patrick@141 | 17 |
is_dir = false |
Patrick@141 | 18 |
file_regex = \.xml$ |
Patrick@141 | 19 |
content_regex = <publi(doc|set) |
Patrick@141 | 20 |
unzip = |
Patrick@141 | 21 |
validate = true |
Patrick@141 | 22 |
image.ext = svg png tif tiff jpg jpeg eps gif |
Patrick@141 | 23 |
audio.ext = wav ogg aac ac3 mp3 |
Patrick@141 | 24 |
video.ext = dv mpg mp4 ogv mov avi webm flv |
Patrick@141 | 25 |
|
Patrick@141 | 26 |
[RelaxNG] |
Patrick@141 | 27 |
publiset = %(here)s/RelaxNG/publiset.rng |
Patrick@141 | 28 |
publidoc = %(here)s/RelaxNG/publidoc.rng |
Patrick@141 | 29 |
|
Patrick@141 | 30 |
# ----------------------------------------------------------------------------- |
Patrick@141 | 31 |
[Transformation] |
Patrick@141 | 32 |
preprocess = |
Patrick@141 | 33 |
preregex = %(here)s/Regex/publidoc2xhtml_pre.regex |
Patrick@141 | 34 |
xsl = %(here)s/Xsl/publidoc2xhtml.xsl |
Patrick@141 | 35 |
postregex = |
Patrick@141 | 36 |
postprocess = |
Patrick@141 | 37 |
|
Patrick@141 | 38 |
# ----------------------------------------------------------------------------- |
Patrick@141 | 39 |
[Output] |
Patrick@141 | 40 |
make_id = |
Patrick@141 | 41 |
format = %(fid)s.html |
Patrick@141 | 42 |
validate = false |
Patrick@141 | 43 |
#container = Zip |
Patrick@141 | 44 |
|
Patrick@141 | 45 |
# ----------------------------------------------------------------------------- |
Patrick@141 | 46 |
[Finalization] |
Patrick@141 | 47 |
remove_regex = (~|\.tmp)(\.\w{1,4})?$ |
Patrick@141 | 48 |
script = |