02-23-2014, 11:36 AM | #1 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Ctrl-7 for <p> tags
If I high light some text and then try to apply tags using the [H1] icon in the code window, the <p>, it seems like the results are 'unexpected' and the tags are not where IMHO they should be
In my simple test starting with a blank doc (Before.jpg), the <body> level picks up the <p> tags using the [H1] icon (After.jpg), and not the selected text (expected.jpg) I think it's v1.25 but when I open the editor directly, I can't find a [Help]-[About] with a version. The Help icon links to the online manual |
02-23-2014, 12:13 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The operation is not insert tags, it is change tags. What it does is find the first surrounding block level tag and change it to the specified tag. In your case the first surrounding block level tag is body, which cannot be changed, so instead a tag is inserted inside body.
|
02-25-2014, 05:22 PM | #3 | |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Would it be possible to determine if there is text selected (#chars > 0) and if so then wrap the selected text in tags? |
|
02-25-2014, 05:40 PM | #4 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
<h2>Title</h2> placing the insert point cursor on the LINE, changes the tag to P I use the (Sigil) clips editor :<p>\1</p> "Foo said the bird" selecting all the text and using the button, wraps the text in a P pair We just need to wait till a Clips editor arrives in Calibre |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Librarything using Ctrl-D in GUI | bwk | Calibre | 24 | 04-03-2012 11:34 AM |
Amazon Tags - Popular tags vs Unique tags. | chrisanthropic | Writers' Corner | 6 | 09-19-2011 11:18 PM |
Remap a Ctrl key for WebBrowser-based SSH | tamsanh | Kindle Developer's Corner | 3 | 01-14-2011 09:53 AM |
Calibre 0.7.22 Ctrl D not working as well as 0.7.21 | logs | Calibre | 2 | 10-08-2010 01:33 PM |
iLiad No 'Ctrl' on iLiad?! | ericshliao | iRex Developer's Corner | 7 | 11-06-2008 06:12 PM |