HighDots Forums  

Endnote links?

alt.discuss.html alt.discuss.html


Discuss Endnote links? in the alt.discuss.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Reid Goldsborough
 
Posts: n/a

Default Endnote links? - 04-02-2004 , 05:54 PM






I converted a Microsoft Word document with endnotes to HTML and
brought it into the HTML editor I use (Symantec's Visual Page,
discontinued but comfortable). The endnote links don't work in this
HTML document. Anybody have any suggestions? Here's the document:

http://rg.ancients.info/lion/footnotes.html

Thanks.

Reply With Quote
  #2  
Old   
Jim Roberts
 
Posts: n/a

Default Re: Endnote links? - 04-03-2004 , 02:14 PM







"Reid Goldsborough" <reidgoldsborough (AT) yahoo (DOT) com> wrote

Quote:
I converted a Microsoft Word document with endnotes to HTML and
brought it into the HTML editor I use (Symantec's Visual Page,
discontinued but comfortable). The endnote links don't work in this
HTML document. Anybody have any suggestions? Here's the document:

http://rg.ancients.info/lion/footnotes.html

Thanks.
It's not valid html. I would not recommend using word for any type of html
work. It adds too way to much invalid data. I ran your document through the
w3c validation service and it returned 3705 errors.

See this:
http://validator.w3.org/check?uri=ht... ootnotes.html


<a href="#_edn1" title="">

If you have to use word, I'd recommend a program called 'html-tidy'. It's
really good with stripping surplus word tags.
http://www.w3.org/People/Raggett/tidy/

If you not comfortable with 'command line' style programs, I'd recommend a
free-ware html editor that comes with html-tidy:
http://www.chami.com/html-kit/

It allows you to edit and instantly preview your document. Html-tidy works
great from within this program. Lets you see the results quickly and tells
you where errors are. It will also 'beautify your code for easy reading".
all from simple menu options.

After running your code through 'tidy', it cut the errors down to 392.

As far as your endnote links go, the titles in your anchors do not match the
div IDs which the anchor refers to. ex:

<a href="#_edn4" title=""><span class=
"&egrave;&yacute;S"><![if !supportFootnotes]></span><span class=
"MsoEndnoteReference"><span class="MsoEndnoteReference"><font size=
"4">[4]</font></span></span></a>

The href in the <a> element is #_edn4". The div element which contains the
actual footnote is:

<div id="edn4" style="mso-element : endnote">
<p class="MsoEndnoteText"><a href=""></a><a href="#_ednref4" title=
""><span class="&egrave;&yacute;S"><![if !supportFootnotes]></span>

The id attribute value in the div tag is missing the underscore that is
present in the anchor tag. 'edn4' should read '_edn4'. It's the same with
all of the foot notes.

This code uses way to many unecessary divs and styles. You should remove all
of the <![if !....> tags as well as the <!endif]... as they serve no purpose
whatsoever. You could remove all of the <div></div> tags surrounding the
endnote anchors and insert the id names like this:

<p class="MsoEndnoteText"><a href="_edn4"></a><a href="#_ednref4" title=
""><span class="&egrave;&yacute;S"><![if !supportFootnotes]></span>

Actually, it would be simpler just to start from scratch and copy the
relevant content over to a new html doc. None of the div tags are necessary
here.

No offense, but this is the worst example of 'invalid tag soup' i have ever
seen. I realize it's because of word, but word is terrible with this stuff.
I've never used visual page but I'm pretty sure it has contributed it's
share of nonsense as well.

The document, after I ran it through html tidy, is 148KB. That is far too
large for the amount of content that is on a single page. the loading time
is unacceptable.

