Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1615644.IcWXoroVV2@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 21 Aug 2012 14:33:41 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <2760364.jIkiNM8doB@PointedEars.de> <2066056.VtcmPVeGr1@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 97 NNTP-Posting-Date: 21 Aug 2012 14:33:43 CEST NNTP-Posting-Host: bff16118.newsspool3.arcor-online.net X-Trace: DXC=^PlCY5<0>Na]BlmkiiU@BiMcF=Q^Z^V3h4Fo<]lROoRa8kFfj>DiRjBeX0e X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:15478 emf wrote: > On 2012-08-20 10:25 Thomas 'PointedEars' Lahn wrote: > however, I have made some idiotic mistakes or asked foolish questions > that I would rather not have associated with my real name in perpetuity. IOW, you are not willing to stand by your mistakes, which demonstrates a serious lack of character. > At least now someone will have to do some detective work to find what I > have written, and hopefully these damned robots won't care to start > doing this any time soon. IOW, you are not willing to show your readers the basic simple courtesy of introducing yourself, and you are shifting your burdens onto your readers. Do not be surprised if your readers are not willing to read, let alone download, your postings then. >>> And instead of >>> I now use >>> >>> > In the meantime Sam's code has greatly improved the appearance of the > function. AFAIK, his first name is Stéphane. >>> PS. How do you insert number superscripts when typing a message? I am >>> using DejaVu fonts that has in superscript form all the numbers, but I >>> do not see an easier way to insert them than by opening the Character >>> Map. >> >> Using XKB and typing `^1' etc. (without quotes). > > Thanks. It also works in Thunderbird. It works in Thunderbird on the X Window System as it works in KNode on the X Window System. Thunderbird on Windows, on the other hand, only replaces ^ followed by 1 with ¹ *when the message is displayed*, while on the X Window System with XKB I can *type* the Unicode character by typing ^ immediately followed by 1. That is a different thing. > I've been thinking one day of using subscripts in JavaScript code too (C₁, > C₂ instead of C1, C2) but that will have to wait until at least all the > main fonts contain U-2070 to U-2090 characters (like the DejaVu fonts do). Subscripted numbers must not be part of an Identifier or IdentifierName as they are not within the allowed subsets, see the ECMAScript Language Specification, 5.1 Edition, section 7.6: > I hope you do not object to my using π instead of Math.PI? If you write var π = Math.PI; and then use π throughout, your code is (other errors aside) a syntactically valid ECMAScript Program (π has the Unicode Ll [lowercase letter] property). If you use π afterwards repeatedly instead of Math.PI, there will be a slight increase in performance as the effective scope chain is likely shorter and fewer property lookups are required – 1 (π) instead of 2 (Math and Math.PI). However, it will probably not be backwards-compatible to JScript < 5.5.6330, JavaScript < 1.5, V8 < 3.7.12.12, JavaScriptCore < 531.22.7, Opera < 7.02, and KJS < 4.6.5. It will also require the file to be encoded using a Unicode or compatible encoding, such as UTF-8, and the encoding declared as such when transmitting it via HTTP. > That was easy for me to implement, because I am used to alternating > between the Greek and the English keyboards. I have defined π at AltGr-p on this Swiss German keyboard: key { [ p, P, Greek_pi, U220F ] }; PointedEars -- var bugRiddenCrashPronePieceOfJunk = ( navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1 ) // Plone, register_function.js:16