Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various EPUB font related enhancements, including automatic font conv…
…ersion.
- Loading branch information
Avdi Grimm
committed
Aug 20, 2013
1 parent
8d74953
commit dcd74cd
Showing
8 changed files
with
204 additions
and
23 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,2 @@ | ||
Open($1) | ||
Generate($2) |
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
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
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
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
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
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
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,115 @@ | ||
@page { | ||
margin: 27mm 16mm 27mm 16mm; | ||
size: $print_page_width $print_page_height; | ||
|
||
@footnotes { | ||
border-top: thin solid black; | ||
padding-top: 0.3em; | ||
margin-top: 0.6em; | ||
margin-left: 0%; | ||
margin-bottom: 1em; | ||
} | ||
} | ||
|
||
|
||
/* define default page and names pages: cover, blank, frontmatter */ | ||
|
||
@page :left { | ||
@top-left { | ||
font: 11pt $font, serif; | ||
content: $title; | ||
vertical-align: bottom; | ||
padding-bottom: 0.5em; | ||
border-bottom: thin solid black; | ||
} | ||
|
||
@bottom-left { | ||
font: 11pt $font, serif; | ||
content: counter(page); | ||
padding-top: 0.5em; | ||
vertical-align: top; | ||
border-top: thin solid black; | ||
} | ||
|
||
@bottom-right { | ||
font: 11pt $font, serif; | ||
content: $rslug; | ||
padding-top: 0.5em; | ||
text-align: right; | ||
vertical-align: top; | ||
border-top: thin solid black; | ||
} | ||
} | ||
|
||
@page :right { | ||
@top-right { | ||
font: 11pt $font, serif; | ||
content: string(header, first); | ||
vertical-align: bottom; | ||
padding-bottom: 0.5em; | ||
margin-bottom: 0.5 em; | ||
border-bottom: thin solid black; | ||
} | ||
|
||
@bottom-left { | ||
font: 11pt $font, serif; | ||
content: $lslug; | ||
padding-top: 0.5em; | ||
vertical-align: top; | ||
border-top: thin solid black; | ||
} | ||
|
||
@bottom-right { | ||
font: 11pt $font, serif; | ||
content: counter(page); | ||
text-align: right; | ||
vertical-align: top; | ||
padding-top: 0.5em; | ||
border-top: thin solid black; | ||
} | ||
} | ||
|
||
@page frontmatter :left { | ||
@top-left { | ||
font: 11pt $font, serif; | ||
content: string(title); | ||
vertical-align: bottom; | ||
padding-bottom: 2em; | ||
} | ||
|
||
@bottom-left { | ||
font: 11pt $font, serif; | ||
content: counter(page, lower-roman); | ||
padding-top: 2em; | ||
vertical-align: top; | ||
} | ||
} | ||
|
||
@page cover { margin: 0; } | ||
|
||
@page frontmatter :right { | ||
@top-right { | ||
font: 11pt $font, serif; | ||
content: string(header, first); | ||
vertical-align: bottom; | ||
padding-bottom: 2em; | ||
} | ||
|
||
@bottom-right { | ||
font: 11pt $font, serif; | ||
content: counter(page, lower-roman); | ||
text-align: right; | ||
vertical-align: top; | ||
padding-top: 2em; | ||
} | ||
} | ||
|
||
@page blank :left { | ||
@top-left { content: normal } | ||
@bottom-left { content: normal } | ||
} | ||
|
||
@page blank :right { | ||
@top-right { content: normal } | ||
@bottom-right { content: normal } | ||
} |