Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2022, 04:21 AM   #1
barbiedolphin
Member
barbiedolphin is on a distinguished road
 
Posts: 21
Karma: 50
Join Date: Jan 2019
Device: none
Using alternate language glyphs in conversion

Some fonts have alternate glyphs for the same character(s). For example, the Cormorant fonts have extra glyphs for the Bulgarian stylistic variation of Cyrillic.

However, when converting to EPUB or PDF (from EPUB, usually), Calibre just uses its' base Cyrillic glyphs (which are the more common "Russian" variation of Cyrillic).

When converting to EPUB, I've tried setting font-language-override to Bulgarian in the CSS stylesheet, doesn't work:

Code:
<style>
font-language-override: "BGR"
</style>
(Furthermore, is it supposed to be "BGR" or "BG"? There's no documentation anywhere, so go figure.)

There's a way to select a unicode-range, but this seems even harder. But Fontforge shows that Cormorant Garamond Semibold has most of the Bulgarian glyphs inbetween "в" (66160 0x10270 U+???? "uni0432.loclBGR") and "ю" (66214 0x102a6 U+???? "uni044E.ss10")

And all of this doesn't help if I have to convert to PDF, either.
barbiedolphin is offline   Reply With Quote
Old 06-28-2022, 12:32 AM   #2
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,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Calibre supports stylistic sets, which you can use to select alternate glyphs.

Spoiler:
Code:
@font-face {
  font-family: 'Cormorant';
  font-weight: normal;
  font-style: normal;
  src: url(../Fonts/Cormorant-Regular.ttf);
}

body {
  font-family: 'Cormorant';
}

.ss10 {
  -moz-font-feature-settings: "ss10";
  -webkit-font-feature-settings: "ss10";
  font-feature-settings: "ss10";
}


You might find the OpenType Tester website useful for experimenting with OpenType features.
Attached Thumbnails
Click image for larger version

Name:	ss10.png
Views:	126
Size:	52.4 KB
ID:	194613  
Attached Files
File Type: epub cormorant.epub (214.6 KB, 100 views)
Doitsu is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Plugin] Language Cleaner (profanity filter) jdanders Plugins 12 07-08-2023 09:21 PM
PDF to mobi conversion inserting alternate blank page sgore24 Conversion 2 06-16-2018 12:10 PM
Mobi conversion for books in french language Robert Millette Kindle Formats 5 09-17-2012 12:44 PM
Settings display in foreign language - possible cause conversion error? BruceBick Conversion 12 12-18-2011 04:06 AM
--language variable in command line conversion marekl Calibre 1 01-21-2011 08:11 AM


All times are GMT -4. The time now is 09:55 AM.


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