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, 10:57 AM   #1
MaxM
Junior Member
MaxM began at the beginning.
 
Posts: 4
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:	257
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:	220
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, 11:56 AM   #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: 29,659
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), 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 11:59 AM. Reason: Brain storm
theducks is offline   Reply With Quote
Advert
Old 10-29-2018, 12:53 PM   #3
MaxM
Junior Member
MaxM began at the beginning.
 
Posts: 4
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:	216
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:	204
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 02:02 PM.
MaxM is offline   Reply With Quote
Old 10-29-2018, 03: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: 34,229
Karma: 144198474
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, 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 offline   Reply With Quote
Old 10-29-2018, 03: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: 29,659
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), 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
Advert
Old 11-07-2018, 11:00 AM   #6
Phssthpok
Age improves with wine.
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: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
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, 11:30 AM   #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: 29,659
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), 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, 12:23 PM   #8
jackie_w
Grand Sorcerer
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: 6,167
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
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 offline   Reply With Quote
Old 11-07-2018, 03: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: 20,414
Karma: 25894272
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 07:43 PM
Creating links in an existing epub-text? Chris_ Editor 3 07-06-2015 06:10 PM
Images not shown sdfg Calibre 11 03-04-2015 10:42 PM
Glo hide the footnote / endnote text shown in note preview fxp33 Kobo Reader 3 05-04-2013 08:11 PM
Can the size shown be changed to KB instead of MB? rwmcafee Calibre 1 06-16-2012 04:38 PM


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


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