Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2009, 12:50 AM   #1
MerLock
Evangelist
MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.
 
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 02:12 AM.
MerLock is offline   Reply With Quote
Old 10-21-2009, 09:00 AM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by MerLock View Post
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
You can easily do this. Switch to Code View, then find your heading. Change this:
Code:
<h1>Chapter 1: Blah</h1>
to this:

Code:
<h1>Chapter 1: <span style="font-size: 150%">Blah</span></h1>
I'm assuming you'r using H1 for your heading, but it works just as well with any other heading level (or any other tag for that matter). The <span> will change the size of the text inside it. Feel free to use a different percentage.

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.

Quote:
Originally Posted by MerLock View Post
Q3: How do you add margins to the text?
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; 
}
That will give you left and right margins. Look here for more details on CSS margins. Feel free to explore other CSS resources. CSS in general is pretty simple and straightforward.
Valloric is offline   Reply With Quote
 
Advertisement
Old 10-21-2009, 02:04 PM   #3
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,781
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by Valloric View Post
You can easily do this. Switch to Code View, then find your heading. Change this:
Code:
<h1>Chapter 1: Blah</h1>
to this:

Code:
<h1>Chapter 1: <span style="font-size: 150%">Blah</span></h1>
I'm assuming you'r using H1 for your heading, but it works just as well with any other heading level (or any other tag for that matter). The <span> will change the size of the text inside it. Feel free to use a different percentage.
And if you want

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
DaleDe is offline   Reply With Quote
Old 10-21-2009, 11:18 PM   #4
MerLock
Evangelist
MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.
 
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.
MerLock is offline   Reply With Quote
Old 10-22-2009, 09:14 AM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by MerLock View Post
Since I'm mostly copying and pasting from word documents...
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:
Originally Posted by MerLock View Post
... 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?
What do you mean by "those lines"? Do you mean the vertical white space between paragraphs? That's controlled by CSS. You could add this to the bottom of the CSS and see if that will fix it for you:

Code:
p {margin: 0; padding: 0;}
Valloric is offline   Reply With Quote
Old 10-22-2009, 12:28 PM   #6
MerLock
Evangelist
MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.
 
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.
MerLock is offline   Reply With Quote
Old 02-03-2010, 11:41 AM   #7
MerLock
Evangelist
MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.
 
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.
MerLock is offline   Reply With Quote
Old 02-03-2010, 01:10 PM   #8
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by MerLock View Post
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.
The book probably had some flow-specific CSS. This is currently removed, but will be preserved from 0.2.0 onwards.

Quote:
Originally Posted by MerLock View Post
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.
Sigil rebuilds the TOC after the book is loaded. The original NCX file is not preserved, and currently can't be for technical reasons. I don't think it's possible to preserve the original NCX and still have an intuitive TOC Editor, since the NCX deals with XHTML filenames and fragment identifiers. A TOC editor that would preserve the whole expressiveness of the syntax would require from the user advanced knowledge of the NCX specification, URL's, identifiers and XML.

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 01:37 PM. Reason: typo
Valloric is offline   Reply With Quote
Old 02-03-2010, 01:33 PM   #9
MerLock
Evangelist
MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.
 
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.
MerLock is offline   Reply With Quote
Old 02-03-2010, 01:47 PM   #10
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,259
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Valloric View Post
I don't think it's possible to preserve the original NCX and still have an intuitive TOC Editor, since the NCX deals with XHTML filenames and fragment identifiers.
Intuitive?
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
theducks is offline   Reply With Quote
Old 02-03-2010, 02:34 PM   #11
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by theducks View Post
Intuitive?
All I see is tick boxes (Win XP or Ubuntu) next to the TOC names.
No controls.
For what it does, controls are unnecessary. The check boxes let you include/exclude an item from the TOC. The item text is editable.

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?

Quote:
Originally Posted by theducks View Post
No ability to edit of those names.
What am I missing here..
Have you tried double-clicking the text field? Or pressing F2? These are standard GUI conventions. I'm not inventing anything new here.

Quote:
Originally Posted by theducks View Post
I would love to be able to mark some text or Location: "Make a TOC entry"
Use a heading. It will automatically appear in the TOC. This is standard practice: see Word or OO Writer.

Quote:
Originally Posted by theducks View Post
And be able to drag/arrow it to its proper location in the list, even indent/outdent.
See first response about reordering.
Valloric is offline   Reply With Quote
Old 02-03-2010, 02:48 PM   #12
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,259
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I must be doing something really wrong :/ , will try (double click) again.

Had existing headings present. I was trying to make them into TOC entries. I will try to remake the existing heading.
theducks is offline   Reply With Quote
Old 02-03-2010, 05:27 PM   #13
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,259
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I got adding TOC entries working on Windows (it is snail slow on a P4 with loads of RAM).
theducks is offline   Reply With Quote
Old 02-03-2010, 08:02 PM   #14
MerLock
Evangelist
MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.
 
Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
Quote:
Originally Posted by Valloric View Post
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.
Could there be a possibility to let the user decide to either preserve the original TOC or not? For example, the ability to retain the original TOC if all I do is insert a new cover image or edit the meta data.
MerLock is offline   Reply With Quote
Old 02-03-2010, 08:03 PM   #15
MerLock
Evangelist
MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.MerLock ought to be getting tired of karma fortunes by now.
 
Posts: 411
Karma: 1034889
Join Date: Nov 2007
Device: none
Quote:
Originally Posted by theducks View Post
I got adding TOC entries working on Windows (it is snail slow on a P4 with loads of RAM).
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.
MerLock is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newb from Oklahoma redsonja72 Introduce Yourself 4 01-01-2010 11:43 PM
Cover help for a newb :) CelesteGB Sony Reader 11 10-30-2009 09:05 AM
Newb questions Taantric Calibre 5 08-10-2008 04:58 AM
Several questions from a Newb majutsu iRex 4 11-27-2007 02:17 PM


All times are GMT -4. The time now is 09:20 PM.


MobileRead.com is a privately owned, operated and funded community.