![]() |
#61 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Have a nice day. ![]() |
|
![]() |
![]() |
![]() |
#62 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
Quote:
Let us take a very simple character, like a 'T'. The font tells the computer, "when someone wants to draw a 'T', draw a line straight across X units, then draw a line from the middle Y units down." This is then where font-size comes into account. The computer can multiply those X and Y coordinates by any number. This means I can make the 'T' a "12-pt font", "16-pt font", "72-point font", "1000-pt font", and the 'T' will not lose any clarity and look just as crisp. When making it a 72-point font, the computer just reads the instructions for a 'T' shape, and says "draw a line straight across 72 times further, draw a straight line down in the middle 72 times further": T T T T T T T Now, with images, there is two types: "raster" and "vector". Raster is formats like JPG, PNG, BMP. Vector is formats like SVG, AI. Raster is your typical image of a photograph you see. It tells the computer "stick this shade of red at this exact position on the screen, stick this shade of blue at this exact position on the screen, stick yellow at this exact position on the screen, stick this shade of black at this exact position on the screen...." Side Note: Raster does not scale well at all. If you make the image larger, the computer has to "guess" which colors go where, and the larger you go, the more pixelated the image becomes. See Wikipedia: https://en.wikipedia.org/wiki/Raster_image Vector formats are a lot like the fonts, they are all math based and tell the computer what shapes to draw. So you can scale to any size with zero loss. For example, in that same topic, with the help of RbnJrg, I was able to add an SVG apple right into the text: https://www.mobileread.com/forums/sho...2&postcount=28 Side Note: A "font" is just a special way of packaging a lot of vector images together and storing them in a certain way. Everything is all math based, so you can scale this to any size and not lose any quality. See Wikipedia: https://en.wikipedia.org/wiki/Vector_image So what I meant by "ligatures -> images -> shrink/expand", is pulling out the "shapes" from the font into a format like SVG. And then scaling them like I did the apple. So you can take this "ff" ligature and stick it in between the text: http://openclipart.org/people/gezegen/ligatures_ff.svg Of course, this brings along its own maintainability problems. BUT, I would say SVGs of ligatures throughout the text are slightly less worse of a problem than non-standard mappings of characters in a font. Best bet though is to just get a font that is built correctly. ![]() Quote:
Perhaps there is a lurker out there who read all of our discussion on non-standard character mappings and how they are a bad idea in fonts... and now they will not use it in their books! ![]() Last edited by Tex2002ans; 11-02-2013 at 02:27 PM. |
||||
![]() |
![]() |
![]() |
#63 | ||
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
<big snip>...
Quote:
I really do appreciate your reply, though! I guess I just must have misunderstood what it was you were suggesting before (and using your "apple" as an example). And yeah, I agree, my best bet is to find a font that will at least work reasonably okay for that "olde" part of my book -- but it is a bummer that that JSL font seems to be the only one out there that'll do what I actually want it to do (i.e. look the way I want it to look). :/ But hey, people for whom my "first edition" (with all it's admitted bugs) works will just be lucky -- kinda like scoring a rare incunabulum of sorts ![]() ![]() Quote:
![]() Last edited by Psymon; 11-02-2013 at 03:23 PM. |
||
![]() |
![]() |
![]() |
#64 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Is the attached image enough? The code includes simply: Code:
<p class="big olde PI">Thou apperest in my thouwts so offen of lait and I can nowth healpe bwt thynke hauw vniqwe thou hauef becom, hauw <i>eccepcionall</i> ytt hast aull bine in gyttynge to kno thee. Thou art sempylly that rayre kynde of parrsen oan sild metes in a lyfetyme, that swmme newyr mete; they respeck, they fornness and warmthe that I feel seem to hauef becom ane affeccion of mystickal proporcions, whythe a deppyt that reches to they vary coore and brethe of my Sawle. For they forst tyme in my lyfe I no longar nide to tallk of whot hys poscibell, of whot <i>coold</i> by, for whythe thee euere thouwt that entres my mynd as I penne those wordes hys a soung of pres, a celibracion and a thannkesgeuyn for whot sempylly <i>hys,</i> for whot whe aulredy do shar so ioyefolly betwhene ws.</p> (full code here:) Spoiler:
The image is from a PDF created with Prince, which supports activating OpenType features through custom CSS (font-variant: prince-opentype(hist, liga, dlig);). Hopefully, iBooks and other ePub readers has (or will in a not-too-far future) similar support. See here for more information about CSS and OpenType. If that works for you, the even better news is that the fonts have an open licese, so you can modify and adapt them as you want (you could disable some ligatures, modify some kerning, etc.). Last edited by Jellby; 11-03-2013 at 08:46 AM. |
|
![]() |
![]() |
![]() |
#65 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
http://www.typography.com/fonts/hist...lsorts/inside/ ...but as much as I loved them (too), they're not free nor embeddable. I never heard of this "other" Fell font! This could, indeed, change everything -- I can't thank you enough for finding that, and for all the time and effort you put into throwing all that together for me (re your example code and everything)! Amazing, really amazing... I'm definitely going to try this out, and I'll get back to you if I run into any problems/issues. Thank you SO very much, Jellby!!! ![]() |
|
![]() |
![]() |
![]() |
#66 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
PS... Okay, I have a question about these fonts...
Quote:
I've downloaded them both but haven't looked at them or tried them out yet (probably this afternoon, though), but will the opentype version work cross-platform? If only from the link description, I can only assume that there's "more to it" than the TT version. ![]() |
|
![]() |
![]() |
![]() |
#67 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Opentype or Truetype will work. Use the version with more to it and then have Calibre subset the fonts. Then you'll have a lot smaller font file that works just with your eBook.
|
![]() |
![]() |
![]() |
#68 |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
|
![]() |
![]() |
![]() |
#69 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Neither did I. I found them googling for "17th century fonts".
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#70 |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Okay, I just tried a test epub, basically just taking your example code an copying/pasting exactly as you had it (just changing the location of the font files, that's all)... but it doesn't seem to quite work as I'd hoped it would.
Not all of the ligatures get changed "automatically" -- only some seem to -- but perhaps more importantly is the long-ess (which I need to make use of more than the regular "s"). Apart from a whole slew of ligs that make use of the long-ess, the single character for that would appear to have been plopped as an extra character in the "Latin Extended A" part of the font. So for all those long-esses, and for any ligs I want to use, it would seem that I still have to manually put all those in individually -- so doesn't that leave me back to square one, in the same boat as I am with the JSL fonts? I'm confused over what to do -- any suggestions? PS. All the various ligatures are either in a "Private Use Area" or "Alphabetic Presentation Forms" part of the font -- is that normal, and "correct" (as per earlier discussions here)? Last edited by Psymon; 11-03-2013 at 12:02 PM. |
![]() |
![]() |
![]() |
#71 | |||||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Those are the "standard ligatures", the ones more often defined, and activated with the "liga" feature, which is on by default (if the reader supports it). The others (ct in this case) are in a different set called "discretionary ligatures", and are disabled by default, you need to activate the "dlig" feature. Quote:
1. Actually write the long-s character (U+017F: ſ) in your input where you need it. That should work and give you most of its accompanying ligatures, which are in the "liga" table (except ſ+s = ß, which is in "dlig"). The problem with this is that it breaks searching, but you get more control 2. Activate the "hist" feature, intended for getting historical variants of some letters (only the long-s in our case). This should replace every "s" character in the input with a "ſ" (but only when it is followed by some lowercase letter). This is done on the fly and it's transparent to searching and copy-paste (or should be), but then you are at the mercy of the replacement rules programmed in the font, and of course you need to be able to activate the "hist" feature. Since the fonts are open-licensed, you could program more elaborate replacement rules for the long-s if you are not satisfied with the provided one. Quote:
Quote:
![]() Quote:
|
|||||
![]() |
![]() |
![]() |
#72 |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Thanks for that last, detailed reply, Jellby! My brain hurts -- so much to think about and absorb.
![]() I did just throw together another test epub, copying/pasting all of the ligatures just to see if they would even show up -- they do just fine in iBooks, but when I try it out in ADE, none of the ligs that are in that "Private Use Area" of the font show up at all. So if I really want to make use of all the ligatures, it just ain't gonna work outside of iBooks -- at least, it won't in ADE. Hmm... I'm gonna play with this a bit more, do a little more testing in both iBooks and ADE -- I'll come back with some screenshots in a bit that, hopefully, might be helpful for you (and maybe others), too. ![]() |
![]() |
![]() |
![]() |
#73 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Did you try adding something like this to the css (from the link I gave above)?
Code:
.olde { -moz-font-feature-settings: "hist=1, liga=1, dlig=1"; -ms-font-feature-settings: "hist", "liga", "dlig"; -webkit-font-feature-settings: "hist", "liga", "dlig"; -o-font-feature-settings: "hist", "liga", "dlig"; font-feature-settings: "hist", "liga", "dlig"; } I wouldn't be surprised if ADE (and derivates) did not offer any way to access these OpenType features. But, as I said, the text would still be readable, searchable and have an old look... and would be automatically upgraded whenever Adobe decides to write a decent reader. In any case, if I'm right with my assumption above that writing an explicit long-s in your input would unleash all its ligatures with no further action on your part, that's not an entirely bad option. |
![]() |
![]() |
![]() |
#74 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Um, I apologize for my utter ignorance, but I have no idea what any of that stuff is! I mean, I could take your word for it and just plop it in, but I confess it's all gobbledygook to me. ![]() As for the long-ess, it's not supposed to be used "everywhere", but as with "u" and "v" it has to do with where it appears in the word: long-ess is used at the beginning and middle of words, whereas the regular "s" is used when it's the last character in a word. In any case, I think if I just went through the entire "olde" text and simply substituted the characters/ligatures I want, that should work out okay -- and as far as searchability goes, well, as we discussed in this thread earlier the spellings in that "olde" half of my book are so screwy that I'd be extremely surprised if anyone was specifically searching for particular words. And only half the book is "olde", of course, the first half is the exact same text, but in modern english, and there would be no problem for anyone to find search results via that. Apart from that, I threw together a couple of screenshots of all the ligatures in that font. Each ligature is on a separate line, of course -- if you think of it like a "table" (which it isn't, but whatever), then the first column is what the ligature is supposed to represent, then the second and third columns, respectively, are for the roman and italic ligs. I've included here screenshots showing what works in iBooks (all the ligs!) and what works in ADE (only some). It's a shame that not all of the ligs work in ADE, but there's enough of them that I could probably still "fancy up" my text reasonably well and create an okay version that'll work in that platform -- which, of course, is great news! ![]() ADDENDUM: Oops! After posting this I just realized that I missed a bunch of other ligs/alts that were in the italic font (like "st" and a couple variants of "k", etc.) -- I'll re-do these screenshots and re-post them... back in a bit... Last edited by Psymon; 11-03-2013 at 01:40 PM. |
|
![]() |
![]() |
![]() |
#75 | |||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MSOffice 2013 EULA ties license to one assembly forever? | PainMike | Writers' Corner | 63 | 03-25-2013 11:54 AM |
Do all our bases really belong to Microsoft? (Microsoft EULA) | Stodder | Lounge | 5 | 05-17-2012 02:51 AM |
Apple changes iBooks Author EULA after criticism | Katsunami | News | 17 | 02-06-2012 10:41 AM |
ttc font file can't be put into font folder | droople | Sigil | 2 | 08-21-2010 10:05 AM |
PRS-500 Did anyone read the EULA for their Reader? | scotty1024 | Sony Reader Dev Corner | 21 | 12-25-2006 08:51 PM |