<span lang="en-gb"> keeps getting added

  • Thread starter Kulvinder Singh Matharu
  • Start date
K

Kulvinder Singh Matharu

Not sure what I did, but in FP2003, if I type in the Design view then
the Code view shows that the <span lang="en-gb"> </span> tags are
automatically added around the text that I type. How do I turn this
feature off?

For example, here's code from a page that was saved a while ago:

<p class="imagetext">Photo taken in March 2006.</p>

Now, in Design view if I type the letter 'y' after the word 'March'
the following code now appears:

<p class="imagetext">Photo taken in
March<span>lang="en-gb">y</span> 2006.</p>

This behaviour is happening to all my pages.

If you're interested in the whole code, I've published the unaltered
page which is available for viewing here:

http://www.metalvortex.com/myphotos/south_america_2006/pages/grey_glacier4.htm

My system that I'm authoring the pages on is running FP2003 under
Vista Ultimate 32-bit with IIS enabled, and MS Office 2007
Professional. All Service Packs and updates installed.

--
Kulvinder Singh Matharu

Website : www.metalvortex.com
Contact : www.metalvortex.com/contact/

Brain! Brain! What is brain?!
 
M

Mark Fitzpatrick

If you set a local language in FP this would be the result. If you look at
the <html> element at the top of the page, there's an xml:lang="en-gb"
attribute added. Basically FP is trying to keep compliant with that by
adding the span with a language definition to various textual elements in
the page. Don't specify a customization of the language and it should stop
doing this. I don't have Fp installed on the system I'm working at right now
so I can't say exactly which option to change to avoid this behavior.
 
K

Kulvinder Singh Matharu

If you set a local language in FP this would be the result. If you look at
the <html> element at the top of the page, there's an xml:lang="en-gb"
attribute added. Basically FP is trying to keep compliant with that by
adding the span with a language definition to various textual elements in

Thanks. But if FP is looking at that xml:lang stuff to start adding
the span tags then I think that this is broken behaviour. It didn't
behave like this previously. Something has changed to trigger this
behaviour. I should add that I was previously on WinXP and am now on
Vista. Wondering if that's a clue?
the page. Don't specify a customization of the language and it should stop
doing this. I don't have Fp installed on the system I'm working at right now
so I can't say exactly which option to change to avoid this behavior.

OK. Still hoping someone has the answer!

--
Kulvinder Singh Matharu

Website : www.metalvortex.com
Contact : www.metalvortex.com/contact/

Brain! Brain! What is brain?!
 
K

Kulvinder Singh Matharu

If you set a local language in FP this would be the result. If you look at
the <html> element at the top of the page, there's an xml:lang="en-gb"
attribute added. Basically FP is trying to keep compliant with that by
adding the span with a language definition to various textual elements in
the page. Don't specify a customization of the language and it should stop
doing this. I don't have Fp installed on the system I'm working at right now
so I can't say exactly which option to change to avoid this behavior.

Been experimenting more. If I detach the DWT then FP doesn't add the
span tags. Hmm. Interesting.

--
Kulvinder Singh Matharu

Website : www.metalvortex.com
Contact : www.metalvortex.com/contact/

Brain! Brain! What is brain?!
 
K

Kulvinder Singh Matharu

Been experimenting more. If I detach the DWT then FP doesn't add the
span tags. Hmm. Interesting.

After some experimenting I've got a fix for this but I'm not sure why
it works.

OK, firstly, the presence or not of xml:lang makes no difference to
the strange behaviour.

Secondly, I noticed that if I detach the DWT, then FP would behave in
the expected manner (ie would not add span tags).

Thirdly, I noticed that in the DWT that if I changed the charset
value within the meta tag to charset=windows-1252, or charset=utf-8,
or charset=utf-7 then FP behaved in the correct manner. However, if I
chose charset=iso-8859-1 or charset=iso-8859-2 then FP behaved in
that strange manner inserting those span tags everywhere.

I stopped experimenting at this stage and have now updated all my
pages by modifying the DWTs for charset=windows-1252 (which is
obviously more suited to the documents I'm producing in FP under
Vista).

Anyway, I'm happy that I've found a fix but am not sure exactly why
it works.

I suppose I should add that I know that my DTD indicates xhtml1.1 but
the code is being fed as tag soup...for true xml I should add the
language setting from the server and not from the meta tag! One day
I'll get there but not until I've found a suitable navbot replacement
that generates standard code!

--
Kulvinder Singh Matharu

Website : www.metalvortex.com
Contact : www.metalvortex.com/contact/

Brain! Brain! What is brain?!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top