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 05-04-2010, 09:18 AM   #1
agronomia
Junior Member
agronomia began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2010
Device: Sony PRS 505
Comment créer un tableau centré dans un Ebook avec sigil ?

Bonjour à tous,

J'ai besoins de quelques informations pour créer des tableaux avec sigil.

En effet, j'arrive a créer des tableau qui ne font pas la largeur de ma page mais je n'arrive pas à les centrer pour qu'il soit afficher centré par rapport à la zone de lecture sur mon reader, un sony prs 505.

Mais bizarement ces tableaux ont la bonne apparence dans sigil.

Pouvez-Vous M'aider ?

Merci
agronomia is offline   Reply With Quote
Old 05-04-2010, 09:27 AM   #2
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
Tu a centé avec des css ?
Le support de css dans ADE est pas toujours top.
Qu'en dit ADE ?
EowynCarter is offline   Reply With Quote
Advert
Old 05-04-2010, 09:35 AM   #3
agronomia
Junior Member
agronomia began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2010
Device: Sony PRS 505
ADE ? a quoi cela correspond ?
agronomia is offline   Reply With Quote
Old 05-04-2010, 09:40 AM   #4
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
Adobe digital edition.
http://www.adobe.com/products/digitaleditions/

Qui est utilisé entre autre par sony.
EowynCarter is offline   Reply With Quote
Old 05-04-2010, 09:53 AM   #5
agronomia
Junior Member
agronomia began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2010
Device: Sony PRS 505
D'accord !

Personnellement je crée mes ebooks personnels avec Sigil directement au format Epub et je copie se fichier directement dans le PRS-505 via USB. Je n'utilise donc pas "ADE".

Le problème est que sur le reader les tableaux en question sont collés a la marge de gauche, et cela même si j'utilise la balise align="center" dans mes css

Bon j'avoue que j'ai encore du mal avec les css, mais bon, je m'étonne que sigil donne la bonne apparence, mais pas le reader.
agronomia is offline   Reply With Quote
Advert
Old 05-04-2010, 10:25 AM   #6
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,332
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
Moi ça ne m'étone pas.
Sigil utilse webkit pour rendre les ccs. ADE , je ne sais pas, mais je l'ai déja vu ignorer des css que sigil acceptait. (genre first-letter).

Quote:
et je copie se fichier directement dans le PRS-505 via USB. Je n'utilise donc pas "ADE".
La lecture de l'ePub, et du pdf sur le prs-500 et une implémentation d'ADE. D'ou ce que viens faire ADE dans l'affaire.
Télécherge ADE et regarde se qu'il affiche.
EowynCarter is offline   Reply With Quote
Old 05-04-2010, 10:35 AM   #7
agronomia
Junior Member
agronomia began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2010
Device: Sony PRS 505
donc pour faire simple, si je me débrouille pour que "ADE" m'affiche mes tableaux comme je le souhaite, je devrais pouvoir les affichés correctement sur le PRS-505

Je vais creusé l'affaire et je reviendrais vous tenir au courant !

Merci
agronomia is offline   Reply With Quote
Old 05-06-2010, 06:26 AM   #8
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?
bonjour agronomia, les conseils d'eowyn sont bons en général, et ça t'aidera surement de vérifier tes fichiers dans ADE si tu lis sur un sony.

un point à signaler, en général ça sera plus facile de t'aider si tu nous montres au moins une partie de ton code. par exemple, tu parles d'utiliser la balise align="center", est-ce que tu veux dire que tu as mis ça directement dans ton html ? il vaut mieux mettre toutes ces indications dans le css plutôt, en créant une class :

.center{
text-align:center;
}

il faudra appliquer cette class à l'élément qui contient ce que tu voudras centrer ; par exemple, si tu veux centrer le texte à l'intérieur d'un td, tu créeras un < td class="center" > si tu veux centrer ton tableau entier dans la page, tu pourras le mettre à l'intérieur d'une div, à laquelle tu appliqueras la class "center".

en l'occurrence, si tu veux centrer le table entier dans la page, en effet on dirait un bug étrange, ça ne marche pas uniquement en mettant le table à l'intérieur d'une div centrée, mais j'ai trouvé une solution ici (merci llasram) ; il faut donner à la div une règle de "display: inline-table" comme suit :

Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  
<style type="text/css">
.center {text-align:center;
        }

  #wrap > table {
     display: inline-table;
  }
</style>
</head>

<body>
  <div id="wrap" class="center">
    <table width="200" border="1">
      <tr>
        <td>table centré</td>
      </tr>
    </table>
  </div>
</body>
</html>
je joins un epub avec qqs exemples d'éléments centrés pour référence.
Attached Files
File Type: epub centertable.epub (1.9 KB, 1230 views)
zelda_pinwheel 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
Comment trouver et utiliser un dictionnaire dans une liseuse ? glin Assistance 5 10-22-2010 02:26 AM
Problème avec conversion de *.pdf avec calibre panzer Assistance 2 08-24-2010 03:49 AM
UK's Printed Electronics Technology Centre (PETEC) and the Flexible Display Centre ( Dulin's Books News 0 02-18-2010 02:30 PM
Comment créer une recette avec calibre ? KLAO Software 1 02-04-2010 09:17 AM
comment installer la 2.5 de sony ebook library ethanol Sony Reader 4 06-13-2009 09:15 AM


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


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