Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-01-2014, 01:22 AM   #16
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by panmanthe2nd View Post
You're right. I thought it had worked because the bit that I looked at was rendered properly but after looking at them more most of the diacritical marks are still just blank spaces.

I think it must be some kind of incompatibility. At least it's better than it was.
Last shots:
  • Do you know that Kobos have two renderers? The common one for epubs and another one for Kobo's "enhanced" version of epubs (Kepubs). Try grabbing KoboTouch Extended Driver for Calibre which automatically converts your epubs into kepubs when sending them to your device. Maybe the kepub renderer (called ACCESS) could work even if the epub renderer (called RMSDK from Adobe) doesn't.
  • Read the first two posts of this thread about the Calibre Editor. Here Kovid says that combining unicode characters should be avoided whenever possible. And more important that Calibre Editor normalizes them into single characters if possible. So you could try opening your books in the Editor, checking if your special characters have been collapsed into single ones and then performing any change, (add a space and remove it), in order to be able to save your book without combining characters, but already combined ones.

Last edited by arspr; 03-01-2014 at 04:45 AM.
arspr is offline   Reply With Quote
Old 03-01-2014, 07:38 AM   #17
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by panmanthe2nd View Post
You're right. I thought it had worked because the bit that I looked at was rendered properly but after looking at them more most of the diacritical marks are still just blank spaces.

I think it must be some kind of incompatibility. At least it's better than it was.
It would be so much easier if we could see an example file. I know it is copyrighted. First possibility: Send the file as PM. Second possibility: Take one of the included html files, remove the whole English text, so that only transliterated Sanskrit verses and other Sanskrit quotations remain (those passages are not copyrighted), and upload it here.
tshering is offline   Reply With Quote
Advert
Old 03-01-2014, 08:20 AM   #18
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by tshering View Post
It would be so much easier if we could see an example file. I know it is copyrighted. First possibility: Send the file as PM. Second possibility: Take one of the included html files, remove the whole English text, so that only transliterated Sanskrit verses and other Sanskrit quotations remain (those passages are not copyrighted), and upload it here.
I also offer myself as second tester if you want. Freely PM me one book.
arspr is offline   Reply With Quote
Old 03-03-2014, 05:07 PM   #19
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Last attempt: Do you see the Gandhari Unicode font in the font list? And do you select this font?

I renamed the fonts in this way:

Code:
Gandhari Unicode.ttf
Gandhari Unicode-Bold.ttf
Gandhari Unicode-Italic.ttf
Gandhari Unicode-BoldItalic.ttf
Diacritics show correctly in epub, kepub, pocket.
tshering is offline   Reply With Quote
Old 03-04-2014, 08:53 AM   #20
panmanthe2nd
Member
panmanthe2nd began at the beginning.
 
panmanthe2nd's Avatar
 
Posts: 16
Karma: 10
Join Date: Feb 2014
Device: Kobo Touch
I only just seen all your replays. I'll PM you both. Thank you! This is a great community. And I'll try Kepubs when I see my sister next.

Quote:
Originally Posted by tshering View Post
Last attempt: Do you see the Gandhari Unicode font in the font list? And do you select this font?

I renamed the fonts in this way:

Code:
Gandhari Unicode.ttf
Gandhari Unicode-Bold.ttf
Gandhari Unicode-Italic.ttf
Gandhari Unicode-BoldItalic.ttf
Diacritics show correctly in epub, kepub, pocket.
Yep, that's what I tried.
panmanthe2nd is offline   Reply With Quote
Advert
Old 03-04-2014, 05:05 PM   #21
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
I converted the file with calibre to epub (default settings) and afterwards deleted all font-family entries in the css file. Now (that means after deleting the font-family entries) all diacritical marks are correctly displayed. I hope somebody can explain how to change the calibre settings accordingly (I am not very experienced with calibre). It looks like a further thing has to be addressed. The text of the whole book is underlined, at least in my calibre converted version.
tshering is offline   Reply With Quote
Old 03-04-2014, 05:09 PM   #22
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Wow!!! Thousand of troubles in just one book.

First of all.
I think that there's a possibility of bug in the conversion engine. I think I should post a bug ticket in the Calibre bugtracker but I need your permission to PM Kovid the book or something like that. He will probably need it to check that possible bug.

As an example, the first paragraph after Preface has this structure in the Inspector (from the Book View):
html > body > div.calibre_574 > font

And it is converted into:
html > body.calibre > div.calibre5 > a > div.calibre13 > span.calibre18

WTH!?!?!?!? Why does an <a> tag appear?

Because that <a> tag has been introduced, (which means "hyperlink here"), the whole text is rendered underlined in the RMSDK renderer.


Then the reason why your characters are not rendered.
The original prc <font> tag has an internal "face = serif" attribute which actually kills my proposed font embedding (or loading in the ereader) process.

The default font I've selected is just the common "Times New Roman" which actually has all the needed symbols. And the "calibre" class used for <body> is correctly set to use "Times New Roman". So the first step is correctly done: now your whole book uses "Times New Roman" but where there are special settings about font use.

