Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2015, 12:48 AM   #1
Pankaj Inamdar
Junior Member
Pankaj Inamdar began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2015
Device: None
Issues with Ebook with Devanagari script (Mangal font)

Hello friends,

I have tried creating an e-book having text in Devnagari script (Mangal font). I have bit of an issue here. While most of the text is displayed properly, only in some cases the letters are broken up and/ or partially shifted to next page. Please see attached PDF - the issues are circled in red. Surprisingly, this is not consistent, in the sense many a place similar letters are displayed properly.

The procedure that I followed to create an ebook is as under:
  • Used Calibre to convert MS Word document in to an epub file
  • In Sigil,
    [1]Right clicked Fonts, Add Existing Files and selected mangal and mangalb
    [2]Added the following lines at the begining of stylesheet.css file
Code:
@font-face {
font-family: "Mangal";
font-weight: normal;
font-style: normal;
src: url(../Fonts/Mangal-Regular.ttf);
}
@font-face {
font-family: "Mangal";
font-weight: bold;
font-style: normal;
src: url(../Fonts/Mangal-Bold.ttf);
}
body { font-family: "Mangal", serif; }
I am not sure what
Code:
src: url(../Fonts/Mangal-Regular.ttf)
line means. Does it read the font files from the laptop or from the Internet? I am not sure if the path is right (I have picked the above code from the forum.

Request your help to solve the problem.

Thanks in advance

Attached Files
File Type: pdf e-book on Android.pdf (227.9 KB, 309 views)
Pankaj Inamdar is offline   Reply With Quote
Old 05-13-2015, 02:24 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Moved to the ePub forum.
HarryT is offline   Reply With Quote
Old 05-13-2015, 09:31 AM   #3
Abekonge
Scripler Project Lead
Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.Abekonge has met Morla.
 
Abekonge's Avatar
 
Posts: 19
Karma: 19304
Join Date: May 2014
Location: Copenhagen, Denmark.
Device: Gameboy Color
I think your problem is not with the font (it seems to work) but with the way you have produced the html. Odd divisions inside words across lines or pages suggests that the html looks something like:

Code:
<p>The following word will break across lines/pages on some readers <span>W</span><span>o</span><span>r</span><span>d</span>.</p>
If this is the case, you should find another way of converting the Word document into html. You could try to copy paste the word document directly into sigils wysiwyg-editor - that can create other trouble, but it is a possibility.

((
The src-statement is the path of the font files inside the epub file - so this is the files you just added (mangal and mangalb), so it is important the the filenames in the src-statements are actually the same as the ones you've added.

But it seems to be correct since it is displaying on the reader. ))
Abekonge is offline   Reply With Quote
Old 05-14-2015, 02:30 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Pankaj Inamdar View Post
I have tried creating an e-book having text in Devnagari script (Mangal font).
Mangal is a Microsoft Windows font. AFAIK, you can't legally embed it into an ePub that you plan to distribute on the Internet. You may want to use a free font, e.g. Annapurna SIL.

Quote:
Originally Posted by Pankaj Inamdar View Post
[...] Used Calibre to convert MS Word document in to an epub file.
Calibre usually does a great job converting .docx files to .epub files, but it's not perfect. To exclude Calibre as the source of your problems try the following:
  • Export the Word document as a filtered .html document and add it to a new book in Sigil.
  • Export your book with Toxaris's e-Book Tools Word add-in.
  • Set the document language metadata to whatever Indic language the epub is in and also add a corresponding xml:lang attribute to the html tag of each .html file.

If none of this makes a difference post the html code of the lines with broken words.
Doitsu is offline   Reply With Quote
Old 05-20-2015, 05:08 AM   #5
Pankaj Inamdar
Junior Member
Pankaj Inamdar began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2015
Device: None
RE: Issues with Ebook with Devanagari script (Mangal font)

Thank you Abekonge and Doitsu,

@ Doitsu - Can you guide me little more on using Annapurna SIL? I mean, can I use that font while the original MS Word document is created in Mangal font? Can such a ebook be properly read on Play Books, Kindle etc. applications?

Thanks in advance,
Pankaj Inamdar is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 Devanagari? democrite Sony Reader 4 06-28-2013 02:02 AM
Font issues with Calibre ivanbayross Calibre 6 10-16-2012 08:19 AM
Font Issues Between Mobi and ePub GeckoFriend Conversion 4 04-16-2012 04:31 PM
Does NookColor have font-sizing issues? L.J. Sellers Nook Color & Nook Tablet 12 06-02-2011 04:45 PM
Perl script for ebook-convert gucky Calibre 3 01-11-2011 12:51 PM


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


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