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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2008, 12:11 PM   #1
freak
Member
freak doesn't litterfreak doesn't litterfreak doesn't litter
 
freak's Avatar
 
Posts: 10
Karma: 232
Join Date: Aug 2008
Location: Paris, France
Device: None yet
Exclamation Modifier le .css d'un .epub

Bonjour,

Je voudrais pouvoir modifier le .css d'un fichier .epub (un travail universitaire en cours).

Le fichier que j'ai a été généré sur feedbooks (merci Hadrien) et ce n'est pas pour hacker ce système mais, avant tout par curiosité et pour effectuer des modifications mineures.


J'ai donc réussi à dézipper le fichier .epub, qui apparaît bien en 3 éléments :
- META-INF (dossier contenant un fichier appelé container.xml)
- un fichier mimetype (?) contenant une ligne de texte "application/epub+zip" (?)
- le dossier OPS qui contient :
¤ les feuilles de styles ;
¤ les images ;
¤ un fichier OPF (?) ;
¤ des fichiers XML (main0, 1, 2, 3 ...) avec mon texte ;
¤ un fichier NCX avec un doctype et des métadonnées (auteur, langue, ...).


En fait, avant même de pouvoir modifier quoi que ce soit (encore une fois, il ne s'agit pas de ruiner le bel ordonnancement des fichiers de FB), j'ai constaté qu'en rezippant l'archive, cela ne donnait pas un fichier lisible par Adobe Digital Editions (qui lit sans pb le fichier AVANT dézippage/rezippage par mes soins).


Quelqu'un saurait-il comment effectuer proprement cette opération essentielle afin que je puisse visualiser les résultats de mes trifouillages (car je tâtonne encore pas mal) sur Adobe DE ?

Bien à vous

Freak
freak is offline   Reply With Quote
Old 08-18-2008, 05:37 PM   #2
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
est-ce que tu lis l'anglais ou pas ? je viens de voir un poste qui donne cette page qui explique comment faire tes epubs toi-même : http://www.hxa7241.org/articles/cont...7241_2007.html
et cette page qui valide le code :
http://code.google.com/p/epubcheck/
ça peut s'avérer utile...

sinon il faudra voir avec hadrien, il doit savoir ça.
zelda_pinwheel is offline   Reply With Quote
Advert
Old 08-19-2008, 06:33 AM   #3
freak
Member
freak doesn't litterfreak doesn't litterfreak doesn't litter
 
freak's Avatar
 
Posts: 10
Karma: 232
Join Date: Aug 2008
Location: Paris, France
Device: None yet
OK et merci !

Cette page est super bien foutue (même pour quelqu'un qui n'y connaît pas grand chose en programmation comme moi).

Les explications à mon souci se trouvent tout en bas :

" Then zip them into an archive with Zip. The filename extension should be ‘epub’, and the mimetype file must be first (and uncompressed), and extra file attributes must be excluded:

zip -Xr9D EpubGuide-hxa7241.epub mimetype *
"


Donc si j'arrive bien à laisser non-compressée le mimetype, je ne sais pas par contre comment suivre la dernière indication "extra file attributes must be excluded (etc..)".

J'avoue que je ne sais pas comment effectuer cela et, peut-etre à cause de cela (?), ADE m'indique toujours une erreur quand j'essaye de lancer mes .epub (mal) rezippés.

Si quelqu'un peut m'aider sur ce point délicat?

D'avance merci.
freak is offline   Reply With Quote
Old 08-19-2008, 08:40 PM   #4
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
bon alors à vrai dire je suis franchement larguée là mais peut-être que ce site te sera utile :
http://www.bookglutton.com/api/getepub.html
il te permet de créer un fichier epub toi-même avec du code créé ailleurs, donc logiquement il saura t'assembler un beau conteneur qui fonctionne... (note que je ne l'ai pas testé, je suis tombée sur le lien ailleurs sur le forum.)

et si ça marche pas, il va falloir demander de l'aide à hadrien !
zelda_pinwheel is offline   Reply With Quote
Old 08-20-2008, 10:33 AM   #5
freak
Member
freak doesn't litterfreak doesn't litterfreak doesn't litter
 
freak's Avatar
 
Posts: 10
Karma: 232
Join Date: Aug 2008
Location: Paris, France
Device: None yet
Quote:
et si ça marche pas, il va falloir demander de l'aide à hadrien !
Il est ptet en vacances ?

