View Single Post
Old 12-23-2012, 02:43 PM   #53
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Doitsu View Post
Yes, but only if the highlighted text is not flagged by the spell checker in which case only spelling suggestions are being displayed.
Ah, yes, a feature to avoid too many entries in the menu. I'll change that - especially since we'll put the clips under a Clips menu on the context menu.

Quote:
(Unlike previous versions, there doesn't seem to be an option to turn off the spell check in v6.)
Use the toggle Tools->Spellcheck->Highlight misspelled words.

Quote:
IMHO, it would be helpful if one of the next minor versions would have the one of the following features:
- user defined shortcut keys and/or toolbar buttons for 1-5 custom styles/clips (E.g. S1, S2, S3, S4 and S5) that can be applied in Book View mode
- a user defined Small Caps style, e.g. <span class="sc">\1</span> with a dedicated toolbar button and a shortcut key
A dedicated small caps button is probably out since it can be done in so many ways. Specific dedicated buttons for more formatting are also probably unlikely - everyone wants their own custom button. The existing ones cover the common items and others are better implemented flexibly with clips.

Using the clips in Book View isn't straightforward. But after reading the comments in the thread I took another look, and, funnily enough getting them to partly work was actually not too involved (after all the previous work to get the javascript right for inserting ids, etc. of course). But Book View will not support much with this first approach and will not give you the control you have in Code View. So you can use <span...>\1</span> entries ok, but <div> tags will be ignored and <p> tags get mangled if the whole paragraph isn't selected. You can also end up with extra nbsp entities. It might be possible to work around this with some heavier scripting (to avoid for example trying to insert a div tag inside a p tag), but at the moment, if it stays, we'll just warn that Book View clips can only use simple tags like span, etc., if it

A way to provide buttons and/or shortcuts is interesting. I actually had buttons for clips on the toolbar at one point just to see if it was possible (it was), but took them off in favour of the context menu. I'll look into adding them again if it still seems ok - a lot is different since clips first went in. Possibly we'll turn a specific clip group or the top level clips into buttons. Although it may be that buttons aren't necessary with the new Clip window since you can single click them from a list. Shortcuts if added may be limited to 5 or 10 probably manually defined in the shortcut preferences - not sure if they'll have to match the buttons. Another option is to handle it like the Clipboard History - a shortcut to open the new Clip window and then 0-9 to select a clip. Something to experiment with - but suggestions welcome.

Did you know you could use the current Clips with keyboard only - just use the shortcut to open the window, type the first few letters, tab to paste, and esc to close the window. Not too much of a shortcut, but its something and gives you an idea of what they might be like.

And all of this discussion of Clips ties into consideration of a CSS styles dropdown or list feature - a list of styles defined in the CSS files. Given the flexibility of Clips, and the difficulty with CSS styles (when to apply, what to actually apply, etc.) its likely that we may not won't implement a CSS styles dropdown/list since we already have Clips.
meme is offline   Reply With Quote