PC Review Forums Newsgroups Microsoft Word Microsoft Frontpage <span lang="en-gb"> keeps getting added

Reply

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

 
Thread Tools Rate Thread
Old 15-05-2007, 07:32 PM   #1
Kulvinder Singh Matharu
Guest
 
Posts: n/a
Default <span lang="en-gb"> keeps getting added


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...ey_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?!
  Reply With Quote
Old 15-05-2007, 09:02 PM   #2
Mark Fitzpatrick
Guest
 
Posts: n/a
Default Re: <span lang="en-gb"> keeps getting added

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.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Kulvinder Singh Matharu" <real-address-in-sig@lineone.net> wrote in message
news:bt1k43hne6lu873qss24ij868u4m0i45if@4ax.com...
> 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...ey_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?!



  Reply With Quote
Old 16-05-2007, 04:46 PM   #3
Kulvinder Singh Matharu
Guest
 
Posts: n/a
Default Re: <span lang="en-gb"> keeps getting added

On Tue, 15 May 2007 16:02:19 -0500, "Mark Fitzpatrick"
<markfitz@fitzme.com> wrote:

>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?!
  Reply With Quote
Old 16-05-2007, 05:14 PM   #4
Kulvinder Singh Matharu
Guest
 
Posts: n/a
Default Re: <span lang="en-gb"> keeps getting added

On Tue, 15 May 2007 16:02:19 -0500, "Mark Fitzpatrick"
<markfitz@fitzme.com> wrote:

>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?!
  Reply With Quote
Old 16-05-2007, 07:21 PM   #5
Kulvinder Singh Matharu
Guest
 
Posts: n/a
Default Re: <span lang="en-gb"> keeps getting added

On Wed, 16 May 2007 18:14:07 +0100, Kulvinder Singh Matharu
<real-address-in-sig@lineone.net> wrote:

>On Tue, 15 May 2007 16:02:19 -0500, "Mark Fitzpatrick"
><markfitz@fitzme.com> wrote:
>
>>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.


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?!
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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