Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2017, 08:36 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Insert Tags

The Insert Tags feature in the editor is useful and I use it a lot.

There are 8 built in formatting icons and 4 built in alignment icons that work on the selected text (bold, italic, left, right, etc.)

It would be very convenient if there were (say) 6 to 8 'user programmable' icons on that tool bar to put the frequently used ones.
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	220
Size:	124.5 KB
ID:	159839  
phossler is offline   Reply With Quote
Old 11-06-2017, 11:51 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not something I am interested enough to implement, sorry. But patches are welcome.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-07-2017, 05:30 PM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Disappointed, but I understand. Maybe someone will write a patch (I know I can't)

Last edited by phossler; 11-07-2017 at 06:03 PM.
phossler is offline   Reply With Quote
Old 11-07-2017, 10:03 PM   #4
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
I use MacroMaker for several things, especially to add lines in the stylesheet.css file. A few keyboard shortcuts I have set up in MacroMaker are: ctrl-shift-J inserts text-align: justify; , ctrl-shift-K inserts <span class="smaller"> before capitalized text to make it smaller, ctrl-alt-C inserts text-align: center; into the CSS file, ctrl-shift-T inserts the codes for "p", "class", and "chapter" onto the line when creating a TOC based on chapters. I also use some of the keyboard shortcuts that are configurable in the Calibre Editor Preferences. F10 inserts the italic codes around italicized words in the text that I've highlighted. F9 saves the file. Just some ideas for you.
deback is offline   Reply With Quote
Old 11-08-2017, 09:35 AM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks -- I'll check it out

I can (1) tag selected text with h1-h6 and p using built in shortcut keys, and I can (2) define my own tags using [Insert Tags], but I find it cumbersome to have to locate the tag I want to insert from the drop down push down stack since it seems to me that it's constantly being re-arranged

It's fine (except for the extra clicking) if I'm using the previous 2 or 3
phossler is offline   Reply With Quote
Advert
Old 11-08-2017, 10:05 AM   #6
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@phossler,

PhraseExpress is another option for storing keyboard shortcuts, macros etc. It's free for non-commercial use. I've used it without problem for a few years. I like the fact that it allows me to use the same shortcut for both the calibre Editor and my standard text editor as I'm hopeless remembering shortcuts if they're different in every app.
jackie_w is offline   Reply With Quote
Old 11-08-2017, 10:51 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If what you really want are keyboard shorcuts, you can create snippets instead, which will let you do what insert tag does and also not need to remember shortcuts, since you can instead type a descriptive (short) word instead.
kovidgoyal is offline   Reply With Quote
Old 11-08-2017, 12:08 PM   #8
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Quote:
Originally Posted by jackie_w View Post
@phossler,

PhraseExpress is another option for storing keyboard shortcuts, macros etc. It's free for non-commercial use. I've used it without problem for a few years. I like the fact that it allows me to use the same shortcut for both the calibre Editor and my standard text editor as I'm hopeless remembering shortcuts if they're different in every app.
I just installed PhraseExpress to check it out. It changed all my icons to something else (to some different program), so I uninstalled it and ran my fixicons.bat file to delete all the iconcache*.* and thumbcache*.* files. Looks like I'll have to reboot to complete the fix. I'll stick with MacroMaker, which is much easier and less confusing to use. (I will say that I spent less than a half a minute looking at the main PhraseExpress window before making the decision to not use it. Then, finding that the icons all changed affirmed my decision to uninstall the program.)

Next step is to find how to create snippets--and (1) figure out how to have multiple author names retained in the filenames after converting epub files and (2) after I move the converted files back to the author's folder, how to retain the longer filename, so I don't have to keep using F2 to copy the previous file's filename, delete the old file, and then use F2 to paste the longer filename to the converted file--both of which I'm pretty sure, after reading about these subjects in threads on this site, there are no solutions.
deback is offline   Reply With Quote
Old 11-08-2017, 12:25 PM   #9
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Just remembered that I need to exit from explorer.exe and then run the batch file to fix the icons. That way, I won't have to reboot the computer.
deback is offline   Reply With Quote
Old 11-08-2017, 12:36 PM   #10
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@deback,

I'm sorry you had problems with PhraseExpress. Obviously I didn't have these installation problems myself or I wouldn't have posted. Luckily there are several shortcut utilities around so everyone should be able to find something to suit their abilities and usage.
jackie_w is offline   Reply With Quote
Old 11-09-2017, 09:41 AM   #11
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
If what you really want are keyboard shorcuts, you can create snippets instead, which will let you do what insert tag does and also not need to remember shortcuts, since you can instead type a descriptive (short) word instead.
Actually I tried Snippets first. I've only used them for the basics (like inserting boilerplate text, etc.), but always a good time to learn

I could not get them to work to bracket selected text; the 'trigger' seemed to replace the selection, and then the expanded snippet was empty (of course, it always could have been my snippet definition)

If I select text ("anyone") what I wanted to end with was

<span class="example">anyone</span>


just like selecting "anyone", clicking [B] and ending with

<b>anyone</b>
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	161
Size:	99.9 KB
ID:	159927  
phossler is offline   Reply With Quote
Old 11-09-2017, 10:51 AM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The way to have snippets work with a selection is

Select the text

Press Ctrl+J

type the snippet trigger phrase

press ctrl+J

Try it with the builtin snippet https://manual.calibre-ebook.com/sni...tml-link-tag-a
kovidgoyal is offline   Reply With Quote
Old 11-09-2017, 01:27 PM   #13
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
The way to have snippets work with a selection is

Select the text

Press Ctrl+J

type the snippet trigger phrase

press ctrl+J

OK, I finally got it - it was the first ctrl-J deleting the selection that was confusing me

This was my simple snippet test template

<span class="example">${1*}</span>$2

that I finally got to work to bracket the selection with some tags
phossler is offline   Reply With Quote
Old 11-09-2017, 01:56 PM   #14
Thom*
The Fumbler
Thom* began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
I have learned to end the process by entering ctr+j not once but twice in order to exit the snippet. Otherwise, the next time you use ctr+j is unpredictable.
Thom* is offline   Reply With Quote
Old 11-09-2017, 02:10 PM   #15
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Quote:
Originally Posted by Thom* View Post
I have learned to end the process by entering ctr+j not once but twice in order to exit the snippet. Otherwise, the next time you use ctr+j is unpredictable.
Your browser might be using CTRL-J for something. In my Chrome browser, CTRL-J opens my downloads folder in a new tab. That's why it's usually better to use CTRL-SHIFT and a letter, to prevent interfering with shortcuts built into the browser and/or Windows.
deback is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert user-defined tags [<>] phossler Editor 4 05-14-2014 10:35 AM
Insert tags feature RJA Editor 5 05-06-2014 04:45 PM
Searching tags to show tags I want even when it has a tag I do not Jade Aislin Library Management 2 04-25-2012 01:01 PM
Calibre Tags & Aldiko Tags Not the Same Themus Calibre 3 03-21-2012 08:23 PM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-19-2011 11:18 PM


All times are GMT -4. The time now is 12:39 AM.


MobileRead.com is a privately owned, operated and funded community.