Editing XML in ePub files (also posted in ID forum)

Hi all
I posted this in the InDesign forum a few days ago but got no response, so I'm trying here. My apologies for the double-up.
I'm about to start preparing ePUB files (from InDesign CS4) for a particular distributor whose instructions state:
"Text encoding should all be in UTF-8 (this can be checked in the OPF, the first line should be “<?xml version="1.0" encoding="UTF-8" ?>” ".
When I check my initial test files using PDFXML Inspector (with pretty printing turned off — thanks Gabriel Powell) the first line states only “<?xml version="1.0"?>”.
I ran a test by simply adding the "encoding="UTF-8""  bit to that line and everything seems to work fine in Calibre and Digital Editions (as it did with the unedited version — there seems to be no difference).
BUT, is this the correct way to do things or am I inadvertently setting myself up for disaster?
Does InDesign automatically export with text encoded as UTF-8 — or some other format?
Are there other settings in InDesign which alter the way text is encoded and the XML is generated?
AND — my other question...
This distributor is also asking for additional metadata entries.
Can I integrate them anywhere within the metadata or are there particular ordering protocols that need to be adhered to?
As you can see, I'm an XML ignoranti and any assistance will be most gratefully received.
d.

Hi Frances,
Please be aware that I have not got any ePubs to the retail stage as yet, I was working flatout on a bunch of ePubs for a few months when the project got put on the backburner — so my experience is limited.
I'm not sure what your process is, but InDesign CS4 does an OK job of creating ePubs — just so long as you set the files up correctly (eg. the easiest way to get page breaks between chapters is to save each chapter as a separate InDesign file and then combine them in a book. ALSO, everything should be styled using paragraph, character and oject styles)
Unless CS5 has SIGNIFICANT upgraded support for ePub, you might be wasting your money.
Check out the excellent tutorials by Gabriel Powell
He gives the most outstanding introduction to ePUB from InDesign I've yet seen.
PDF
http://www.creativepro.com/article/making-ebooks-indesign-part-1
Video
http://instantindesign.com/index.php?view=413
A couple of things I found I needed to do to get ePubs looking right in anything other than ADE:
• I got a better result if I wrote my own CSS — InDesign does not do a good job of this at all, AFAIC. Export style names only and use these as the basis for your CSS.
• Indesign fails to list fonts in the manifest, so if you want to specify your own fonts you need to add them manually and reference them in the manifest. Don't bother trying to embed fonts at export — it causes too many problems, it seems.
• The only thing I need to do in the xhtml files is fix a few non-alpha characters sometimes (like bullets, apostrophes, quotes, etc) I've no idea why these sometimes fail and sometimes don't.
FYI:
I use both Calibre and ADE to view ePubs — because they will each highlight different issues.
I built my CSS and a few other bits and pieces in Text Edit — this makes it easy to re-use things like the CSS for multiple publications.
I use PDFXML Inspector to do the editing — this allows siginificant editing capability without the need to unpack the ePub.
And I use Terminal to repackage ePubs (ie. after adding a fonts folder, or whatever) — using the command lines in Gabriel Powell's tutorial.
ie. I've spent nothing on additional software — it's all either free or already on the Mac.
It's a very steep, frustrating learning curve — LOTS of trial and LOTS of error. But it's also fun.
Good luck
d.

