|
|
#106 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16,954
Karma: 82522897
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
|
Quote:
|
|
|
|
|
|
|
#107 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,292
Karma: 5625799
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? |
|
|
|
|
|
|
#108 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,929
Karma: 4217884
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 03:40 PM. |
|
|
|
|
|
#109 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,292
Karma: 5625799
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
|
|
|
|
|
#110 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 606
Karma: 308286
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 02:51 AM. |
|
|
|
|
|
|
#111 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 62230
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,292
Karma: 5625799
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wrap in SVG plugin? | gezginrocker | Plugins | 18 | 07-05-2015 01:20 AM |
| svg image on top of a background png image | roger64 | ePub | 25 | 04-24-2015 12:00 PM |
| Display of a png image linked to a svg image | roger64 | Editor | 6 | 03-13-2015 07:21 AM |
| Image wrap test | Jellby | ePub | 15 | 05-04-2011 03:30 PM |
| Combining blockquote with image wrap | WRB | Sigil | 1 | 02-12-2011 08:46 PM |