Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Spaces in Filenames #63705
    Liang
    Member

    Cari's blog post is a good one. And in one of the comments I found a link to a similar script that can batch rename (and relink) all of the images in a document in one hit! See here. I've just run it and it's worked a treat.

    I am aware of your Lynda.com courses and will be taking the one you mention above, as well as your Fixed Layout EPUB course next week. I've been studying eBook production (from scratch!) for the last couple of months now and the learning curve has been STEEP! I seem to be getting down to the business end of things now so input from experienced folk such as yourself is invaluable.

    Thanks again Anne-Marie!

    Mark.

    in reply to: Spaces in Filenames #63701
    Liang
    Member

    Anne-Marie,

    Thanks (again) for your reply. I am using CS6 8.0.1 but I have a niggling feeling that the update may not have installed correctly at the time. Do you know of a way I can check, or re-install the update?

    The validation notes on this one are indeed Warnings and not errors. I didn't realise the file would be still valid. I am new to all of this and just assumed I needed a clean sheet when validating. That's good news. Here is an example of one of the errors anyway:

    WARNING: /Users/Mark/Desktop/LEM-EPUB-TEST-Throwing-121206.epub/OEBPS/image/9781408139554_p072 new_fmt.jpeg: Filename contains spaces. Consider changing filename such that URI escaping is not necessary

    Thanks for the link to the Tomaxxi script. I shall Google how to load / run such scripts from InDesign (like I said – I'm a newbie!) and make use of it. A clean sheet would be much more pleasing!

    I do have other validation errors that I need to sort but I'll look into these before posting seperate queries.

    Many thanks for your time.

    Mark.

    in reply to: Converting EPUB to MOBI #63700
    Liang
    Member

    Anne-Marie,

    Thanks very much for your reply. As you suggested I do keep an unzipped epub 'live' on my desktop for the duration of my tweaking (of the epub). As the book was displaying well as an epub I didn't consider I may need to add in additional code to get the thing working as a mobi. I will add a few more rules and re-test in Kindle Previewer as you suggested.

    Thanks once again.

    Mark.

    in reply to: Sizing images in InDesign layout for epub export #63666
    Liang
    Member

    I'm not sure about CS5, but in CS6 you can choose to either export images at a specific size or 'relative to page width'. Regarding the latter, I have experimented a bit by comparing the sizes of images set in InDesign against the resulting code once exported to EPUB. To the best of my knowledge, if you choose to export relative to page width:

    InDesign creates a copy of each image basing the dimensions of the new file on the picture box dimensions from InDesign. Keeping this in mind and the fact that images are rasterized as specified in the object export settings, the size of the original linked image becomes irrelevant.

    In the code, a class is created for every differing width of image based on the percentage width of the InDesign page. If your images are laid out using column guides, the number of different img classes that InDesign creates will be reduced as you are limiting the variety of image widths used within your document. For example:

    If your InDesign page is 210mm and an image / picture box has a width of 105mm, in the resulting HTML, InDesign will assign the image a class (in this case “frame-3”)

    <img class=”frame-3″ src=”image/Imagefilename.jpeg”/>

    and a rule will be added to the CSS file that stipulates that frame-3 should display at 50% of the eReader's page width:

    img.frame-3 {width:50%;}

    If your image sits inside a div (paired with a caption for example), the div will receive a class too and additional rules will be applied to the object.

    Now. This is the part that I'm slightly unsure of! It seems to me that the above holds true when the iPad (can't vouch for any other devices) is held in portrait orientation. When held in landscape orientation (and iBooks displays a double page spread rather than a single page), images only change size accordingly if they are larger than the new page – but if not, they remain at the size they were displayed while in portrait mode. Roughly speaking, this means that if an image is displayed at 25% width in portrait, when the device is rotated to landscape, it is displayed at approx 50% of a single page. All roughly speaking mind ie. disregarding margin dims etc.

    Can anyone shed any more light on this subject or confirm that what I've just said is correct? I've concluded all this by experimentation but because of a degree of inconsistency in the results cannot yet claim that any of it is for definite! I'm having issues controlling the size of images (tall ones are forcing captions to split and jump to the next page) and would like to fully understand for certain firstly how InDesign writes the rules and secondly how iBooks interprets them.

    Cheers.

    in reply to: Keeping images and captions on the same page #63665
    Liang
    Member

    …and if you have several images + captions to keep together, in InDesign you can group the images and captions, assign a named object-style and InDesign will create the divs for you with the object-style name given as a div class to which you can apply the CSS rule. See here.

    I have found that the page-break-inside:avoid; method works to keep images and captions together UNLESS an image has a taller aspect ratio as well as a taller native height than the page. In this case, iBooks ignores page-break-inside:avoid; and scales the image to 100% of the available page height thus forcing the caption onto the next page. Can anyone suggest how I might get around this?

    I have tried applying max-height:100%; to the div but no joy. I've read on another forum that a SVG wrapper might work but I'd prefer to exhaust all the relevant basic CSS rules before exploring that route.

    Cheers.

Viewing 5 posts - 1 through 5 (of 5 total)