Re: Nouveaux articles à relire et problè me cavec la gestion des articles.

Frédéric Marchal <[email protected]> Mon, 02 Jan 2017 17:31:55 +0100
Newsgroups gmane.comp.internationalization.french
Message-ID <1635511.M0SaT4pffj@marchal>
On Friday 30 December 2016 20:56:28 Sébastirn MARBRIER wrote:
> Je vous proprose en relecture les articles A à C du numéro 73 de la 
gazette
> linux.
> 
> Si possible, j'aimerai que les articles suivants subissent une relecture:
> 82-A, 77-A, 77-C, 77-E.
> 
> Les commentaires me permettront d'améliorer ma connaissance de 
Docbook.

Comment as-tu généré le HTML à partir du DocBook ? Je dirais que tu as 
utilisé le xsl par défaut pour produire l'article http://ftp.traduc.org/doc-vf/gazette-linux/html/2002/077/lg077-A.html

La présentation HTML devrait ressembler à celle de l'article 
http://ftp.traduc.org/doc-vf/gazette-linux/html/2011/187/lg187-B.html

Pour obtenir ce résultat, j'ai converti le DocBook avec les fichiers que tu 
trouveras sur le serveur dans le répertoire 
/home/ftp/pub/traduc.org/projets/gazette-linux/outils-docbook

Il y a trois fichiers également attachés à ce mail pour plus de facilités:

gazette.css
gazette.xsl
Makefile

J'ai mis à jour le Makefile pour qu'il utilise directement le css du site 
traduc.org et soit compatible avec Debian Jessie par défaut.

Pour produire le HTML avec la bonne présentation, j'utilise la commande

make lg077-A.html

Cette commande suppose que les fichiers ci-dessus et lg077-A.xml sont 
dans le répertoire où est exécutée la commande make.

Sous Debian Jessie, il faut installer les paquets xsltproc, docbook-xsl et 
make. Il est possible de se passer de make en tapant les deux 
commandes à la main ou en écrivant un petit script shell qui fait la même 
chose que le Makefile. Je peux m'en charger si tu veux.

Frédéric

_______________________________________________
Liste de discussion Traduc
[email protected]
http://listes.traduc.org/mailman/listinfo/traduc
[/!\ Les pièces-jointes doivent attendre l'approbation du modérateur.]
gazette.css (text/css, 3.9 KB)
/*
This style sheet's purpose is to format the French translation of the Linux Gazette published
on http://www.traduc.org. The HTML articles are generated from docbook documents converted
to HTML with the gazette.xsl style sheet.

Last modification of this file: 2011-02-06
*/

body {
	/*font-family:times new roman,serif;*/
	font-family:verdana,arial,helvetica,sans-serif;
}

div.article > div.titlepage {
	border-bottom:2px solid black;
	font-size:90%;
	padding:1em;
	margin-bottom:0.5em;
}

div.article > div.titlepage h2 {
	text-align:center;
	font-size:200%;
	padding:0.5em 2em;
	margin:0px;
}

#topnavbar {
	font-family:sans-serif;
	font-size:0.8em;
	width:100%;
	background-color:#D6E4F9;
	line-height:1.1em;
	margin:-1px 0 0;
	padding:2px 8px;
	border-bottom:1px solid #4D7DA9;
	border-top:1px solid #4D7DA9;
}

#topnavbar ul {
	margin:0px;
	padding:2px;
}

#topnavbar li {
	display:inline;
	margin:4px 6px;
	padding:0;
}

#topnavbar a {
	color:#0044B3;
	text-decoration:none;
}

#topnavbar a:hover {
	color:green;
	text-decoration:underline;
}

div.titlepage h3.subtitle {
	font-size:90%;
	margin:0px;
	text-align:center;
}

div.titlepage div.author h3 {
	margin-bottom:0px;
}

div.titlepage div.othercredit h3 {
	margin-bottom:0px;
}

div.titlepage div.author code.email {
	margin-left:3em;
}

div.titlepage div.othercredit span.contrib {
	margin-left:3em;
}

div.titlepage hr {
	display:none;
}


div.toc {
	border:1px solid black;
	background-color:#E9E6B7;
	padding:5px;
	margin:0px 1em 1em 1em;
}

div.toc p:first-child {
	margin:0px;
	text-decoration:underline;
}


div.legalnotice {
	font-style:italic;
}

#authorbiblio {
	border-top:2px solid black;
	font-size:small;
}

#authorbiblio > div {
	margin-left:1em;
	margin-right:1em;
}

#authorbiblio h2 {
        margin-top:0.5em;
	margin-bottom:0.5em;
}

div.colophon {
	border-top:2px solid black;
	font-size:x-small;
}

.authorblurb span.title {
	font-weight:bold;
}


div.blockquote {
	background-color:#EEE;
	clear:both;
}

pre.programlisting {
	border:1px solid black;
	background-color:#F4F1BF;
	font-size:95%;
	padding:10px;
	clear:both;
}

