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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2018, 09:11 AM   #1
SuiVu1fa
Junior Member
SuiVu1fa began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2018
Device: Kindle
Does ebook-viewer (of calibre) render fonts msbm correctly and how?

I compiled a tex code by tex4ebook, and it seems to me that the symbol ⊈ is not rendered correctly by ebook-viewer in calibre. I write a test code and use htlatex to compile it into html (see the code below), and load it with ebook-viewer. It seems to me that the piece of code

Code:
<span class="msbm-10">&#x2288; </span>
is not rendered correctly, seemingly a font configure problem. I changed the font from DejaVu Serif to something else, the problem remains.

However, firefox and FBReader render it properly. I wonder how to fix it. Thanks for suggestions.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
  "http://www.w3.org/TR/html4/loose.dtd">  
<html > 
<head><title></title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)"> 
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)"> 
<!-- html --> 
<meta name="src" content="test2.tex"> 
<link rel="stylesheet" type="text/css" href="test2.css"> 
</head><body 
>
<!--l. 7--><p class="noindent" >Given two sets <span 
class="cmmi-10">A,B </span>such that <span 
class="cmmi-10">A </span>is not a subset of <span 
class="cmmi-10">B</span>, i.e., <span 
class="cmmi-10">A </span><span 
class="cmsy-10">&#x2044;&#x2286; </span><span 
class="cmmi-10">B</span>, or <span 
class="cmmi-10">A </span><span 
class="msbm-10">&#x2288; </span><span 
class="cmmi-10">B</span>.
<!--l. 9--><p class="indent" >   Note that <span 
class="cmmi-10">x </span><span 
class="cmsy-10">&#x2044;&#x2243; </span><span 
class="cmmi-10">y</span>.
</body></html>
SuiVu1fa is offline   Reply With Quote
Old 11-27-2018, 10:44 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: 33,724
Karma: 10215826
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
renders fine for me, what OS and version of calibre?
kovidgoyal is offline   Reply With Quote
Old 11-27-2018, 12:33 PM   #3
SuiVu1fa
Junior Member
SuiVu1fa began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2018
Device: Kindle
Debian Linux (Stretch)
Calibre 2.75.1.
Edit: I updated to 3.31, the issue remains.

The EPUB file and screenshots are attached. wrong.png is the effect of rendering of calibre, and correct.png is the effect of rendering of FBReader. It is not easy to spot, but it will lead to a syntactically opposite meaning.

I would like to see whether it is due to a mistake of configuration, or a previous bug which has been fixed in the latest version.
Attached Images
  
Attached Files
File Type: epub test2.epub (3.7 KB, 14 views)

Last edited by SuiVu1fa; 11-27-2018 at 12:48 PM.
SuiVu1fa is offline   Reply With Quote
Old 11-28-2018, 10:50 AM   #4
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: 33,724
Karma: 10215826
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
this is what it looks like on my linux system:

make sure you are running th eofficial calibre binaries and not the debian package.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20181128_201920.png
Views:	39
Size:	55.2 KB
ID:	168045  
kovidgoyal is offline   Reply With Quote
Old 11-28-2018, 07:03 PM   #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: 5,207
Karma: 23054146
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 SuiVu1fa View Post
Debian Linux (Stretch)
Calibre 2.75.1.
Edit: I updated to 3.31, the issue remains.

The EPUB file and screenshots are attached. wrong.png is the effect of rendering of calibre, and correct.png is the effect of rendering of FBReader. It is not easy to spot, but it will lead to a syntactically opposite meaning.

I would like to see whether it is due to a mistake of configuration, or a previous bug which has been fixed in the latest version.
The ⊈ ( &#x2288; ) glyph looks pretty much the same under Windows 10, Mac OSX Mojave and OpenSuse Tumbleweed on my system.
DNSB 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
Gentium Book font (ttf) doesn't render correctly therealjoeblow Kobo Reader 13 06-21-2015 10:24 AM
Font Name not Displaying Correctly in Viewer Pane When Adding Fonts ssholloway Calibre 0 05-27-2014 10:19 PM
Calibre's ebook-viewer and embedded fonts in EPUB books gentoosiast Calibre 1 03-20-2013 08:53 AM
Touch How to render txt and mobi in other language correctly? xuyn2003 Kobo Reader 3 07-17-2011 07:38 AM
Calibre E-Book Viewer and ADE render ePub TD font-size differently Agama Devices 5 06-17-2011 03:44 AM


All times are GMT -4. The time now is 10:27 AM.


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