03-31-2012, 08:37 PM | #301 | |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Now that I've done it, I should be able to do it even faster for the next book. Well, faster relative to the difference in size. And the thing is, now that it is done, I'll have it that way always. |
|
04-01-2012, 05:59 AM | #302 | |
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Can you please list the fonts you used? I'm think as a time waster intellectual exercise of trying this on the UK versions. Cheers, Simon. |
|
Advert | |
|
04-01-2012, 01:14 PM | #303 | |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Quote:
It would also be great if you posted code snippets (the CSS entry and then a single use)! That may be better in the developer section, but it would be great to see what you did for us wannabe epub hackers. -Pie |
|
04-01-2012, 01:55 PM | #304 | |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Quote:
|
|
04-01-2012, 02:26 PM | #305 | |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The following is from the US version of the print edition so the page numbers won't be correct. But the chapters should be correct. Rubeus Hagrid SS [ch.3 pg.34 i ] SS [ch.3 pg.42 i ] SS [ch.4 pg.52 i ] SS [ch.8 pg.135/136 i ] Felt Tip Roman Daily Prophet Headline SS [ch.8 pg.141 i ] Franklin Gothic LT Extra Condensed Headmaster Albus Dumbledore SS [ch.12 pg.202 i ] SS [ch.15 pg.261 i ] Freestyle Script You will have to remove the bold/italics from the headers and places where you use these fonts. One thing I've done that's not related to the fonts is I've changed all their pseudo-blockquotes to true blockquotes. |
|
Advert | |
|
04-01-2012, 02:37 PM | #306 | |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Here are the parts of the CSS code that I've modified. Code:
@font-face { font-family: Garamond; font-style: normal; font-weight: normal; src: url(fonts/AGaramondPro-Regular.otf); } @font-face { font-family: Garamond; font-style: italic; font-weight: normal; src: url(fonts/AGaramondPro-Italic.otf); } @font-face { font-family: Garamond; font-style: normal; font-weight: bold; src: url(fonts/AGaramondPro-Bold.otf); } @font-face { font-family: Garamond; font-style: italic; font-weight: bold; src: url(fonts/AGaramondPro-BoldItalic.otf); } @font-face { font-family: AGSC; font-style: normal; font-weight: normal; src: url(fonts/AGaramondPro-SC.ttf); } @font-face { font-family: Lumos; font-style: normal; font-weight: normal; src: url(fonts/Lumos.ttf); } @font-face { font-family: "Felt Tip Roman"; font-style: normal; font-weight: normal; src: url(fonts/FeltTipRoman.ttf); } @font-face { font-family: FGTCE; font-style: normal; font-weight: normal; src: url(fonts/FranklinGothicLTExtraCondensed.ttf); } @font-face { font-family: FSL; font-style: normal; font-weight: normal; src: url(fonts/FreestyleScriptLT.ttf); } body { font-family: Garamond; widows: 0; orphans: 0; margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; text-align: justify } p { text-indent: 1.2em; margin-top: 0; margin-bottom: 0; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0; font-family: Lumos; font-weight: normal; text-align: center; text-indent: 0 } h1 { font-size: 260%; margin: 0 } h3 { font-size: 100%; margin: 0 } h5 { font-size: 150%; margin: 0 } h2 { font-size: 200%; margin: 0; } h4 { font-size: 90%; margin-top: 20px; margin-bottom: .5em } .letter { font-family: "Felt Tip Roman" } .letter2 { font-family: FSL } .headline { text-indent: 0; text-align: center; font-family: FGTCE } .drop { font-family: Lumos; float: left; font-size: 3.4em; margin-right: 0; font-weight: normal; line-height: .7em; margin-top: .05em } .sc { font-family: AGSC } .title { font-size: 260%; font-family: Lumos; font-style: normal; font-weight: normal; text-indent: 0; margin-left: +0; margin-right: +0; margin-top: 15%; margin-bottom: 1%; text-align: center } The sc style is for the smallcaps. So in the XML, you have to find every instance and convert the uppercase to lowercase. Putting in the code for the fonts was quite easy. If anyone needs to see the actual code in the XML files, I can dig it out to post. If you are using a Kobo reader, the font-family code in the body style will not work. You can try and move it to the p section of the CSS and see if that catches all the instances needed. Last edited by JSWolf; 04-01-2012 at 02:42 PM. |
|
04-01-2012, 06:17 PM | #307 |
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
|
04-02-2012, 09:43 AM | #308 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Never mind, I see you've posted the CSS. Thank you very much for that! Last edited by ilovejedd; 04-02-2012 at 09:48 AM. |
|
04-02-2012, 10:06 AM | #309 | |
Aging Positronic Brain
Posts: 633
Karma: 2155452
Join Date: Jul 2008
Location: Aurora (when off-Earth)
Device: Amazon Oasis; iPhone, iPad Mini
|
Quote:
|
|
04-02-2012, 10:15 AM | #310 |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Well, I was hoping that the US versions of the HP eBooks would have come out with the embedded fonts set up to look like the print version. But they didn't. So I'm doing it myself. Later this week, I'll get to dealing with #2.
|
04-02-2012, 11:32 AM | #311 |
Tea Enthusiast
Posts: 8,554
Karma: 75384937
Join Date: Jul 2010
Location: Somewhere in the USA
Device: Kindle1, Kindle DX Graphite, K3 3G, IPad 3, PW2
|
The British version the fonts look similar to what I remember in the book but I have an awful eye for that type of thing.
|
04-02-2012, 12:01 PM | #312 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
I believe both British and US versions used Garamond (remember reading that somewhere). It's all the fancy fonts that the British version didn't have.
|
04-02-2012, 03:30 PM | #313 |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
04-02-2012, 03:55 PM | #314 |
Techno-geek
Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
Where do you find the US fonts? Are they free or inexpensive?
--MH |
04-02-2012, 05:33 PM | #315 |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Not all of the ones I've used are free.
Lumos is free. The Garamond I've used is not free. I don't know about the smallcaps version. I found that one somewhere online. Felt Tip Roman isn't free. And the others, I'm not sure of. But there may be free versions or similar enough fonts for free that will do. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Harry Potter eBooks to be officially sold | pilotbob | News | 169 | 07-23-2011 01:01 PM |
Does anyone have the Twilight or Harry Potter ebooks? | Heather56 | Amazon Kindle | 4 | 03-02-2011 08:14 PM |
Where can I buy Harry Potter ebooks to read on my onyx boox? | nitrocuadam | General Discussions | 4 | 04-16-2010 05:14 AM |
Harry Potter | happy_terd | Lounge | 1 | 01-21-2010 02:18 PM |
J.K. Rowling Publishes Harry Potter Ebooks on Smashwords (April Fool) | anurag | News | 34 | 04-10-2009 11:35 AM |