Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Non-English Discussions > Forum Français > Assistance

Notices

Reply
 
Thread Tools Search this Thread
Old 04-30-2017, 12:28 PM   #1
jpomart
Member
jpomart began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2015
Device: personnal computer
Question Problème après conversion XHTML vers ePub

Bonjour à tous,

Je souhaite convertir un fichier xhtml généré via XSLT et sa .css en epub.

Le problème est que lorsque j'ouvre le fichier ePub avec Calibre ou Sigil, 90% du texte a disparu, il n'y a pratiquement que du contenu vide entrecoupé d'éléments de texte.

Pourtant le fichier xhtml s'ouvre correctement avec un navigateur web, et le contenu et visible.

Auriez-vous une idée de l'origine de ce problème?

J.
jpomart is offline   Reply With Quote
Old 04-30-2017, 12:37 PM   #2
Pajamaman
Wizard
Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.
 
Pajamaman's Avatar
 
Posts: 2,826
Karma: 10700629
Join Date: May 2016
Location: Canada
Device: Onyx Nova
Je suggère que tu convertir le XML vers HTML, et convertir le HTML à Epub.
Pajamaman is offline   Reply With Quote
Old 05-01-2017, 01:28 AM   #3
jpomart
Member
jpomart began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2015
Device: personnal computer
C'est effectivement ce que je fais : je pars d'un fichier XML pour obtenir le fichier XHTML.
jpomart is offline   Reply With Quote
Old 05-01-2017, 11:38 AM   #4
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
Salut jpomart,

Dans Sigil que vois-tu lorsque les codes sont affichés, ou avec la fenêtre de prévisualisation?

Il est possible que ta feuille de styles (un_nom.css) contienne, par exemple, un code comme celui-ci:

Code:
p {
    color: white;
}
D'autres codes pourraient également altérer l'affichage et être insérés directement dans les entités (e.g. <p style="color:white;>, etc.).

Peux-tu nous montrer une partie d'un des fichiers xhtml et du/des fichiers css s'il y en a?
Arios is offline   Reply With Quote
Old 05-06-2017, 10:08 AM   #5
jpomart
Member
jpomart began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2015
Device: personnal computer
Bonjour Arios,

Merci pour ton aide. J'ai trouvé la solution, c'était bien la .css : il y avait un overflow:hidden utile pour l'affichage d'un élément mais qui causait ce gros problème!
jpomart is offline   Reply With Quote
Reply

Tags
epub, xhtml

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion from xhtml to epub loose svg images pwessel Conversion 3 05-24-2015 11:29 PM
Problème de conversion de texte TXT/epub voyard Conversion 1 01-27-2013 12:20 PM
Pages WEB vers EPUB ? Randy11 Assistance 6 12-12-2012 09:53 AM
Créer des epub à partir d'une syntaxe wiki (chaîne d'édition vers PDF (LaTeX), xHTML farvardin Software 1 04-03-2011 12:49 PM
MOBI vers LRF: Problème de conversion avec Calibre alaouet Assistance 6 02-18-2010 05:11 PM


All times are GMT -4. The time now is 05:30 AM.


MobileRead.com is a privately owned, operated and funded community.