![]() |
#1 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
|
p> displaying in text of epub made in Sigil
Part of what I assume to be a paragraph tag is displaying in the epub I made in Sigil.
I see p> often, through the document. However, I don't see all the code in the document (which would lead me to assume that it was simply as case that I was in some sort of combined book and code view, and that the code would not be visible to readers of the epub unless they selected a view to see the code. I don't want to remove all the incidents of p> unless I know that is what I must do. What do I do, please? ![]() |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,014
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you can post a cose snippit, then we can see what needs to be done.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
|
I don't know how to find or paste a code snippit from an ePub. I took a screen shot but cannot find where it was saved!
This is part of the the epub document pasted from Calibre (which I have not used since I installed it, so don't know how to use yet). Let us do a recap of what you have learned in this chapter. You receive information via your senses. Your filters then determine your internal representation of that event. It is your internal representation that puts you in a certain state and this, in turn, creates your physiology. The state in which you find yourselves will determine your behaviour or reaction to what happens around you. p>* *EXERCISE* p>* p>* p>* Appreciating Your Own Values and Those of Others Write down some of the values and beliefs you have. For example, things that you want to experience and have? Success? Freedom? Adventure? Security? Last edited by LittleMissS; 03-28-2020 at 08:00 AM. |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,014
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It could be that you have your code looking like...
<p>p>*</p> <p>p>*</p> <p>p>*</p> That would give you the look you are seeing instead of... * * * The code you want instead of three lines is... <p class="center">* * *</p> in CSS... .center { margin-top: 0.8em; margin-bottom: 0.8em; text-align: center; text-indent: 0; } |
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
|
Quote:
In Sigil in code view I have just used Find (in Rengex mode) to look for incidents of <p>p>*</o ![]() So I then looked for >p and see the following, a number to times <p>p> *</o ![]() I assume the >p between <p> and *</o ![]() I am not sure why I can see an emoji inserted within the code above when I preview my reply to your reply! Would that be in the code in Sigil / epub - or only in here, maybe because I used the bold? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
<p>p> is clearly damaged code.
Someone probably did a S&R with a really messed R ![]() I would try and fix the <p>p> and then go from there and see what other bog there is ![]() |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,347
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Broken tags will most likely appear as html entities in Code View.
You'll probably need to search for p> to find the broken tags (that sigil had nothing to do with creating, btw). |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
|
If by 'p>' you mean to do so in Sigil Find, then I have just done that and it says 'No Matches found'.
|
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#10 | |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
|
No. I pasted code into the Find facility, set to Regex. I assume that does the same job but is part of Sigil? I was getting it saying ' No matches found '
for >p <o ![]() ![]() <o: <p>p>*</p> When I tried to paste in <p>p>*</p> <p>p>*</p> <p>p>*</p> (as shown )... Quote:
and also came back as 'No matches found'. Now I reopen and try again, I am getting that there is an error on line 62 as follows... <p><!--[if gte vml 1]><v:shape id="Picture_x0020_3" |
|
![]() |
![]() |
![]() |
#11 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Use Normal mode and only the first part
* is a wild card in Normal ![]() <p>p> replace with <p> |
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
1. Save the original manuscript as a .docx file. 2. Convert it with Calibre to an epub file. I can pretty much guarantee you that you'll get fewer error messages, because the Calibre docx-to-epub converter generally produces standard-compliant epub files. |
|
![]() |
![]() |
![]() |
#13 | |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
|
Because I am somewhat dysphraxic it takes me a long time to type, scroll, copy and paste., etc I get timed out an have to log back in. The my typing is lost, or more messages come in.
So excuse me if what I paste is has been answered whilst I have been typing. Thankfully I copied it in case of timing out Psting now.. No. I pasted code into the Find facility, set to Regex. I assume that does the same job but is part of Sigil? I was getting it saying ' No matches found ' for >p <o ![]() ![]() <o: <p>p>*</p> When I tried to paste in <p>p>*</p> <p>p>*</p> <p>p>*</p> (as shown )... Quote:
and also came back as 'No matches found'. Now I reopen and try again, I am getting that there is an error on line 62 as follows... <p><!--[if gte vml 1]><v:shape id="Picture_x0020_3" I don't know if it is relevant, but part way through all this hassle, I realised that I still had the ToC that was in the Word paperback version that I am using to make the ePub. I had forgotten the remove the ToC before pasting the content from Word. So, as it had taken me 20 mins to scroll to select lots of code, I didn't want to start again. Instead, I went into the code and removed what I assumed to be the ToC code (just a line or two). But I had problems before then anyway. Perhaps I will have to start again tomorrow when I am less stressed! So far, code I have either deleted or swapped has been about 700 lines of a hgue bock of code following Cubbon Sigil video. https://www.youtube.com/watch?v=A_Z8aQeEMmg Also (following his video) I have searched for the following with the Find box in regex mode : <p[^>]*> Replaced with <p> <span[^>]*> Replaced with nothing </span> Replaced with nothing <v:[^> Replaced with nothing </v[^>]*> Replaced with nothing <!^>]*> Replaced with nothing width=”[^>]*” Replaced with nothing *</p> Replaced with space <p>*</p> Replaced with nothing V:[^>]* Replaced with I deleted manually (some of them came back as No matches found -I assume this to mean that there were no incidences). Is that so? Then - as per online advice elsewhere, I also searched for the following codes using the Doc with the doc with Find Regex: <o ![]() ![]() <o: <p><b> </b></p> * Then I tried the suggestions on here. I hope my having put all this here hasn't made it as confusing for you as it is for me!! Do you know if there is an extensive list of code to search for and swap / remove? I thought the code in Rob C's video was enough, but it seems not! |
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,347
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Please tell me you're not blindly applying regex Find & Replaces gleaned from an online video to an entire book's worth of html.
![]() |
![]() |
![]() |
![]() |
#15 | |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
|
Quote:
An IT savvy friend followed the video and thought it seemed fine. Though, he (like me a year ago) had never heard of Sigil and had never made an ebook. For some reason, he could scroll and select all the thousands of lines of code to delete in a few seconds, after I had I gave up after 10 mins. He is not dyspraxic and his laptop is better. He is going to do the updated 316 page Word file of that document from a year ago, in Sigil when he gets time but has so many other priorities. So I cannot now ask him to do these two shorter documents. 86 and 72 pages. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Books Made With Sigil? | fncll | Sigil | 10 | 01-20-2017 07:05 AM |
Wanting to convert Sigil-made EPUB to PDF | Gregg Bell | Sigil | 10 | 11-16-2013 08:00 PM |
Why is Sigil 0.7.1 displaying all text oblique? | Abull | ePub | 28 | 04-20-2013 01:57 PM |
Sigil displaying WYSIWYG oddly | moz | Sigil | 6 | 12-27-2009 05:07 PM |
"PK": Only text when I open in Sigil an ePub file generated with Calibre | Terisa de morgan | Sigil | 3 | 12-14-2009 11:24 AM |