Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Oddly enough, LO3.3.2 for Win32 (on Windows 7) does not show me any File | Export ... XHTML option. 
 The only formats are PDF and MediaWiki TXT.

LO3.4.0rc1 does have Export...XHTML.  When I do that the result is much worse than for the HTML 
that I get.  Also, the table of content links fail badly.  I think this is a bug related to 
absolute versus relative URLs.  For example, the following URL that my browser is trying to resolve 
is simply wrong.  

  
file://whs/Users/orcmid/docs/associazione/standards/OASIS/ODF/Errata-Maintenance/ODF-1.1-Errata-01%20Development/#__RefHeading__19223_1177041755

And the reason that it is getting this wrong is not because of the underlines but because of this 
bogus <a> element in the TOC:

<a href="./#__RefHeading__19223_1177041755" class="Internet_20_link">Introduction        3</a>

The "./" is simply incorrect.

There is so much other garbage in the XHTML that I would flat-out not use it.  It renders much 
worse than the HTML that I get from Save As ... HTML.

There is something else that has the formats of my fragment identifiers be different than the ones 
you are seeing.  It may be how my TOC is generated from headings is different.

 - Dennis

-----Original Message-----
From: Michael D. Setzer II [mailto:mikes@kuentos.guam.net] 
Sent: Tuesday, May 24, 2011 10:19
To: users@libreoffice.org
Subject: Re: [libreoffice-users] Export to html with links doesn't work 

Just as a note. I was using export to xhtml option.

On 24 May 2011 at 9:25, Dennis E. Hamilton wrote:

Send reply to:          <dennis.hamilton@acm.org>
From:                   "Dennis E. Hamilton" 
<dennis.hamilton@acm.org>
To:                     <users@libreoffice.org>
Copies to:              "'Michael D. Setzer II'" 
<mikes@kuentos.guam.net>
Subject:                RE: [libreoffice-users] Export to html with links 
doesn't work 
Date sent:              Tue, 24 May 2011 09:25:14 -0700
Organization:           NuovoDoc

With LO3.3.2 Win32 (on Windows 7) the Writer Save As ... HTML action produces correct links from 
the TOC items to the sections of the document.  LO3.4.0rc1 also produces a linking TOC 
successfully.  I see other difficulties with the HTML, but not that.

Here's an example of a TOC entry in the HTML from LO3.4.0rc1:

    <P STYLE="margin-top: 0.04in; margin-bottom: 0.04in; background: transparent; 
page-break-before: auto">
      1  <A CLASS="western" HREF="#__RefHeading__19223_1177041755">Introduction       3</A></P>

(You can see the relatively-small LO3.3.2 test files I am using to 
confirm consistency of the three forms at
<http://www.oasis-open.org/apps/group_public/document.php?document_id=
42264>.)

I have no idea why the Win32 and other builds would differ in this regard.  I suspect there is 
some subtle difference in our documents that leads to the breakage we encounter.  I find there 
are many ways for that sort of thing to arise.  Oh, and I have the Tools | Options | Load/Save | 
General | ODF format version set to 1.0/1.1 and HTML Compatibility set to the default (?) 
(Netscape Navigator) and Unicode (UTF-8).  I'm not sure why any of these would matter in this 
case.

The procedure for filing bugs is at
<http://wiki.documentfoundation.org/BugReport>
and the best way to get to the bug-report form is via 
<https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice>

 - Dennis

-----Original Message-----
From: Michael D. Setzer II [mailto:mikes@kuentos.guam.net]
Sent: Tuesday, May 24, 2011 01:09
To: users@libreoffice.org
Subject: [libreoffice-users] Export to html with links doesn't work

While working on documentation of a project that has a TOC with links that work in the ODT and 
PDF versions, but the HTML version would not jump to the links? In looking at the HTML code, I 
found the problem and was able to manually fix it.

The links in the TOC had a_ in front of them, but when I found the matchin id= they had a__ (two 
_ instead of just one). Doing a search and replace fixed the issue. I thought it might be that I 
had a beta version, so I downloaded the latest linux version, and installed it. But the same 
thing happened with the 3.3.2. 

Haven't tried it in the windows version, since I don't have windows on home machines. Looked for 
a place to report this as a bug, but the list is the best I was able to find. 

Thanks.

+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes@kuentos.guam.net                            
  mailto:msetzerii@gmail.com
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original) Number of Seti Units 
Returned:  19,471 Processing time:  32 years, 290 days, 12 hours, 58 
minutes (Total Hours: 287,489)

BOINC@HOME CREDITS
SETI        10781049.916581   |   EINSTEIN     5914603.630851
ROSETTA      3166465.079872   |   ABC          5944986.617824


--
Unsubscribe instructions: E-mail to users+help@libreoffice.org Posting 
guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be 
deleted



+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes@kuentos.guam.net                            
  mailto:msetzerii@gmail.com
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC@HOME CREDITS
SETI        10781049.916581   |   EINSTEIN     5914603.630851
ROSETTA      3166465.079872   |   ABC          5944986.617824


-- 
Unsubscribe instructions: E-mail to users+help@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be deleted


-- 
Unsubscribe instructions: E-mail to users+help@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.