.literallayout {
	border:1px solid black;
	background-color:#F4F1BF;
	font-size:95%;
	padding:5px;
	clear:both;
}

.literallayout p {
	margin-top:3px;
	margin-bottom:5px;
}

.blockquote .literallayout {
	border:none;
	background-color:inherit;
}

div.sidebar {
	color:#090;
	font-style:italic;
}

div.footnotes {
	/*border-top:2px solid black;*/
	margin:2em 3em;
	font-size:small;
}

div.footnotes > br {
	display:none;
}

div.footnotes > hr {
	display:none;
}

div.table-contents table {
	border-collapse:collapse;
	border:2px solid black;
}

div.table-contents table td {
	padding:2px;
}

div.table-contents table th {
	padding:2px;
	background-color:#CCC;
}

div.table .title {
	margin-bottom:0.4em;
}

pre.screen {
	color:#FFF;
	background-color:#000;
	font-size:95%;
	padding:10px;
}

pre.screen .prompt {
	color:#AAF;
}

code.option {
	font-style:normal;
	font-weight:bold;
}

em.parameter code {
	font-style:normal;
	font-weight:bold;
}

pre.screen code.filename {
	font-weight:bold;
}

div.note {
	border-left:2px solid black;
	padding-left:4px;
}

.figure-float {
	clear:both;
}

br.example-break {
	display:none;
}

span.deleted {
        text-decoration:line-through;
}

.application {
	font-style:italic;
}

table.simplelist {
	margin-left:2em;
	border-collapse:collapse;
}

table.simplelist td+td {
	padding-left:1em;
}

ol.orderedlist li>p {
	margin:5px 0px;
}

ul.itemizedlist li>p {
	margin:5px 0px;
}

div.figure-float {
	padding-right:10px;
	padding-left:10px;
}

dt {
	font-weight:bold;
}

dd + dt {
	margin-top:0.6em;
}

.command .keycap {
	font-weight:normal;
	font-style:oblique;
	margin-left:0.2em;
	margin-right:0.2em;
}

.command .keycap:before {
	font-weight:normal;
	font-style:oblique;
	content:"<";
}

.command .keycap:after {
	font-weight:normal;
	font-style:oblique;
	content:">";
}

span.guimenu, span.guisubmenu, span.guimenuitem, span.guibutton {
	font-weight:bold;
	font-style:oblique;
}
gazette.xsl (application/xslt+xml, 5.5 KB) - not displayed
Makefile (text/x-makefile, 2.2 KB)
# Usage:
# Validate and process all the lg*.xml files in the current directory that are newer than the corresponding html
#   make
# Build one file if it needs to be updated (useful if several files need updating but you only want to rebuild this file)
#   make lg180-A.html
# Rebuild one file even if it is already up to date
#   make -B lg180-A.html
# Make a backup of the xml files (backup is a tar.gz file with today's date)
#   make backup
# The default css stylesheet can be changed like this:
#  make css=../gazette.css
#
# Last modification date 2011-01-12


# Where docbook.xsl resides on your system (change this variable accordingly).
# On Debian Jessie, it is installed by package docbook-xsl.
xsldir=/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml

# Transformation stylesheet to use to convert the documents.
style=gazette.xsl
#style=$(xsldir)/docbook.xsl
#style=$(xsldir)/changebars.xsl

# CSS to use to render the HTML documents.
#css=gazette.css
css=http://ftp.traduc.org/projets/gazette-linux/outils-docbook/gazette.css




# Collect the xml files to process.
SOURCE=$(wildcard lg*.xml)
TARGET=$(patsubst %.xml,%.html,$(SOURCE))

# First rule is the one taken into account when make is ran without arguments.
# It rebuild all the files listed in $(TARGET).
all: $(TARGET)

#CATALOG=XML_CATALOG_FILES="gazette.xml"
ARGS=--path "$(xsldir)"
ARGS+=--stringparam html.stylesheet $(css)

# Default rule tells how to make a html document out of a xml file.
%.html: %.xml $(style)
	xmllint --nonet --valid --noout $<
	xsltproc $(ARGS) "$(style)" $< > $@

# This example demonstrates how to use a custom build for a specific file. In
# this case, it adds xinclude.
# It is not recommended to use custom build for the sake of the coordinator building the final article.
#lg181-D.html: lg181-D.xml $(style)
#	xmllint --nonet --postvalid -xinclude --noout $<
#	xsltproc $(ARGS) --xinclude "$(style)" $< > $@

# This example disables the table of content
#lg180-B.html: lg180-B.xml $(style)
#	xmllint --nonet --valid --noout $<
#	xsltproc $(ARGS) --stringparam generate.toc nop "$(style)" $< > $@

# Make a backup of all the xml files and support files.
backup:
	tar -jcf lg-$(shell date "+%Y%m%d%H%M").tar.bz2 lg*.xml Makefile gazette.css gazette.xsl