Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-23-2014, 12:36 PM   #1
phossler
Addict
phossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensions
 
Posts: 371
Karma: 51406
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: kindle
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
Attached Thumbnails
Click image for larger version

Name:	Before.JPG
Views:	77
Size:	35.5 KB
ID:	119456   Click image for larger version

Name:	After.JPG
Views:	77
Size:	38.2 KB
ID:	119457   Click image for larger version

Name:	Expected.JPG
Views:	68
Size:	37.5 KB
ID:	119458  
phossler is offline   Reply With Quote
Old 02-23-2014, 01:13 PM   #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: 26,436
Karma: 5383257
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.
kovidgoyal is offline   Reply With Quote
Old 02-25-2014, 06:22 PM   #3
phossler
Addict
phossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensionsphossler can understand the language of future parallel dimensions
 
Posts: 371
Karma: 51406
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
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.
I understand

Would it be possible to determine if there is text selected (#chars > 0) and if so then wrap the selected text in tags?
phossler is offline   Reply With Quote
Old 02-25-2014, 06:40 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,268
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by phossler View Post
I understand

Would it be possible to determine if there is text selected (#chars > 0) and if so then wrap the selected text in tags?
Sigil also has something that works only to flip tags

<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
theducks is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Librarything using Ctrl-D in GUI bwk Calibre 24 04-03-2012 12:34 PM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-20-2011 12:18 AM
Remap a Ctrl key for WebBrowser-based SSH tamsanh Kindle Developer's Corner 3 01-14-2011 10:53 AM
Calibre 0.7.22 Ctrl D not working as well as 0.7.21 logs Calibre 2 10-08-2010 02:33 PM
iLiad No 'Ctrl' on iLiad?! ericshliao iRex Developer's Corner 7 11-06-2008 07:12 PM


All times are GMT -4. The time now is 07:57 PM.


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