Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2011, 06:02 AM   #16
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
Posts: 126
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
Thanks jackie_w.
I thought that I make something wrong....

At the first time I read that outside epub fonts work (older ereaders than T1) - I decided to use this method - but I have a T1.... So now I know that this doesn't work... What a pity!
salines is offline   Reply With Quote
Old 11-23-2011, 09:16 AM   #17
seabee
Connoisseur
seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.
 
seabee's Avatar
 
Posts: 79
Karma: 40957
Join Date: Aug 2011
Location: Paris, France
Device: Kobo Mini
Quote:
Originally Posted by salines View Post
Thanks jackie_w.
I thought that I make something wrong....

At the first time I read that outside epub fonts work (older ereaders than T1) - I decided to use this method - but I have a T1.... So now I know that this doesn't work... What a pity!
It doesn't work yet ! It's still possible that an unknown (today) external resource path would solve the problem.
seabee is offline   Reply With Quote
Old 11-23-2011, 09:28 AM   #18
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
Posts: 126
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
Maybe we (who wants to use this method) should make a separate thread to show which paths we tried. So we all don't have to try the same paths.
salines is offline   Reply With Quote
Old 11-23-2011, 10:26 AM   #19
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,747
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
These are two I tried ... which failed

Internal mem: src: url(res:///mnt/sdcard/fonts/xxx.ttf)
microSD card: src: url(res:///mnt/extsd/fonts/xxx.ttf)
jackie_w is offline   Reply With Quote
Old 11-25-2011, 01:09 AM   #20
democrite
Connoisseur
democrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notes
 
Posts: 69
Karma: 24566
Join Date: Sep 2011
Device: Sony PRS-T1, iPad, iPhone
For embedding the fonts, I've been using Amasis. That adds about 30-35k to each ePub for each font regular, italic, bold, and bold italic. Not so bad.
democrite is offline   Reply With Quote
Old 11-25-2011, 02:07 AM   #21
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
Posts: 126
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
Quote:
Originally Posted by democrite View Post
For embedding the fonts, I've been using Amasis. That adds about 30-35k to each ePub for each font regular, italic, bold, and bold italic. Not so bad.
+ the time for embedding the fonts.

Maybe I have time to play at the weekend with the paths.
salines is offline   Reply With Quote
Old 11-27-2011, 07:12 AM   #22
seabee
Connoisseur
seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.
 
seabee's Avatar
 
Posts: 79
Karma: 40957
Join Date: Aug 2011
Location: Paris, France
Device: Kobo Mini
Thumbs down Tests

I tried to make an EPUB containing the following stylesheet and paragraphs referencing the corresponding classes (<p class="a">ABC...</p>...) with Sigil, but only the first one (class = "a") was successful, all the others falling back to the default PRS-T1 serif font. I'm sure that /system/fonts/FrutigerNeueLTW1G-Regular.otf exist on the PRS-T1 because I extracted it with ebook_msc.exe (command line: ebook_msc.exe name "PRS-T1" get /system/fonts/FrutigerNeueLTW1G-Regular.otf FrutigerNeueLTW1G-Regular.otf) and embedded it in my test ebook in Fonts subdirectory (in Sigil, at the same level as the Styles directory that referenced it, hence the ../Fonts in MyFont1 definition).
I added a fonts directory containing comic.ttf on my PRS-T1 (=> /mnt/sdcard/fonts/comic.ttf references)
Actually, all references outside of the ebook itself seems to fail

The PRS-T1 have the following font files in /system/fonts folder:
AmasisMTW1G-Bold.otf
AmasisMTW1G-BoldItalic.otf
AmasisMTW1G-Italic.otf
AmasisMTW1G.otf
FrutigerNeueLTW1G-Bold.otf
FrutigerNeueLTW1G-BoldIt.otf
FrutigerNeueLTW1G-Italic.otf
FrutigerNeueLTW1G-Regular.otf
HelveticaMonospacedW1G-Bd.otf
HelveticaMonospacedW1G-BdIt.otf
HelveticaMonospacedW1G-It.otf
HelveticaMonospacedW1G-Rg.otf
PalatinoNovaW1G-Bold.otf
PalatinoNovaW1G-BoldItalic.otf
PalatinoNovaW1G-Italic.otf
PalatinoNovaW1G-Regular.otf
ReallyNo2LTW1G-Bold.otf
ReallyNo2LTW1G-BoldItalic.otf
ReallyNo2LTW1G-Italic.otf
ReallyNo2LTW1G-Regular.otf
UniversNextW1G-Bold.otf
UniversNextW1G-BoldItalic.otf
UniversNextW1G-Italic.otf
UniversNextW1G-Regular.otf
VerdanaW1G-Bold.otf
VerdanaW1G-BoldItalic.otf
VerdanaW1G-Italic.otf
VerdanaW1G.otf
SWNMTeb.ttc (=> SYNMinIWA-Th or SYMinIWA-Th)
Clockopia.ttf
DroidSans-Bold.ttf (=> HelveticaNeueLTW1G-Bd)
DroidSans.ttf (=> HelveticaNeueLTW1G-Roman)
DroidSansArabic.ttf
DroidSansFallback.ttf
DroidSansHebrew.ttf
DroidSansMono.ttf
DroidSansThai.ttf
DroidSerif-Bold.ttf
DroidSerif-BoldItalic.ttf
DroidSerif-Italic.ttf
DroidSerif-Regular.ttf
tt0003m_.ttf (=> Swis721 BT Roman)
tt0011m_.ttf (=> Dutch801 Rm BT Roman)
tt0419m_.ttf (=> Courier10 BT Roman)

My stylesheet.css content:

@font-face {
font-family: MyFont1;
font-weight: normal;
font-style: normal;
src: url(../Fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont2;
font-weight: normal;
font-style: normal;
src: url(/system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont3;
font-weight: normal;
font-style: normal;
src: url(//system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont4;
font-weight: normal;
font-style: normal;
src: url(///system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont5;
font-weight: normal;
font-style: normal;
src: url(res:/system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont6;
font-weight: normal;
font-style: normal;
src: url(res://system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont7;
font-weight: normal;
font-style: normal;
src: url(res:///system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont8;
font-weight: normal;
font-style: normal;
src: url(file:/system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont9;
font-weight: normal;
font-style: normal;
src: url(file://system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont10;
font-weight: normal;
font-style: normal;
src: url(file:///system/fonts/FrutigerNeueLTW1G-Regular.otf);
}
@font-face {
font-family: MyFont11;
font-weight: normal;
font-style: normal;
src: url(/mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont12;
font-weight: normal;
font-style: normal;
src: url(//mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont13;
font-weight: normal;
font-style: normal;
src: url(///mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont14;
font-weight: normal;
font-style: normal;
src: url(res:/mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont15;
font-weight: normal;
font-style: normal;
src: url(res://mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont16;
font-weight: normal;
font-style: normal;
src: url(res:///mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont17;
font-weight: normal;
font-style: normal;
src: url(file:/mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont18;
font-weight: normal;
font-style: normal;
src: url(file://mnt/sdcard/fonts/comic.ttf);
}
@font-face {
font-family: MyFont19;
font-weight: normal;
font-style: normal;
src: url(file:///mnt/sdcard/fonts/comic.ttf);
}
p {
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-align: left;
text-indent: 0;
}
p.a {
font-family: MyFont1;
}
p.b {
font-family: MyFont2;
}
p.c {
font-family: MyFont3;
}
p.d {
font-family: MyFont4;
}
p.e {
font-family: MyFont5;
}
p.f {
font-family: MyFont6;
}
p.g {
font-family: MyFont7;
}
p.h {
font-family: MyFont8;
}
p.i {
font-family: MyFont9;
}
p.j {
font-family: MyFont10;
}
p.k {
font-family: MyFont11;
}
p.l {
font-family: MyFont12;
}
p.m {
font-family: MyFont13;
}
p.n {
font-family: MyFont14;
}
p.o {
font-family: MyFont15;
}
p.p {
font-family: MyFont16;
}
p.q {
font-family: MyFont17;
}
p.r {
font-family: MyFont18;
}
p.s {
font-family: MyFont19;
}
Attached Files
File Type: epub aa.epub (112.3 KB, 111 views)
seabee is offline   Reply With Quote
Old 11-28-2011, 06:29 AM   #23
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
Posts: 126
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
Thanks for testing.

That's no good result.....
salines is offline   Reply With Quote
Old 11-28-2011, 02:46 PM   #24
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,747
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
@seabee,
Thanks for trying. We need some divine inspiration...
jackie_w is offline   Reply With Quote
Old 11-28-2011, 03:15 PM   #25
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,743
Karma: 17806730
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
delete post

Last edited by JSWolf; 11-28-2011 at 03:22 PM.
JSWolf is online now   Reply With Quote
Old 11-29-2011, 12:20 AM   #26
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 205
Karma: 573170
Join Date: Oct 2011
Device: Sony T2 & T1 (previously PRS-350)
Thanks, Seabee, for doing all this testing and sharing the results!

Last edited by pssquirrel; 11-30-2011 at 02:01 AM.
pssquirrel is offline   Reply With Quote
Old 11-29-2011, 01:58 AM   #27
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
Posts: 126
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
Quote:
Originally Posted by jackie_w View Post
@seabee,
Thanks for trying. We need some divine inspiration...
Maybe the "root-guru" could help....
http://translate.google.com/translat...hp%3Ft%3D21458
salines is offline   Reply With Quote
Old 11-29-2011, 07:48 AM   #28
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,747
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
Quote:
Originally Posted by salines View Post
Maybe the "root-guru" could help....
http://translate.google.com/translat...hp%3Ft%3D21458
The last contact I had with porkupan/boroda he was aware of the problem but had not spent any serious effort looking for a solution, I guess because he was concentrating on his 'root the PRS-T1' project. The 2 options I mentioned in post #19 were based on his info.

It's quite possible that rooting the PRS-T1 and using one of the other epub readers (e.g. CoolReader, FBReader) is a different solution to the problem. However, not everyone will be confident enough to go this way. I have previous experience using FBReader because it is one of the 2 defaults on my PocketBook 360 but I hated it because it ignores most of the epub's css styling - other people love it for exactly the same reason

Like you, I hope one of the technical gurus will take an interest in solving the T1 custom fonts problem at some point, but until then will have to make do with physically embedding fonts in each and every epub to get custom fonts with all Bold and Italics intact.
jackie_w is offline   Reply With Quote
Old 11-29-2011, 05:49 PM   #29
seabee
Connoisseur
seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.seabee writes the songs that make the whole world sing.
 
seabee's Avatar
 
Posts: 79
Karma: 40957
Join Date: Aug 2011
Location: Paris, France
Device: Kobo Mini
Lightbulb Direct reference to PRS-T1 included fonts

I finally succeeded for references to any PRS-T1 integrated font !

for exemple:
@font-face {
font-family: MyFont1;
font-weight: normal;
font-style: normal;
src: url(res:///ebook/fonts/FrutigerNeueLTW1G-Regular.otf);
}

Don't need to include a copy of these fonts in each ePUB !
See my previous list of filenames for fonts you can directly reference.
And now that I found this, I know that references outside of the ebook content are possible, only have to find how to reference user-visible integrated and external flash.
I can also stop trying urls that don't begin with res:/// !

My sample reference 6 of the PRS-T1 fonts without embedding them (obviously in 2.3KB) plus a failed reference to a font added to internal flash.

FYI, I already tried res:///ebook/mnt/sdcard (in the sample) and res:///ebook/sdcard as READER root, both failed, will do more tests tomorrow.
Attached Files
File Type: epub aa.epub (2.3 KB, 148 views)

Last edited by seabee; 11-29-2011 at 06:08 PM. Reason: Added sample and FYI
seabee is offline   Reply With Quote
Old 11-29-2011, 06:07 PM   #30
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,747
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
@seabee,

This is encouraging - hope you find the magic 'external location' soon
jackie_w 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
Hacks how to return to the original font lizayin Amazon Kindle 1 07-07-2011 07:25 PM
Changing original font css in ePub jlbfoot Sony Reader 4 12-28-2010 12:07 PM
Troubleshooting Font size changing Kumabjorn Amazon Kindle 1 07-23-2010 12:49 AM
DR1000 Changing Font-Size ThR iRex 6 06-21-2010 06:29 AM
Book Conversion - Changing Original Texts RWood Sony Reader 13 04-18-2007 01:28 PM


All times are GMT -4. The time now is 01:34 PM.


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