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 12-26-2009, 07:35 PM   #1
moz
Addict
moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.
 
moz's Avatar
 
Posts: 370
Karma: 1553
Join Date: Feb 2008
Location: Melbun
Device: Kobo H2O
Sigil displaying WYSIWYG oddly

Sigil is excellent, especially for something still in very early release stages. I'm just grinding through cleaning up a bunch of epub conversions and it's doing most things really well. Unfortunately when I tried to report a bug I discovered that you require me to have a google account for that. I want not to have one. So instead I'm going to report bugs here.

Sigil on my WinXP laptop has started displaying WYSIWYG oddly, and the CSS header is breaking. I've restarted Sigil (but not the laptop) and the problem presists. It happens for any epub file, not just the one I was editing when the problem started. When I switch to code view I see the header like so:
Code:
...
  img.sgc-1 {height: 100%}

  /*SG    DO NOT MODIFY.
        This style is used by Sigil.
        It will be removed on export
        along with the "sigilChapterBreak" HR tags. SG*/
  hr.sigilChapterBreak {
    border: none 0;
    border-top: 3px double #c00;
    height: 3px;
    clear: both;
  }
  /*]]>*/
  </style>
</head>
Viz, I'm missing the
Code:
  /*]]>*/
  </style>
<style type="text/css">
  /*SG    DO NOT MODIFY.
Section that delinates the Sigil parts.

But since the first time I got that, I can't not have it. Starting sigil, open a random epub, it's there. The effect is that images are resized to nearly full screen and the text is very large.

I can't see anything other than executable files in the "program files" directory, so I assume that somewhere there's a stash of information that's been corrupted. I closed Sigil, deleted the contents of "C:\Documents and Settings\User\My Documents\Sigil\scratchpad" and restarted without effect. Uninstalling and reinstalling also had no effect, but interestingly my modified startup menu shortcut was re-created when I reinstalled (it starts in my books folder instead of "program files\sigil" - any chance you can make that "my documents" or something?)

Currently I can no longer use Sigil, since this fault makes it unusable. Do I need to manually delete stuff out of the registry or delete a template file? Any tips would be much appreciated.

thanks
moz
moz is offline   Reply With Quote
Old 12-26-2009, 07:48 PM   #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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by moz View Post
Unfortunately when I tried to report a bug I discovered that you require me to have a google account for that. I want not to have one.
I don't require it. Google requires it. As far as I'm concerned, you shouldn't have to create one.

Quote:
Originally Posted by moz View Post
So instead I'm going to report bugs here.
If it's because you choose not to create a Google Account, then that's fine. Just create a new thread for each problem then.

Quote:
Originally Posted by moz View Post
Sigil on my WinXP laptop has started displaying WYSIWYG oddly, and the CSS header is breaking. I've restarted Sigil (but not the laptop) and the problem presists. It happens for any epub file, not just the one I was editing when the problem started. When I switch to code view I see the header like so:...
To tell you the truth, I don't understand what your issue really is. You see large images and text. How is this connected to Sigil's CSS header? Or to put it in other words, why do you think it is?

Please provide more information. Start from the beginning, and explain everything in detail.
Valloric is offline   Reply With Quote
Old 12-27-2009, 08:01 AM   #3
moz
Addict
moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.
 
moz's Avatar
 
Posts: 370
Karma: 1553
Join Date: Feb 2008
Location: Melbun
Device: Kobo H2O
Quote:
Originally Posted by Valloric View Post
To tell you the truth, I don't understand what your issue really is. You see large images and text. How is this connected to Sigil's CSS header? Or to put it in other words, why do you think it is?
OK, now when I load an epub in the Calibre reader, or previously when I loaded it in Sigil the text was small (perhaps 12pt) and the images displayed at whatever their native size is. The problem is that now when I load an epub in Sigil the images are scaled up and the text is about 30pt. On a 1024 pixel wide Sigil window I get about 5 words per line and there doesn't seem to be a way to change that (image here). By comparison Calibre opens the exact same file with reasonable defaults.

Based on the Sigil XHTML view showing a changed "don't change this" section, I think that's the problem. But regardless, I'd like to be able to change it back. There doesn't seem to be anything useful in the registry, nor in the assortment of file locations that I've checked. So how do I change back to the way it was when I first installed it?

At the risk of adding extraneous detail, I've been doing a fair bit of large-scale editing - take a full novel with HTML next/prev links on every page, and use regex replacement to strip them out. Which at times involves clipboard copying the whole thing into my text editor of choice, using a regex engine I know, then pasting it back in to Sigil. I'm very used to the 100% cpu pause while Sigil loads, saves or changes view mode Sometime in the middle of that Sigil lost the plot as above. I can zip up and send you files or whatever, let me know what you need.

thanks
moz

Last edited by moz; 12-27-2009 at 08:03 AM. Reason: bad image link
moz is offline   Reply With Quote
Old 12-27-2009, 08:41 AM   #4
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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by moz View Post
OK, now when I load an epub in the Calibre reader, or previously when I loaded it in Sigil the text was small (perhaps 12pt) and the images displayed at whatever their native size is. The problem is that now when I load an epub in Sigil the images are scaled up and the text is about 30pt. On a 1024 pixel wide Sigil window I get about 5 words per line and there doesn't seem to be a way to change that (image here). By comparison Calibre opens the exact same file with reasonable defaults.
When in Book View, look at the zoom controls at the bottom. Does it say 100%? If it doesn't, zoom it down to 100%.

Quote:
Originally Posted by moz View Post
Based on the Sigil XHTML view showing a changed "don't change this" section, I think that's the problem. But regardless, I'd like to be able to change it back. There doesn't seem to be anything useful in the registry, nor in the assortment of file locations that I've checked. So how do I change back to the way it was when I first installed it?
I still don't know what you mean by the changed "don't change this" section. I know what you're referring to, but I can assure you it's not the cause of your problem. That section never changes unless the user does it himself. Tidy can perhaps merge those CSS styles into other CSS style tags, but the styles themselves are the same.

Again, it's not causing the large text/image size. The zoom mode is. It's the only thing that can enlarge both the images and the text.

And if you want to know, Sigil stores its settings in the registry, under HKEY_CURRENT_USER/Software/Strahinja Markovic/Sigil. Just delete that folder and you'll have a "fresh" installation. Deleting this folder will also reset any stored zoom settings, but as I've said, you can always change it with the controls at the bottom of the window.

Quote:
Originally Posted by moz View Post
At the risk of adding extraneous detail, I've been doing a fair bit of large-scale editing - take a full novel with HTML next/prev links on every page, and use regex replacement to strip them out. Which at times involves clipboard copying the whole thing into my text editor of choice, using a regex engine I know, then pasting it back in to Sigil. I'm very used to the 100% cpu pause while Sigil loads, saves or changes view mode Sometime in the middle of that Sigil lost the plot as above. I can zip up and send you files or whatever, let me know what you need.
Try not to paste rich text directly into Sigil. Always import it. The reason is that Webkit takes over the pasting functionality and it's hard to work around this behavior. So export everything to HTML and then import it into Sigil.

And copying an entire novel worth of text onto the clipboard and pasting that somewhere? A horrible idea for any text editor. On Windows, all of that text will be UTF-16 on the clipboard and take up 30MB+ for an average novel. Parsing all of that on the fly...

Import that text, don't paste it.
Valloric is offline   Reply With Quote
Old 12-27-2009, 08:57 AM   #5
moz
Addict
moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.
 
moz's Avatar
 
Posts: 370
Karma: 1553
Join Date: Feb 2008
Location: Melbun
Device: Kobo H2O
Quote:
Originally Posted by Valloric View Post
When in Book View, look at the zoom controls at the bottom. Does it say 100%? If it doesn't, zoom it down to 100%.
That was easy. Thanks. A little playing reveals the cause - why have you linked CTRL-home and CTRL-end to that zoom control? Every other editor on Windows maps those to start/end of document. And what's the "100% view" shortcut?

Um, the "import" function... where is that? I know it's mentioned in the FAQ as well as here, but there doesn't seem to be a menu item or toolbar button labelled "import". Do you mean dropping a file into the program, as it seems to accept epub files (doesn't display them or include them that I can see, but the document gets marked as changed)?
moz is offline   Reply With Quote
Old 12-27-2009, 09:28 AM   #6
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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by moz View Post
That was easy. Thanks. A little playing reveals the cause - why have you linked CTRL-home and CTRL-end to that zoom control? Every other editor on Windows maps those to start/end of document.
No, I didn't. CTRL-Home and CTRL-End do exactly what you say they should do: start/end of document.

CTRL-(plus) and CTRL-(minus) on the other hand, zoom in and out. Standard keyboard shortcuts for zoom controls.

Open the View menu and you'll see them written next to the command name.

Quote:
Originally Posted by moz View Post
And what's the "100% view" shortcut?
Actually that's a pretty good idea.

Quote:
Originally Posted by moz View Post
Um, the "import" function... where is that? I know it's mentioned in the FAQ as well as here, but there doesn't seem to be a menu item or toolbar button labelled "import". Do you mean dropping a file into the program, as it seems to accept epub files (doesn't display them or include them that I can see, but the document gets marked as changed)?
"Import" means open a document. So just go to File->Open and open an HTML file.

Last edited by Valloric; 12-27-2009 at 09:55 AM. Reason: typo
Valloric is offline   Reply With Quote
Old 12-27-2009, 05:07 PM   #7
moz
Addict
moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.moz once ate a cherry pie in a record 7 seconds.
 
moz's Avatar
 
Posts: 370
Karma: 1553
Join Date: Feb 2008
Location: Melbun
Device: Kobo H2O
Hmm, there's some odd stuff going on with my setup and keyboard shortcuts then. If I set focus to the zoom control home/end zoom all the way, but setting focus to anything else and ctrl-home/end grab it.

Import... perhaps you should change the FAQ to say "open" rather than "import". Or add a new function - import a document into the existing document. What I was expecting was that import lets us open an epub with metadata and (say) a TOC, then import the separate chapters as HTML files into the already-open epub. By the sound of it Sigil doesn't support that except via copy'n'paste. What I've been doing is conceptually similar, except with the whole novel in one hit. Being able to export the text as HTML, play with it, then import it back into the epub skeleton would be handy.
moz 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
Kindle behaving oddly after reset ficbot Amazon Kindle 2 09-11-2010 02:10 PM
WYSIWYG UI Features Matrix Frank Lowney Sigil 2 04-12-2010 07:44 AM
Using Book Designer as a WYSIWYG crutledge Workshop 1 07-25-2009 03:20 AM
Help? Oddly "bricked roofone Sony Reader Dev Corner 1 09-01-2008 10:31 PM


All times are GMT -4. The time now is 02:14 PM.


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