Bon je vais essayer ton site sur le champ et si je suis encore dans la panade (et qu'Hadrien ne nous vient pas en aide), je vais aller sur la partie anglo-étatsunienne forum.

Bien le bonsoir.
freak is offline   Reply With Quote
Advert
Old 08-20-2008, 10:42 AM   #6
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by freak View Post
Il est ptet en vacances ?

Bon je vais essayer ton site sur le champ et si je suis encore dans la panade (et qu'Hadrien ne nous vient pas en aide), je vais aller sur la partie anglo-étatsunienne forum.

Bien le bonsoir.
héhé, en fait, je pense que ce serait plutôt le contraire, et qu'il bosse dur sur de nouvelles fonctionnalités de feedbooks en ce moment, ce qui l'amène à nous négliger honteusement.

yo ! HAAAAADRIIIIEEEEEEN !!! t'es là ?? au secours !!!

cela dit, en effet si tu lis / écris en anglais tu ferais très bien de t'aventurer dans la partie anglophone du forum ne serait-ce que parce que rien que la quantité de participants améliore tes chances de trouver quelqu'un de plus compétent que moi (c'est facile...) qui pourra t'aider, et je t'y encourage.

puis une fois que t'as tout compris, tu reviens ici tout raconter en français, pour tes compatriotes moins bilingues.
zelda_pinwheel is offline   Reply With Quote
Old 08-20-2008, 10:37 PM   #7
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Je suis en effet au Canada la jusqu'au 25 et je n'ai pas tout le temps le net... Mais je bosse tout de même sur des fonctionnalités, bientôt terminé l'intégration de la partie WISIWYG de l'édition par exemple.
Alors en regardant les 3 lignes que j'utilise ça donne...

zip -v0X target mimetype
zip -vr target * -x target.zip mimetype
mv target.zip target.epub

Mais bon normalement si tu zip tout cela de façon pas clean du tout, DE sait quand même ouvrir. Donc étrange que tu es eu ce genre de problèmes.
Hadrien is offline   Reply With Quote
Old 11-17-2009, 07:17 PM   #8
Mike Ghost
Junior Member
Mike Ghost began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2009
Device: none
Cool Pas un epub "à l'eau de rose"…

Salut tout le monde

Cherche une pointure en CSS pour un "vrai epub", pas un roman mais du hard (une vraie mise en page).
Mike Ghost is offline   Reply With Quote
Old 11-20-2009, 08:05 PM   #9
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
salut Mike, et bienvenu !
intéressant ta demande, peux-tu nous en dire plus ? je te propose de te créer un nouveau fil (clique juste sur "new thread" en haut du forum) pour que ta question soit plus visible. je peux aussi, si tu le souhaites, déplacer ces postes dans un nouveau fil.

après, n'hésite pas à nous donner quelques détails !
zelda_pinwheel is offline   Reply With Quote
Old 11-26-2009, 03:58 AM   #10
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by Mike Ghost View Post
Salut tout le monde

Cherche une pointure en CSS pour un "vrai epub", pas un roman mais du hard (une vraie mise en page).
Salut Mike

Le problème d'une "vraie" mise en page concernant epub réside dans la façon dont le format se définit. Un format fait pour des pages à tailles largement divergentes ne se prete (sorry, pas d' accent circonflexe sur ce machin) pas du tout à une mise en page classique. Pour pouvoir réaliser donc un layout "fixe", on doit définir une taille de font et un format de page fixe et donc quasiment dévetir le format epub de ses avantages. Si tu sais sur quel support ton texte sera lu, je crois qu'une création de PDF bien adapté à cet engin sera préfèrable!
mtravellerh is offline   Reply With Quote
Reply

Tags
.epub epub modifier css

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB (CSS) tweaker app Loccy Conversion 9 01-23-2011 10:22 PM
userstyle.css and epub margins tselling Sony Reader Dev Corner 8 10-28-2010 01:51 PM
epub: CSS for zoom level? anaglyfen Calibre 3 09-12-2010 12:38 PM
converting to epub with my css fbrzvnrnd Calibre 3 04-15-2010 02:46 AM
ePub to ePub - just replace CSS? ChristopherTD Calibre 21 02-11-2010 02:50 AM


All times are GMT -4. The time now is 07:59 AM.


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