Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-08-2011, 10:12 AM   #61
vishcompany
Addict
vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.
 
vishcompany's Avatar
 
Posts: 283
Karma: 138550
Join Date: Mar 2009
Device: Gen3(†); PB302(↓); PRS-350; T1; voyage
Quote:
Originally Posted by xuyn2003 View Post
My question is, is there any shell to remove the bind? I typed umount /sdcard/fonts/, but get a word "failed", now I can only reboot to remove the bind.
Busybox has a lot of commands ready. To view them, just type busybox as root.

To execute a command, add busybox before your command, in your cas this would be busybox umount...

I did not try this, though, so please confirm, if it works for your case.

There is also bash 3.2
You can switch by typing bash as root.
vishcompany is offline   Reply With Quote
Old 12-08-2011, 12:36 PM   #62
vishcompany
Addict
vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.vishcompany can fool all of the people all of the time.
 
vishcompany's Avatar
 
Posts: 283
Karma: 138550
Join Date: Mar 2009
Device: Gen3(†); PB302(↓); PRS-350; T1; voyage
Back to topic

I just read this thread beginning to end once more, as I faced the exact problem as the op.

There is a lot of discussion and some interesting results. However, no one seemed to notice, that the answer to the actual question "How do I get my T1 to changing the fonts?" was given very early in #3 (or did I badly miss something?):

Quote:
Originally Posted by rrutkows View Post
I also have noticed this issue with my new PRS-T1. Accidentally a new version (0.8.27) of Calibre has just been released with a new feature of "removing specified style information (CSS) from the document during conversion". I'm going to see if it helps at the earliest opportunity.
I just reconverted a whole bunch of books and it works fine. You only have to be careful, if there are embedded fonts and you want to keep these. They will get lost by using this method. But for the rest, it's just what I was looking for.