Because of the <font size ="4" face="serif"> tag in the prc, that default setting is overridden in several classes ("calibre18" and "calibre5") by a "use just a serif font" one. So you lose the direct link to the GOOD font. As the ereader is told to use just a common serif font, it picks any of the internal ones which lacks the needed characters.

And you cannot perform the second step about embedding all the explicitly referenced fonts because "serif" is not a font but a group of them.

I'm going to post this issue in Calibre bugtracker as a Feature Request for a possible enhancement.

The solution:
  • Open your epub in the Edit Book tool of Calibre.
  • Open the stylesheet.css file.
  • You'll see that one of the first settings is just:
    Code:
    ...
    .calibre {
        display: block;
        font-family: "Times New Roman", serif;
    ...
    Instead of "Times New Roman" you could have any other one. This is the default GOOD font you selected in the conversion process from prc to epub.
  • Just look for any
    Code:
        font-family: serif;
    line in that css file and replace it by:
    Code:
        font-family: "Your GOOD embedded font name";
    (Be careful with the ending ";", do not forget it!!!)
  • And if you want also replace the strange
    Code:
        font-family: ScaTimes;
    by it too.
  • (When looking for matches in the Calibre Editor, in the second drop down menu in the L&F toolbar, select "Current file" or "All Style files", because by default the searches are done in the "Text Files" which are the HTML contents of the book and, stylesheet.css is not one of them).
arspr is offline   Reply With Quote
Old 03-04-2014, 05:44 PM   #23
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Bug ticket about the Feature Request for embedding "general" font settings.

https://bugs.launchpad.net/calibre/+bug/1287954
arspr is offline   Reply With Quote
Old 03-05-2014, 05:46 AM   #24
panmanthe2nd
Member
panmanthe2nd began at the beginning.
 
panmanthe2nd's Avatar
 
Posts: 16
Karma: 10
Join Date: Feb 2014
Device: Kobo Touch
Wow! Thank you both!

Later this week I'll go and edit the stylesheet.css files of all the books.

Quote:
Originally Posted by arspr View Post
I think I should post a bug ticket in the Calibre bugtracker but I need your permission to PM Kovid the book or something like that. He will probably need it to check that possible bug.
You're welcome to do this.
panmanthe2nd is offline   Reply With Quote
Old 03-05-2014, 04:38 PM   #25
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by panmanthe2nd View Post
Wow! Thank you both!

Later this week I'll go and edit the stylesheet.css files of all the books.
He, he,

It's even easier than that as Kovid has posted in the bugtracker.

When converting from prc to epub, in the Look and Feel section:
  • Select the default GOOD font.
  • Look for the Filter Style Information tab. Select fonts and you will be killing all that particular font settings so the default one won't be overriden.
arspr is offline   Reply With Quote
Old 03-07-2014, 10:18 AM   #26
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Kovid has also solved something about the conversion. Your source prc is a mess. Re-convert it to epub and you'll avoid, at least, that additional <a> tags.
arspr is offline   Reply With Quote
Old 03-11-2014, 09:07 AM   #27
panmanthe2nd
Member
panmanthe2nd began at the beginning.
 
panmanthe2nd's Avatar
 
Posts: 16
Karma: 10
Join Date: Feb 2014
Device: Kobo Touch
Quote:
Originally Posted by arspr View Post
He, he,

It's even easier than that as Kovid has posted in the bugtracker.

When converting from prc to epub, in the Look and Feel section:
  • Select the default GOOD font.
  • Look for the Filter Style Information tab. Select fonts and you will be killing all that particular font settings so the default one won't be overriden.
THANK YOU!!!

I've done this, and have had a good look at the books, and they now all look perfect! Thank you for finding such an easy solution for me.

Next time you talk to Kovid you can thank them for me too.
panmanthe2nd is offline   Reply With Quote
Old 03-11-2014, 11:41 AM   #28
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by panmanthe2nd View Post
THANK YOU!!!

I've done this, and have had a good look at the books, and they now all look perfect! Thank you for finding such an easy solution for me.

Next time you talk to Kovid you can thank them for me too.
You are welcome.

You can do it yourself in the bugtracker link I previously posted. By the way, he rejected my suggestion but hinted this feature of Calibre instead which I didn't know. Knowing every single feature Calibre has is plainly impossible...
arspr is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resolving presentation issues with Kobo Touch (fonts, line height etc) digital punk Kobo Reader 9 01-21-2014 02:00 AM
Touch kobo touch change fonts book64 Kobo Reader 21 02-19-2013 07:47 AM
Kobo Glo fonts compared to Kobo Touch RobertJSawyer Kobo Reader 3 10-11-2012 12:10 AM
Reading Sanskrit documents on ipod Touch Gabbar Apple Devices 3 12-06-2009 12:41 PM


All times are GMT -4. The time now is 05:35 PM.


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