Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2010, 07:23 PM   #1
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
Greek with diacritics in Adobe DE

There's a short Greek footnote in one of my in prep epubs. In trying to reproduce these characters in an epub, I embedded a Greek font (SBL_grk.ttf) in the epub using Sigil, entered a few characters, then checked it with Adobe DE.

None of the characters with diacritics came through (ADE replaced them with ?) whereas those without diacritics were ok. All, including those with diacritics looked ok in Sigil book view (but in code view, those entered using a Greek keyboard, Keyman 7.1, in which the diacritics were added to the glyph in a two-step process - showed only as little boxes)

Are problems with diacritics in ADE a result of a known bug? And why should Sigil code view be different in response to an embedded font compared to book view?

Does anyone know a work-around for ADE?
Bob
bobcdy is offline   Reply With Quote
Old 09-23-2010, 08:22 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Code them as HTML entities: Φ δ Θ ?
theducks is offline   Reply With Quote
Advert
Old 09-23-2010, 09:38 PM   #3
CazMar
Book Geek
CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.CazMar ought to be getting tired of karma fortunes by now.
 
Posts: 596
Karma: 1499085
Join Date: Aug 2010
Location: Adelaide, Australia
Device: Kobo Touch, Asus MemPad 7" tablet, Nexus 5, Asus 10" tablet
I had the same problem on the Kobo with epub - I have found that it's easier to leave the books in PDF format. If I knew what fonts the Kobo used I could call up the hex code or whatever for the Greek letter, but without that information, difficult and I am not sure that the fonts it uses even have Greek diacritics. I guess as our needs are rather ""minority" we are probably not going to see a special software fix!
The other strange workaround might be to cut and past the Greek text as an image, messy but worth a try if it is vital to the book.
CazMar is offline   Reply With Quote
Old 09-23-2010, 09:48 PM   #4
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
Thanks for the info.
- theducks. I'm not entirely sure what you mean by html entity, but I think you meant creating a web page on which the correct glyphs are visible, then importing it into sigil, adding the proper fonts, and creating an epub. I tried this but had no better results than before. I also used Calibre to convert the html, with the same results for Adobe DE.

-CazMar. I thought about using images and I might use an image for the short paragraph if I can't do it any other way. The Greek is in a footnote and is not really important but I like to have everything in the epub that was in the original google book pdf. so I dislike just leaving it out (I also thought about omitting the text and have "(Greek text)" in its place.

I found a few web pages that discuss ADE/diacritics and the general conclusions seemed to be that Adobe DE decided not to support them except for special cases. Perhaps I'll have to use the image method...
Bob

Last edited by bobcdy; 09-23-2010 at 10:16 PM. Reason: added some info
bobcdy is offline   Reply With Quote
Old 09-24-2010, 12:52 AM   #5
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 11,517
Karma: 33048258
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International, Sony PRS-T1, BlackBerry PlayBook, Acer Iconia
HTML entities are like putting ᾚ in the source wherever you want "Greek Capital Letter Eta with Psili and Varia and Proscegrammeni", which will display this: ᾚ if you've a proper supporting font on your system.

One possibility is that your embedded font may not be Unicode, and whatever mapping it uses doesn't match the encoding of your source page.

Another is that ADE/Sigil code view/whatever, works better with precomposed characters in which the diacritics were designed to be part of the character, rather than the software having to take an existing character and then applying the appropriate diacritics to it. I know there are some other text editing/viewing apps that choke on having to do that.

Perhaps if you could hunt up the entity equivalents for the precomposed versions of the characters you'd like to use, you might have more luck displaying them.

And of course there's always just ADE being buggy and not supporting useful stuff, which is what I'd personally lay money upon.

Speaking as a reader, I'd rather not see text excluded if it's reasonably relevant and possible to put it in in some way. An image is not the optimum solution, but better than nothing, imho. You never know when someone will actually be able to read ancient Greek*. It's too bad there's no inversion of the <object> tag, where you could have text with an image fallback instead of the reverse.

