View Single Post
Old 04-05-2018, 02:32 AM   #16
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by billyray520 View Post
However, I know this is a style thing, but can you fix the plugin so it DOES NOT automatically put the square brackets around the footnote number?
The square brackets may not look aesthetically pleasing, but as Roger64 has already pointed out, they make it easier to select footnote links. If you don't like them you'll have to change the source code yourself.

If you have a Windows machine, use the following commands to display the FootnoteLinker plugin folder:
  1. Press Windows+R (Run).
  2. Copy and paste %USERPROFILE%\AppData\Local\sigil-ebook\sigil\plugins\FootnoteLinker and press Enter.
and change the following two lines in plugin.py:

1. Change line 229 from:

Code:
                each_tag.a.string = '[' + str(sup_counter) + ']'
to:

Code:
                each_tag.a.string = str(sup_counter)
2. Change line 237 from:

Code:
                each_tag.string = '[' + str(sup_counter) + ']'
to:

Code:
                each_tag.string = str(sup_counter)
Doitsu is offline   Reply With Quote