Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.infosystems.www.authoring.html > #2208

Re: An HTML puzzle arising in comp.dcom.telecom

Message-ID <16251135.ysFih1yiRF@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-03-18 17:22 +0100
Subject Re: An HTML puzzle arising in comp.dcom.telecom
Newsgroups comp.infosystems.www.authoring.html
References <794pa1nyeyxt$.150wrj3kzbqxf$.dlg@40tude.net> <jjlih0$c6a$1@news.albasani.net>
Followup-To comp.infosystems.www.authoring.html

Followups directed to: comp.infosystems.www.authoring.html

Show all headers | View raw


Thomas Mlynarczyk wrote:

> tlvp schrieb:
>> <http://www.cwa-
union.org/news/entry/offshoring_bill_becomes_big_focus_of_rep._hanna_town_hall>
> 
>> 1) why the text is not selectable as text
> 
> Some JavaScript voodoo converting the text to graphics.

No, if they were graphics they would still be properly selectable, and if 
there was an `alt' attribute, its value would probably show up in the copied 
content.

Programming is based on logic, not mysticism.  If you do not know the 
answer, you should better do not answer at all instead of posting such 
superstitious nonsense.

In this case, first each word is being made the content of an invalid 
`cufontext' element within an invalid `cufon' element, and the `cufontext' 
elements are hidden by setting their width and height to 0, and their 
overflow to hidden.

Then the content of `cufontext' elements is being painted as paths on a 
`canvas' element that is the child of the corresponding `cufon' element 
each, using an ECMAScript implementation (e. g. JavaScript).

This is facilitated using the Cufon.replace(…) and Cufon.now() calls in 
lines 36 and 37 of the script resource, /js/index, included at line 514 of 
the main XHTML document.  The calls are part of YUI CUFON, as used in line 
44 of /page/-/cwa-union/js/source.js, which is included at line 513 of the 
main XHTML document.

Obviously this approach cannot be recommended.

> Disable JavaScript and you can select the text.

Correct.


PointedEars
-- 
When all you know is jQuery, every problem looks $(olvable).

Back to comp.infosystems.www.authoring.html | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

An HTML puzzle arising in comp.dcom.telecom tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-03-12 13:57 -0500
  Re: An HTML puzzle arising in comp.dcom.telecom Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2012-03-12 20:24 +0100
    Re: An HTML puzzle arising in comp.dcom.telecom Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-18 17:22 +0100
      Re: An HTML puzzle arising in comp.dcom.telecom Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2012-03-20 00:47 +0100
        Re: An HTML puzzle arising in comp.dcom.telecom Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-21 13:41 +0100
          Re: An HTML puzzle arising in comp.dcom.telecom Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2012-03-21 23:47 +0100
            Re: An HTML puzzle arising in comp.dcom.telecom Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-22 20:32 +0100
              Re: An HTML puzzle arising in comp.dcom.telecom Dan <dan@tobias.name> - 2012-03-23 11:06 -0700
                Re: An HTML puzzle arising in comp.dcom.telecom Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-23 22:06 +0100
              Re: An HTML puzzle arising in comp.dcom.telecom Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-03-23 19:16 +0100
                Re: An HTML puzzle arising in comp.dcom.telecom Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-23 22:28 +0100
  Re: An HTML puzzle arising in comp.dcom.telecom "David E. Ross" <nobody@nowhere.invalid> - 2012-03-12 12:38 -0700
    Re: An HTML puzzle arising in comp.dcom.telecom "Jonathan N. Little" <lws4art@gmail.com> - 2012-03-12 16:09 -0400
  Re: An HTML puzzle arising in comp.dcom.telecom tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-03-12 20:03 -0500
  Re: An HTML puzzle arising in comp.dcom.telecom David Postill <david.postill@gmail.com> - 2012-03-13 11:53 +0100

csiph-web