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 01-29-2024, 08:35 AM   #1
jindroush
Connoisseur
jindroush is on a distinguished road
 
Posts: 78
Karma: 52
Join Date: Nov 2014
Device: Kindle
Question DOCX to EPUB, mixed latin/asian fonts

Problem: Input DOCX with Asian/Latin mixed paragraphs, but resulting EPUB does not contain/reference asian fonts.

Explanation:
I have DOCX file, which uses three fonts: Times New Roman, Calibri and MS Mincho (asian).

The default fonts are set to Times New Roman/MS Mincho, 12pts. Almost all of the styles are linked to the main style which, again, has explicitely set the fonts like this.

The fonts are displayed correctly in Office365, in the Save options I have Embed Fonts/Subset fonts/Do not include system fonts. In the DOCX are 4 fonts included (visible in fonts subdir and in fontTable.xml - three different Calibris and one MS Mincho). I tried all four combinations of subsetting/system fonts.

Conversion to EPUB works like a charm, but the resulting file contains 6 fonts: Three Calibri and three Times New Roman. The japanese characters are not "escaped", "styled", or anything, they're just put inline with latin characters... In the original text (document.xml) there are explicit hints the text is eastAsian.

Code:
<w:r w:rsidR="009F0743" w:rsidRPr="009F0743">
<w:rPr>
<w:rFonts w:hint="eastAsia"/>
<w:lang w:eastAsia="ja-JP"/>
</w:rPr>
<w:t>お手玉</w:t>
</w:r>
EPUB displays japanese characters (maybe they're included in Times New Roman), but they look differently to what I want and I'm not sure if this would work on Kindle.

What am I doing wrong?
jindroush is offline   Reply With Quote
Old 01-29-2024, 10:09 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC docx input doesnt have support for font hints. Feel free to come up with a patch for it, not something I care about personally.
kovidgoyal is offline   Reply With Quote
Reply

Tags
asian fonts, docx, embedding fonts, word


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 PRS-T1 & Asian Fonts/Unicode komugi Sony Reader 20 10-05-2013 11:49 PM
Kindle 4 NT Asian Fonts? lacunae Amazon Kindle 0 12-21-2011 05:18 PM
Mixed fonts in Calibre output (HTML to anything) jasonb57 Calibre 2 09-06-2010 11:01 AM
Palm, Plucker - mixed fonts on same page tx_kt Reading and Management 0 02-27-2007 12:49 PM


All times are GMT -4. The time now is 04:02 PM.


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