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 07-23-2022, 08:17 AM   #1
valarcher
Member
valarcher began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2011
Device: kindle
PCDATA invalid Char value 12

Hi - I'm new to Sigil. I opened a txt file in it and 2 problems:

(1) I get error msg: "This page contains the following errors: error on line 933 at column 6: PCDATA invalid Char value 12. Below is a rendering of the page up to the first error."

It deletes all text after that error msg. line 933 is a simple sentence:
<p> Thank You For Reading!</p>

As a test, I deleted that line, and it gives the same error msg for another line 943 which again is a simple sentence used throughout the book:
<p> Discover More</p>

How do I get rid of these error messages?

(2) Why does Sigil insert two spaces after <p> before the text? The preview in ADE (adobe digital editions) displays zero space there.

thank you!
valarcher is offline   Reply With Quote
Old 07-23-2022, 10:00 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,771
Karma: 6000000
Join Date: Nov 2009
Device: many
Your text encoding is bad. Not utf-8. The error message says you have an invisible character that has a byte value of 12 (an illegal DC2 - Device Control 2 control character) at character 6 on that line. It looks like it is repeated later on and shows up as an empty square based on your font.

This looks like the text came from a bad terminal capture program that added its own control codes.


Delete them by hand. Or use copy to capture one, and use Find and Replace to remove them all.

Last edited by KevinH; 07-23-2022 at 10:03 AM.
KevinH is offline   Reply With Quote
Advert
Old 07-23-2022, 10:37 AM   #3
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: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Also, if your file is actually html (as your snippets indicate) you shouldn't be using Sigil's Open Text File in the first place. That feature is for plain text that contains no markup. If the file is html, change the extension and add it to Sigil normally. Once you correct the encoding issues of course.
DiapDealer is offline   Reply With Quote
Old 07-23-2022, 11:42 AM   #4
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 518
Karma: 2268308
Join Date: Nov 2015
Device: none
Try replacing "\f" with nothing in regular expressions mode.
Sarmat89 is offline   Reply With Quote
Old 07-24-2022, 12:15 AM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I've seen text files that used 0x0C (FF) to move to a new page. Probably a good use of form feed when those files were created (old CPMUG documentation files).
DNSB is offline   Reply With Quote
Advert
Old 07-24-2022, 05:17 AM   #6
valarcher
Member
valarcher began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2011
Device: kindle
thank you! I solved the problem by creating the <body> in UltraEdit text editor first, then copying it into the default text file that Sigil displays when I click ctrl-N.

When opening a New file, is it best to start with "new default" or "epub3"? I'm formatting only for kindle.
valarcher 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
Problem with char encoding sse450 Calibre 7 12-02-2019 12:57 AM
Invisible Char and too many <blockquote>'s phossler Editor 8 08-19-2014 10:33 AM
Display Char Value phossler Editor 2 05-05-2014 05:27 PM
50 char limit? BrianG Calibre 2 01-25-2010 10:15 AM


All times are GMT -4. The time now is 03:48 AM.


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