-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 416e565
Showing
14 changed files
with
542 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# InDesign ePub Starter Kit | ||
|
||
L’objectif de ce kit de démarrage est de fournir des styles prédéfinis afin d’aider les utilisateurs d’InDesign à structurer sémantiquement leurs documents. Pour de plus amples informations, [consulter ce billet de blog](http://jiminy.chapalpanoz.com/wysiwyg-not-starter-kit-indesign-epub/). | ||
|
||
Il a été conçu pour fonctionner avec toutes les versions d’InDesign capables d’exporter au format ePub. | ||
|
||
## License | ||
|
||
Ce kit de démarrage est placé sous licence [Creative Commons BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/fr/), ce qui signifie que vous pouvez le partager (dans les mêmes conditions et avec attribution) ou l’adapter sans toutefois en faire un usage commercial. | ||
|
||
Je vous encourage donc à l’étendre, le perfectionner voire réaliser des maquettes entières à partir de celui-ci. | ||
|
||
## Installation | ||
|
||
1. Téléchargez ce repo comme fichier ZIP (en haut à droite sur cette page). | ||
2. Dézippez le fichier téléchargé. | ||
3. Créez une nouvelle maquette ou ouvrez un document que vous n’avez pas encore mis en pages. | ||
4. À l’aide du menu contextuel du panneau des styles, chargez tous les styles de texte du document `ID-EPUB-starterkit.indd` (ou `ID-EPUB-starterkit.idml` si vous utilisez une version antérieure à CS6). | ||
5. Les styles de paragraphe et de caractère du kit sont désormais disponibles dans votre document, organisés par groupes thématiques. | ||
|
||
## Utilisation | ||
|
||
Les styles prédéfinis n’ont pas été stylés, ils permettent simplement de structurer dans un premier temps. Seul leur balisage d’export a été travaillé et il vous faudra donc en passer par les options de style pour les modifier visuellement. | ||
|
||
Si des styles de paragraphe et de caractère doivent être ajoutés pour les besoins de la composition, **il faudra prendre soin d'en créer un nouveau à partir d’un style prédéfini et ne surtout pas appliquer de remplacement local sur celui-ci.** | ||
|
||
Une feuille de styles CSS pré-remplie est fournie afin de pouvoir gérer la maquette ePub à part. | ||
|
||
Pour plus de détails, merci de consulter le guide utilisateur qui se trouve dans `assets > UserGuide`. | ||
|
||
## Notes | ||
|
||
- La feuille CSS a été conçue pour fonctionner de concert avec les styles qu’Indesign exporte par défaut, même si l’utilisateur spécifie qu’aucun style ne doit être généré à l’export. | ||
- Par pragmatisme, ce kit a été conçu pour être compatible avec InDesign CS6 (ePub 2). Il devra probablement être complété pour l’export ePub 3 des versions suivantes, *a fortiori* sur les mises en pages plus complexes. | ||
- Certaines choses étant extrêmement complexes à gérer depuis l’interface graphique d’InDesign (`pre`, `dl`, `address` et, plus généralement, tout ce qui concerne les imbrications), des compromis ont dû être faits. Les moins pires solutions ont été privilégiées – pour conserver la compatibilité avec les plus anciennes versions. | ||
- Ce kit ne pourra pas améliorer votre export comme par magie, il a été prévu pour être **mis en place avant que le contenu ne soit traité.** |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container"> | ||
<rootfiles> | ||
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/> | ||
</rootfiles> | ||
</container> |
49 changes: 49 additions & 0 deletions
49
exemple/ID-EPUB-starterkit/OEBPS/Styles/ID-EPUB-starterkit.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, pre, code, blockquote { | ||
margin:0; | ||
padding:0; | ||
border-width:0; | ||
} | ||
td, th { | ||
border-style:solid; | ||
border-width:1px; | ||
} | ||
table { | ||
border-collapse:collapse; | ||
} | ||
li { | ||
display:block; | ||
} | ||
body { | ||
-epub-hyphens:auto; | ||
-webkit-hyphens:auto; | ||
} | ||
@page { | ||
margin : 0px 0px 0px 0px; | ||
} | ||
p.citation { | ||
font-family:"Minion Pro", serif; | ||
font-style:italic; | ||
font-weight:normal; | ||
} | ||
p.source { | ||
font-family:"Minion Pro", serif; | ||
font-style:normal; | ||
font-weight:normal; | ||
} | ||
span.small-caps { | ||
font-size:0.833em; | ||
} | ||
sup.char-style-override-1, sub.char-style-override-1 { | ||
font-size:0.583em; | ||
} | ||
span.char-style-override-2 { | ||
font-family:"Minion Pro", serif; | ||
font-style:normal; | ||
font-weight:normal; | ||
} | ||
span.char-style-override-3 { | ||
font-family:"Minion Pro", serif; | ||
font-style:normal; | ||
font-variant:normal; | ||
font-weight:normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
/* GABARIT */ | ||
|
||
@page { | ||
margin: 24px 0; /* Marges supérieure et inférieure de la page-écran */ | ||
padding: 0; | ||
} | ||
|
||
body { | ||
margin: 0 16px; /* Marges latérales de la page-écran */ | ||
padding: 0; | ||
font-family: "Minion Pro", Marion, Georgia, serif; | ||
font-size: 100%; /* = valeur par défaut = 16px */ | ||
line-height: 1.5; | ||
-ms-hyphenate-limit-lines: 3; | ||
-moz-hyphenate-limit-lines: 3; | ||
-webkit-hyphenate-limit-lines: 3; | ||
hyphenate-limit-lines: 3; | ||
} | ||
|
||
/* Désactivation des césures */ | ||
|
||
h1, h2, h3, | ||
table, th, td { | ||
adobe-hyphenate: none; | ||
-moz-hyphens: none; | ||
-ms-hyphens: none; | ||
-webkit-hyphens: none; | ||
-epub-hyphens: none; | ||
hyphens: none; | ||
} | ||
|
||
/* STYLES DE PARAGRAPHE */ | ||
|
||
/* Titres */ | ||
|
||
h1 { | ||
font-size: 1em; | ||
line-height: 1.5; | ||
margin: 0 0 3em 0; | ||
font-weight: bold; | ||
text-indent: 0; | ||
text-align: center; | ||
} | ||
|
||
h2 { | ||
font-size: 1em; | ||
line-height: 1.5; | ||
margin: 1.5em 0; | ||
font-weight: bold; | ||
text-indent: 0; | ||
text-align: center; | ||
} | ||
|
||
h3 { | ||
font-size: 1em; | ||
line-height: 1.5; | ||
margin: 1.5em 0; | ||
font-weight: bold; | ||
text-indent: 0; | ||
text-align: center; | ||
} | ||
|
||
/* Paragraphes */ | ||
|
||
p { | ||
font-size: 1em; | ||
text-indent: 1em; | ||
line-height: inherit; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
/* Citations */ | ||
|
||
blockquote { | ||
font-size: 1em; | ||
line-height: inherit; | ||
margin: 1.5em 5%; | ||
text-align: right; | ||
} | ||
|
||
.citation { | ||
text-indent: 0; | ||
font-style: italic; | ||
} | ||
|
||
.source { | ||
display: block; | ||
text-indent: 0; | ||
} | ||
|
||
/* Listes */ | ||
|
||
ul { | ||
list-style-type: disc; /* remplacer par "none" pour export jusqu'à CS6 */ | ||
margin: 1.5em 0; | ||
padding-left: 5%; | ||
} | ||
|
||
ol { | ||
list-style-type: decimal; /* remplacer par "none" pour export jusqu'à CS6 */ | ||
margin: 1.5em 0; | ||
padding-left: 5%; | ||
} | ||
|
||
li { | ||
font-size: 1em; | ||
line-height: inherit; | ||
} | ||
|
||
/* Tableaux */ | ||
|
||
table { | ||
margin: 1.5em auto; | ||
max-width: 100%; | ||
} | ||
|
||
tr { | ||
|
||
} | ||
|
||
th { | ||
|
||
} | ||
|
||
td { | ||
|
||
} | ||
|
||
/* Medias */ | ||
|
||
img { | ||
width: auto; /* Pour conversion Kindle, max-width n'étant pas supporté par mobi */ | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
/* STYLES DE CARACTÈRE */ | ||
|
||
i, em, cite { | ||
font-style: italic; | ||
} | ||
|
||
b, strong { | ||
font-weight: bold; | ||
} | ||
|
||
a { | ||
color: inherit; | ||
text-decoration: underline; | ||
} | ||
|
||
small { | ||
font-size: 75%; | ||
} | ||
|
||
.small-caps { | ||
font-size: 75%; /* font-variant pas supporté RMSDK et plus obligatoire EPUB 3 */ | ||
} | ||
|
||
sup { | ||
font-size: 75%; | ||
line-height: 1.2; | ||
vertical-align: sup; | ||
vertical-align: 35%; | ||
} | ||
|
||
sub { | ||
font-size: 75%; | ||
line-height: 1.2; | ||
vertical-align: sub; | ||
vertical-align: -10%; | ||
} | ||
|
||
code { | ||
font-family: "Courier New", Courier, monospace; | ||
} | ||
|
||
abbr { | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
exemple/ID-EPUB-starterkit/OEBPS/Text/Styles-semantiques.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Styles-semantiques</title> | ||
|
||
<link href="../Styles/ID-EPUB-starterkit.css" rel="stylesheet" type="text/css"/><link href="../Styles/kit.css" rel="stylesheet" type="text/css"/></head> | ||
|
||
<body id="Styles-semantiques" xml:lang="fr-FR"> | ||
<div class="Bloc-de-texte-standard"> | ||
<h1>La simplicité</h1> | ||
|
||
<blockquote> | ||
<p class="citation">Simplicity is the ultimate sophistication.<br/></p> | ||
|
||
<p class="source">Leonard de Vinci</p> | ||
</blockquote> | ||
|
||
<p>Od quo odic tessunt laborae. Enihicid qui ommodipis rerepratio. Nequi od ut estrum necabo. Nam, tem facessimus.</p> | ||
|
||
<p>Apid quidebitium fuga. Int, quunt au <span class="small-caps">XIX</span><sup class="char-style-override-1">e</sup> siècle que nous avons privilégié H<sub class="char-style-override-1">2</sub>O, ium etur acerio exceptaquati ant ut quatem aspis volorem aditatiumque remque es preprep rovitiis ad quam fugia aut exeri de nulpa dolupta que conserit repellut explitat reperem exped eatior <cite>L’Étranger</cite> de Camus, conet, alique magnam eum vendi ut uteseceatur molendi vitatio. Liquibus elibus dolorrovidus si berum exersperchil magnit re et invel eligendit et pre inis aliquo esti ius eiciusam es vendit parum rem arumet magnist eos es escilla ceperia dolessi oditia quiae dolorehent alignis enderunt, to ere doluptat liquam, totaqui renti doloribus, qui voluptatem eum intia cones que nulpa ventent.</p> | ||
|
||
<p>Optae seque et est aborum hilleni <i>mot étranger</i> ecataer ciistec eprempe llabora cullori busdamusae solessi dolorendam dolessequid ea dunt atiuria doloratem hit utatempor sitia quiam fuga. Xere volo bernatectia dolum re vendi delenda ntorion ectiass enderum qui re nusa siminus alis et, tem eum vitaeped mollent, et officium fuga. Orempos acia voluptatur, et providi piendel iquidi occabor secabores ea conseque nis doles plaborate net ut optatem perupti inctatem aut ut qui duci doluptiur, totat.</p> | ||
|
||
<h2>Que sam vere ent</h2> | ||
|
||
<p><em>L’emphase est importante.</em></p> | ||
|
||
<p><strong>L’avertissement l’est encore plus.</strong></p> | ||
|
||
<p>Doluptate assimolo vendictur sunt ad quamenis maximoluptam acernam iliquam nullendi consequas erro expereh enimet ent quam, optasin natiorr ovitate net ut lignisi tation re di omnimet alit atium sim dolorepro illam necti am, ium a sintemp erest, sum expla pos am, nis aut rae exceruptaes mossus aut que dest, es qui occullaborae conet landis qui id modi quunturiae es ex eturest aribusc iuntusdam, siti siminctur millo moluptae vendae ventiis et asi omnis derem nus provit, alit es quidunt velendis et quaspie nditaturit doloreribus.</p> | ||
|
||
<p>Ape con cone volorro electia ni quisqui ditis volum enda si apit quias diciis aut velit pe numque volorem acestiur maximodi atium quia nem autatiis imil est, temporenis et alis qui a consed mo quiat.</p> | ||
|
||
<h3>Bus ea</h3> | ||
|
||
<p><b>Gras de présentation.</b></p> | ||
|
||
<p>Adit quaes imi : Commod ma dis se lab ipsunt alistion consequatia nulpa volupta tempossi audaes quod quam culpa audam alibusam, quaeceaquosa dita accum elit audio officie ndelenist, sequi aut am dolupta ssunte prae latur sit quam res rem acerio. Nam rem enda : Voloraest lat in cus alignatem vollaborem quam faccus magnimil moluptat repe nusapis torpori tasped ut pori bea vellestio. Il faut utiliser des valeurs relatives en <abbr>EPUB</abbr>, par exemple <code>font-size:1em</code>, et ne surtout pas utiliser des valeurs absolues.</p> | ||
|
||
<p>Met ex entibus.</p> | ||
|
||
<p><small>© Éditeur, janvier 2015.</small></p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="bookid" version="2.0"> | ||
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:identifier id="bookid">urn:uuid:3DE66F4E-51F7-41CA-8E28-B46D2BB0B3A5</dc:identifier> | ||
<dc:title>Id-ePub Starter Kit</dc:title> | ||
<dc:creator xmlns:opf="http://www.idpf.org/2007/opf" opf:file-as="Panoz, Jiminy" opf:role="aut">Jiminy Panoz</dc:creator> | ||
<dc:language>fr</dc:language> | ||
<dc:date xmlns:opf="http://www.idpf.org/2007/opf" opf:event="">2014-12-07</dc:date> | ||
<dc:date xmlns:opf="http://www.idpf.org/2007/opf" opf:event="modification">2016-03-13</dc:date> | ||
<meta content="Adobe InDesign" name="generator" /> | ||
<meta content="0.8.7" name="Sigil version" /> | ||
</metadata> | ||
<manifest> | ||
<item href="Text/Styles-semantiques.xhtml" id="Styles-semantiques" media-type="application/xhtml+xml" /> | ||
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" /> | ||
<item href="Styles/ID-EPUB-starterkit.css" id="ID-EPUB-starterkit.css" media-type="text/css" /> | ||
<item href="Styles/kit.css" id="kit.css" media-type="text/css" /> | ||
</manifest> | ||
<spine toc="ncx"> | ||
<itemref idref="Styles-semantiques" /> | ||
</spine> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | ||
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" | ||
"http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> | ||
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> | ||
<head> | ||
<meta content="urn:uuid:3DE66F4E-51F7-41CA-8E28-B46D2BB0B3A5" name="dtb:uid"/> | ||
<meta content="0" name="dtb:depth"/> | ||
<meta content="0" name="dtb:totalPageCount"/> | ||
<meta content="0" name="dtb:maxPageNumber"/> | ||
</head> | ||
<docTitle> | ||
<text/> | ||
</docTitle> | ||
<navMap> | ||
<navPoint id="navpoint1" playOrder="1"> | ||
<navLabel> | ||
<text>Styles-semantiques</text> | ||
</navLabel> | ||
<content src="Text/Styles-semantiques.xhtml"/> | ||
</navPoint> | ||
</navMap> | ||
</ncx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
application/epub+zip |
Oops, something went wrong.