Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 05-22-2010, 10:05 PM   #226
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Sadhu View Post
I've been trying to convert a book displays properly in Word and Acrobat
What format is it in when you view it in Word?

Quote:
Originally Posted by Sadhu View Post
I began by removing all footers an d page numbers from the original document, and then removed all hard page breaks except for the page before a new chapter (there are four chapters, and three hard page breaks). What surprised me was the when proofing the iBook (ePub), not only didn't the chapters always break properly
This is a good start. Chapter breaks in ePubs seem to be often used/inserted to ensure that no single html file within the epub is larger then the 300k limit. Otherwise many ePub renderers will not be able to read the file.

Quote:
Originally Posted by Sadhu View Post
Very disheartened by this, since Word and Acrobat have no code to make visible to find what is causing all this havoc.
In Word you have to reveal "Show paragraph marks and other hidden formatting symbols" this is done by pressing [cntr-shift-*] to toggle the view. Or to reveal the formatting marks go to the Home tab, in the Paragraph group, click Show/Hide button to the right of Sort.

You will see a bunch of paragraph marks causing the hard line breaks. When I have text like this I use My TXT Cleaner an extension for Open Office.org Writer program.

Quoted from the web page. (English version scroll down the page)

Quote:
Do you have problems with
texts having unwanted
line breaks like
this one?

This happens because there are some unwanted paragraph marks along the text. If we take the text from a PDF, inevitably we will get a paragraph mark at each end of line.

Now, or you delete them one by one with a lot of patience, or you can use the macro MyTXTcleaner that will do the work for you.

How does it work?
My TXT Cleaner removes all of the paragraph marks following lowercase letters, commas and semicolons. This because it is assumed that a paragraph usually don’t ends with a letter …

Last edited by DoctorOhh; 05-22-2010 at 10:14 PM.
DoctorOhh is offline  
Old 06-20-2010, 01:25 PM   #227
Fabe
Dylanologist
Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.Fabe has survived committing the World's Second Greatest Blunder.
 
Fabe's Avatar
 
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
Valloric, Thank you for creating Sigil. Currently I use it for one thing, to generate an epub file from my html. It works like a charm. Thank you. I have only one pet peeve, Command-H does not close the program on my Mac. it brings up the Find window. This is a real stone in my shoe. Why don't I just go barefoot? Good question. :-) Thanks again, Sigil is a great program. I know a lot of work has and is going into it. - Fabe
Fabe is offline  
Advert
Old 06-20-2010, 04:41 PM   #228
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 520
Karma: 24612
Join Date: Aug 2009
Location: Utrecht, NL
Device: Kobo Aura 2, iPhone, iPad
I agree on the Command-H issue.
pietvo is offline  
Old 06-25-2010, 12:16 PM   #229
sjkramer
Connoisseur
sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.
 
Posts: 68
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
Ha! I thought I was alone on the Command + H peeve. I didn't want to mention it because Valloric has so much else on his plate. But since you do...I'm sure he will say to make a formal feature request here. So one of us should!
sjkramer is offline  
Old 06-25-2010, 12:43 PM   #230
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 sjkramer View Post
Ha! I thought I was alone on the Command + H peeve. I didn't want to mention it because Valloric has so much else on his plate. But since you do...I'm sure he will say to make a formal feature request here. So one of us should!
That shortcut is unlikely to change. When I was picking keyboard shortcuts, I took the time to carefully analyze what other major applications were using. The most important of which was certainly Microsoft Word: it's the text editor of the world. I know a lot of people don't like it, but there it is. Word is the industry standard word processor.

So picking the same keyboard shortcuts as Word makes using Sigil more familiar to people who have used Word.

And Word uses CTRL+H for opening the Replace dialog on Windows.

It's possible to make the keyboard shortcut selection platform dependent, so that different shortcuts map to different things on different platforms. But frankly, I'm against that approach.

Qt provides a large list of StandardKeys that automatically remap themselves on different platforms. Using these is easy when all you need are the shortcuts listed. But creating your own application-specific shortcuts (of which Sigil has a large amount) while using StandardKeys... well it means you have to keep track of all the possible combinations and mappings to not accidentally step on something that's already in use.

Do note that there are about a 100 different combinations on that list. They all cross-wire in strange ways. And these are only the ones that Qt provides. The combinatorial explosion goes sky-high when you add the other actions with shortcuts that differ on various platforms.

Taking care of such a large remapping system would be tedious and frustrating.

So Command-H will sadly have to stay where it is.

(Qt remaps all CTRL-specified shortcuts to Command)
Valloric is offline  
Advert
Old 06-26-2010, 12:32 PM   #231
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 520
Karma: 24612
Join Date: Aug 2009
Location: Utrecht, NL
Device: Kobo Aura 2, iPhone, iPad
I looked into that Qt table and it says that Replace on Windows is already mapped from Ctrl+H, but on Mac OS X it is not. The other exception is that on KDE it is mapped from Ctrl+R. I would suppose that is because on KDE Ctrl+R is the preferred key combination for replace.

