03-02-2010, 04:10 PM | #16 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
inserting chapter breaks in codeview
Hi Valloric,
I used to be able to insert one chapter break in a big html file and then switch to codeview and copy the sigil chapter break div and then use find and replace to quickly insert a chapterbreak right before every Chapter start. I can't seem to figure out how to do that since there is no way to "see" what format the chapter break actually takes since as soon as you insert one in book view the new chapter is split off. I also used the sigil chapter break divs in my xpml2xhtml.py code (converts pml to xhtml) so that upon loading the new html the chapter breaks were all in place for me. This really sped up conversion of the book to an epub. Is there some code I can insert inside the single large html files I have, that would make Sigil split the file at that point as it loads it? If not, is there a way to do the splitting via a find&replace in codeview? Thanks, KevinH ps. very nice work! I am having fun with the beta release already! |
03-02-2010, 04:10 PM | #17 |
Groupie
Posts: 181
Karma: 14258
Join Date: Oct 2009
Location: Kiel, Germany
Device: SONY PRS-T1, bald tolino vision 3 HD
|
|
Advert | |
|
03-02-2010, 04:14 PM | #18 |
Zealot
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
|
Great improvement. Thanks! One minor problem: If you're working in code view, and open a new chapter, this always opens in book view. As I always work in code view, this is rather annoying.
|
03-02-2010, 04:30 PM | #19 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Hi Valloric,
A quick question: If I click on an internal link, the right chapter tab pops up perfectly. However, in the bookview at the left of the screen, it still shows the old location (before following the link). Is this a feature so that I can copy something from here and simply return to where I was before following the link to edit/paste something, or should the book view on the left be updated to follow the link as well? If a buglet, do you want me to open an official report? Thanks, KevinH |
03-02-2010, 04:41 PM | #20 | ||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
But there should be a way to do the split from the Code View. Add it to the tracker. Quote:
This will have to wait until an options screen is created where you'll be able to set which View do you prefer as the default one. Sometime after 0.2.1. But soon. |
||
Advert | |
|
03-02-2010, 04:45 PM | #21 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
03-02-2010, 04:48 PM | #22 | |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
Quote:
|
|
03-02-2010, 04:55 PM | #23 |
Zealot
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
|
Is there a way to search, or search and replace, in the whole book? It seems to work only in one chapter at a time ...
|
03-02-2010, 05:02 PM | #24 | |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Quote:
Yes, I am not being very clear am I? On the left side of my screen is a sidebar which is called "Book Browser" (not book view, as I called it). Across the top is a set of tabs for each file/chapter. If I click on an internal link that jumps to another chapter of the book. The set of tabs across the top automatically brings the destination tab to the front, ready to work with it. The highlighted chapter in Book Browser on the left sidebar stays with the old chapter (where the original link was I followed) and does not update. I was unsure if this was a bug or a feature and wanted to know if you wanted me to open a bug report on this behaviour or not. Thanks, KevinH |
|
03-02-2010, 05:02 PM | #25 |
Member
Posts: 22
Karma: 166
Join Date: Dec 2007
Location: Czech Republic, Sedlice
Device: Cybook Gen 3, HTC Desire
|
Valloric: Thanks! Great piece of software! Speed Issues are gone so I can use Sigil finally
Things I noticed so far: - There is no simple way to merge two chapters... no undo button after accidental pagebreak - How is splitview intended to work? For example when code window is active pressing pagedown key moves book window. Are positions in code and book window independent when using splitview? and finally book browser - I'd like to set active tab on single click on its name in list rather than with doubleclick. Last edited by plazec; 03-02-2010 at 05:16 PM. |
03-02-2010, 05:03 PM | #26 |
Fanatic
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
|
Usually when starting with a Project Gutenberg text file, I open it with Word 2003, correct spelling, etc., enter the html tags, and save it as a utf-8 text. I then open it with Notepad++ and save it as an html file. Finally, I open it with Sigil 0.1.9 and save as epub. Sigil has automatically split all the chapters for the epub so when I open it with Sigil 0.2.0 all the files are present.
If I open the html file with Sigil 0.2.0 then save it as epub, when I close and reopen it, the html file has not be split into chapters, style sheets, etc. and the html file is the only file present. It is not a proper epub, and on reopening it with Sigil 0.1.9 I find that the styles have been deleted. With Sigil 0.2.0 I must somehow split the file into chapters, style sheet, images, etc. - but how do I do this? How do I even know what files are necessary? As a dedicated Sigil 0.1.9 user, it appears on first use that Sigil has lost the advantage it had with the simple interface of the previous version, and now there is only a small advantage to using Sigil compared to simply starting from scratch with an html file, splitting it manually into the proper files, and zipping the final result. |
03-02-2010, 05:09 PM | #27 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
I just thought of a way: create an SGF. SGF is just an epub with one large XHTML file with the chapter break code instead of many different chapters.
So...
That's the best I have for you now. |
03-02-2010, 05:13 PM | #28 | |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
Quote:
|
|
03-02-2010, 05:14 PM | #29 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
> But there should be a way to do the split from the Code View. Add it to the tracker.
Done as an enhancement request: Issue 262 http://code.google.com/p/sigil/issues/detail?id=262 Thanks! KevinH |
03-02-2010, 05:28 PM | #30 | |||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Also, Sigil would never split the HTML file automatically. Quote:
Quote:
|
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil 0.2.4 | Valloric | Sigil | 16 | 09-09-2010 11:04 AM |
sigil 0.2.0 | bobcdy | Sigil | 16 | 03-09-2010 08:31 AM |
Sigil v0.1.9 | Valloric | Sigil | 10 | 02-18-2010 04:00 PM |
Sigil v0.1.2 | Valloric | Sigil | 52 | 08-18-2009 03:15 AM |
calibre 0.6 betas now available | kovidgoyal | Calibre | 665 | 07-24-2009 11:11 PM |