filename contains spaces
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 31
- Joined: Sun Jun 14, 2009 4:25 pm
filename contains spaces
Hi, I'm just upgrading to Author 14.1 and when I try to validate an epub I'm getting this warning:
"Filename contains spaces. Consider changing filename such that URI escaping is not necessary!"
specifically it cites the css file:
css/_Applications_oxygenAuthor 4_frameworks_docbook_css_styles.css
This doesn't happen on my version of Author 13. I thought I transferred all the settings, but perhaps I'm missing something.
DC
"Filename contains spaces. Consider changing filename such that URI escaping is not necessary!"
specifically it cites the css file:
css/_Applications_oxygenAuthor 4_frameworks_docbook_css_styles.css
This doesn't happen on my version of Author 13. I thought I transferred all the settings, but perhaps I'm missing something.
DC
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: filename contains spaces
Hi,
Sorry for the delay.
Are you publishing Docbook 4 or 5 to EPUB?
Are you using the default transformations from Oxygen to create the EPUB archive?
Did you set any custom parameters to it or did you modify the ANT build file in any way?
Regards,
Radu
Sorry for the delay.
Are you publishing Docbook 4 or 5 to EPUB?
Are you using the default transformations from Oxygen to create the EPUB archive?
Did you set any custom parameters to it or did you modify the ANT build file in any way?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 31
- Joined: Sun Jun 14, 2009 4:25 pm
Re: filename contains spaces
Publishing Docbook 5
I used the default DocBook Epub, which is ANT -- got that same "filename with spaces" warning.
I do have some custom parameters which I tried to transfer over from my previous version, which I think was 13.2:
1. a custom CSS style sheet.
2. a custom xsl file.
3. The ANT scenario parameters are the same.
I noticed that the new version of Oxygen (14.1) seemed to pick up all this from the previous version, even though I installed it in a separate folder.
As I think I mentioned, I am getting a valid EPub from the 13.2 version.
Thanks for your help!
DC
I used the default DocBook Epub, which is ANT -- got that same "filename with spaces" warning.
I do have some custom parameters which I tried to transfer over from my previous version, which I think was 13.2:
1. a custom CSS style sheet.
2. a custom xsl file.
3. The ANT scenario parameters are the same.
I noticed that the new version of Oxygen (14.1) seemed to pick up all this from the previous version, even though I installed it in a separate folder.
As I think I mentioned, I am getting a valid EPub from the 13.2 version.
Thanks for your help!
DC
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: filename contains spaces
Hi,
Initially this worked for me (because I tested on Windows) but then I managed to reproduce a similar problem on a MAC when referencing an image.
I think the issues are related and fixing one of them should fix the other although I do not know very much about your customization. We'll look into it, maybe incorporate the fix in one of the Oxygen 14.1 minor bug fix release. I'll update this thread when this happens.
How exactly do you refer to the custom CSS (which is probably called "styles.css")?
Regards,
Radu
Initially this worked for me (because I tested on Windows) but then I managed to reproduce a similar problem on a MAC when referencing an image.
I think the issues are related and fixing one of them should fix the other although I do not know very much about your customization. We'll look into it, maybe incorporate the fix in one of the Oxygen 14.1 minor bug fix release. I'll update this thread when this happens.
How exactly do you refer to the custom CSS (which is probably called "styles.css")?
The transformation scenarios are inherited from one version to another. This does not mean that resources get copied from one folder to another so maybe your transformation scenario now relies on resources which do not exist anymore in the Oxygen Installation Directory.I noticed that the new version of Oxygen (14.1) seemed to pick up all this from the previous version, even though I installed it in a separate folder.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: filename contains spaces
Post by sorin_ristache »
Hello,
If you want to have zero warnings you should follow the suggestion of the warning:
and remove the space characters from any file path that goes in the EPUB, for example replace them with the underscore character.
If you don't care about EPUB bookstore requirements like iBookstore and you don't want to remove the space characters, please ignore the warning message. It is not an error that makes the EPUB unusable, it is just a warning that tries to help the users who intend to submit the e-books to some app stores.
Regards,
Sorin
Version 13.2 included an older version of the EpubCheck validator which did not report a warning or error when the name of a file from the EPUB file contained spaces. Newer versions of Oxygen come with the latest EpubCheck version, that is EpubCheck 3.0b5 (as you can see in the Help -> About dialog, the Libraries tab). Starting with this version the validator tries to prevent future rejections of EPUBs containing filenames with spaces when they are submitted to app stores like iBookstore. You can read about this here, here and here. Even escaping the space characters (replacing any space from a file path with %20) does not remove all the space-related errors and warnings from the EpubCheck validation.dcdenison wrote:As I think I mentioned, I am getting a valid EPub from the 13.2 version.
If you want to have zero warnings you should follow the suggestion of the warning:
Code: Select all
Filename contains spaces. Consider changing filename such that URI escaping is not necessary
If you don't care about EPUB bookstore requirements like iBookstore and you don't want to remove the space characters, please ignore the warning message. It is not an error that makes the EPUB unusable, it is just a warning that tries to help the users who intend to submit the e-books to some app stores.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: filename contains spaces
Post by sorin_ristache »
Hi DC,
Regards,
Sorin
On second thoughts: I just fixed the warning by replacing automatically any space character with '_' in the file path of any CSS or image resource that is included in the final EPUB file. It is a simple fix which does not affect in any way the actual input files (it affects only the file paths from inside the final EPUB) and which circumvents nicely the pesky "filename with spaces" warning. The fix will be available starting with the next maintenance build of Oxygen 14.1. If you don't want to wait until the next Oxygen build just let us know by email (support at oxygenxml dot com) and we will provide a download URL of an Oxygen nightly build.dcdenison wrote:Publishing Docbook 5
I used the default DocBook Epub, which is ANT -- got that same "filename with spaces" warning.
Regards,
Sorin
-
- Posts: 31
- Joined: Sun Jun 14, 2009 4:25 pm
Re: filename contains spaces
Thanks Sorin, I can definitely wait until the next build.
I'm *definitely* interested in uploading to the Apple iBookstore, so I want to comply with Epub requirements.
BTW, where are these spaces coming from? I never use spaces in my file names? Is it something in the ANT conversion?
Also to answer Radu's question as to how I refer to the custom CSS:
${frameworksDir}/docbook/css/styles.css
That's what in the "Parameters" section of the ANT scenerio.
On the computer where I'm doing the transformation:
OxygenAuthor4>frameworks>docbook>css>styles.css
Thanks so much for the help. I can see that this is a common problem out there.
DC
I'm *definitely* interested in uploading to the Apple iBookstore, so I want to comply with Epub requirements.
BTW, where are these spaces coming from? I never use spaces in my file names? Is it something in the ANT conversion?
Also to answer Radu's question as to how I refer to the custom CSS:
${frameworksDir}/docbook/css/styles.css
That's what in the "Parameters" section of the ANT scenerio.
On the computer where I'm doing the transformation:
OxygenAuthor4>frameworks>docbook>css>styles.css
Thanks so much for the help. I can see that this is a common problem out there.
DC
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: filename contains spaces
Post by sorin_ristache »
Hi,
If the image file is located outside the folder of the DocBook 5 XML file then a copy of the image file is included in the EPUB with a file name that includes the full original file path of the image file with some minor modifications like '/' and '\' changed to '_', etc. So if your image file is outside the input XML file in a file path like C:\temp\directory with spaces then these spaces will be included in the copied image file name inside the final EPUB output of the transformation.
This was the behavior up to the initial release of Oxygen 14.1 but we fixed the problem already and the fix will be included in the first maintenance build of Oxygen 14.1 (probably later this week).
Regards,
Sorin
If the image file is located outside the folder of the DocBook 5 XML file then a copy of the image file is included in the EPUB with a file name that includes the full original file path of the image file with some minor modifications like '/' and '\' changed to '_', etc. So if your image file is outside the input XML file in a file path like C:\temp\directory with spaces then these spaces will be included in the copied image file name inside the final EPUB output of the transformation.
This was the behavior up to the initial release of Oxygen 14.1 but we fixed the problem already and the fix will be included in the first maintenance build of Oxygen 14.1 (probably later this week).
Regards,
Sorin
-
- Posts: 31
- Joined: Sun Jun 14, 2009 4:25 pm
Re: filename contains spaces
thanks. That's really helpful.
I always store all the images in a "figs" folder inside the folder that contains the .xml file. I was told that's the best practice. And that sounds like it will work in the next build.
Thanks again, appreciate the quick response!
DC
I always store all the images in a "figs" folder inside the folder that contains the .xml file. I was told that's the best practice. And that sounds like it will work in the next build.
Thanks again, appreciate the quick response!
DC
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: filename contains spaces
Post by sorin_ristache »
Hi,
If the images are stored in a subfolder of the folder containing the main XML file then the subfolder structure with the images will be mirrored inside the EPUB file. Additionally, starting with the next maintenance build for 14.1 (which we will upload to the Oxygen download server in a couple of days), any space character in any folder or subfolder name (it does not matter if it is located inside the folder containing the main XML file or not) will be replaced with an '_' to avoid that EPUB validation warning.
If you subscribe to the RSS for the maintenance builds you will be automatically notified about new Oxygen builds in the future.
Regards,
Sorin
If the images are stored in a subfolder of the folder containing the main XML file then the subfolder structure with the images will be mirrored inside the EPUB file. Additionally, starting with the next maintenance build for 14.1 (which we will upload to the Oxygen download server in a couple of days), any space character in any folder or subfolder name (it does not matter if it is located inside the folder containing the main XML file or not) will be replaced with an '_' to avoid that EPUB validation warning.
If you subscribe to the RSS for the maintenance builds you will be automatically notified about new Oxygen builds in the future.
Regards,
Sorin
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: filename contains spaces
Hello,
I just wanted to let you know that this problem has been resolved in the latest maintenance build of Oxygen 14.1, 2012111217 (released on November 14th):
http://www.oxygenxml.com/download.html
The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2012111217
You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml
Let us know if you encounter further problems with this new build.
Regards,
Adrian
I just wanted to let you know that this problem has been resolved in the latest maintenance build of Oxygen 14.1, 2012111217 (released on November 14th):
You can download it from our web site:DocBook 5 to EPUB: The generated EPUB was invalid if an image reference or a custom CSS had space characters in the path.
http://www.oxygenxml.com/download.html
The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2012111217
You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml
Let us know if you encounter further problems with this new build.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service