I realize this is probably not what you wanted to hear but with basic html
and notepad (or html-kit if you're so inclined), you could produce the same
page with the fraction of the original code.

Good luck,
Jim Roberts








Reply With Quote
  #3  
Old   
Reid Goldsborough
 
Posts: n/a

Default Re: Endnote links? - 04-03-2004 , 10:45 PM



On Sat, 3 Apr 2004 14:14:45 -0500, "Jim Roberts" <jrzycrim (AT) msn (DOT) com>
wrote:

Quote:
If you have to use word, I'd recommend a program called 'html-tidy'. It's
really good with stripping surplus word tags.
http://www.w3.org/People/Raggett/tidy/
Thanks for these suggestions. I ran the code through html-tidy as you
suggested. It actually led to a slightly larger file. And I tried
matching the titles in my anchors to the div IDs. It worked, *mostly.*
That is, it worked for endnotes 4 through 73 (the last one). Clicking
on them takes you to the correct reference at the end of the page. But
for some reason with endnote 3, clicking on the link takes you not to
the reference for endnote 3 but to the reference for endnote 2. And
clicking on endnotes 1 and 2 does nothing, as before.

I took at look at the code to try to fix it manually, but I can't make
sense of it.

I wonder if you might take a quick look at this page again. I just
uploaded the revised, but still not quite right, version:

http://rg.ancients.info/lion/footnotes2.html

Thanks.

I may have to just chuck the code that Word produced and start from
scratch, inserting anchors and so on manually. This would take a while
though for 87 footnotes.


Reply With Quote
  #4  
Old   
Jim Roberts
 
Posts: n/a

Default Re: Endnote links? - 04-04-2004 , 01:02 AM




"Reid Goldsborough" <reidgoldsborough (AT) yahoo (DOT) com> wrote

Quote:
On Sat, 3 Apr 2004 14:14:45 -0500, "Jim Roberts" <jrzycrim (AT) msn (DOT) com
wrote:
I took at look at the code to try to fix it manually, but I can't make
sense of it.

I wonder if you might take a quick look at this page again. I just
uploaded the revised, but still not quite right, version:

http://rg.ancients.info/lion/footnotes2.html

Thanks.

I may have to just chuck the code that Word produced and start from
scratch, inserting anchors and so on manually. This would take a while
though for 87 footnotes.
I don't think you will have to resort to that. I've been using the replace
function on my editor to clear away extraneous code. I realize some people
just don't have the time to sit down and learn html. I don't mind helping
out...

Regards,
Jim




Reply With Quote
  #5  
Old   
Jim Roberts
 
Posts: n/a

Default Re: Endnote links? - 04-04-2004 , 06:52 PM




"Reid Goldsborough" <reidgoldsborough (AT) yahoo (DOT) com> wrote in message:

<snip>

I sent you an email to the address above explaining what I did to
footnotes.html and an attachment. Let me know if you need it sent to another
address.

regards,
Jim Roberts



Reply With Quote
  #6  
Old   
Reid Goldsborough
 
Posts: n/a

Default Re: Endnote links? - 04-05-2004 , 03:20 PM



On Sun, 4 Apr 2004 18:52:01 -0400, "Jim Roberts" <jrzycrim (AT) msn (DOT) com>
wrote:

Quote:
I sent you an email to the address above explaining what I did to
footnotes.html and an attachment. Let me know if you need it sent to another
address.
Beautiful! Thanks. It looks great and works great. Wouldn't you know
though that I had to change the some of the fonts and so on in my HTML
editor, Symantec Visual Page, which is easy and comfortable and mostly
effective. But it adds lots of unnecessary code. I really need to move
on to Dreamweaver already. Anyway, I'm impressed with your skills.
Thanks again.


Reply With Quote
  #7  
Old   
Jim Roberts
 
Posts: n/a

Default Re: Endnote links? - 04-05-2004 , 03:59 PM



----- Original Message -----
From: "Reid Goldsborough" <reidgoldsborough (AT) yahoo (DOT) com>
Newsgroups: alt.discuss.html
Sent: Monday, April 05, 2004 3:20 PM
Subject: Re: Endnote links?


Quote:
Beautiful! Thanks. It looks great and works great. Wouldn't you know
though that I had to change the some of the fonts and so on in my HTML
editor, Symantec Visual Page, which is easy and comfortable and mostly
effective. But it adds lots of unnecessary code. I really need to move
on to Dreamweaver already. Anyway, I'm impressed with your skills.
Thanks again.
It did add a lot extra stuff but that's okay. As long as you are happy with
it. The link problem was pretty easy to fix. I'm glad visual page didn't
mess that up!

If you need anymore help or have any questions, don't hesitate to ask. Email
me or post here.

Regards,
Jim Roberts.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.