So thanks to rrutkows!
vishcompany is offline   Reply With Quote
Old 12-08-2011, 10:04 PM   #63
flameproof
Member
flameproof began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Dec 2011
Device: Sony PRS-T1
Quote:
Originally Posted by jackie_w View Post
The file DroidSansFallback.ttf is already in your T1 in an area which is not user-visible. You do not need to copy it. You access it via
Code:
src:url(res:///ebook/fonts/DroidSansFallback.ttf)
in the epub css, not
Code:
src:url(res:///Sony_Reader/data/fonts/DroidSansFallback.ttf)
Doh! I feel a bit silly now. The only thing to make it display Chinese EPUB I had to do was, open the EPUB and add:

Code:
@font-face {
   font-family: "DroidSans", serif, sans-serif;
   src:url(res:///ebook/fonts/DroidSansFallback.ttf);
   }
That's all!

Thank you so much / 谢谢你!
Attached Thumbnails
Click image for larger version

Name:	ereader.jpg
Views:	369
Size:	52.9 KB
ID:	79771  
flameproof is offline   Reply With Quote
Old 12-09-2011, 05:25 AM   #64
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 flameproof View Post
Doh! I feel a bit silly now. The only thing to make it display Chinese EPUB I had to do was, open the EPUB and add:

Code:
@font-face {
   font-family: "DroidSans", serif, sans-serif;
   src:url(res:///ebook/fonts/DroidSansFallback.ttf);
   }
That's all!

Thank you so much / 谢谢你!
You can also try with src:url(res:///ebook/fonts/SWNMTeb.ttc);
seabee is offline   Reply With Quote
Old 12-09-2011, 09:01 AM   #65
rrutkows
Junior Member
rrutkows has a complete set of Star Wars action figures.rrutkows has a complete set of Star Wars action figures.rrutkows has a complete set of Star Wars action figures.rrutkows has a complete set of Star Wars action figures.rrutkows has a complete set of Star Wars action figures.
 
Posts: 3
Karma: 496
Join Date: Oct 2011
Location: Poland
Device: Sony PRS-T1
Quote:
Originally Posted by vishcompany View Post
I just read this thread beginning to end once more, as I faced the exact problem as the op.

There is a lot of discussion and some interesting results. However, no one seemed to notice, that the answer to the actual question "How do I get my T1 to changing the fonts?" was given very early in #3 (or did I badly miss something?):



I just reconverted a whole bunch of books and it works fine. You only have to be careful, if there are embedded fonts and you want to keep these. They will get lost by using this method. But for the rest, it's just what I was looking for.

So thanks to rrutkows!
No problem. And thanks for testing it - to this day I haven't tried it myself. Good to know it works.
rrutkows is offline   Reply With Quote
Old 12-09-2011, 12:04 PM   #66
log
...
log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.
 
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
Quote:
Originally Posted by jackie_w View Post
For some reason, Calibre conversions put ExtraCSS @font-face statements inside each of the html content files rather than into the css file. It should still work correctly when you read it on your T1.
Jackie, do you know calibre supports a feature that can modify epub CSS when sending to a particular device?

If so it would be nice if we can setup calibre to setup an "alternate" default font for example, always use Amasis with proper italics/bold instead of always changing the font and making sure the bold/italics work in reader UI.
log is offline   Reply With Quote
Old 12-09-2011, 12:28 PM   #67
jackie_w
Grand Sorcerer
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: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by log View Post
Jackie, do you know calibre supports a feature that can modify epub CSS when sending to a particular device?

If so it would be nice if we can setup calibre to setup an "alternate" default font for example, always use Amasis with proper italics/bold instead of always changing the font and making sure the bold/italics work in reader UI.
As part of the send-to-device? Not that I know of. The only 2 ways I know of using Calibre are:
  1. Put the @font-faces in the ExtraCSS box and do a conversion to epub (even if it's already an epub)
  2. Use Tweak epub to explode the epub and copy in the @font-faces manually.
I'm currently using the second option because, as I mentioned before, the first option copies the @font-faces into every html file. This isn't a problem until you want to remove them again, when it becomes a bit of a pain-in-the-proverbial. Also I'd rather not convert epub-to-epub unless I really have to.
jackie_w is offline   Reply With Quote
Old 12-09-2011, 12:54 PM   #68
log
...
log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.
 
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
Quote:
Originally Posted by jackie_w View Post
As part of the send-to-device? Not that I know of. The only 2 ways I know of using Calibre are:
  1. Put the @font-faces in the ExtraCSS box and do a conversion to epub (even if it's already an epub)
  2. Use Tweak epub to explode the epub and copy in the @font-faces manually.
I'm currently using the second option because, as I mentioned before, the first option copies the @font-faces into every html file. This isn't a problem until you want to remove them again, when it becomes a bit of a pain-in-the-proverbial. Also I'd rather not convert epub-to-epub unless I really have to.
Thanks, I was hoping for something automated, but I also would rather go with the manual tweaking of epub than have the font styles on every HTML file in the epub instead of just the main CSS file.
log is offline   Reply With Quote
Old 12-09-2011, 02:18 PM   #69
nosnoop
Enthusiast
nosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavensnosnoop is a rising star in the heavens
 
Posts: 45
Karma: 13564
Join Date: Nov 2011
Device: Kindle Paperwhite; PRS-T1
Quote:
Originally Posted by jackie_w View Post
I'm currently using the second option because, as I mentioned before, the first option copies the @font-faces into every html file. This isn't a problem until you want to remove them again, when it becomes a bit of a pain-in-the-proverbial.
When you do a epub to epub conversion, it saves the original one as ORIGINAL_EPUB. So if you need to convert again, I believe it would use the ORIGINAL_EPUB (without all the @font-face in each html files) instead of the modified ones. If that's the case, wouldn't it solve your concern about the difficulty in removing them?

Manual addition is OK for a few files, but if you have hundreds of files to convert.....
nosnoop is offline   Reply With Quote
Old 12-09-2011, 03:17 PM   #70
jackie_w
Grand Sorcerer
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: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by nosnoop View Post
When you do a epub to epub conversion, it saves the original one as ORIGINAL_EPUB. So if you need to convert again, I believe it would use the ORIGINAL_EPUB (without all the @font-face in each html files) instead of the modified ones. If that's the case, wouldn't it solve your concern about the difficulty in removing them?

Manual addition is OK for a few files, but if you have hundreds of files to convert.....
Yes, I do have the ORIGINAL_EPUB option switched on, so no disasters can occur. The aversion to epub-to-epub is deeply ingrained from early disasters before this feature was available

It's a personal preference to try and keep retail epubs as close to the original as possible, but with a few minor tweaks for margins, para-spacing without restructuring the whole epub. It's not necessarily logical although I do try to keep the Calibre library version in a state where it can be transferred to any of my readers. The T1 @font-faces are not suitable for the earlier Sony models or the Pocketbook. For my purposes it's better to add the T1 @font-faces to the epub once it's already on the T1 so I have to manually explode the epub rather than using Calibre Tweak epub.

I never do bulk conversions, too much of a control freak, I'm afraid. I only tweak them just before I read them, it saves re-tweaking when I get a new reader or learn a new trick.
jackie_w is offline   Reply With Quote
Old 12-12-2011, 02:07 PM   #71
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: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by seabee View Post
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.
Does this work still for the newest firmware (1.0.03.11140)?
JSWolf is offline   Reply With Quote
Old 12-12-2011, 03:11 PM   #72
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 JSWolf View Post
Does this work still for the newest firmware (1.0.03.11140)?
Yes, no problem
seabee is offline   Reply With Quote
Old 12-12-2011, 03:15 PM   #73
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: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by seabee View Post
Yes, no problem
Thank you.
JSWolf is offline   Reply With Quote
Old 12-13-2011, 07:21 AM   #74
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: 127
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
@seabee
Thank you very much for your testing!
salines is offline   Reply With Quote
Old 12-19-2011, 12:33 PM   #75
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: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
FYI below from another thread. I don't understand where "internal flash" is to put the fonts, but this is very promising.

Quote:
Originally Posted by bigpizza View Post
Un-rooted T1 now can use customized fonts. Got the method from a Chinese forum.

Put the customized font file in the location fonts/ in internal flash.

Add the font path in epub : res:///ebook/fonts/../../mnt/sdcard/fonts/font.ttf

Now it works to use the user's font.

Last edited by pssquirrel; 12-19-2011 at 12:47 PM.
pssquirrel is offline   Reply With Quote
Reply


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:08 AM.


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