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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2012, 07:20 AM   #1
ronaldl
Enthusiast
ronaldl began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Aug 2011
Location: Georgia
Device: Kindle 3
Enter text in Book View or Code View

I am nowing using Sigil instead of going thru Word to generate my text because I do like to bit fiddle.

This is a general "entering data" question.

At first, I started using the Book View but noticed that instead of <p></p> enclosing my paragraphs, Sigil would delineate the raw text by using <div></div> along with other tags just as <bk/>.

I now enter "raw text" by hand in the code view.

When entering raw text in the book view, how can I tag my paragraphs with the paragraph tags. CR/LF doesn't do it. In fact, should raw text be entered in book view?

Thanks
Ronald
ronaldl is offline   Reply With Quote
Old 10-29-2012, 07:53 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,017
Karma: 40855212
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by ronaldl View Post
I am nowing using Sigil instead of going thru Word to generate my text because I do like to bit fiddle.

This is a general "entering data" question.

At first, I started using the Book View but noticed that instead of <p></p> enclosing my paragraphs, Sigil would delineate the raw text by using <div></div> along with other tags just as <bk/>.
I don't see that behavior at all. Entering raw text in Book view results in the normal expected <p></p> when typing normally and using the return key.

Quote:
I now enter "raw text" by hand in the code view.
Code view is for code.

Quote:
When entering raw text in the book view, how can I tag my paragraphs with the paragraph tags. CR/LF doesn't do it. In fact, should raw text be entered in book view?
It's not something I do very often, but there's no reason text shouldn't be entered in Book View, but I'm beginning to think your definition of "entering raw text in Book View" is different than mine. I'm talking about typing the text directly into Sigil's Book View and you may be talking about "pasting" text from another app into Sigil's Book View. We should probably straighten that out first.
DiapDealer is offline   Reply With Quote
 
Enthusiast
Old 10-29-2012, 12:29 PM   #3
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: 14,625
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Raw text might be another name for Pre-formatted Text

<pre>My P re-formated Text</pre>

There should NEVER be naked text (non-enclosed),<br /> in a EPUB
theducks is offline   Reply With Quote
Old 10-29-2012, 12:39 PM   #4
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Book View when you hit Enter will repeat whatever tags exist on hte block you edited.

So if you start off with text in <div> tags, and then hit enter to type more text, it too will end up in div tags with the same class applied if any.

If you want text in <p> tags in Book View, just make sure you start you editing within <p> tags (which is what Sigil does by default). That it "went wrong" for you simply means that your text you hit enter within originally was a <div> rather than a <p> tag.

Note that in Book View you can also ensure the current text block is within <p> tags by using the Headings toolbar/Format menu option, to choose the "Normal" option. That will switch any block tag (headings, blockquotes, or divs etc) into a <p>.
kiwidude is offline   Reply With Quote
Old 10-29-2012, 03:11 PM   #5
ronaldl
Enthusiast
ronaldl began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Aug 2011
Location: Georgia
Device: Kindle 3
Quote:
Originally Posted by DiapDealer View Post
I don't see that behavior at all. Entering raw text in Book view results in the normal expected <p></p> when typing normally and using the return key.


Code view is for code.


It's not something I do very often, but there's no reason text shouldn't be entered in Book View, but I'm beginning to think your definition of "entering raw text in Book View" is different than mine. I'm talking about typing the text directly into Sigil's Book View and you may be talking about "pasting" text from another app into Sigil's Book View. We should probably straighten that out first.
I do both.
ronaldl is offline   Reply With Quote
Old 10-29-2012, 03:12 PM   #6
ronaldl
Enthusiast
ronaldl began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Aug 2011
Location: Georgia
Device: Kindle 3
I do both. i enter by typing and I enter by doing cut and paste from notepad.
ronaldl 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
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 01:20 PM
Sigil highlight Book View No Longer Shows in Code View Themus Sigil 4 10-04-2012 07:54 PM
quotes differences book view & code view cybmole Sigil 13 03-29-2011 01:53 AM
lock book view & code view windows into synch cybmole Sigil 5 01-19-2011 10:30 PM
Possible to have default view as code view? sherman Sigil 5 06-15-2010 01:47 AM


All times are GMT -4. The time now is 02:15 PM.


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