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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-31-2014, 11:35 AM   #76
bertrand47
Member
bertrand47 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2013
Device: Kobo Touch
Je tourne sous Linux... Je n'ai pas compris le début de ton message.
bertrand47 is offline   Reply With Quote
Old 03-31-2014, 09:58 PM   #77
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
Bonsoir Bertrand,

Pourrais-tu tout d'abord essayer d'ouvrir ton fichier epub avec le logiciel de décompression qui vient avec ta distro (tu sais pour les fichiers zip)?
  1. Renomme ton epub: nom_de_ton_fichier.epub sous: nom_de_ton_fichier.zip. Normalement, de la sorte, tu devrais pouvoir ouvrir facilement ton epub en double-cliquant dessus.
  2. Tu devrais tout d'abord y trouver 3 éléments: 2 répertoires, OEBPS et META-INF et un fichier mimetype.
  3. Double-clique sur OEBPS pour l'ouvrir.
  4. Dans ce répertoire il devrait y avoir les sous-répertoires Text et Styles et 2 autres fichiers dont tu ne t'occupes pas.
  5. Double-clique sur Styles et normalement tu devrais y voir ta CSS nommée page_styles.css.
  6. Copie ce fichier dans un éditeur de texte.
C'est ce fichier qu'il nous faut examiner et que tu dois insérer dans la balise Code:.

Si d'aventure ce fichier n'est pas à l'endroit indiqué, tu devrais néanmoins le repérer facilement par son extension: .css
Arios is offline   Reply With Quote
Advert
Old 04-01-2014, 03:06 AM   #78
bertrand47
Member
bertrand47 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2013
Device: Kobo Touch
Bonjour et merci pour tes conseils.
J'ai procédé à l'opération .zip, j'avais déjà vu ce procédé. J'ai le META-INF, mais pas de OEBPS, j'ai un stylesheet.css, à côté du mimetype, qui doit correspondre:

Code:
.calibre {
    display: block;
    font-size: 1em;
    padding: 0;
    margin: 0 5pt
    }
.calibre1 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1.29167em;
    font-weight: bold;
    line-height: 130%;
    text-align: center;
    text-indent: 0;
    padding: 0;
    margin: 3cm 0 0.21cm
    }
.calibre2 {
    display: block;
    line-height: 1.2;
    padding: 0;
    margin: 0
    }
.calibre3 {
    padding: 0;
    margin: 0
    }
.calibre4 {
    display: block;
    padding: 0;
    margin: 0
    }
.P-P {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1em;
    line-height: 140%;
    orphans: 1;
    text-align: justify;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 0 0 0.247cm
    }
.P-P1 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1.66667em;
    font-weight: bold;
    line-height: 130%;
    orphans: 1;
    page-break-after: auto;
    page-break-before: auto;
    text-align: center;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 2cm 0 0.21cm
    }
.P-P2 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1.29167em;
    font-weight: bold;
    line-height: 1.2;
    orphans: 1;
    text-align: center;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 0 0 0.25cm
    }
.P-P3 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 0.75em;
    font-style: italic;
    font-weight: normal;
    line-height: 1.2;
    orphans: 1;
    page-break-after: auto;
    text-align: right;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 1cm 0 1.499cm
    }
.P-P4 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1em;
    font-style: normal;
    font-weight: bold;
    line-height: 130%;
    text-align: center;
    text-indent: 0;
    padding: 0;
    margin: 2cm 0 4.001cm
    }
.P-P5 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 0.75em;
    font-style: italic;
    font-weight: normal;
    line-height: 1.2;
    orphans: 1;
    page-break-after: auto;
    page-break-before: auto;
    text-align: right;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 1cm 0 1.499cm
    }
.P-P6 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1em;
    font-weight: bold;
    line-height: 130%;
    text-align: center;
    text-indent: 0;
    padding: 0;
    margin: 2cm 0 4.001cm
    }
.P-P7 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1em;
    font-style: italic;
    line-height: 140%;
    orphans: 1;
    text-align: justify;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 0 0 0.247cm
    }
