View Single Post
Old 12-16-2020, 10:44 AM   #16
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,884
Karma: 6120478
Join Date: Nov 2009
Device: many
Unfortunately, the nav is being completely rebuilt each time from scratch and any added attributes are lost. That said, any time we add an epub-type toc attribute we can add in the matching aria roll attribute as well. It can not hurt!

As for default selections for editing when format tools are used when no text is selected, I will look into that. That should be doable.

I personally am not a fan of autocorrect or autocomplete. When writing longer things I typically speed things up by using my own unique abbreviations for longer or often used words and then doing a find and replace for each abbreviation. But this is typically done in a Word Processor long before loading it into Sigil.

So let's hear what others are think about that feature request.

Thanks!


Quote:
Originally Posted by elibrarian View Post

Headers (H1-H6) will always be a full line. So why not make the CTRL + 1 etc. insert <h1>-</h1> tags around the line, in which the cursor is placed, if (and only if) no text is selected?

Almost the same goes for bold, italics etc. - if no text is selected, the ctrl + b (e.g.) could surround the word where the cursor is placed.

(I have made something like it in most of my tekst/html-editors using macros or AutoHotKey, and you'll be amazed how many mouse moves and time it saves!)

Also, how about an autocorrect function with the ability to use personal and exchangeable word lists (like the one in Atlantis, but with regexes)?

And then one small gripe: When I regenerate a TOC, Sigil will preserve the header and the "<nav epub:type='toc' id='toc'>", but removes "role='doc-toc'". It is of course a small thing to re-insert (I always run ACE as one of the last things before publishing my books, and it will tell me if I forget).

Regards,

Kim
KevinH is offline   Reply With Quote