![]() |
#106 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,980
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#107 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,582
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
As you can see, there are two paragraphs of text. And between them, I want to add a svg wrapper, so the output would be something as: What I'm seeking is that the wrapper is inserted where I have the cursor, not in a new .xhtml page; in the example I would have the cursor here: Can your plugin do something so? |
|
![]() |
![]() |
Advert | |
|
![]() |
#108 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,033
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Cursor position is not passed to any plugin. So the only possibilities is for any plugin to do this would be:
1. The Plugin will add image file to epub and copy the required svg and any xhtml pieces needed to your clipboard, so that the user can just paste it once the plugin returns. or 2. The user adds a unique placeholder to tell the plugin where you want the svg to be inserted. Something like: Code:
<!-- PLUGIN INSERT SVG HERE --> Then the plugin would have to be modified to look for that placeholder and replace it with the required svg. Either of these approaches could work to accomplish what you want but this up to the plugin dev if to implement if they want. Last edited by KevinH; 12-16-2021 at 02:40 PM. |
![]() |
![]() |
![]() |
#109 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,582
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
![]() |
![]() |
![]() |
#110 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 673
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
I add a class to the div wrapper: div.breakavoid {page-break-inside: avoid;} Or for smaller images you could use one with margins, to separate it from text, or size it. PS -- I see from later posts you already worked that out, but leaving this as the div styling might be useful. Last edited by AlanHK; 12-17-2021 at 01:51 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#111 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 62362
Join Date: Jul 2015
Device: Sony
|
@RbnJrg: I have updated the plugin to paste an image with svg tags into an ePub, following the suggestion by KevinH.
You can apply a div class to the wrapper, if required, as suggested by AlanHK. |
![]() |
![]() |
![]() |
#112 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,582
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
![]() |
#113 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2013
Device: Kobo Glo HD, Kobo Sage
|
Possible bug?
I'm getting this error when trying to run this plugin under Sigil 1.9.2 (Windows x64).
I checked some versions back and I've found out that the last version working was 1.8.0. Tank you very much in advance. Ernest |
![]() |
![]() |
![]() |
#114 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
If you don't want to wait for the official update, edit plugin.py with a text editor and change line #46 from
Code:
import tkinter.ttk as tkinter_ttk #Needed for ttk. commands
Code:
import tkinter.ttk as ttk #Needed for ttk. commands
|
![]() |
![]() |
![]() |
#115 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2013
Device: Kobo Glo HD, Kobo Sage
|
Thank you very much, Doitsu! It worked OK.
![]() |
![]() |
![]() |
![]() |
#116 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 62362
Join Date: Jul 2015
Device: Sony
|
@Doitsu: Thanks for sharing this solution with the Sigil community.
I have updated the plugin in the first post of this thread. |
![]() |
![]() |
![]() |
#117 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Sep 2022
Device: Kobo2
|
First thanks for great plugin. I am trying to convert my old .jpg comics to epub format so I can read them on my Kobo. Had a aproblem with fullpage view of .jpg files which this plugin solved. My problem now is that I can insert only one .jpg file at time. Is possible to insert multiple files at once (I need to insert 100 pcs for one comic). Thanks in advance.
|
![]() |
![]() |
![]() |
#118 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,160
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Welcome to MR!
That functionality is already available...you just need to do a little manual work first ![]() - Add all the images to Sigil using "Add Existing Files"...hopefully you have them named appropriately so they show up in the proper order: eg. img-001, img-002, etc. - Run the plugin - you should see all your images in the select image window - Select the first image in 'Select image' - Select 'At the end' in 'Select position' dropdown - push the 'Insert' Button (nothing will happen! It's OK) - Select the next Image in 'Select image' - push the 'Insert' Button (nothing will happen! It's OK) - repeat the previous two steps until you are done with the images you want to insert - push 'Close' button when done All the images will be inserted: 1 per-page I'm not sure if there is an upper limit to how many images you can do at once...I'd probably do 10 at a time to begin with.... |
![]() |
![]() |
![]() |
#119 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#120 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,582
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
By the way, in Sigil 1.9.20 under Arch Linux, the plugin is not working any more; the insertion can't be completed, the dialog is showed but does nothing.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wrap in SVG plugin? | gezginrocker | Plugins | 18 | 07-05-2015 12:20 AM |
svg image on top of a background png image | roger64 | ePub | 25 | 04-24-2015 11:00 AM |
Display of a png image linked to a svg image | roger64 | Editor | 6 | 03-13-2015 06:21 AM |
Image wrap test | Jellby | ePub | 15 | 05-04-2011 02:30 PM |
Combining blockquote with image wrap | WRB | Sigil | 1 | 02-12-2011 07:46 PM |