.P-P8 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1em;
    font-style: italic;
    font-weight: normal;
    line-height: 1.2;
    orphans: 1;
    page-break-after: auto;
    page-break-before: auto;
    text-align: center;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 0.6cm 0 1cm
    }
.P-P9 {
    background-color: transparent;
    color: #000;
    display: block;
    font-family: "Times New Roman";
    font-size: 1em;
    font-style: normal;
    line-height: 140%;
    orphans: 1;
    text-align: justify;
    text-indent: 0;
    widows: 1;
    padding: 0;
    margin: 0 0 0.247cm
    }
.S-T {
    line-height: 1.2;
    padding: 0;
    margin: 0
    }
.S-T1 {
    background-color: transparent;
    font-family: "Times New Roman", serif;
    padding: 0;
    margin: 0
    }
.S-T2 {
    font-style: normal;
    line-height: 1.2;
    padding: 0;
    margin: 0
    }
.S-T3 {
    font-style: italic;
    padding: 0;
    margin: 0
    }
.S-T4 {
    font-style: normal;
    padding: 0;
    margin: 0
    }
page_styles.css me semble décevant :

Code:
@page {
    margin-bottom: 5pt;
    margin-top: 5pt
    }

Last edited by bertrand47; 04-01-2014 at 09:21 AM.
bertrand47 is offline   Reply With Quote
Old 04-01-2014, 12:24 PM   #79
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
Bonjour Bertrand,

J'ai jeté un rapide coup d'oeil à ta css et pour être franc avec toi, c'est pas du beau code.

Par ailleurs, le <span class="calibre3"> n'apporte pas grand chose si ce n'est d'encombrer le code de tes fichiers xhtml. En effet, ses valeurs sont: "padding: 0; margin: 0;": il serait bien plus simple pour faire un reset, de mettre ceci, une seule fois, dans la css:

Code:
* {
margin: 0;
padding: 0;
}
Les valeurs des principaux paragraphes <p class="P-P"> sont aussi inutilement alambiquées avec une hauteur de ligne trop importante à mon avis (140%). Tu pourrais éventuellement remplacer cette classe par:



Quote:
p {
font-family: "Times New Roman"; /* Si c'est la police de caractères qui te convient, mais elle n'est pas libre de droits. */
text-align: justify;
line-height: 1.2em;
text-indent: 0; /* Les paragraphes n'auront toutefois aucun alinéa */
font-size: 1em; /* La taille de la police pour les paragraphes */
orphans: 1; /* Détermine la fin des paragraphes en bas d'une page et en haut de la suivante: avec la valeur 1 il y aura donc des veuves et des orphelins, la valeur habituelle étant 2 */
widows: 1;
}
NOTA: le texte entre /* */ sont de simples commentaires explicatifs.


Et tu as un joli header 1 avec pas de texte dedans (<h1 class="P-P4" id="calibre_pb_3"><a id="anchor3" class="calibre3"></a><a class="calibre3"></a></h1>). Cool!

Nettoyé, voici ce que donne un extrait de l'une de tes pages:


Quote:
<p>Il convient ensuite d’aborder l’existence de celui qui vint troubler le processus. Axios, était le fils de Baptiste, qu’il avait recueilli bébé, alors qu’il sortait d’un petit village, après une campagne victorieuse près des montagnes du Nord. L’enfant était seul, abandonné, offert au premier qui passerait, Baptiste ressentit la culpabilité du guerrier victorieux et ramassa l’enfant. Avec son épouse, Iona, dès son retour, ils décidèrent de l’élever, comme leur fils. Après une jeunesse turbulente, Axios s’éloigna de la cour, et des conversations guerrières. Préférant la solitude de la forêt, il se fit confectionner des braies en peau, plus adaptées aux grandes escapades, que les drapés du Palais. Il recensa la faune et la flore Ouranienne et découvrait parfois certaines espèces méconnues, qu’il ramenait fièrement, si bien qu’on lui attribuât des quartiers éloignés, à l’arrière du Palais, afin de faire taire les mécontents… Jusqu’à ce que la menace des Doranides arrive. Bien qu’accompagné de deux fidèles gardes, il subit une attaque qui les emporta et il dut son salut à une miraculeuse crevasse, qui le tint hors de portée. À son retour, il fut copieusement sermonné et son père lui fit promettre d’abandonner toute idée de sortie. Iona fit de même. On lui proposa des fonctions plus appropriées à son rang, qu’il méprisa allègrement... </p>

