![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
|
Questions from a Newb
I was a bit intimidated to use Sigil since I know next to nothing about HTML coding but I love it so far.
I have a few questions that hopefully someone can walk me through. Since I'm new to this, I think there are only three things that I would want to be able to do. Perhaps they are more complicated then I think but here are my questions. Q1: Is there anyway of removing lines between paragraphs or is this some sort of standard? <Never mind. I was copying and pasting from a word document and replacing the paragraph marks with manual page breaks fixed this> Q2: I'm also trying to make a table of contents. The text in the book is Chapter 1 Blah I got a TOC working and displaying this in adobe digital editions it shows Chapter 1 with a + sign. Once I click on the + sign it then displays the word blah. Is there anyway to make the actual Table of Contents show "Chapter 1: Blah" instead of splitting the 2nd line into a "sublink"? <Never mind as well. Decided to choose the same heading for both the "Chapter 1" and "Blah" fixed this. I initially wanted "Chapter 1" and "Blah" to be different font sizes but I guess it can be coded in. Just got to figure out how> Q3: How do you add margins to the text? Many thanks and great program. Last edited by MerLock; 10-21-2009 at 01:12 AM. |
![]() |
![]() |
![]() |
#2 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Code:
<h1>Chapter 1: Blah</h1> Code:
<h1>Chapter 1: <span style="font-size: 150%">Blah</span></h1> BTW Sigil will move that inline style property to a proper CSS class when you change views. I'm writing it inline here for the sake of brevity. Add this to the CSS code (the yellow color text in the Code View). The values are of course completely arbitrary: Code:
body { margin-left: 2em; margin-right: 2em; } |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
chapter 1 Blah as in your original example you can use the <br> tag to split the line. Since it is not a new paragraph Sigil will assemble it into one line in the TOC even though it is two in the document. Dale |
|
![]() |
![]() |
![]() |
#4 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
|
Thanks so much. I'll give those a try right now.
I really love the program and was initially scared about it since there were so many warnings about bugs/kinks along with my unfamiliarity with HTML. However, I'm finding it to be really stable so far and intuitive to navigate through. Just one more question regarding the spacing between paragraphs. Since I'm mostly copying and pasting from word documents, it's been introducing a lot of lines showing up in between paragraphs by default. I think calibre has an option to automatically remove those lines during conversion. Does Sigil have anything like that or planned for in the future? Thanks again for the help and thanks Valloric for taking the time to design such a helpful and wonderful program. |
![]() |
![]() |
![]() |
#5 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Don't copy/paste. Export to (filtered) HTML from Word, then import that HTML into Sigil. When you import, a lot of transformations are made on the input so it loads correctly. Pasting overrides that and is mostly a bad idea.
Quote:
Code:
p {margin: 0; padding: 0;} |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
|
When I copy and paste from a word document into Sigil, I get these blank lines between paragraphs. The only way I've found to remove them was to go back to the word document and change the special paragraph marks and make them into manual line breaks and then copy that over to Sigil.
So after and copying into Sigil, I see the following: <Indent>Paragraph1 <Blank Line> <Indent>Paragraph2 <Blank Line> ...... while in the actual word document it's <Indent>Paragraph1 <Indent>Paragraph2 I'll first try to use your suggestion of exporting it to filtered HTML from word and see if that solves the problem. If that doesn't work, I'll try your other suggestion of inserting "p {margin: 0; padding: 0;}" into the bottom of the css. |
![]() |
![]() |
![]() |
#7 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
|
<indent>I'm still loving Sigil but I recently encountered a few weird occurances. I recently opened an epub book with Sigil in the hopes of just editing the Meta data. After resaving the ebook, the ebook looses paragraph indents.
<indent>Could the problem be with that the original epub was not formatted correctly? For example, the above paragraphs would display as: I'm still loving Sigil but I recently encountered a few weird occurances. I recently opened an epub book with Sigil in the hopes of just editing the Meta data. After resaving the ebook, the ebook looses paragraph indents. Could the problem be with that the original epub was not formatted correctly? Again, the only thing I changed was use the meta editor to change the meta data before resaving. I encounted an unrelated problem with another epub. The original epub has a TOC but after doing the samething as above, changing the metadata and resaving, the TOC no longer exists. Could this again be caused by an incorrectly formatted epub to begin with? I'm sort of scared now to open an epub file and resaving since I'm unsure what changes resaving will do. |
![]() |
![]() |
![]() |
#8 | ||
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Quote:
It's precisely why I've gone with the standard practice of a TOC that follows the heading elements in the OPS docs. It's simple, user-friendly, easily understandable and I dare say intuitive. But it does require that the original TOC be discarded. In the vast majority of the cases, this is not a problem since the original TOC usually follows the headings as well. I plan on giving this matter more thought after 0.2.0 (but much later, there are more pressing matters). Maybe I can come up with something better, but I just don't see it now. Last edited by Valloric; 02-03-2010 at 12:37 PM. Reason: typo |
||
![]() |
![]() |
![]() |
#9 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
|
Thanks again for the great explanation and for the continued development of a great program.
|
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,274
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() All I see is tick boxes (Win XP or Ubuntu) next to the TOC names. No controls. No ability to edit of those names. What am I missing here.. ![]() I would love to be able to mark some text or Location: "Make a TOC entry" And be able to drag/arrow it to its proper location in the list, even indent/outdent. Sigil is pretty cool, I just want more ![]() ![]() |
|
![]() |
![]() |
![]() |
#11 | ||
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
You cannot reorder the items since they depend on the positions in your document. Open Word 2007 (or Open Office Writer for that matter) and try to reorder the items in the generated TOC: you can't, since the TOC depends on the headings you used in the document. If you could reorder them, then how should the headings change position? Or the text below them? Have you tried double-clicking the text field? Or pressing F2? These are standard GUI conventions. I'm not inventing anything new here. Quote:
See first response about reordering. |
||
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,274
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I must be doing something really wrong :/ , will try (double click) again.
![]() ![]() |
![]() |
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,274
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
![]() |
![]() |
![]() |
![]() |
#14 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
|
Same here. I forgot what version of Sigil it was, but after one version, the program started running really slow. I heard that things will improve in 0.2.0, which should be out in a couple of weeks.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newb from Oklahoma | redsonja72 | Introduce Yourself | 4 | 01-01-2010 10:43 PM |
Cover help for a newb :) | CelesteGB | Sony Reader | 11 | 10-30-2009 08:05 AM |
Newb questions | Taantric | Calibre | 5 | 08-10-2008 03:58 AM |
Several questions from a Newb | majutsu | iRex | 4 | 11-27-2007 01:17 PM |