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


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

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

Message-ID <49351877.YEC0ybLSXE@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-03-21 13:41 +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> <16251135.ysFih1yiRF@PointedEars.de> <jk8ghu$b6e$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:

> Thomas 'PointedEars' Lahn schrieb:
>> 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.
> 
> Well, "painted as paths on a `canvas' element" is certainly included in
> my definition of "graphics".

You should reconsider.

>> 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.
> 
> It was done using JavaScript.

Not necessarily, and certainly not only.  One problem is that you do not 
know what JavaScript is.

> That definitely counts as a partial (and,
> given the context, probably sufficient) answer. How it was done
> /exactly/ might not even be relevant, especially since it is a practise
> not to be recommended. Instead of "voodoo" I could have written "an
> unnecessary and complicated way to achieve a much less usable result".
> And the "reason" why this path was chosen is certainly closer to
> mysticism than to logic.

You cannot know that.

>> 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.
> 
> In other words: It was done using JavaScript.

Wrong.


PointedEars
-- 
> If you get a bunch of authors […] that state the same "best practices"
> in any programming language, then you can bet who is wrong or right...
Not with javascript. Nonsense propagates like wildfire in this field.
  -- Richard Cornford, comp.lang.javascript, 2011-11-14

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