Bien plus lisible, n'est-ce pas.

Écoute je crois qu'il faut que tu fasses des lectures pour mieux comprendre tout cela: epub et css.

Voici quelques liens:

Dernière recommandation: il faut t'assurer que ta source (ton texte) pour créer tes epub soit aussi "pure" que possible. L'utilisation des syles y contribue grandement.

Bonnes lectures Bertrand.

PS Il ne faut pas confondre Axios avec Arios! Sans blague, ton histoire semble vraiment prometteuse. Et tu avais raison: la balise code ne renvoie pas automatiquement le texte à la ligne, c'est pourquoi j'ai utilisé quote.
Arios is offline   Reply With Quote
Old 04-01-2014, 01:17 PM   #80
bertrand47
Member
bertrand47 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2013
Device: Kobo Touch
Je te remercie, tout d'abord, Arios pour le temps que tu as passé sur mon problème, ensuite je me pose un certain nombre de questions :

Tout d'abord, je me demande si je dois suivre tes conseils de lecture, sachant que je n'aurai peut-être qu'une fois par an besoin de faire un epub. J'espérais que Calibre le ferait sans problème, et il le fait apparemment, epubcheck me signale que mon fichier est propre... Alors que je constate qu'il ne l'est pas vraiment ! Ma Kobo me le confirme aussi.

Ensuite, tu me conseilles de m'assurer que ma source texte soit aussi pure que possible, or elle me semblait l'être, j'utilise les styles dans Libreoffice, mais je commence à en douter aussi.

Bref, je vais lire le guide (http://fr.flossmanuals.net/creer-un-epub/index) ...
Et merci encore.
bertrand47 is offline   Reply With Quote
Advert
Old 04-02-2014, 03:53 AM   #81
samhy
Wizard
samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.samhy ought to be getting tired of karma fortunes by now.
 
samhy's Avatar
 
Posts: 1,820
Karma: 9503859
Join Date: Dec 2012
Location: France
Device: (Sony (J) PRS 650), Kobo Mini, Kobo Glo HD
Bon courage Bertrand47
samhy is offline   Reply With Quote
Old 04-02-2014, 09:45 AM   #82
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
Quote:
Je te remercie, tout d'abord, Arios pour le temps que tu as passé sur mon problème...
You're welcome!

Bertrand, je comprends ta perplexité: mais peut-être qu'en lisant là-dessus tu y prendras goût?

La solution la plus simple serait de faire faire ton epub par une boîte spécialisée dans ce domaine: tu pourrais alors consacrer ton temps à autre chose et la somme requise ne devrait pas être énorme.

Cependant puisque tu me dis que ton fichier odt est propre et bien formé, tu pourrais essayer le logiciel que voici: http://amanuensis.pagesperso-orange.fr/

Il y a un fil à son propos ici: https://www.mobileread.com/forums/sho...d.php?t=140855

Le guide qui vient avec ce logiciel (gratuit en passant) est instructif et l'opération de conversion est simple, bien qu'il y ait des paramètres à comprendre et à tester selon tes besoins.

Si les résultats avec Amanuensis son identiques à ceux de Calibre (problèmes avec ta Kobo, codes bizarres), tu sauras alors que ce sont certains codes de ta source qui posent problème.
Arios is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo by FNAC doesn't display book cover hedkandi Kobo Reader 21 05-30-2013 05:10 AM
Glo When will Kobo Glo actually be available in the US? kukafei Kobo Reader 67 03-08-2013 06:05 PM
Kobo by FNAC kumaryu Kobo Reader 3 12-09-2012 07:19 PM
Kobo Glo Vs Kobo Touch Sizes (Want to use my Skindigital cover) Chocky Kobo Reader 3 09-25-2012 10:47 AM
Exemple de livre gratuit à la fnac ? FlorenceArt E-Books 18 05-05-2010 05:14 AM


All times are GMT -4. The time now is 06:25 AM.


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