11-03-2013, 02:30 PM | #76 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Well, I'll be damned. I forget which font I'd used in those previous screenshots, but in re-doing this I did so with that "English" font (which not only is the one that I think suits my text the best, but also has some nicer ligs/alts).
And, lo and behold, not only do all the various characters come out just fine in iBooks, but in ADE, too! Check out the screenshots here -- awesome! )) |
11-03-2013, 02:37 PM | #77 | |||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
I'm utterly clueless how that works! Quote:
However, if I put in "ct" (as two letters, not a lig), then if what you say was actually working, shouldn't all those double-character combos (in the first "column") have been automatically changed to the ligature??? They don't, though, they stay as the two characters. Quote:
Last edited by Psymon; 11-03-2013 at 02:52 PM. |
|||
Advert | |
|
11-03-2013, 02:41 PM | #78 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
By the way, Jellby, I know I already said "thank you", but I really and truly just can't begin to thank you enough for discovering that Fell set of fonts -- really, this changes everything! I'd resigned myself to only being able to publish my book as I'd really like it to be on iBooks and nowhere else, but from the looks of it, I'll now be able to do so no problem on other platforms, too.
Seriously... THANK YOU!!! |
11-03-2013, 02:57 PM | #79 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
See what following standards gets you? Also, it is usually bad forum etiquette to post so many posts in a row. Best bet is to just Edit the previous post (if there is only a few minutes between posts). Quote:
You can easily tell if it is in the beginning of a word if it has a space (or "word boundary") to the left of the character, or in the middle of a word if there is a letter to the left/right, and the end of a word if it has a space (or "word boundary") to the right. Side Note: I am not too sure on the specific font terminology, but word boundary is a term used in Regex: http://www.regular-expressions.info/wordboundaries.html Last edited by Tex2002ans; 11-03-2013 at 03:05 PM. |
||
11-03-2013, 03:02 PM | #80 | ||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Actually, I think I'm now moving from the dark side to the light side!
Quote:
Quote:
|
||
Advert | |
|
11-03-2013, 03:18 PM | #81 | ||||
frumious Bandersnatch
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
If you want an "s", draw this vector image (this is the "s" glyph) ...but if the "s" is followed by any of these characters (a list of all lowercase letters follows), you should draw this other vector image instead (this is the "long-s" glyph) The renderer reads the input text, reads the font, and choses the glyphs accordingly. The replacement of "s" with "long-s" is optional, and that is what we need to enable, otherwise the renderer will only interpret the first rule (draw an "s"). In OpenType, there is a set of standard names for this kind of features like you may want to enable or disable (ligatures, swash forms, smallcaps...), and this particular one is "hist". Quote:
This is usually done with CSS, but since it's a rather new part, it's not yet fully standardized, and every rendering engine uses a slightly different syntax. That's what the code I posted was suppose to do: use the appropriate syntax for every known engine. Now, if you don't know what is CSS, how it works or how to write/modify, you should really have a look at some tutorials. It's pretty simple, don't be afraid. Quote:
[EDIT: actually, you can see in the screenshot that the first two columns for "ff", "fi", etc. are identical, this means the ligature is being used when you write the two separate characters!] Quote:
Last edited by Jellby; 11-03-2013 at 03:22 PM. |
||||
11-03-2013, 11:03 PM | #82 | ||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
If that's what you meant, then it doesn't seem to be working -- not only is the long-ess not showing up, but none of the other ligs like "ct", "st", etc. are either. I just threw together these fonts, CSS and stuff into my ebook to begin the process of converting it all, and I suppose the next step would be to "normalize" all my text, i.e. get rid of all those odd characters and ligatures I had because of that JSL font, and instead just let the device render the ligs/alts automatically, but I'm a little hesitant to go ahead and do that if I can't get it to work right first. I guess I'm not sure what to do now -- or perhaps I'm asking, I suppose, if you have any suggestions on what to do? All that I can think of is to just go ahead and manually put in the long-ess and all those various ligs everywhere, but in that regard you also said this... Quote:
I think maybe I might not be quite grasping what you're saying/suggesting? I'm tired -- I should go to bed. Maybe a good night's sleep will get it to all make sense to me somehow. |
||
11-04-2013, 03:28 AM | #83 | |||
frumious Bandersnatch
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
Quote:
There's another option that doesn't rely on advanced OpenType features, just on standard ligatures (which are working in iBooks and ADE). Just modify the fonts adding the discretionary ligatures ("ct", "is"...) to the standard ligatures table ("liga"). Then, in your HTML text, use the long-s, but do not write the ligatures by hand, let the font use them. I'm pretty sure that will work. To add these extra ligatures to the font in FontForge: Go to Element->Font Info, choose Lookups, and in the GSUB tab you have different tables. We want to modify the "liga" one(s). Click on the + sign of the "liga" entry (either of them if there are several), then select the subtable and click the "Edit Data" button. You'll see a table with the ligature name in the left column and the constituent glyphs in the right column, and you'll see it already includes some long-s ligatures. Do the same with the "dlig" entry, and you'll see the list of discretionary ligatures that we want to add to the standard ones. Back to the "liga" table, click on the "<New>" entry and write what you saw in "dlig". When you are finished, export your font as OTF. |
|||
11-04-2013, 08:05 AM | #84 | ||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
And thank you so much for the perfect instructions on how to change the dlig entries to liga ones instead! I had no problems with that at all, until I got to the very end... Quote:
Thanks so much -- this is awesome! And actually a little fun, too! PS. Oh, another question re editing the font in Font Forge... in that "English" font, for the italic, there's rather a nice "k" character (with a bit of a swashy descender) that would be great to use whenever it's followed by a space. How would I create a "k+space" kinda thing in there, so that it substitutes that character (and keep the space) whenever it encounters that? Or is that something where I should just add/change that on my own, right in my code? On a related note, I don't know if you noticed, but there's also an intriguing k+comma lig (with the comma underneath the k) in the italic versions of those Fell fonts -- I don't think I've ever seen that before, in any of the countless old books I've ever looked at! Any idea what that character (or ligature) is all about? Is it, indeed, something to be used when the letter "k" is followed by a comma? Very strange -- I really don't recall ever seeing that before. Last edited by Psymon; 11-04-2013 at 08:14 AM. |
||
11-04-2013, 08:42 AM | #85 | |||
frumious Bandersnatch
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
Quote:
|
|||
11-04-2013, 10:09 AM | #86 | |||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
You'll be happy to know that I've got EVERYTHING working PERFECTLY now, both in iBooks and ADE -- all the ligatures come out exactly as they're supposed to (including those that I switched over from dlig to liga). I really am so utterly thrilled and elated about this -- and you're a saint, Jellby, for all your help with this, you truly are! Just a couple more comments on the other stuff you wrote... Quote:
Quote:
Well, this has truly been quite a journey! Again, I just don't know how to thank you! I wouldn't be surprised if I end up with some other questions, but I think for now I might have a little bit of fun fancying up my text a little bit with those two "flowers" (ornaments) fonts that were included in that Fell font set. It's been a slice, Jellby! (again!) |
|||
11-04-2013, 12:08 PM | #87 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Okay, here's an interesting conundrum that I've run into, re hyphenation...
My book, as I've described it here before, is in two parts: the first half is in regular, modern English, and the second half is the exact same text but transliterated into late-Middle English (and typeset in these "olde" fonts, as we've been discussing, of course). Now, I can't stand the auto-hyphenation "feature" because it adds far, far too many broken words at the ends of lines, and so what I did for my modern text is to have it turned off in my CSS throughout the entire text (that modern part) and then I selectively chose words for which I would allow it (and I did this by viewing the text at various font sizes in order to see where the issues would be, and then chose words accordingly). [Note: as I'm writing this, I realized that ADE seems to ignore this, and allows hyphenation anyway, despite my saying not to in my CSS -- but it does work just fine in iBooks, at least.] I wish I could do the exact same thing with my "olde" text, but it doesn't seem that I can! The problem, I can only assume, is that none of the longer, "problematic" words simply aren't in the built-in English dictionary (for example, "diſſapoyntmends", etc.), and the software just has no idea where/how to break the words -- and so it doesn't. One alternative that I did try -- instead of allowing hyphenation on certain words -- is to use the method, but that doesn't seem to work either (neither in iBooks nor ADE), it's just simply ignored. Anyone have another solution, for either selectively allowing hyphenation on certain words, or else to insert something similar to within the words? |
11-04-2013, 01:18 PM | #88 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://en.wikipedia.org/wiki/Soft_hyphen You can stick it in your EPUB using the HTML named entity (remove the space between "& s"): Code:
& shy;
Best bet is to just leave hyphenation up to the limitations of the reading program/dictionary. This is again one of those where you weigh the pros/cons of maintainability. You build a compliant EPUB, and you hope they update/make better hyphenation in readers in the future. Last edited by Tex2002ans; 11-04-2013 at 01:20 PM. |
|
11-04-2013, 01:21 PM | #89 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You could use & shy; but that will not work on older readers (you will see probably questionmarks). Then again, there is no hyphenation on those older devices anyway.
|
11-04-2013, 01:52 PM | #90 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
I have a feeling I might be stuck with this problem, and without a solution for it. Bummer! PS. Oh, ha ha, I see now why you guys both gave me the answer that I'd already tried. In my original question, I'd said "One alternative that I did try -- instead of allowing hyphenation on certain words -- is to use the method...", but what I really said there was "...is to use the [ampersand+shy] method...", but I guess when I posted that the character entity didn't show up! It was shy. Last edited by Psymon; 11-04-2013 at 01:56 PM. |
|
|
Similar Threads | ||||
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 |