So to get Cmd+H to map to Replace you need to do something special in the Sigil code. To keep the original Mac OS X behaviour (Cmd+H mapped to Hide Sigil) you don't need anything special. Is that correct?
pietvo is offline  
Old 06-26-2010, 12:40 PM   #232
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 pietvo View Post
So to get Cmd+H to map to Replace you need to do something special in the Sigil code. To keep the original Mac OS X behaviour (Cmd+H mapped to Hide Sigil) you don't need anything special. Is that correct?
Cmd+H itself is not the issue, the point is that I'm either going to do platform-specific shortcuts in general (including Cmd+H) or I'm not. I've decided not to since the cons outweigh the pros, IMO.
Valloric is offline  
Old 07-09-2010, 11:00 PM   #233
meika
Member
meika began at the beginning.
 
meika's Avatar
 
Posts: 15
Karma: 10
Join Date: Apr 2010
Location: Tasmania
Device: palm, sony xperia with Moonreader, Pocketbook 360 plus, Pocketbook 613
cmd H in mac OSland

CMD-H to hide the current application is standard in the Appleland GUI strictures across all applications.

It really interrupts workflow on a mac when I hit CMD-H. It's srsly forehead smacking stuff.

When BBedit faced the same issue they allowed the user to decide which it should be with a dialogue on intial load of app, and in preferences.

meika is offline  
Old 08-03-2010, 09:37 AM   #234
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
The shortcut for opening the Replace dialog on Macs is now Cmd+Shift+F. Cmd+H is left to the OS and now works as expected.
Valloric is offline  
Old 08-04-2010, 03:26 AM   #235
FizzyWater
You kids get off my lawn!
FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.
 
FizzyWater's Avatar
 
Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
Does this mean there'll be a new update soon?
FizzyWater is offline  
Old 08-04-2010, 08:27 AM   #236
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 FizzyWater View Post
Does this mean there'll be a new update soon?
Possibly.
Valloric is offline  
Old 08-11-2010, 04:09 AM   #237
seajewel
Fanatic
seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.
 
Posts: 589
Karma: 1451235
Join Date: Jun 2008
Device: Sony PRS-505, Sony PRS-950
Is it possible to remove lines between paragraphs in any simple manner using Sigil? I know Calibre can do this, but it also does a few things that I do not like, and I was wondering if I could do this more hands-on with Sigil. I could of course convert and remove lines with Calibre and then fix the issues caused by the conversion in Sigil, but I was wondering if I could just select blocks of text, within a scene or a chapter for instance, and remove lines.
seajewel is offline  
Old 08-11-2010, 05:08 AM   #238
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by seajewel View Post
but I was wondering if I could just select blocks of text, within a scene or a chapter for instance, and remove lines.
You can do it, but how easy it will be will depend on how the lines are inserted between paragraphs.

Calibre, and others often create that space by adding a .5em margin above and below each paragraph via the CSS. If you remove these margins you remove the spaces between all objects of the same class paragraph.

Some epubs have breaks between lines hard coded with back to back line breaks every place they want a space between paragraphs.
Quote:
<br /><br />
or
Quote:
<p>&nbsp;</p>
A non-breaking space in a paragraph to take up a line.

You can adjust the CSS in Sigil and you can find and replace the others. It is just a matter of figuring out how the document you're looking to fine tune handles these spaces.

Last edited by DoctorOhh; 08-11-2010 at 05:11 AM.
DoctorOhh is offline  
Old 08-11-2010, 06:32 PM   #239
seajewel
Fanatic
seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.
 
Posts: 589
Karma: 1451235
Join Date: Jun 2008
Device: Sony PRS-505, Sony PRS-950
In the book I was trying to edit, it was just </p> empty line <p> .. I suppose whether Calibre handles removing line breaks properly and indentation depends on whether the ebook was "coded" properly..
seajewel is offline  
Old 08-11-2010, 09:15 PM   #240
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by seajewel View Post
I suppose whether Calibre handles removing line breaks properly and indentation depends on whether the ebook was "coded" properly..
Calibre is not a editor so as a rule it tries not to change the html. That said, so many people either wanted no spaces between paragraphs or wanted spaces between paragraphs that Kovid added those options. The result are sweeping changes if you use either option. It is not a matter of calibre handling removing line breaks properly, the program does certain things and hopes for the best.

You are correct, a well coded ebook will convert fine without either option set.

I love the fact the he supplied these simple options for all of us that don't want to get into the weeds.

I like having a certain font size, a standard indent and a space between my paragraphs. I also deal with some ebooks of questionable origin. Because of this I just default to having both options set. I check remove spaces between paragraph, set the indent to 1.1em, and set insert blank line to put the space back between the paragraphs.
DoctorOhh is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil -- what version of .epub? Kivgaen Sigil 30 01-29-2011 02:03 AM
Sigil ePub to MOBI crutledge Calibre 1 10-08-2010 12:04 PM
Sigil Toc editor Enesco Sigil 16 09-23-2010 06:41 AM
Sigil ePub editor - where is it? Alexander Turcic ePub 3 08-04-2009 05:55 PM


All times are GMT -4. The time now is 11:54 PM.


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