Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2022, 10:59 AM   #1
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,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Font embedding, swash alternatives---no codepoints!

Hey, guys:

I thought the Workshop was feeling bereft and lonely, having not had a new post since before HRH Elizabeth passed, so...what the heck.

I ran into a somewhat interesting issue, the last few days and I hope you're not reading this, thinking that I have some magic wand solution, because I don't. Given what (I think) it would cost to fix this, the client passed on fixing it and went with the standard glyphs, but:

A client sent us an INDD package file, which used the Adobe-available CANTO font. This is a hugely experienced customer--if I say we've done nearly 500-750 eBooks for them, I'm likely not exaggerating. The file used 5 faces--Bold, Light, Roman, SemiBold, Semiboldital (Semi-bold Italic). Right?

But, lo, the book designer used swash alternatives. We use these all the time, sans issue, but this time, what to my wondering eyes should appear when we endeavored to export the HTML/ePUB/anything? (See attached.)

Ixnay on the Ode-points-cay. No codepoints. No Hex (the glyph #454? Nope, not Hex.)

So, instead of the fancy T (and myriad other letters), we ended up with the base font. I told the customer what I thought it would cost, for me to use "my font guy" and create codepoints for +/- 52-ish characters, in all 5 faces, and they decided that they could go Swashless. There were over 100 chapters in the book and 5-6 Parts sections, all of which used the contextual swashes, so making them as images wasn't a) affordable for the customer or b) a quick-n-easy solution for us, either.

But I was wondering if anybody here had a fast-n-easy(ier) way to do this? I mean, to assign codepoints and then deploy them?

I figured if ANYBODY knew, it would be one of you geniuses....???

Hitch
Attached Thumbnails
Click image for larger version

Name:	2022-09-23_11-22-10.jpg
Views:	233
Size:	105.7 KB
ID:	196747  
Hitch is offline   Reply With Quote
Old 09-24-2022, 01:45 PM   #2
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by Hitch View Post
This is a hugely experienced customer--if I say we've done nearly 500-750 eBooks for them, I'm likely not exaggerating.

Hitch
Just being nosey; was that an author or something else?
hobnail is offline   Reply With Quote
Advert
Old 09-24-2022, 05:50 PM   #3
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,503
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 hobnail View Post
Just being nosey; was that an author or something else?
Hob, mon sweetie:

500-750 books for ONE author? Sheesh, you must know some proflific dudes and dudettes!

(ᵒ̤̑ ₀̑ ᵒ̤̑)wow!*✰

it's a print design house, much like my own, that would rather not mess with eBooks, so we white-label their stuff and have for...gosh, IDK, 10 years now, give or take. :-)

Hitch

Last edited by Hitch; 09-24-2022 at 05:52 PM. Reason: ETA to fix my fancy smiley. :-)
Hitch is offline   Reply With Quote
Old 09-24-2022, 06:02 PM   #4
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,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The simplest solution I can think of is to use a similar but different font that's not broken.
JSWolf is offline   Reply With Quote
Old 09-25-2022, 06:22 AM   #5
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,016
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by JSWolf View Post
The simplest solution I can think of is to use a similar but different font that's not broken.
My thought too. Some fonts are inherently swashed Italic. I think common on menus and wedding invitations. Originally maybe posters for opera or classical music concerts?
Mixing with a similar enough un-swashed serif font and matching size & weight may be "fun".
Quoth is offline   Reply With Quote
Advert
Old 09-25-2022, 11:14 AM   #6
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,503
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 Quoth View Post
My thought too. Some fonts are inherently swashed Italic. I think common on menus and wedding invitations. Originally maybe posters for opera or classical music concerts?
Mixing with a similar enough un-swashed serif font and matching size & weight may be "fun".
Yes, boys, but most--until now, all, that I've seen--have codepoints/hex. THIS one does not. A bloody Adobe font!

Hitch
Hitch is offline   Reply With Quote
Old 09-25-2022, 07:52 PM   #7
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,347
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I'm going to pretend to display font ignorance here...for the betterment of everyone else who is wondering and not wanting to display their own level of understanding (of course)

What are codepoints and why are they important??
Turtle91 is online now   Reply With Quote
Old 09-25-2022, 08:18 PM   #8
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by Turtle91 View Post
I'm going to pretend to display font ignorance here...for the betterment of everyone else who is wondering and not wanting to display their own level of understanding (of course)

