View Single Post
Old 04-26-2011, 01:05 AM   #94
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Exact. Corrigé merci ( pas sur le texte en ligne).

Je suis en train d'essayer de tester quelques options avancées de W2X pour montrer ce qu'il peut faire (pour la V2). L'une d'elles à laquelle je ne comprend pas grand-chose pour le moment est le style-mapping

"Configurable mechanism for mapping between ODT element styles and XHTML element styles. So italics in your ODT can, for example, be mapped to i ou em element or whatever.

Cela pourrait simplifier le code et supprimer quelques sgc ou span class un peu lourds, y compris pour le superscript? Mais je regarde un peu tout ça comme une poule qui a trouvé un couteau.

Cela se passe dans Outils/Options, onglet Writer2xhtml et entrées Master styles notamment pour les styles de paragraphe et aussi Other styles Ce dernier s'applique spécifiquement aux attributs de style (bold, italic, superscript etc.) J'aimerais bien préparer un fichier pour servir d'exemple.

Il y a un petit chapitre de la doc consacré à ce sujet appelé Style maps (paragraphe 4.2.7) qui donne quelques exemples mais c'est un peu ... aride.
Attached Thumbnails
Click image for larger version

Name:	texte.png
Views:	562
Size:	17.8 KB
ID:	70512  

Last edited by roger64; 04-26-2011 at 09:53 AM.
roger64 is offline   Reply With Quote