Quote:
Originally Posted by panda6855
I'm trying to produce a book in ePUB format in Sigil (0.3.2) on Mac. I've exported original hard-book file from InDesign CS5 as ePUB file, then opened that in Sigil to edit as it didn't pass the ePUB 1.0.5 validation (of course! It all seemed too good to be true to use IDCS5 in that way).
1. I seem to have trouble reformatting text to either centre or align left - it (usually) works ok and looks ok in Sigil but when I see it on the iPad the formatting is not changing or is changing only some paragraphs.
2. I've discovered some editing powers in the template but I don't understand how to expand the template (say, add text formatting styles) and to apply such expansions to the page code (eg, adding a format for text then where to put it in the code).
3. What do sgc-2, sgc-3, sgc-1, sgc-5 etc etc mean in code? They seem to appear everywhere in the code on every page on almost every line... so i figure they're important.
I'd really appreciate some basic pointers to edit my near-valide ePUBs into shape for iPad. Or can anyone pit me towards a forum or service that can help me? I'm a computer-savvy, willing and capable learner but need to start somewhere. I have almost zero knowledge or experience of code/coding but having spent a week struggling with it and have learned some things and put them into practice.
Btw, I also tried PDFtoEPUB program (on Windows) to produce file but it was even more problematic than the IDCS5 file when I opened and worked with it in Sigil.
Much appreciation in advance for any help offered. Thank you.
|
SGC numbers are Local styling assignments that are made when you use the buttons to style text (excludes headings without additional style).
They appear to be assigned 'on the fly', PER PAGE.
Say on page 1, you FIRST made text bold. SGC-1 might get assigned.
on page 2, you FIRST Centered text. SGC-1 gets assigned
BTW SGC styles can become compounded: Bold, Italic and Centered
It all depends on how/order they were created.
In code view (CV) look at the top, below <Head> you pages SGC styles will show there.
Note: this is why you CAN NOT copy code (CV) that use SGC #'s from one sheet to another, reliably. The Use of the buttons creates the Style(if not exist) AND applies it to the text. Copy only applies a non-existent (or wrong, because it was in use for a different use) style to the TEXT.
(It would be nice if Sigil had a User option to control where Style (button) assignments got done: 1) Sigil default. 2) SGC code added to LAST(in browser list) stylesheet. 3) Buttons get user assigned selector names. (If does not exist, create in LAST Stylesheet) Methods 2 an 3 permit a common style across pages and remover the copy-paste code problem)