03-28-2020, 04:16 PM | #16 |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Best advice is in #12
What you have now in sigil is probably too messed up to fix. STOP using sigil STOP using regex. Go back to a good quality word document , save that as docx, then add it to calibre and let calibre convert it to epub. That will give an error free epub |
03-28-2020, 04:31 PM | #17 | ||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
In order to disable that: 1. Press the "Go Advanced" button to get into Advanced posting mode. 2. Below your post, and the "Submit Reply" + "Preview Post" buttons, there's a checkbox for "Disable smilies in text". Check that box. Sadly, you have to check the box each time, but you only need to check the box if you see smilies you don't intend. Quote:
Quote:
1. Go back and create a clean Word document (using Styles). 2. Convert using tools so you won't get all the garbage Word code in the first place! In 2019, I wrote a bit about this and linked to a few resources. On Styles, I really like these two videos: Word 2013: Use Quick Styles How to REALLY use Microsoft Office: Word Styles 101 And on super clean conversion, I recommend Toxaris's EPUBTools. This is a add-on for Microsoft Word (Windows only), that outputs extremely clean EPUBs. All you'll have left is your basic HTML: <h1>, <p>, <i>, [...]. Note: Or you can use Calibre, or for more advanced users, DiapDealer's DOCXImport Sigil plugin, or even as a last resort, Word's "Clean HTML". Once you have the clean Styles in the first place, all future cleanup is MUCH easier no matter the conversion methods. Quote:
Regular Expressions (Regex), while extremely helpful and powerful, are much more intermediate/advanced. * * * For example, let's say you wanted to "find all the numbers in the book and replace them with 999": Code:
2 doctors, 3 horses, 678 toys. Find: 678 Find: 3 Find: 2 then replace all with: Replace: 999 and you'd probably make mistakes, errors, miss lots of numbers. With regular expressions, special symbols can be used to search for entire groups/categories/multiples of things: Find (Regex): \d+ Replace: 999 In regular expressions, \d is a special symbol for "any number" and + is a symbol for "1 or more". So in plain English, what the regex is saying is "Look for 1 or more of any number, then replace with 999". * * * What that video is giving you, are a lot of symbols (/[]*>), which are very easy to mistype/break... ESPECIALLY if your initial document is full of gunk. Another common error is people accidentally forget to switch of Regex mode, then continue doing their normal Search/Replace, but it's too late, they already used a special symbol and replaced a lot more than they intended (only recognizing the broken <p>p> an hour later... and who knows what else they accidentally deleted). Last edited by Tex2002ans; 03-28-2020 at 04:38 PM. |
||||
03-28-2020, 09:20 PM | #18 | |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-29-2020, 12:26 AM | #19 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
In the least worst case, it may have just changed a: Code:
<p class="something">This is an example.</p> Code:
<p>p>This is an example.</p> More likely, the complex regex accidentally deleted text you haven't noticed: Code:
<p class="something">The boy crossed the road.</p> Code:
<p>p>he boy crossed the road.</p> Last edited by Tex2002ans; 03-29-2020 at 02:48 PM. |
|
03-29-2020, 01:51 AM | #20 | |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
in this context "good quality" simply means " well written". The OP has had enough contradictions and headaches inflicted by posters here already and does not also need god quality [sic] "advice" on how to use Word I am saying < to All > stop telling the OP to acquire new skills and tools. Do the writing, and editing in word. When you are happy with the final product, us calibre to convert word ( docx) into epub, automatically. Calibre will not introduce epub errors. if you intend to sell the epub, then hire a professional, to work on it for you. For your own use or to give away, a calibre conversion is fine. No one needs to look under the boonet or admire the elegance of the code, it jsut needs to work. |
|
03-29-2020, 02:15 AM | #21 | |
Bibliophagist
Posts: 35,400
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
For my own use, I do tend to have a rather boring style I apply. For giving away to others? There you do have start making allowances for the differences between renderers. For example, the person who want to email your work to their Amazon device (real or virtual) since that requires mobi format with all it's quirks. |
|
03-29-2020, 08:46 AM | #22 | |
The Grand Mouse 高貴的老鼠
Posts: 71,506
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
03-29-2020, 08:50 AM | #23 | ||||
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
No it doesn't. Well written refers to the book. Good quality refers to the formatting. The only way to have good quality is with styles.
Quote:
Quote:
Quote:
Quote:
|
||||
03-29-2020, 08:56 AM | #24 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This war's over before it begins. Return to helping the OP solve their immediate stated problem, or don't comment. It's that simple. Help (the help they asked for, not the help you feel compelled to give), or stay out of the kitchen. I'm tired of these threads devolving into petty, personal coding/workflow-compulsion squabbles/lessons. Enough.
Last edited by DiapDealer; 03-29-2020 at 09:09 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Books Made With Sigil? | fncll | Sigil | 10 | 01-20-2017 07:05 AM |
Wanting to convert Sigil-made EPUB to PDF | Gregg Bell | Sigil | 10 | 11-16-2013 08:00 PM |
Why is Sigil 0.7.1 displaying all text oblique? | Abull | ePub | 28 | 04-20-2013 01:57 PM |
Sigil displaying WYSIWYG oddly | moz | Sigil | 6 | 12-27-2009 05:07 PM |
"PK": Only text when I open in Sigil an ePub file generated with Calibre | Terisa de morgan | Sigil | 3 | 12-14-2009 11:24 AM |