Similar Messages

  • Edit PDF and ePub files?

    How can I edit PDF files or ePub files so they don't have mistakes on my iPad? I have a Windows PC; no computer. :/
    Please help. (:

    here are some options for editing pdf files on your ipad
    http://www.iosappadvice.com/ultimate-pdf-handling-an-ios-app-review-of-goodreade r-for-the-ipad/
    http://lifehacker.com/5842541/the-best-pdf-viewereditor-for-iphone

  • Loading data from a file    - originally posted in Spatial forum

    Loading data from a file
    Posted: Jun 23, 2008 10:21 AM      
    Hello,
    i want to load my data to oracle from a rdf file and can consult it later with sparql.
    so, I construct a Jena Model, then I store it using this program, but how can i consult it without loading the file again. thanks
    Oracle oracle = new Oracle(jdbcUrl, user, password);
    // read a data file into a default Jena model.
    Model model = ModelFactory.createDefaultModel();
    InputStream is;
    is = new BufferedInputStream( new FileInputStream(filename));
    model.read(new InputStreamReader(is), "", "");
    is.close();
    ModelOracleSem modelDest = ModelOracleSem.createOracleSemModel(oracle, modelName);
    GraphOracleSem g = new GraphOracleSem(oracle, modelName);
    g.dropApplicationTableIndex();
    if (method == 0) {
    psOut.println("start incremental");
    modelDest.add(model);
    psOut.println("end size " + modelDest.size());
    }else if (method == 1) {
    psOut.println("start batch load");
    ((OracleBulkUpdateHandler) g.getBulkUpdateHandler()).addInBatch(
    GraphUtil.findAll(model.getGraph()), tbs);
    psOut.println("end size " + modelDest.size());
    } else {
    psOut.println("start bulk load");
    ((OracleBulkUpdateHandler) g.getBulkUpdateHandler()).addInBulk(
    GraphUtil.findAll(model.getGraph()), tbs);
    psOut.println("end size " + modelDest.size());
    g.rebuildApplicationTableIndex();

    Hi,
    Chapter 1 (section 1.8) in the documentation has a quickstart on these steps - creating a semantic network, a model, loading the data using INSERT statements and so on. For faster load of large amounts of data you can use the bulk load functionality, documented in chapter 1 (section 1.7).
    For Java code, you could use the Oracle Jena Adaptor, and the best place to start is with the documentation of the Oracle Jena Adaptor, at http://www.oracle.com/technology/tech/semantic_technologies/htdocs/documentation.html
    Melli

  • IHDPro Error -- Also posted in Compressor Forum

    Has anyone encountered this and do you know what it means or how to troubleshoot? I've dropped a motion project (.motn) into compressor and this error comes up. It follows with "Unable to figure out your host, assuming it is Final Cut Pro".
    My thanks to those who have seen it, or can help troubleshoot. Perhaps it is a filter I may be using in Motion? Not sure.

    Thanks Patrick, that is definitely PLAN A. I have about 30 "video head shots" for PAC 10 Football that I've developed and was hoping to batch render them out of Motion somehow. That was my logic for dropping the .motn files right into compressor.
    Funny thing is, after the error pops up a couple of times (and I press "continue" in the dialogue box)compressor can actually "see" the .motn file but once I set up the batch, it all crashes away quietly.
    This motion project has about 6 really complex montages, light sweeps, and an alpha movie of the football player on top, so it was worth a shot to try to batch. Oh well, the 8 core takes the render time down to about 4 minutes each, so I'm not too disappointed.
    Thanks again maybe others have seen the error, or maybe you could try dropping a complex .motn file (using some noise industries filters) into compressor, and see if you see the same error.
    cheers!

  • How to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 using ftp

    how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet

    Hello
    For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
    Also, take a look at FTP Browser.vi, which is available at the Example Finder.
    To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
    Post your current VI if possible.
    Regards
    Mondoni

  • How to convert  information of a job posting into a xml string or file

    hi hr experts,
    I hope to find some answers.
    Is there a function in the ERP system that converts all the information of a job posting into a xml string or file?
    This could be used to communicate with external job databases, e.g. monster or jobpilot.
    The function CALL TRANSFORMATION converts data to XML. Is this really the only way to convert the job posting?
    Thanks for your feedback and help.
    Ralf von Seht
    Edited by: Ralf von Seht on Mar 26, 2008 4:45 PM
    Edited by: Ralf von Seht on Mar 26, 2008 4:46 PM

    Hi Elena,
    The issue is caused by XSLT is not script enabled by default.  Please provide XsltSettings in the loading to fix the issue. For more information, please see:
    http://daomingworks.wordpress.com/2009/12/11/xslt-transform-data-error-use-the-xsltsettings-enablescript-property-to-enable-it/
    Thanks,
    Jinchun Chen
    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)

  • Downloading epub files from library into digital editions 2

    I am unable to download from my library to digital editions 2.  They told me to make sure the acsm and epub files are pointing to Digital Editions, which they are, they also had me uninstall and reinstall the adobe digital editions which I've done.  I have even tried using different browsers all of which the same problem exists.  Please help this is so frustrating I am using a toshiba 32-bit operating system with Windows Vista and firefox browser.  I have also disabled my firewalls and still nothing is working.  Please help me someone.....  I have searched for help and it appears there is a problem with the newest version of Digital editions, but I cannot find anywhere where I can try installing a lower version of this application.
    thanks in advance

    There are lots of bugs in ADE2.0.  Try replacing ADE2.0 with the older but more reliable v1.7.2.
    (You can have them both installed at once if you like.)
    Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.
    http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editions.html
    The forum software is sometimes corrupting the link above.  There shouldn't be a blank in 'editio ns.html'.  The following redirects to the same page: http://tinyurl.com/diged172

  • How can I generate my own InDesign ePub file without the encryption.xml file?

    My bookstore (B&N) will not accept my ePub file because it doesn't want the file encryption.xml included. How can I generate an InDesign ePub file, for my own books, without it? Is there a check box somewhere? I've searched through the ePub export box and the file info boxes—no luck.
    Error message from B&N's PubIt.com:
    We have found a file name called encryption.xml within your ePub file container, which means that part of, or all of, your file is encrypted. We do not accept any encryptions within ePub source files. Upon closing this message, please remove the encryption.xml file from your ePub, and you may attempt to upload your ePub file again.
    If you wish to apply DRM to your title, go to Section 4, question H and select Yes. PubIt! will apply DRM to your title after you have uploaded your ePub file without encryption.
    Thanks for your help…

    Unfortunately you will find the option to uncheck "Embeddable Fonts" within ID CC 2014 only if you are creating an ePub with reflowable layout, but not if you are creating a "fixed layout" ePub.
    I went with the suggestion of the eCanCrusher and was pleasantly surprised how easy to use this free tool is. You basically just drag your ePub over the icon of the App and it creates a folder in which you find the encryption.xml within the META-INF folder. Once you erased it you drag the folder over the icon of the App and through this you will get a new encryption-free ePub which now passes iTunes Connect Book Proofer test.
    But then - opening the ePub without it's encryption within iBooks (on ipad) the text has moved, spaces between words are gone for no reason, words are even sticking into each other - it looks unacceptable! It does look OK on the iBook desktop app, however.
    My solution was to change the font from Myriad to Verdana. I had changed the fonts before, because - whatever font I had used - it's reproduction on the ipad was messed up, and Myriad was the first one that I tried that looked alright, though, not so much after removing the encryption.xml. Unfortunately everything changes when you change fonts within a fixed layout ePub and all line breaks have to be revised now...
    I also tried to remove the embedded fonts from inside the ePub, like someone else suggested, but that didn't help with the Book Proofer. It's really the encryption.xml that needs to be removed.
    I wish that I now finally can submit successfully to Apple and wish that Adobe would have a better relationship with Apple to solve issues like that.

  • How can I edit an RH9 .hhc file (XML format) to include a portion of a RH8 TOC (HTML format)?

    I blend output from a third-part application (Sandcastle) into an existing RH8 project.  I do this by decompiling and importing the HTML, then editing the RH8 .hhc file to include the .hhc information from Sandcastle.
    This worked fine until RH9 (and now RH10), where the format of the .hhc changed to XML.  Can someone tell me how to approach this now?  Currently, I worked around this by creating a RH8 project with the imported HTML/hhc from Sandcastle, then upgraded that project to RH9.

    I decompile the CHM file produced by Sandcastle because Sandcastle output does not provide an index file (.hhc) that I can use to edit the main TOC in my RoboHelp project.
    The Sandcastle HTML output files that I import into Robohelp have very intricate nesting and hyperlinking, so autogenerating a TOC in RoboHelp does not produce the desired results. Decompiling is the only way I see to obtain an index file that Robohelp will recognize and add/edit to the existing TOC.
    This may be ignorance on my part, but I can't look at an HTML-based .hhc (RH8) and know how to edit it to be XML-based (RH9).
    See below for examples.
    (RH8 .hhc)
    <UL>
          <LI><OBJECT type="text/sitemap">
            <param name="Name" value="SecurityKeywordList Class">
            <param name="Local" value="html/A077D816.htm">
          </OBJECT></LI>
          <UL>
            <LI><OBJECT type="text/sitemap">
              <param name="Name" value="SecurityKeywordList Members">
              <param name="Local" value="html/11169289.htm">
            </OBJECT></LI>
          </UL>
          <UL>
            <LI><OBJECT type="text/sitemap">
              <param name="Name" value="SecurityKeywordList Methods ">
              <param name="Local" value="html/F3929639.htm">
            </OBJECT></LI>
            <UL>
              <LI><OBJECT type="text/sitemap">
                <param name="Name" value="Find Method ">
                <param name="Local" value="html/3EA4BB08.htm">
              </OBJECT></LI>
            </UL>
            <UL>
              <LI><OBJECT type="text/sitemap">
                <param name="Name" value="FindAll Method ">
                <param name="Local" value="html/B9BC3800.htm">
              </OBJECT></LI>
            </UL>
          </UL>
          <UL>
    (RH9 /hhc)
    <item name="KeysetList Class" link="Unity\html\CE1C2166.htm">
         <item name="KeysetList Members" link="Unity\html\B924C78B.htm">
         </item>
         <item name="KeysetList Methods" link="Unity\html\2296b028.htm">
          <item name="Find Method " link="Unity\html\15B259BE.htm">
          </item>
         </item>
         <item name="KeysetList Properties" link="Unity\html\e98d8b4e.htm">
         </item>
        </item>
        <item name="Keyword Class" link="Unity\html\AC081184.htm">
         <item name="Keyword Members" link="Unity\html\AF52F347.htm">
         </item>
         <item name="Keyword Methods" link="Unity\html\C9317DF2.htm">
          <item name="Clone Method " link="Unity\html\2B16250F.htm">
          </item>
          <item name="Equals Method " link="Unity\html\5AA411AE.htm">
           <item name="Equals Method (Object)" link="Unity\html\EE184CE3.htm">
           </item>
           <item name="Equals Method (Keyword)" link="Unity\html\D600E80A.htm">
           </item>
          </item>
          <item name="GetHashCode Method " link="Unity\html\9A9979B7.htm">
          </item>
         </item>
         <item name="Keyword Properties" link="Unity\html\5A9776D1.htm">
          <item name="AlphaNumericValue Property " link="Unity\html\3CA3F3CF.htm">
          </item>
          <item name="CurrencyFormat Property " link="Unity\html\66CFE652.htm">
          </item>
          <item name="CurrencyValue Property " link="Unity\html\C2A5A2F6.htm">
          </item>
          <item name="DateTimeValue Property " link="Unity\html\B7358EF1.htm">
          </item>
          <item name="FloatingPointValue Property " link="Unity\html\6EA77C25.htm">
          </item>
          <item name="IsBlank Property " link="Unity\html\32367245.htm">
          </item>
          <item name="KeywordType Property " link="Unity\html\976D4B82.htm">
          </item>
          <item name="Numeric20Value Property " link="Unity\html\5A9DF184.htm">
          </item>
          <item name="Numeric9Value Property " link="Unity\html\56FE0652.htm">
          </item>
          <item name="Value Property " link="Unity\html\25A1DCBB.htm">
          </item>
         </item>
        </item>

  • Read of XML file and post to IDOC

    Hi
    I'm working on a <b>WAS620</b> and need to read an XML file from a customer, extract the fields needed and post these via IDOC ORDERS01. My problem is HOW to read the XML file? Can anyone give me the steps involved/links to examples etc - I have not processed XML files via ABAP before.
    The file is posted to a shared folder and the ABAP I am about to develop will pick up this file.
    The file is <b>NOT</b> in IDOC/XML format but the customers own format
    Hope someone can help me asap.
    Thanks all in advance
    /Bo

    Hi,
    I would like to extend this question for <b>WAS620</b> and <b>reading</b> a <b>proprietary customer specific XML</b> file/data that is <b>send via HTTP to SAP WAS</b>.
    <b>Q1</b>: What is the best way to read this HTTP sent XML data (as it is, without transformations) into ABAP?
    <b>Q2</b>: What is the appropriate handler to use in the ICF object?
    Thanks all in advance

  • How do I edit my ePub file on Windows 8?

    Hello, I need help for my ePub file, I'm a ebooks writer and I have to design and edit my ePub books and publish it onto site, please recommend a great tool to edit, design ePub book! Thanks in advance!

    alishaxtu wrote:
    I was hoping I didn't have to pay for anything haha
    Yeah, no.
    Adobe Acrobat Pro.   

  • HT4168 When I export a pages document as an ePub file the result is a blank locked text edit file on my desk top not an ePub file as previously no problem creating. How do I fix? HHD

    WHenWhen I export a pages document as an ePub file the result is a blank locked text edit file on my desk top not an ePub file as previously no problem creating. How do I fix? HHD

    Try adding .epub to the end of the name.
    I assume you are aware that to open an .epub file you need a special app, not TextEdit or Pages, right?

  • ACLs and editing XML files using OEM

    Hi,
    How to edit the registered schema file using OEM?
    I tried, but did not allow to edit.
    What previliges do a user need to update? In my case, even the user with DBA, XDBADMIN roles can not edit the content of the schema in OEM. Is it possible?
    In case of acls, there are four xml files. Are they assigned to resources or is it possible to assign them to users as well?
    I mean to say is it possible that different users have diifernt access to resources?
    Thanks.

    Hi
    It is not possible to update a schema via OEM.
    The only way (except via SQL) is to use an editor that supports WebDAV.
    Notice that no schema evolution is supported in 9i, i.e. you should have no types or tables that depend from it.
    In the ACL you can specify which user or role has access to the resource associated to it.
    Chris

  • Editing XML File

    Any idea or url around for an example how to edit XML files
    with ASP.VB ?
    thanks fpr any reply
    Sebastian

    To modify an XML document obtain a DOM stucture of the XML file, select nodes with XPath expression, and modify nodes.
    http://otn.oracle.com/pub/notes/technote_domparser.html

  • Can you edit xml files in adobe contribute

    can you edit xml files in adobe contribute

    No, you can't even open them in recent versions of PSE.

Maybe you are looking for

  • Strange error: gpib error when using DAQmx

    Hello I try to out put a single puls using a counter on a PCI-6602 Board with the attached LabVIEW code. Strangely I get  the following error message: "Error 3 occurred at an unidentified location Possible reason(s): LabVIEW:  Internal error. Wrong m

  • Bapi or RFC for Scheduled production orders?

    Hi experts, I need to extract a list of the Scheduled production orders (for a specific plant)for integration purpose. Does anyone know if there is any BAPI or RFC for this purpose and could anyone tell me which one could be used. I noted that a simi

  • Time dimensions

    Hi OBIEE Guru's, Could any one can explain the time dimension. My requirement is :I have one DB table which contain the year column it is dimension table and another fact table contain the amount respective years,So I need to display records in a sin

  • Printing Monthly Calendar - Outlook 2010

    We upgraded to office 2010. The Admin Staff usually prints our monthly calendar views to whom they report to.  Since the upgrade they are telling me that now the printout is smaller (changed) - and they are asking me if there is a way to print out th

  • HELP!! AppleMobileDeviceHelper has stopped working

    HELP! Whenever I open iTunes Windows displays a message that says, "AppleMobileDeviceHelper has stopped working. A problem has caused the program to stop working. Windows will notify you when a solution is available." Also when I plug my ipod into my