What are codepoints and why are they important??
Aparently, it is a way to represent 1,114,112 characters, err graphenes, with 16 bits.

https://en.wikipedia.org/wiki/Code_point
j.p.s is offline   Reply With Quote
Old 09-25-2022, 08:59 PM   #9
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,503
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 j.p.s View Post
Aparently, it is a way to represent 1,114,112 characters, err graphenes, with 16 bits.

https://en.wikipedia.org/wiki/Code_point
Yes, okay--then everybody forget I said codepoints. Pretend I said character codes. Either way, the long/short of it is that there is no there there. Can't make a character appear w/o codes.

(I mean, without making it an image, which obviously, <> ideal.)

Hitch
Hitch is offline   Reply With Quote
Old 09-26-2022, 12:39 AM   #10
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
... ...

Last edited by hobnail; 09-26-2022 at 12:42 AM.
hobnail is offline   Reply With Quote
Old 09-26-2022, 12:41 AM   #11
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
How are code points used in html, with the numeric html entity?
hobnail is offline   Reply With Quote
Old 09-26-2022, 05:51 AM   #12
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,745
Karma: 145864619
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
Yes, boys, but most--until now, all, that I've seen--have codepoints/hex. THIS one does not. A bloody Adobe font!

Hitch
Heck, Rakuten Serif (just the regular) is screwed up. It's created by Dalton Maag.

This is one of the new fonts in the latest Kobo firmware.
JSWolf is offline   Reply With Quote
Old 09-26-2022, 09:21 AM   #13
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,503
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 hobnail View Post
How are code points used in html, with the numeric html entity?
As far as I know--and I don't lay claim to being some world-class font expert, by any means--you simply use the same information that you do for any other character, that isn't a typical glyph (a, b, c...) in an HTML environment. Some are used sort of cross-fonts, like using the HTML entities for ellipses, let's say. ike a required space, ellipses, etc, but some--let's say the Abramo Serif Double-Dagger--you'd embed that using the Hex 0x2021 (which is the "codepoint" for that character in that font).



(The font itself doesn't work here, but that's what the character would look like in whatever font this is, here in MR.) Or the "per mille" sign:



But, alas, alack, if a font does not have that--no Hex, no nuthin', there can't be a way to use it, outside of the fairly narrow universe of Adobe and other PRINT layout programs--right? FYI, the "codepoints" for both of those, above, the double dagger and the per-mille, are the same across most fonts.

Aren't we talking the "private use" codepoints in Unicode, or am I starting to lose my marbles here?

H
Hitch is offline   Reply With Quote
Old 09-26-2022, 12:01 PM   #14
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I presume the swash alternatives are specified in an OpenType feature. Can't you just enable the feature in CSS and have them displayed as intended (as long as the renderer supports OpenType features)? It may be possible to programmatically replace all the conventional letters with their swash alteratives, if that's what you want...
Jellby is offline   Reply With Quote
Old 09-26-2022, 01:23 PM   #15
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,503
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 Jellby View Post
I presume the swash alternatives are specified in an OpenType feature. Can't you just enable the feature in CSS and have them displayed as intended (as long as the renderer supports OpenType features)? It may be possible to programmatically replace all the conventional letters with their swash alteratives, if that's what you want...
So, if I understand you, I'd have to do something like this:

Code:
font-variant-alternates: styleset(alt-a);
For each and every alternate letter, is that right?

And the fallback would simply be the non-alternative? Is that right?

I know this seems like I'm overthinking it, but I'm reasonably sure that I've never had to deal with swashes, etc. in the PUA that have no coding at all. Nuthin', nada--hell the OT stuff doesn't even show up in my font manager, which is not some el-cheapo freebie, either. In fact, to see these suckers, (outside of, say, INDD), I have to open them in a font editing/modification/creation program.

Okay, more digging on my part. There's gotta be a more-obvious answer that I'm simply overlooking.

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Embedding font breaks font-family? Calan Amazon Kindle 1 06-13-2020 11:48 AM
Embedding font in books that already have embedded font Barty Calibre 2 10-16-2013 11:38 PM
Font Embedding? teh603 Writer2ePub 75 01-08-2013 07:57 PM
Font embedding sachin Sigil 3 03-21-2012 09:19 AM
Do I need a font license if all I'm doing is referring to the font (not embedding)? Stodder Workshop 21 04-21-2011 04:19 AM


All times are GMT -4. The time now is 06:11 AM.


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