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-27-2009, 04:22 PM   #1
pedgarcia
Connoisseur
pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.
 
Posts: 63
Karma: 250
Join Date: Jul 2009
Device: PRS-505
Thumbs up Importing multiple images

Hi,

I've using Sigil to make epubs from some comics my kids like to read. In this particular comic book, each page contains several images (basically rows of images). To import these images to Sigil is painful because I need to do it one by one.

To help me in this task, I've modified Sigil to import multiples images at once, inserting a line break between images.

Just in case you think it can be useful for others and incorporated in the official source, the source code is attached here.

BTW, very nice job (code-wise speaking)!

Regards

Paulo
Attached Files
File Type: txt MainWindow-InsertImage.txt (1.0 KB, 141 views)
pedgarcia is offline   Reply With Quote
Old 10-27-2009, 08:30 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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
The feature looks nice. I'll add it.

But in the future, do please create enhancement requests on the tracker. If you have a diff to submit, just attach it to the issue. Better yet, since Google Code allows for user Mercurial clones since a few weeks ago, you could have just created a personal clone, pushed your changes to it and then requested a pull.

Although this is small enough that it's not really a problem.
Valloric is offline   Reply With Quote
 
Advertisement
Old 10-27-2009, 08:48 PM   #3
pedgarcia
Connoisseur
pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.
 
Posts: 63
Karma: 250
Join Date: Jul 2009
Device: PRS-505
Hi,

glad you liked it.

I don't have experience with Google code but I'll learn about you said and send updates in the proper way.

Regards

Paulo
pedgarcia is offline   Reply With Quote
Old 10-27-2009, 08:53 PM   #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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
This functionality is now in the repo. My version doesn't add <br/> tags after images since those can screw up ADE if they are direct children of the <body> element.

The more important reason why <br> tags are not added is because Word 2007 inserts multiple images inline and not separated by a line break. Sigil tries to conform to standard practices when it can, Word being the gold standard for text editors.
Valloric is offline   Reply With Quote
Old 10-28-2009, 10:08 AM   #5
pedgarcia
Connoisseur
pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.
 
Posts: 63
Karma: 250
Join Date: Jul 2009
Device: PRS-505
Hi,

yes, the <br> between images is convenient for me, but I think you're right to keep the standard practices.

Maybe in the future, if different behaviors for the same feature are necessary you could consider add an Configuration option page that allow the user changing the default.

Regards

Paulo
pedgarcia is offline   Reply With Quote
Old 10-28-2009, 01:38 PM   #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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by pedgarcia View Post
Maybe in the future, if different behaviors for the same feature are necessary you could consider add an Configuration option page that allow the user changing the default.
Yes, an "Options" page is on my TODO list.
Valloric 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
mass-importing ebooks in multiple formats? hakan42 Calibre 18 02-28-2010 09:06 PM
In Design CS3 creates multiple copies of same images! paulgodard Workshop 2 12-13-2009 11:22 AM
importing html does not import images reup Calibre 12 12-08-2009 09:52 PM
Importing multiple files into Mobi Reader Calamity Bookeen 0 07-25-2008 11:57 AM
Convert multiple images(comics) to PDF - MAC stustaff Sony Reader 2 11-28-2007 11:31 AM


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


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