| 
			
			 | 
		#31 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,877 
				Karma: 8821117 
				Join Date: Mar 2013 
				Location: Rosario - Santa Fe - Argentina 
				
				
				Device: Kindle 4 NT 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 So, after you explained me how works your plugin, I could manage a bit the issue by doing the following: 1) By erasing "footnote.css" 2) By opening "plugin.py" and changing manually the values for "lastid" and "fnid". But of course, if you can check the existence of "footnote.css" and add a field for your plugin where the user can write the number of the next footnote would be great ![]() Many thanks again for your answer! Rubén  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#32 | 
| 
			
			
			
			 Imperfect Perfectionist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720 
				Karma: 863576 
				Join Date: Dec 2011 
				Location: Ølstykke, Denmark 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				New version 0.2.0
			 
			
			
			I' ve uploaded a new version of the plugin in post #1 of this thread, adressing some of RbnJrg's needs. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	It should be considered a beta-version, so don't run it on original/production files until you're satisfied it works as expected. For those who likes dissection code: it's a mess, I know that, but this is more or less a "learning by doing"-project for me, and I must confess, I find python's way of handling variables and the necessity to use indents rather confusing (I'm coming from Lotus Notes/VBA/Object Pascal). So it's more or less: Hey, this works, I'll use it ![]() Regards, Kim  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#33 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,877 
				Karma: 8821117 
				Join Date: Mar 2013 
				Location: Rosario - Santa Fe - Argentina 
				
				
				Device: Kindle 4 NT 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Rubén  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#34 | |
| 
			
			
			
			 Imperfect Perfectionist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720 
				Karma: 863576 
				Join Date: Dec 2011 
				Location: Ølstykke, Denmark 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 It's made with Python 3.6 and tested under Sigil's builtin P. 3.5, and since I'm not using anything advanced, neither version should pose any problems - just the damned underscore ![]() Regards, Kim Last edited by elibrarian; 02-20-2017 at 04:41 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#35 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,877 
				Karma: 8821117 
				Join Date: Mar 2013 
				Location: Rosario - Santa Fe - Argentina 
				
				
				Device: Kindle 4 NT 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
   It works perfectly!
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#36 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 1 
				Karma: 10 
				Join Date: Mar 2017 
				Location: Tampa, FL 
				
				
				Device: iPad 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			FYI, the 0.2.0 beta script is using 'tilbage' instead of 'back' for the link on the bottom of the page.  Unless that's intended as a step in the subtle 'Dane World Domination' plan.   
		
	
		
		
		
		
		
		
		
		
		
		
	
	![]() Otherwise, the script works great so far.  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#37 | ||
| 
			
			
			
			 Imperfect Perfectionist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720 
				Karma: 863576 
				Join Date: Dec 2011 
				Location: Ølstykke, Denmark 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Quote: 
	
 ![]() Good to know, thanks! Regards, Kim  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#38 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878 
				Karma: 2457540 
				Join Date: Nov 2011 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I love an ingenious plugin as much as anyone!   But note that Word has full support for endnotes and that, as long as Paragraph Styles have been strictly used, an epub conversion by Calibre supports them very well.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#39 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,891 
				Karma: 207182180 
				Join Date: Jan 2010 
				
				
				
				Device: Nexus 7, Kindle Fire HD 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 If there's something that can be done with calibre that can't be done with Sigil or Sigil plugins (or if someone specifically asks about calibre functionality), by all means, share (where relevant). I'm certainly no enemy of calibre, after all. But otherwise, consider leaving the random calibre lessons for the calibre/EPUB forums, please. Last edited by DiapDealer; 03-14-2017 at 10:29 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#40 | |
| 
			
			
			
			 Imperfect Perfectionist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720 
				Karma: 863576 
				Join Date: Dec 2011 
				Location: Ølstykke, Denmark 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 ![]() Regards, Kim  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#41 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878 
				Karma: 2457540 
				Join Date: Nov 2011 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I fully support your freedom to do things the tecchy way!   But you might be surprised at how clean the epub code is from a properly structured Word document converted by the generally-available tools.   No-one's suggesting it shouldn't then be enhanced in Sigil. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	The easiest money I ever earned was an epub conversion from a book created in Word, by someone who knew how to use Word properly. A rare occurrence!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#42 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 900 
				Karma: 3501166 
				Join Date: Jan 2017 
				Location: Poland 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Add to code (line 71): 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	            # only once for each file with notes
            cssexist = re.search(r'\.\.\/Styles\/footnote\.css', html)
            if not cssexist:
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#43 | |
| 
			
			
			
			 Imperfect Perfectionist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720 
				Karma: 863576 
				Join Date: Dec 2011 
				Location: Ølstykke, Denmark 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I've updated the plugin as per your suggestion, and uploaded a new version 0.2.1 to the first post of this thread. Also I've updated the intro/userguide pdf. Since we don't do epub-2 any more, it's unlikely the plugin will be further developed (unless someone catches an error). I might have an epub-3-savvy version in the works, but at present this is not ready for the rest of the world to see. Regards, Kim  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#44 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,088 
				Karma: 11502975 
				Join Date: Mar 2013 
				Location: Guben, Brandenburg, Germany 
				
				
				Device: Kobo Clara 2E, Tolino Shine 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm on an ebook with several notes. At the end of editing, I ran the plugin, and it recognized almost all of the notes; only one remained unrecognized. I ran it once more, with the same result. Then, I wrote the text inside the brackets completely anew, suspicioning that it might be a formatting issue. Now I ran the plugin once more, and the note was recognized. Nevertheless, I got the following error message: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	Status: failed
Section0001.xhtml Text/Section0001.xhtml No notes found
Section0002.xhtml Text/Section0002.xhtml No notes found
Section0003.xhtml Text/Section0003.xhtml No notes found
Section0004.xhtml Text/Section0004.xhtml No notes found
Section0005.xhtml Text/Section0005.xhtml No notes found
Section0006.xhtml Text/Section0006.xhtml Note 1:Das Buch von Reinhard Junker und Siegfried Scherer »Evolution –ein kritisches Lehrbuch« empfehlen wir sehr für alle, die sich näher mit diesem Thema beschäftigen möchten (Weyel Verlag, Gießen, 1998).
Section0006.xhtml Text/Section0006.xhtml No notes found
Section0007.xhtml Text/Section0007.xhtml No notes found
Section0023.xhtml Text/Section0023.xhtml No notes found
Section0008.xhtml Text/Section0008.xhtml No notes found
Section0024.xhtml Text/Section0024.xhtml No notes found
Section0009.xhtml Text/Section0009.xhtml No notes found
Section0010.xhtml Text/Section0010.xhtml No notes found
Section0011.xhtml Text/Section0011.xhtml No notes found
Section0025.xhtml Text/Section0025.xhtml No notes found
Section0012.xhtml Text/Section0012.xhtml No notes found
Section0013.xhtml Text/Section0013.xhtml No notes found
Section0014.xhtml Text/Section0014.xhtml No notes found
Section0015.xhtml Text/Section0015.xhtml No notes found
Section0016.xhtml Text/Section0016.xhtml No notes found
Section0017.xhtml Text/Section0017.xhtml No notes found
Section0018.xhtml Text/Section0018.xhtml No notes found
Section0019.xhtml Text/Section0019.xhtml No notes found
Section0020.xhtml Text/Section0020.xhtml No notes found
Section0021.xhtml Text/Section0021.xhtml No notes found
Section0022.xhtml Text/Section0022.xhtml No notes found
Section0026.xhtml Text/Section0026.xhtml No notes found
Section0027.xhtml Text/Section0027.xhtml No notes found
Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\Jürgen\AppData\Local\sigil-ebook\sigil\plugins\ePub2-Notes\plugin.py", line 37, in run
    bk.addfile(uid, basename, cssdata, mime)
  File "C:\Program Files\Sigil\plugin_launchers\python\bookcontainer.py", line 178, in addfile
    self._w.addfile(uniqueid, basename, data, mime, properties, fallback, overlay)
  File "C:\Program Files\Sigil\plugin_launchers\python\wrapper.py", line 585, in addfile
    raise WrapperException('Manifest Id is not unique')
wrapper.WrapperException: Manifest Id is not unique
Error: Manifest Id is not unique
Looking at the OPF file, I couldn't identify any issue, and neither epubcheck, Flightcrew and Calibre found any error. Could someone help, please?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#45 | |
| 
			
			
			
			 Imperfect Perfectionist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 720 
				Karma: 863576 
				Join Date: Dec 2011 
				Location: Ølstykke, Denmark 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Also, check that you have the newest version of the plugin, with code from BeckyEbook to avoid this situation entirely. Regards, Kim Last edited by elibrarian; 01-04-2019 at 02:18 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			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 |