10-22-2016, 02:55 AM | #16 |
Junior Member
Posts: 1
Karma: 10
Join Date: Oct 2016
Device: Kindle
|
Wow! Thanks a lot Kim for this plugin.
Just a little problem. I write in French and this language uses very often non breaking spaces especially before exclamation marks, interrogations marks, ending quotations marks, and so on. So I very often have something like this : Code:
aaa^[blabla] ! Code:
aaa² ! Code:
aaa² ! An idea? |
10-22-2016, 04:47 AM | #17 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Most likely the plugin didn't delete the non-breaking spaces, but merely replaced them with Unicode characters.
You can test this by installing and running the ShadyCharacters plugin. If that brings back the entities, select Edit > Preferences > Preserve Entities and and add to the list. |
Advert | |
|
10-22-2016, 04:51 AM | #18 | |
Imperfect Perfectionist
Posts: 552
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
I have no idea why it's doing so (should be grabbing and using just whatever is between the []'s. I'll look into it, but I have some deadlines for other stuff, so it may be some days, before I get round to it. Regards, Kim |
|
10-23-2016, 03:53 AM | #19 |
frumious Bandersnatch
Posts: 7,537
Karma: 19000627
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Just a note about this. Instead of a "normal" non-breaking space, consider using a thin one:  . It could be unsupported in some fonts, but I think every modern reader's default font has it now, and it looks much better.
|
10-23-2016, 05:41 AM | #20 | |
Imperfect Perfectionist
Posts: 552
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
I'm afraid I cannot reproduce your problem (Sigil 0.9.6, no "preserve entities" set. Windows 10). The " !" in your sample is outside the []' and thus not touched by the plugin, which make me suspect the problem lies somewhere else. I've made a small sample epub containing the offending code untitled.epub, and running the plugin doesn't alter anything in it - alle entities are preserved. Please try it and let me know the result (you could send me the resulting file.) That is by design. "²" is very nice and printed-book-like, but almost unusable on a small touch-screen reader or computer, so I put in the ekstra word to make the note links a little bigger. You and anyone else are of course free to edit my code to suit your purposes and preferences Regards, Kim |
|
Advert | |
|
10-23-2016, 09:33 AM | #21 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
10-23-2016, 11:23 AM | #22 |
2B || !2B
Posts: 852
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
+1 to that,
and maybe at bit OT: but why is nobody extending the link (< a > tag) so that the endnoted word itself is the hyperlink? HTML Code:
<p>Lorem ipsum dolor sit amet, <a href="#fn1" id="fnref1">consectetur <span class="footnoteRef">1)</span></a> adipiscing elit. </p> Code:
span.footnoteRef { text-decoration: none; border-bottom: 1px dotted; color: inherit; position: relative; top: -0.5em; font-size: 70%; } |
10-23-2016, 12:59 PM | #23 | |
Well trained by Cats
Posts: 30,455
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Edit: Preferences: (left sidebar) |
|
10-23-2016, 02:01 PM | #24 |
Imperfect Perfectionist
Posts: 552
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
|
10-23-2016, 04:40 PM | #25 |
Well trained by Cats
Posts: 30,455
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
10-23-2016, 06:19 PM | #26 | |
null operator (he/him)
Posts: 21,014
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I put the reference number in brackets either with a less than normal font-weight value (e.g. 200) or colour, so something like this. [23] That's big enough to touch or click, whilst being unobtrusive. BR |
|
10-23-2016, 06:49 PM | #27 | |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If, however, the user in question has removed from his list of entities to preserve, it would explain why it's being replaced by a normal space after the plugin run (or an epub save and subsequent reopen). Last edited by DiapDealer; 10-23-2016 at 06:54 PM. |
|
10-24-2016, 05:51 AM | #28 | |
Imperfect Perfectionist
Posts: 552
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
I just installed Sigil 0.9.6 on another computer, where Sigil has never been installed before, and yes, is there by default (I actually set # 160 ; in my working copy of Sigil many Sigil versions ago, since that is what I normally use. I removed it for the sake of the experiment here). Then I installed my plugin on this virgin installation, and ran it on a file. None of the entities in the file was altered - not by running the plugin, not after a save as and reopening. I then removed the from the "preserve entities", closed and reopened Sigil, opened the file again and ran the plugin. Same result. I simply cannot reproduce the error. Hence I must conclude that something else is afoot. |
|
02-15-2017, 02:12 PM | #29 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Issue with the plugin
Hi;
I'd like to work -with this plugin- incrementally but it gives me an error message: Spoiler:
Of that way, it's impossible for me to add new footnotes once I have added footnotes previously with the plugin. Can this issue be fixed? Thank you very much in advance. Rubén |
02-15-2017, 02:27 PM | #30 | |
Imperfect Perfectionist
Posts: 552
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
That might be fixed by letting the plugin check for existing footnote.css - I'll look into it next weekend - but still, this is not footnotes the MSWord/Libreoffice way, and I doubt it's possible to get that functionality in Sigil. (But ideas are welcome, and anyone are welcome to tamper with my probably rather crude coding.) Regards, Kim |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
endnotes in epub with Sigil, multiple html | BMaloney | Sigil | 9 | 10-10-2019 05:34 PM |
How to publish epub with endnotes on Feedbooks? | Begemot | Writers' Corner | 6 | 09-04-2015 06:51 AM |
Conversion of Endnotes .docx to .epub | profjones | Conversion | 1 | 11-01-2013 09:05 AM |
Public domain ePub with endnotes. | John F | Reading Recommendations | 8 | 03-27-2012 12:09 PM |
Linked endnotes in epub | virtual_ink | ePub | 30 | 08-30-2011 05:47 PM |