|
|
Thread Tools | Search this Thread |
05-07-2021, 02:29 PM | #31 |
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
05-07-2021, 03:53 PM | #32 | |
Resident Curmudgeon
Posts: 76,470
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If I wanted to read this I would need to merge the mess and then figure out where to split and then see what else needs to be fixed. |
|
05-07-2021, 08:55 PM | #33 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
There's also some weird technique used for positioning of the ornamental scenebreak images. Mass deletion of what, at first glance, look like excessive ids will mess those up because CSS is applied by individual id. Look at page Petrified_Minds_TRIPLE_KINDLE_FINAL.mobi-6.xhtml for an example. |
|
05-07-2021, 10:08 PM | #34 | |
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
It's how I typically deal with really atrocious InDesign->EPUBs or Google Docs->EPUB. (If you think InDesign is bad, you should see Google Docs's code!) Note: Like a few InDesign oddities I've been running across lately: In some files, InDesign assigns an "Italic" font, but uses "font-style: normal" within the CSS. So in a clean document, it should look like this: Code:
<p>This is an <i>italic</i> word.</p> Code:
<p>This is an <span class="CharOverride-4">italic</span> word.</p> Code:
span.CharOverride-4 { font-family:"Minion Pro Italic"; font-style:normal; <----- See here. Should say italic. font-weight:normal; } I've also run across similar in some DOCXs I've gotten from authors. Toxaris's EPUBTools doesn't handle these types of wrongly-styled fonts properly, but he is aware of the issue (and I believe he was working on it for the next release). If you just mass throw away <span>s/fonts without looking closely, you'd also lose this sort of information. Last edited by Tex2002ans; 05-07-2021 at 10:18 PM. |
|
05-08-2021, 02:07 PM | #35 | |
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I don't know the reasoning, but we see this all--all--the time. It depends a lot on the training of the InDesigner, and also, what font files s/he is using. If you use Adobe's built-in (cloud) fonts, then you will get exactly that cruft--you'll get a span calling the "italic" (Font! Not simply italicization, right?). The Indesigner has to be careful, in order to get what we think of as: Code:
<i>italicized text</i> I've never bothered to experiment to find the "best" way, because speaking bluntly, we get files from all the corners of the globe. It's a miracle if we don't see 35-50 "character overrides" in a file, so my standards have changed, let's just say. We had a file today that my Queen o'Quotes described as "not bad" (in INDD standards, right?). She then added "no paragraph styles, but other than that, pretty clean." Sheesh, talk about lowered standards, for the love of heaven.... I agree that GDocs are actually worse. Hitch |
|
05-08-2021, 06:32 PM | #36 | |
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
(And guess what happens if you open the file but aren't a part of their monthly fee structure...) So this Italic font face issue is a more recent addition? It actually makes me angry, you can send in a perfectly styled document in, but get complete gibberish out. Is there a better way to import/apply/export Styles in Google Docs? |
|
05-08-2021, 06:52 PM | #37 |
Resident Curmudgeon
Posts: 76,470
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've had another go at this and I've managed to keep the italics and cleaned up the code very much.
It was a lot easier the second time now that I knew what to look for. And it even took less time. |
05-08-2021, 08:10 PM | #38 | ||
Bookmaker & Cat Slave
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
It scalds my bum, too, brother. Hitch |
||
05-08-2021, 11:14 PM | #39 | |||
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
And I haven't had the "pleasure" of working with anything from Pages yet. I usually noticed missing italics further along in the process after too aggressive initial cleanup steps. Nowadays, it's one of the first things I look for. Quote:
(See the ~steps in my Reddit answers from 7 months ago: /r/LibreOffice: "How do I replace formatting tags surrounding text with that text formated?".) But the annoying step then became Styles within Google Docs. If I made any sort of adjustments, the super clean Styles I applied in the LibreOffice step became botched. Side Note: And has everyone seen, LibreOffice 7.1 introduced a new "Style Inspector": https://wiki.documentfoundation.org/...tyle_inspector It allows you to easily spot direct formatting + what's being applied where (similar to Inspect Code in your browser). Last edited by Tex2002ans; 05-08-2021 at 11:23 PM. |
|||
05-09-2021, 07:06 AM | #40 |
Resident Curmudgeon
Posts: 76,470
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I used Calibre's editor. I first removed unused CSS classes. Then I went into the CSS and removed all the stuff that was for fixed layout. I then removed unused CSS classes. And in the main text, I searched for position: and using Diaps Editing Toolbag, I left the span with just the class and removed the rest of the spans. I also removed any span that did not have a class. I also search/replaced the body into just a paian <body>. The override style that was just for italics, I changed from a span to an <i> and then I changed all the multiple </i><i> so the italics are just one <i>some text</i> I also did errors checks here and there to see what else needs fixing. The only thing wrong now is the NAV. But that's no big deal.
|
05-09-2021, 03:06 PM | #41 | |
Bibliophagist
Posts: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS Styles From InDesign 5.5 Export Problem | SamL | ePub | 4 | 11-10-2011 02:46 PM |
Export to ePub from InDesign CS5 | gardefjord | ePub | 42 | 10-29-2011 11:42 AM |
InDesign export as ePub? | Alda | General Discussions | 3 | 01-24-2011 01:59 PM |
EPUB Expert Needed: Cant properly export epub from InDesign | crottmann | ePub | 17 | 08-27-2010 11:23 AM |