Maybe you might like to try faking it by putting in the text with a link to the image, and a note in the front of the book saying "The original text of this book included footnotes in a language that your e-reader may not display properly. If you find that these footnotes are not appearing to you, please click on them to see an image of the footnote taken from the original text." or words to that effect.

* I'm assuming this is what you need the diacritics for and the more obscure polytonic combinations are giving you trouble, because if ADE truly doesn't support the rather simple few that monotonic modern Greek comes with, then that's really pitiful.
ATDrake is offline   Reply With Quote
Advert
Old 09-24-2010, 11:30 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by bobcdy View Post
Thanks for the info.
- theducks. I'm not entirely sure what you mean by html entity, but I think you meant creating a web page on which the correct glyphs are visible, then importing it into sigil, adding the proper fonts, and creating an epub. I tried this but had no better results than before. I also used Calibre to convert the html, with the same results for Adobe DE.
The official source: http://www.w3.org/TR/1999/REC-html40.../entities.html

There is a "Greek" list near the end in this section
theducks is offline   Reply With Quote
Old 09-24-2010, 11:54 AM   #7
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
ATDrake, theducks - thanks for the help and clarification!

I tried two: small alpha with tonos ά and capital sigma Σ (I used the decimal codes but they don't show in MR). I think that both are common in modern Greek. The capital sigma was visible in ADE whereas the alpha with tonos was not (appeared as ?). It looks like ADE just doesn't like Greek diacritics.

I plan to substitute an image for the Greek footnote; it should work ok but not nearly as satisfactory as would be the Greek text. I wonder why Adobe decided to cripple ADE in so many ways?
Bob

Perhaps the problem lies in the characters accepted by the HTML 4 specs. in the ref. listed in the previous post by theducks:

"This entity set contains all the letters used in modern Greek. However, it does not include Greek punctuation, precomposed accented characters nor the non-spacing accents (tonos, dialytika) required to compose them. There are no archaic letters, Coptic-unique letters, or precomposed letters for Polytonic Greek. The entities defined here are not intended for the representation of modern Greek text and would not be an efficient representation; rather, they are intended for occasional Greek letters used in technical and mathematical works."

Last edited by bobcdy; 09-24-2010 at 12:12 PM. Reason: added some info
bobcdy is offline   Reply With Quote
Old 09-24-2010, 01:18 PM   #8
omk3
Wizard
omk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five words
 
omk3's Avatar
 
Posts: 1,454
Karma: 37243
Join Date: Dec 2009
Location: Europe
Device: pocketbook 360, kindle 4
Hello bobcdy.

I am Greek and read Greek ebooks when I can. The font ADE uses doesn't support vowels with tonos, as you noticed - they are replaced with a question mark.
However I have succesfully got around this problem by embedding a greek font in my ebooks, or placing one on my reader and linking to it in the css. Maybe you are not actually making use of your embedded font in the correct place?

If it is only one sentence, though, maybe it is better to use an image rather than embed a whole font anyway.
omk3 is offline   Reply With Quote
Old 09-24-2010, 04:30 PM   #9
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
omk3-

Thanks for the imput. Its interesting that you can embed a Greek font and get it to work in ADE, but I wasn't able to do so. So I ran an experiment to verify my embedding method in sigil.

First, in Sigil I deleted all reference to the Greek font (SBL_grk.ttf), including the font and all css and body tags, then added an all-caps font (Deutgos.ttf) and added a css and a body tag for it, then inside the body tag I typed a combination of small and capital letters. Saved the epub and verified that ONLY capital letters appeared in ADE because of the embedded all-cap font. I think this demonstrates that the embedded font was working correctly.

Next, I deleted the all-caps font, added the Greek font, etc. Used both characters with and without diacritics. Found as usual that only the Greek characters without diacritics appeared in ADE.

The two parts of the experiments seem to me to demonstrate that the Greek font was properly embedded but that ADE discriminated against diacritics.
Bob

Last edited by bobcdy; 09-24-2010 at 04:42 PM. Reason: typo correction
bobcdy is offline   Reply With Quote
Old 09-24-2010, 04:53 PM   #10
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
@Bob - I noticed that back in post #5, ATDrake mentioned a distinction between pre-composed Greek Unicode characters and the inability of ADE to compose a character representation from two or more Unicode characters. Have you tried both methods (assuming the character you want exists as a pre-composed Unicode character)?

Chapter 2, section 11 of the Unicode Book covers 'combining characters' in excruciating detail... Perhaps the ADE implementors never read it...
pholy is offline   Reply With Quote
Old 09-24-2010, 05:09 PM   #11
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
pholy -

After my early problems I've only used pre-composed Greek unicode characters or their html decimal codes; combined diacritic plus Greek letter was a problem even for Sigil, much less with ADE. I add the pre-composed letters using PopChar and SBL_grk.ttf font that has a wide variety of Greek glyphs. I also tried other Greek fonts with equal lack of success for ADE and diacritics.
Bob
bobcdy is offline   Reply With Quote
Old 09-25-2010, 09:49 AM   #12
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Ok, I took a look at the SBL_grk font and the problem is that it's not been properly encoded. I recompiled the font and the modified version works fine in ADE, showing all the diacritics.

Unfortunately, the EULA for the font doesn't allow distribution of modified (i.e. fixed) versions :/. The problem lies with the font, not ADE, so you'll need to find one that's been properly compiled.
charleski is offline   Reply With Quote
Old 09-25-2010, 11:50 AM   #13
omk3
Wizard
omk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five wordsomk3 can name that ebook in five words
 
omk3's Avatar
 
Posts: 1,454
Karma: 37243
Join Date: Dec 2009
Location: Europe
Device: pocketbook 360, kindle 4
Beat me to it, charleski! After trying to use the font myself to show that it can be done, (in vain I might add), I tried with a different one, and all was fine. So the problem lies with the font. I don't know what exactly its problem was - I thought it might be the font size, but encoding seems more plausible.

I attach an example epub with a greek sentence and an embedded font to show that it can work. The font is GFSArtemisia.ttf, found here http://www.greekfontsociety.gr/pages...faces20th.html , and the license states that
Quote:
You may use these fonts for personal and commercial use. These fonts may be freely redistributed, provided that you do not alter them in any way and that you credit GFS for this.

These fonts are distributed free and may not be sold or resold for any purposes.
Attached Files
File Type: epub greek1.epub (213.8 KB, 447 views)
omk3 is offline   Reply With Quote
Old 09-25-2010, 01:13 PM   #14
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
omk3, charleski,
Great info! I had thought about the font being the problem and had earlier tried two other greek fonts (pala and aegean) but they didn't work either. However, I tried two fonts from the Greek Font Society (GFSPorson.otf and GFSArtemisia.ttf) and BOTH WORKED BEAUTIFULLY in ADE!

Thanks greatly for solving my problem!
Bob
bobcdy is offline   Reply With Quote
Old 10-03-2010, 09:25 PM   #15
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
charleski,
In another post you indicated you used Fontforge to recompile the SBL_grk font to get it to work. I tried to do this with my Font Creator and had no luck, and so I downloaded and installed Fontforge. It's really a versatile program, much more so than Font Creator, and free to boot! With it I had no trouble recompiling the font.
Thanks
Bob
bobcdy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading Adobe Ebook pdf files crashes Adobe Digital Editions .... Zevs Sony Reader 2 09-17-2010 12:25 PM
Diacritics problem with calibre gregor40 Calibre 5 08-09-2010 07:14 AM
iRiver Story: Epub with diacritics radub iRiver Story 6 03-23-2010 03:13 PM
PRS-600 Are Romanian diacritics displayed correctly? Laurentiu Sony Reader 3 11-25-2009 03:36 PM
[FONTS] Diacritics in Gen3 ? coolfishx Bookeen 7 05-09-2009 03:24 AM


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


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