View Single Post
Old 04-02-2013, 01:49 PM   #534
KevinH
Guru
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 349410
Join Date: Nov 2009
Device: many
Hi,

Your font testcase is missing most of the fonts that are references in Section001.xhtml. So I am not sure how good a testcase this will turn out to be since kindlegen gives many warnings ...

Code:
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/Comic_Sans_MS.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/Courier_New.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/Georgia.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/Times_New_Roman.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/Trebuchet_MS.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/Verdana.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/Andika-R.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/CharisSILR.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/DoulosSILR.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/GenR102.ttf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/AGaramondPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/AJensonPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/ArnoPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/BenguiatStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/BerkeleyStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/BriosoPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/CaeciliaLTStd-Roman.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/ChaparralPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/CheltenhamStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/CronosPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/FrutigerLTStd-Roman.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/GalliardStd-Roman.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/GaramondPremrPro.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/HiroshigeStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/HorleyOldStyleMTStd.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/KeplerStd-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/MendozaRomanStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/MinionPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/MinisterStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/MyriadPro-Regular.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/NewAsterLTStd.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/OptimaLTStd.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/PalatinoLTStd-Roman.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/PlantinStd.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/SlimbachStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/TimesNewRomanMTStd.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/UniversLTStd.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/VeljovicStd-Book.otf
Warning(prcfile):W14028: Following file does not exist :   ../Fonts/WarnockPro-Regular.otf
Either way, I added a simple jpeg image to your testcase and them examined the order of the resulting sections in both parts of the mobi (as built by kindlegen 2.8).

Code:
Map of Palm DB Sections
    Dec  - Hex : Description
    ---- - ----  -----------
    0000 - 0000: HEADER 6
    0001 - 0001: Text Record 0
    0002 - 0002: NCX Index 0
    0003 - 0003: NCX Index 1
    0004 - 0004: NCX Index CNX
    0005 - 0005: FONT
    0006 - 0006: FONT
    0007 - 0007: FONT
    0008 - 0008: FONT
    0009 - 0009: FONT
    0010 - 000a: FONT
    0011 - 000b: FONT
    0012 - 000c: Image jpeg
    0013 - 000d: RESC
    0014 - 000e: FLIS
    0015 - 000f: FCIS
    0016 - 0010: Source Archive 0
    0017 - 0011: Source Archive 1
    0018 - 0012: BOUNDARY
    0019 - 0013: HEADER 8
    0020 - 0014: Text Record 0
    0021 - 0015: Text Record 1
    0022 - 0016: Text Record 2
    0023 - 0017: 0000
    0024 - 0018: Fragment Index 0
    0025 - 0019: Fragment Index 1
    0026 - 001a: Fragment Index CNX
    0027 - 001b: Skeleton Index 0
    0028 - 001c: Skeleton Index_Index 1
    0029 - 001d: NCX Index 0
    0030 - 001e: NCX Index 1
    0031 - 001f: NCX Index CNX
    0032 - 0020: FDST
    0033 - 0021: FLIS
    0034 - 0022: FCIS
    0035 - 0023: DATP
    0036 - 0024: EOF_RECORD
As you can see the FONTS can be stored *BEFORE* the image files, which means that I can not remove the FONT sections themselves without messing up all of the links to the images that are in the text records.

So the only way to create a type 7 mobi without FONTS is with Mobigen or a 1.X version of Kindlegen.

The best I can do is try keeping the font sections but making them 0 size. As I said earlier, I am not sure if that would even work. If you are willing to test things, I am willing to provide an experimental mobi_split.py that will walk the k7 part zeroing out any font sections but not actually removing the sections themselves.

KevinH
KevinH is offline   Reply With Quote