Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2012, 08:38 PM   #1
pierluc
Junior Member
pierluc began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2012
Device: kobo touch
euristic

I would like to be able to said to Calibre what is what on a PDF. I talk about a pdf preview with a tool bar. In the tool bar it should has option like:

-First-level title (h1)
-Second-level title (h2)
-Third-level title (h3)
...
-Intro
-Text
-legend
-page number
-index
...

Each buttons should activate bounding boxes to indicate to Calibre what is what. In case the button "legend", it would be possible to attach the box to the image or text to which it is related. I gave you an example as attachment.

The user could dissect each typical page of his book. Then he could ask Calibre to be based on these information to perform the conversion.

Algorithm emple:
Quote:
foreach ($txt){
if ($txtFont=="BakerSignet" && $txtSize==56 && $txtColor=="black" && ($lineWeight>=335 | $lineWeight>=355)){echo "<h1>".$txt."</h1>";}
else if ($txtFont=="Myriad Pro" && $txtSize==11 && $txtColor=="black" && ($lineWeight>=335 | $lineWeight>=355)){echo "<p>".$txt."</p>";}
elseid ($txtFont=="Myriad Pro" && $txtSize==8.5 && $txtColor=="black" && ($lineWeight>=111 | $lineWeight>=125)){echo "<legend>".$txt."</legend>";}
It's just a suggestion, I don't know if it's possible to do that.
Attached Files
File Type: pdf CALIBRE.pdf (109.1 KB, 473 views)

Last edited by pierluc; 09-13-2012 at 09:10 PM.
pierluc is offline   Reply With Quote
Reply


Forum Jump


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


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