Skip to content

Commit

Permalink
Add Jura font for greek translation
Browse files Browse the repository at this point in the history
  • Loading branch information
pkolios committed Jun 17, 2017
1 parent 0c612d1 commit b5b190e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
Binary file added assets/fonts/jura_regular.ttf
Binary file not shown.
17 changes: 11 additions & 6 deletions core/book.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def initialize name
@name = name[$lang]
@pages = []
@style = "
@font-face { font-family: 'Jura'; src: url('assets/fonts/jura_regular.ttf') format('truetype'); font-weight: normal; font-style: normal; }
@page { size: 148mm 210mm; width:592px; height:840px; margin:0px; padding:0px }
body { font-family:'azuki_font','aquafont','Garamond'; padding:0px; margin:0px;}
page { page-break-after: always; display:block; position:relative; overflow:hidden; background:#ffffff; width:592px; height:820px; border:1px solid #fefefe; }
Expand All @@ -21,14 +23,17 @@ def initialize name
page cedil { display:inline; background-image:url(assets/accent.cedil.svg); background-position:center 0px}
page trema { display: inline-block;background-position: center 0px;height: 15.5px;}
page trema:before { background-color:white; display: inline-block;width: 15px;height: 15px;content: ' ';position: absolute; background-image: url(assets/accent.trema.svg); }
body.lang_el { font-family: 'Jura', sans-serif; }
body.lang_ru h1 { letter-spacing:-12px}
body.lang_el h1 { letter-spacing:-6px}
body.lang_el h1 { letter-spacing:-2px}
body.lang_ru .cover h1 { letter-spacing:-8px}
body.lang_el .cover h1 { letter-spacing:-6px}
body.lang_el .title h1, body.lang_ru .title h1 { letter-spacing:-8px}
body.lang_el .preface p, body.lang_ru .preface p {letter-spacing:-6px}
body.lang_el .illustration h1 { letter-spacing:-12px}
body.lang_el .cover h1 { letter-spacing:-2px}
body.lang_ru .title h1 { letter-spacing:-8px}
body.lang_el .preface p {letter-spacing:-2px}
body.lang_ru .preface p {letter-spacing:-6px}
body.lang_el .illustration h1 { letter-spacing:-2px}
body.lang_ru .thank p {letter-spacing:-6px}
body.lang_el .thank p {letter-spacing:-2px}
"
@increment = 0

Expand Down Expand Up @@ -74,4 +79,4 @@ def build

end

end
end
21 changes: 10 additions & 11 deletions thousand.el.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<html><meta charset='UTF-8'><body class='lang_el'><style>

@font-face {
font-family: 'jura_regular';
src: url('assets/fonts/jura_regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

@font-face { font-family: 'Jura'; src: url('assets/fonts/jura_regular.ttf') format('truetype'); font-weight: normal; font-style: normal; }
@page { size: 148mm 210mm; width:592px; height:840px; margin:0px; padding:0px }
body { font-family:'azuki_font','aquafont','Garamond'; padding:0px; margin:0px;}
page { page-break-after: always; display:block; position:relative; overflow:hidden; background:#ffffff; width:592px; height:820px; border:1px solid #fefefe; }
Expand All @@ -15,14 +11,17 @@
page cedil { display:inline; background-image:url(assets/accent.cedil.svg); background-position:center 0px}
page trema { display: inline-block;background-position: center 0px;height: 15.5px;}
page trema:before { background-color:white; display: inline-block;width: 15px;height: 15px;content: ' ';position: absolute; background-image: url(assets/accent.trema.svg); }
body.lang_el { font-family: 'Jura', sans-serif; }
body.lang_ru h1 { letter-spacing:-12px}
body.lang_el h1 { letter-spacing:-6px}
body.lang_el h1 { letter-spacing:-2px}
body.lang_ru .cover h1 { letter-spacing:-8px}
body.lang_el .cover h1 { letter-spacing:-6px}
body.lang_el .title h1, body.lang_ru .title h1 { letter-spacing:-8px}
body.lang_el .preface p, body.lang_ru .preface p {letter-spacing:-6px}
body.lang_el .illustration h1 { letter-spacing:-12px}
body.lang_el .cover h1 { letter-spacing:-2px}
body.lang_ru .title h1 { letter-spacing:-8px}
body.lang_el .preface p {letter-spacing:-2px}
body.lang_ru .preface p {letter-spacing:-6px}
body.lang_el .illustration h1 { letter-spacing:-2px}
body.lang_ru .thank p {letter-spacing:-6px}
body.lang_el .thank p {letter-spacing:-2px}
page.cover { background:white; overflow:hidden }
page.cover img { width:100% }
page.cover h1 { position:absolute; bottom:100px; color:black; text-transform:uppercase; width:100%; text-align:center; font-weight:normal; font-size:36px }
Expand Down

0 comments on commit b5b190e

Please sign in to comment.