Next in thread → Next in month →

Re: [docbook-apps] Re: Docbook with Math ML/Latex => PDF

From
<>
Date
2008-10-29T22:50:35+00:00
ID
Thread
Re: [docbook-apps] Re: Docbook with Math ML/Latex => PDF
Thanks Rob.

 

I gave it a go with your suggestions (1&2) and it did do something 
different, but it still tried to load an external XHTML with IE. My system does 
have FF3, so I had to repoint to IE. 

 

I could probably get away with a IE only production if I need to. However, 
I took the CHM file to a IE only system and the file loaded, but did not have 
the MathML correctly displayed (just the text components)

 

Still working the issue ....

 

Dean Nelson

 

In a message dated 10/29/2008 2:53:14 P.M. Pacific Daylight Time, 
 writes:

  
Ah, I understand better now. Yes, it's true that HTML 
  Help is picky about file extensions. I did not realize that the files had to 
  have the XHTML extension.

  
 

  
I did a little experimenting, and I am able to 
  get files with this extension to work in HTML Help, but 
  unfortunately it breaks easily if file associations are altered in Windows. 
  Here's what I did to make it work:

  
 

  
(1) Gave a topic file the extension ".htm.xhtml". 
  This is a workaround to an HTML Help issue that prevents it from searching 
  topic files that use an extension that does not start with the letter 
  H.

  
 

  
(2) Made sure that the XHTML document does *not* have 
  an XML prolog (<?xml...?>). HTML Help only treats the document as an 
  HTML document if this prolog is missing; otherwise it will be treated like 
  XML.

  
 

  
This works in a default Windows installation. 
  However, when I install another browser (Firefox) as the default browser, the 
  XHTML extension gets taken over, and the CHM behavior reverts to trying to 
  open the file externally. Even going back and trying to re-map the extension 
  or to set IE back as the default browser doesn't fix the problem from that 
  point.

  
 

  
I suppose all this doesn't help if you can't solve 
  the final problem, but maybe you'll see a way through it that I haven't. I'll 
  keep chewing on it as well.

  
 

  
 

  
    

    
    From: DeanNelson [mailto:] 
    
Sent: Tuesday, October 28, 2008 9:49 PM
To: Cavicchio, 
    Rob; 
Subject: Re: [docbook-apps] 
    Re: Docbook with Math ML/Latex => PDF

    

    
Rob

    
 

    
Your input got me further. Thanks. 

    
 

    
You are right - the HHC uses IE but there are a 
    few things that got in the way.

    
 

    
1. It appears that the only way to have IE 
    & FF actually display the MathML is to make sure it's 
    <xml:output> is "xml" 

    
AND html.ext must be set to ".xhtml". That 
    was the only way that I could make the MathML show up in a browser. (Bob 
    mentions this in his book)

    
 

    
2. HHC only knows HTML. [now I'm stuck]  
    It will allow me to use an XHTML file, but thinks its a foreign file and try 
    to load it in a browser. I'm using the 4.74 version of the HTML Help 
    compiler.

    
 

    
3. Looking at the HTMLHELP stylesheets, it 
    looks like it calls the html style sheets.

    
 

    
Anybody have comments on this setup? I 
    suspect that because of namespaces the MathML needs a well behaved XML - 
    like XHTML.

    
 

    
Regards,

    
Dean Nelson

    
 

    
 

    
 

    
In a message dated 10/28/08 13:47:37 Pacific Daylight Time, 
     writes:

    
      

      
       [mailto:] wrote: 

> 
An 
      other thing that I have to deal with is multiple outputs: PDF, html, 
      
MSHelp. 

With PDF jeuclid works fine. With html FFor IE7 can be 
      dictated. 
However, MSHelp is uninteligent and doesn't handle MathML. 
      

Does anyone have a solution for that? I don't really want to 
      create a 
process that converts the MathML to image. That would be my 
      last resort. 
< 
    

I'm a little confused by 
      this. HTML Help uses Internet Explorer to 
display the HTML pages, so 
      just about anything that can be displayed in 
IE should also be 
      displayed in HTML Help topics. 

I'm not familiar with JEuclid, from 
      its SourceForge page it looks like 
it's a Java applet? Perhaps the 
      problem is merely getting the Help 
topics to point to the right 
      location to load the applet. This can be a 
little tricky with files 
      that are compiled into a CHM, but it's usually 
doable. 
      

************************* 
Rob Cavicchio 
Principal 
      Technical Writer 
EMC Captiva 
EMC Corporation 
10145 Pacific 
      Heights Boulevard, 6th Floor 
San Diego, CA 92121-4234 

P: (858) 
      320-1208 
F: (858) 320-1010 
E:  

The 
      opinions expressed here are my personal opinions. Content published 
      
here is not read or approved in advance by EMC and does not 
      necessarily 
reflect the views and opinions of EMC. 
      

--------------------------------------------------------------------- 
      
To unsubscribe, e-mail:  
      
For additional commands, e-mail: 
       

    
 

Plan your next getaway with AOL Travel.  Check out Today's Hot 5 Travel Deals!
Next in thread → Next in month →