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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 10-14-2012, 06:31 PM   #31
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,492
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by JSWolf View Post
But is there a way of taking a TTF or OTF font file and subsetting it that works on Windows, OS X, & Linux without the need for Cygwin?
That is rather what we're looking at in this thread. There seems to be code, even python code, out that there might do the job. It's a question of someone having the time to look into it properly, and adapt it for this particular purpose.

Or finding that someone else has already done it.
pdurrant is offline   Reply With Quote
Old 10-15-2012, 01:56 AM   #32
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by JSWolf View Post
But is there a way of taking a TTF or OTF font file and subsetting it that works on Windows, OS X, & Linux without the need for Cygwin?
This is yet another post that clearly shows that don't really understand what you're talking about. Cygwin was primarily created to enable Unix shell programming under Windows. Both Linux and OS X are UNIX derivatives and therefore don't require Cygwin. (Both also natively support the most common scripting languages and UNIX shell programming.)
I.e. Cygwin is not the problem. The problem is adapting existing scripts for this special task.

@pdurrant:
I had a look at the links that you posted and it seems that the first one fits the bill perfectly. The Web Font Optimizer web site uses it for subsetting and it works nicely with the predefined free fonts, but it's not possible to select custom fonts.
I tried to create an offline version by pulling the source files, but I couldn't get it to work, because there was one dependency that I couldn't resolve.
(It was probably just a stupid beginner's mistake like a wrong folder structure or a missing or outdated CPAN module.)
Maybe someone with better technical skills than me could get it to work offline.
Doitsu is offline   Reply With Quote
Old 04-13-2013, 01:37 AM   #33
tobias.wantzen
Member
tobias.wantzen began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2011
Device: none
What about ...

Any progress on this topic meanwhile? It's still very interesting I think.

Have you thought about this tool:
http://www.fontsquirrel.com/tools/webfont-generator

In the Export settings you can choose »Custom Subsetting« in any way you want.

Cheers
Tobias
tobias.wantzen is offline   Reply With Quote
Old 04-13-2013, 01:53 AM   #34
Freeshadow
temp. out of service
Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.
 
Posts: 2,790
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
Kovid has an implementation inside calibre and Toxaris works on a stand-alone. Both worth mentioning. Search the forum.

An 3rd party online tool like squirrel isn't the optimal solutions unless you feel good with sending your files to somebody's servers.
Personally I won't see the problem fully solved until I see a tool fully capable of parsing epub and trimming every font file inside while respecting ligatures and used alternative chars. As for now this is (like many others) an optimisation step requiring manual tweaking.
Freeshadow is offline   Reply With Quote
Old 04-13-2013, 05:53 AM   #35
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Freeshadow View Post
Kovid has an implementation inside calibre and Toxaris works on a stand-alone. Both worth mentioning. Search the forum.

An 3rd party online tool like squirrel isn't the optimal solutions unless you feel good with sending your files to somebody's servers.
Personally I won't see the problem fully solved until I see a tool fully capable of parsing epub and trimming every font file inside while respecting ligatures and used alternative chars. As for now this is (like many others) an optimisation step requiring manual tweaking.
I've used Toxaris' method a number of times without any problems. Yes, it has a few manual steps, mostly tedious; (open the ePUB with whatever unzipping method you want to use, copy the font file(s) over somewhere else, merge the files, copy the text/html, put it in Toxie's box, click for the subset, then make the new subsetted font(s).) Then replace all the original fonts with the subsets. It's a bit tiresome, but it works, which is a huge help.

I will say, though, that Barb tells me that it crashed her computer. I think that it's simply not that intuitive to use; it's not clear that you do a-b-c (the sequence, I mean). I know that sounds idiotic, but it isn't. If I'd written it myself, I swear I'd have put numbers next to the various fields. I have to look at it every time I use it to remind myself "paste the text here first, then get the subset, then put the original font file in there, then click that, then..." As I said, yes, I know it makes me sound idiotic, but I don't find it that intuitive in terms of sequence, and I suspect that something along those lines is what caused her computer to crash. (To be precise, she had to manually reboot it).

Maybe it's as simple as the "select font" and "New Font" fields are above the Characters field, when you need to determine the characters first. {shrug}. And the Create subset button is above the "Characters in Subset" box; I think I actually clicked that once early on, thinking it was the "determine unique characters" function; don't know precisely what it is, but it does throw me. I have, in a time crunch, used Calibre's function and swapped out subsetted font sets, but I prefer to use Toxaris' macro, as it never feels quite right to me to use Calibre for anything on a commercial book, even something as small as subsetting.

FWIW.

Hitch
Hitch is offline   Reply With Quote
Old 04-13-2013, 01:39 PM   #36
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Hitch, I wasn't aware but it makes sense. For me the interface was logical, probably because I created it... I will release an intermediate version with numbers and a slightly changed interface.
The newer version that can open ePUB has been delayed due to other obligations. The OS/2 Version change will not happen for now. It seems that is too hard to do for me other than utilizing FontForge.
Toxaris is offline   Reply With Quote
Old 04-13-2013, 04:24 PM   #37
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Toxaris View Post
Hitch, I wasn't aware but it makes sense. For me the interface was logical, probably because I created it... I will release an intermediate version with numbers and a slightly changed interface.
The newer version that can open ePUB has been delayed due to other obligations. The OS/2 Version change will not happen for now. It seems that is too hard to do for me other than utilizing FontForge.
Oh, Tox:

I'm sorry. I wasn't complaining, that's not what I meant. I was trying to really say something positive about it, but in reviewing it, I see it came out very negative-sounding, sorry. But I admit, I do have to think about it every time I use it, just because, being the OCD-ness that I am, I expect "stuff" to go from top-to-bottom. Dumb, dumb, dumb, I know. Don't take my dumb-ness as meaning that anyone else finds it confusing, please. ;-) It's a super tool and I'm happy to have it.

Hitch
Hitch is offline   Reply With Quote
Old 04-13-2013, 04:45 PM   #38
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Don't worry, I know you by now. You had valid points. The new version I posted works from top to down...
Toxaris is offline   Reply With Quote
Old 04-16-2013, 01:09 PM   #39
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: 73,887
Karma: 128597114
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 Freeshadow View Post
Kovid has an implementation inside calibre and Toxaris works on a stand-alone. Both worth mentioning. Search the forum.

An 3rd party online tool like squirrel isn't the optimal solutions unless you feel good with sending your files to somebody's servers.
Personally I won't see the problem fully solved until I see a tool fully capable of parsing epub and trimming every font file inside while respecting ligatures and used alternative chars. As for now this is (like many others) an optimisation step requiring manual tweaking.
The Calibre method works. Why not give that a try. It also deletes unused font files. You can use the new Polish books feature and just subset the fonts.
JSWolf is offline   Reply With Quote
Old 04-17-2013, 04:34 AM   #40
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by JSWolf View Post
The Calibre method works. Why not give that a try. It also deletes unused font files. You can use the new Polish books feature and just subset the fonts.
Wolfie:

I can't quite explain it. {shrug}. Somehow, I just don't feel right about it. It's inexplicable, from a logic standpoint. I know it does not make a difference, but that could drive a person batty. Just bad juju, I guess. I mean...we get asked, at least 5x a week, two questions, those being:
  1. How do I know you won't steal my book? (phrased less bluntly, but...), and,
  2. Are you using Calibre to make my book?

...to which I answer "no" to the latter and try not to strangle someone for the former. (No, we don't have TIME to read these to even know which would be worth stealing, if we were dishonest!) The stealing question always gets my hackles up, but I understand why they ask the first question--they want to know that they're getting what they pay for, hand-crafted ePUBs, basically.

Hell. I don't know, it certainly would be fast. ;-)

Hitch
Hitch is offline   Reply With Quote
Old 04-19-2013, 02:32 AM   #41
tobias.wantzen
Member
tobias.wantzen began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2011
Device: none
Cross Link to Toxaris’ FontShrinker

Thanks for your answers. I hadn't seen Toxaris’ tool. To save a bit of search work for all those who stumble across this thread - FontShrinker could be found here:
https://www.mobileread.com/forums/sho...d.php?t=203163

Tobias
tobias.wantzen is offline   Reply With Quote
Old 04-21-2013, 10:36 PM   #42
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: 73,887
Karma: 128597114
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 Hitch View Post
Wolfie:

I can't quite explain it. {shrug}. Somehow, I just don't feel right about it. It's inexplicable, from a logic standpoint. I know it does not make a difference, but that could drive a person batty. Just bad juju, I guess. I mean...we get asked, at least 5x a week, two questions, those being:
  1. How do I know you won't steal my book? (phrased less bluntly, but...), and,
  2. Are you using Calibre to make my book?

...to which I answer "no" to the latter and try not to strangle someone for the former. (No, we don't have TIME to read these to even know which would be worth stealing, if we were dishonest!) The stealing question always gets my hackles up, but I understand why they ask the first question--they want to know that they're getting what they pay for, hand-crafted ePUBs, basically.

Hell. I don't know, it certainly would be fast. ;-)

Hitch
To me it makes no sense. I've been using the font subsetting in Calibre and it works well. I don't see any reason not to use it. The answer to #2 would be... "We are just using Calibre to subset the embedded fonts. Calibre is not used for any sort of conversion."
JSWolf is offline   Reply With Quote
Old 04-22-2013, 02:59 AM   #43
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by JSWolf View Post
To me it makes no sense. I've been using the font subsetting in Calibre and it works well. I don't see any reason not to use it. The answer to #2 would be... "We are just using Calibre to subset the embedded fonts. Calibre is not used for any sort of conversion."
Wolfie, my sweet:

I didn't say it made sense. ;-) In fact, I think I came right out and said it didn't. What can I say? Chalk it up to my own eccentricity. After all, I wouldn't be the only eccentric here, now, would I?

Hitch
Hitch is offline   Reply With Quote
Old 04-22-2013, 03:33 AM   #44
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
To me, it does make sense though.
Toxaris is offline   Reply With Quote
Old 04-22-2013, 10:33 AM   #45
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Makes sense to me as well. Trying to explain what font subsetting IS would be hard enough, let alone trying to explain how you only use Calibre for one thing and not another. The only thing the customer would hear is "yes, we are using Calibre to convert your book but charging you a 'hand crafted' price."
Turtle91 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
group an ARBITRARY subset of records RotAnal Library Management 6 10-09-2012 11:53 AM
Working with Fonts and Calibre kiwidude Development 8 03-04-2011 07:49 PM
Fonts not working in a converted book snape Sony Reader 9 11-08-2010 11:46 PM
Changing fonts not working? tselling Astak EZReader 11 09-21-2009 03:03 PM
Why are some fonts not working?? daviddem HanLin eBook 4 01-22-2009 09:14 AM


All times are GMT -4. The time now is 07:04 PM.


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