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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-06-2013, 07:16 AM   #1
ender´
Junior Member
ender´ began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2013
Device: iRex iliad
Text overflows in viewer

If I set text-align to justify in Calibre Viewer's custom CSS, some text starts overflowing (look at the second line). Similarly, text is not properly aligned on the right side - this screenshot shows the problem very clearly.

Is there anything I missed in the settings, or is this a problem with Calibre? I'm using version 0.9.13 on Windows.
ender´ is offline   Reply With Quote
Old 01-06-2013, 08:06 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,314
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Change the font, this is a bug in Qt with certain fonts.
kovidgoyal is online now   Reply With Quote
Old 01-06-2013, 07:53 PM   #3
ender´
Junior Member
ender´ began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2013
Device: iRex iliad
OK, thanks.
ender´ is offline   Reply With Quote
Old 01-13-2013, 11:40 AM   #4
moby4me
Junior Member
moby4me began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2010
Device: none
I have a question about calibre:
to save as only epub with a cover and a opf file
then I got 3 files.
now I like to change the opf file to only txt. not the htm codes inside.
In a DOS-box it wil work, opf to txt but the codes are still in.
How can I change it?

Who knows it?

Last edited by moby4me; 01-17-2013 at 06:25 PM. Reason: I did not hear some
moby4me is offline   Reply With Quote
Old 01-17-2013, 05:06 PM   #5
Clubbavich
Junior Member
Clubbavich began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2012
Device: Nokia Lumia 900
Quote:
Originally Posted by kovidgoyal View Post
Change the font, this is a bug in Qt with certain fonts.
I've got to say, I find this bug to be rather annoying. If you want to add to their bug report, it seems that in Windows 8 using Times New Roman, capitalized letters are a source of this issue. All lowercase letters are within the bounds of the container, but by replacing lowercase characters with uppercase ones, the right-edge of the text (in ltr mode, at least) moves further and further to the right, as uppercase characters are wider than lowercase ones, instead of wrapping around properly.

An example:
Code:
<html>
<body style="width:956px;background-color:black;color:#949494">
<div style="padding:75px;">
<p style="text-align:justify; background-color:darkgreen">
<span style="text-transform:uppercase;background-color:darkblue">
Rath considered himself</span> a businessman. 
Besides being something of an expert in the finer arts of item relocation, he also considered himself a
</p>
</div>
</body>
</html>
Renders like this:

Click image for larger version

Name:	CapitalLetterBleedover.PNG
Views:	55
Size:	7.9 KB
ID:	99576
(Click to enlarge)

Last edited by WT Sharpe; 01-22-2013 at 02:53 PM.
Clubbavich 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
0.9.7: Anomaly viewer, start viewer in full screen mode DrChiper Calibre 2 11-23-2012 07:33 AM
[Kindle Touch] No Image viewer and pdf viewer with white margins MaxPowerITA Kindle Developer's Corner 7 04-24-2012 06:27 AM
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 09:46 PM
# user css for viewer.py/ ebook-viewer/ prs-650 tscamera Calibre 0 01-02-2011 07:28 PM
Foxit's "text viewer" -> save? ile Amazon Kindle 2 10-10-2010 07:29 PM


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


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