Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2011, 11:03 AM   #1
Zim
Junior Member
Zim began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2011
Device: Amazon Kindle
Question tables, math formulas & different fonts in a .mobi file?

Hallo,

I am studying computer sience and bought the kindle also for studying. The Problem is to find scientific papers in a format the kindle can consume. So I decided to convert .pdfs to the mobi format. I've tried using calibre for this purpose. The conversion product is unreadable, because of three reasons:
  • no picture is placed beside a text and text is not wrapped around pictures. (I could live with placing each picture in its own line however this is not a solution for images used instead of dots in a list like this one)
  • calibre does not place different font styles even if the source is html and formatted with different font tags. (when you read a programmer's book you will notice that example code is written in a different font than normal text. While normal text is best read when each Character has its own specific space, code is best read in mono type fonts. That means each character is exactly as wide as every other charakter. It also helps determining which parts are explanation text and which are example code.)
  • tables are not converted or in a way that cannot be read
Is it in general possible to make text wrap an image and format text with different font styles? How about tables and math formulas? Is there a way to display them (except the method of placing them as an image)?

Greetings Zim =)

-- edit 4 the discoveries =)
Quote:
Originally Posted by DiapDealer View Post
No. Text wrapping is not an option (unless the wrapped text is part of the image).
This is true for the amozon kindle 3. The .mobi format itself supports text wrapping. Howerver I would not recommend it for publications, because you cannot be shure how it will be displayed on various platforms.

Tables can be used and are displayed by the kindle 3. Try converting the following code.
Spoiler:
Code:
<html>
<head>
<title>Aufbau einer Tabelle</title>
</head>
<body>

<h1>Tabelle mit Gitternetzlinien</h1>

<table border="1">
  <tr>
    <th>Berlin</th>
    <th>Hamburg</th>
    <th>M&uuml;nchen</th>
  </tr>
  <tr>
    <td>Milj&ouml;h</td>
    <td>Kiez</td>
    <td>Bierdampf</td>
  </tr>
  <tr>
    <td>Buletten</td>
    <td>Frikadellen</td>
    <td>Fleischpflanzerl</td>
  </tr>
</table>
</body>
</html>

Authors can mark text to be displayed by the kindle3 using a monospace-font by either using the <tt> or <pre> tag (the last one is especially useful for displaying code blocks). You can also use cascading style sheets to mark text to be displayed using a monospace-font. Try the following code for a reference:
Spoiler:
Code:
<html>
  <head>
<!-- you might find ".smallmono" also useful, because unwanted line wraps are awkward in code blocks and monotype-fonts with small hight can be read easily. -->
    <style type="text/css">
      .mono {font-family: monospace;}
      .smallmono {
        font-family: monospace;
        font-size: smaller;
      }
    </style>
  </head>
  <body>
    <p>test 123 Hello World!</p>
    <p class="mono">test 123 Hello World!</p>
    <p class="smallmono">test 123 Hello World!</p>
  </body>
</html>

Last edited by Zim; 10-22-2011 at 08:26 PM.
Zim is offline   Reply With Quote
Old 10-21-2011, 12:02 PM   #2
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: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Zim View Post
Is it in general possible to make text wrap an image and format text with different font styles?
No. Text wrapping is not an option (unless the wrapped text is part of the image). And with the exception of the <tt> tag—which will cause the Kindle to render text with its built-in mono-space font—different font styles are not possible either.

Quote:
How about tables and math formulas? Is there a way to display them (except the method of placing them as an image)?
Unfortunately, no.

That may all be changing with the announcement of the new Kindle format, but it's unclear which devices will be updated to be able to render that new format.
DiapDealer is online now   Reply With Quote
Advert
Old 10-21-2011, 12:03 PM   #3
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
Read: http://www.mobipocket.com/dev/articl...eFolder=prcgen.

You can use a different font by using the <pre> tag, I believe. .mobi does not have very fancy formatting, but it can do pretty well, witness the O'Reilly books in .mobi format.
susan_cassidy is offline   Reply With Quote
Old 10-22-2011, 07:10 PM   #4
Zim
Junior Member
Zim began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2011
Device: Amazon Kindle
Thankyou for all the replys. I'll edit the top thread to what I discovered =)
Zim is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help converting math text .pdf to readable kindle file bkap202 Amazon Kindle 4 08-04-2012 12:48 PM
Math formulas conversion help Sciamano Conversion 10 06-22-2011 06:33 AM
ePub to Mobi issues with tables apastuszak Conversion 11 06-20-2011 09:19 PM
Embedding fonts for epub & mobi output. Nigel Flanagan Conversion 11 02-23-2011 02:33 PM
html to .mobi or .prc. tables & graphics used to be perfect; are now absent. ?? thorn Calibre 0 01-23-2010 07:14 PM


All times are GMT -4. The time now is 07:56 PM.


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