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 10-29-2018, 11:57 AM   #1
MaxM
Junior Member
MaxM began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2017
Device: Calibre
Question Parts of text existing, but not shown

Hi everybody,

I'm on Win 10, Eval. 18234.

I converted a pdf using Calibre. In the editor it's looking like this:

Click image for larger version

Name:	c2.PNG
Views:	54
Size:	172.7 KB
ID:	167282

Why can't I see this stuff?

The Calibre Viewer shows it like:

Click image for larger version

Name:	c1.PNG
Views:	34
Size:	87.0 KB
ID:	167283

The stylesheet looks like:

.calibre {
display: block;
font-size: 1em;
padding-left: 0;
padding-right: 0;
margin: 0 5pt
}
.calibre1 {
display: block;
margin: 1em 0
}

Why is the viewer showing text on top of each other?

Thanks everyone.

Regards,
Max
MaxM is offline   Reply With Quote
Old 10-29-2018, 12:56 PM   #2
theducks
Well trained by Cats
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: 22,261
Karma: 22136456
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A
If the code screen capture is full left margin
The HTML tags are severely mangled.

Code:
<p class="indent">Below him,
NOT
[edited]
Code:
<p
class="indent"> Below him,
I don't believe a tag can have a newline

Last edited by theducks; 10-29-2018 at 12:59 PM. Reason: Brain storm
theducks is offline   Reply With Quote
Old 10-29-2018, 01:53 PM   #3
MaxM
Junior Member
MaxM began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2017
Device: Calibre
I think I found the reason

This line:
Click image for larger version

Name:	c3.PNG
Views:	30
Size:	14.8 KB
ID:	167285

had multiple double blanks between each word.

After I replaced these:

Click image for larger version

Name:	c4.PNG
Views:	26
Size:	17.2 KB
ID:	167286

it looked quite normal.

Good to know.

[Edit]
Not only that, but I recognised that the Pdf-converter used (hex) "a0" istead of (hex) "20" for blanks.

Thanks,
Max

Last edited by MaxM; 10-29-2018 at 03:02 PM.
MaxM is offline   Reply With Quote
Old 10-29-2018, 04:13 PM   #4
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: 5,126
Karma: 21886264
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by MaxM View Post
[Edit]
Not only that, but I recognised that the Pdf-converter used (hex) "a0" istead of (hex) "20" for blanks.
Interesting that it used a non-breaking space rather than a standard space.
DNSB is online now   Reply With Quote
Old 10-29-2018, 04:36 PM   #5
theducks
Well trained by Cats
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: 22,261
Karma: 22136456
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A
Quote:
Originally Posted by DNSB View Post
Interesting that it used a non-breaking space rather than a standard space.
that would account for the visual mess in the tags between the tag and attribute. all the rest is being treated as an unbroken line
theducks is offline   Reply With Quote
Old 11-07-2018, 12:00 PM   #6
Phssthpok
Addict
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 395
Karma: 95229
Join Date: Nov 2014
Device: Horrible Kindle
Quote:
Originally Posted by theducks View Post
I don't believe a tag can have a newline
Newlines shouldn't be a problem. The HTML spec says that whitespace is ignored inside tags (section 8.1.2 in the current version of the spec).
Phssthpok is offline   Reply With Quote
Old 11-07-2018, 12:30 PM   #7
theducks
Well trained by Cats
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: 22,261
Karma: 22136456
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A
Quote:
Originally Posted by Phssthpok View Post
Newlines shouldn't be a problem. The HTML spec says that whitespace is ignored inside tags (section 8.1.2 in the current version of the spec).
We all KNOW how well ADE follows "the spec"
BTW e-books follow a subset of HTML, not the full thing

Old adage:
"If it hurts when you do this...
Stop doing that!"

There is "the spec", and then there is reality.
My K4 refuses to show some books as they appear in: K4PC, The Kindle Previewer and Calibre's book viewer. (and the code does not trip warnings)
theducks is offline   Reply With Quote
Old 11-07-2018, 01:23 PM   #8
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 4,611
Karma: 11060000
Join Date: Sep 2009
Location: UK
Device: Sony:PRS-350, Kobo:Aura6"/H2O/GloHD/KA1/ClaraHD/Forma
It's the adjacent non-breaking spaces which cause this problem of some text being invisible in the Editor - usually around the line wrap area. I see it quite often.

I have a vague memory, from a while ago, that it's a known problem with the underlying Qt library, i.e. not fixable by calibre alone.
jackie_w is online now   Reply With Quote
Old 11-07-2018, 04:34 PM   #9
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 11,284
Karma: 10572868
Join Date: Mar 2012
Location: Sydney Australia
Device: none
↑ ↑ ↑ - likewise.

It's one of the reasons why I use Sigil for editing the code.

BR
BetterRed 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
Custom field 'Plain text, not shown in the tag browser', just like 'Title' wladdy Library Management 52 08-28-2016 08:43 PM
Creating links in an existing epub-text? Chris_ Editor 3 07-06-2015 07:10 PM
Images not shown sdfg Calibre 11 03-04-2015 11:42 PM
Glo hide the footnote / endnote text shown in note preview fxp33 Kobo Reader 3 05-04-2013 09:11 PM
Can the size shown be changed to KB instead of MB? rwmcafee Calibre 1 06-16-2012 05:38 PM


All times are GMT -4. The time now is 04:53 PM.


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