| Posted: 27 Mar 2006 08:17 | |
|
Registered User Currently Offline |
Posts: 14 Join Date: Mar 2006 |
|
The setup instructions in docbook_configuration.bat say I can comment out the setting of the 3 various directories, presumably in stylesheet\custom_configuration.bat, and it will then run out of my current working directory. When I create a stylesheet\custom_configuration.bat, though, and then run a command such as docbook_create.bat, eDE seems to keep printing LF or CR-LF to the terminal and doesn't produce any files. I'm running this under cygwin bash.
Any suggestions? I really like what I see so far. |
|
| Posted: 30 Mar 2006 19:41 | |
|
Registered User Currently Offline |
Posts: 14 Join Date: Mar 2006 |
|
I found the problem, I think. I'll let you fix it nicely for future use.
First, if you copy docbook_configuration.bat to the stylesheet directory, it still will call itself as its last act, thus leading to the problem of never stopping. You can fix that by commenting out the call at the end of custom_configuration.bat. Second, if you leave docbook_configuration alone, as instructed, it will set the variables. When it checks at the end to see if they're unset, they never are, and so you can't use the local directory. I've fixed the problem temporarily for me by modifying bat/docbook_configuration.bat. BTW, I usually use cygwin bash. If you're like me, don't forget to add '.bat' to the end of all docbook commands! Bill |
|
| Posted: 31 Mar 2006 18:28 | |
|
Registered User Currently Offline |
Posts: 14 Join Date: Mar 2006 |
|
More in the saga of trying to be different and build files in the pwd rather than in /docbook. I've been doing PDFs okay, and so I decided to build an HTML file. It said it created it, but it was not there. I used XP's find file feature to search for the filename, and it found it in the location it should be. I could even double-click on it in the find file results and open the HTML in my browser, but it wouldn't show in a directory listing using Windows, Emacs dired, or cygwin ls.
This morning I happened to discover that, in addition to c:/Documents and Settings/, I now also have c:/Documents%20and%20Settings/ and a beginning file tree underneath that, all with spaces in file names replaced with %20. That is absolutely the most creative way I've seen Windows' spaces in file names break anything yet! The only file placed in that parallel universe is the HTML file; the images and figure directories and the ede.css file are in the expected place. Does anyone have any ideas what to do to fix this? I didn't see anything obvious in a diff of docbook_pdf.bat and docbook_html.bat, but I may have just not recognized the problem. I really don't want to have to manage two separate DandS structures, and I'm afraid that renaming directories to get rid of spaces would break other things. I could wipe the disk and install Linux, but then I don't need (and can't use) eDE. Thanks. |
|
| Posted: 13 Apr 2006 21:35 | |
|
Registered User Currently Offline |
Posts: 14 Join Date: Mar 2006 |
|
Just curious, since I see lots of viewers here but no responses: is anyone else having eDE work with files in the current working directory, or am I the only one? It would certainly be nice to figure out how to fix this.
Thanks. |
|
| Posted: 18 Apr 2006 04:59 | |
|
Registered User Currently Offline |
Posts: 14 Join Date: Mar 2006 |
|
I did a diff on docbook_pdf.bat and docbook_html.bat, and I don't see where the problem might be unless it's in the saxon processing step. docbook_outputdir gets set identically in both, for example, and the html output directory is created in the normal place (as well as in the "shadow" directory), with the figure and images directory in the normal HTML directory.
HTML help seems to get created in the right places, too, although I have another question about that. I get a number of html files, along with an ede.css, a .hhp file, a .chm file, and a .hhc file. I open the .chm file, and I get a TOC on the left and a complaint on the right that it can't find the files. I can open index.html and see everything. When I try to compile the hhp file with the HTML Help Workshop (MS HTML Help Compiler 4.74.8702), I get lots of "HHC5003: Error: Compilation failed while compiling importantinformation\htmlhelp\index.html." messages. Thoughts? |
|
| Posted: 21 Apr 2006 23:57 | |
|
Registered User Currently Offline |
Posts: 14 Join Date: Mar 2006 |
|
If anyone else is using the cwd instead of c:/docbook and wants to create htmlhelp files, run docbook_htmlhelp.bat and then replace the .\ relative references in the *.hhp and toc.hhc files with absolute references to the files. Then open the *.hhp file in the MS HTML Help Compiler, compile it, rename the *.chm file (it will be named htmlhelp.chm), and you're done.
If I find a simpler way, I'll post it. |
|
| Posted: 22 Apr 2006 00:15 | |
|
Registered User Currently Offline |
Posts: 14 Join Date: Mar 2006 |
There's an easier but still kludgy fix: run the command 'docbook_htmlhelp.bat documentname "c:\Documents and Settings\Your Name\My Documents\documentname"'. That will create the documentname.chm file, but neither search nor clicking on internal links seems to work in the chm file.
So the prior answer -- editing the toc.hhc and *.hhp files -- seems to be the best I know of so far. Anyone want to help by finding and fixing the offending .bat file, assuming that's where the problem is? |
|