Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122987 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id E1C641A009C for ; Fri, 5 Apr 2024 20:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712350564; bh=pzGbhJb+SuXV25yYRZo9XJ6kPF2Muhv7zTxv12MRdmg=; h=In-Reply-To:References:Date:From:To:Subject:From; b=fcvdLS3SGBu3LxhiI5E7IMEkYDGmmd2SlG8tfr3wsDd/dEmrpVGLvVO4lsnx6SiTY cQ0ANmBA1ljfI3mJvzfPZ6Og6CRGF36Xmk+yqWRwBAO0rG8Xd1b8AtFpnzYEnar8+V Sbgr4HK5hEZH79wb8h0aoKX6GxNj2j2xUmoCrYlR6o9BAHtudladB1szrj3BwTSFKc AsWES9JQhFQZ7XXjmeTPZO3XGcKA08lI/MHwYwB8zJWYhJgiNfE5MXyCYmlIuIz2VQ VgQPZw07KuPC/wlTRB1/21GAehJKUhNX7/njjDSRi45q8kSFvqDekamWus8eCZcyup IBX3iETvBlNZg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3EFA3180586 for ; Fri, 5 Apr 2024 20:56:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 5 Apr 2024 20:56:02 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7BD593200A4B for ; Fri, 5 Apr 2024 16:55:31 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Fri, 05 Apr 2024 16:55:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1712350530; x=1712436930; bh=gxCMVTg3l4Nh8idVauxiC 8lMkijaeKOP5ItqlW4UJcw=; b=iEDkPyPPmf12vI5LsVX8OsW/gsxN+ZywWrDEr f78Pi2b5v1FYgOaj/M5mZCbQvf7bmkfNeRYHB62qnRRlLmO+l+Pc8AwZkFHsjexW KitsI0bbX+Bto7RimvL/Xnijz5MOqs/EeRP7KsX7AtQ3Xur83wDdj81X8nzC6ayS uemSDcpH1aGw1V+CS+0V06UzsFiFFlh6ItcHrFePSEJxq5uZJ81aSrTWKAjfwRZF TQYyjLtxn9FDpyqsE3sgkz4gDD90iKEeU+PxV3b5O2WEY+Fi61DB8wRF7PzP7gqv NbL3h30lprQwJsZes2N4dVtMWPFIs4PB0zlHwHsmWHyltOYlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712350530; x= 1712436930; bh=gxCMVTg3l4Nh8idVauxiC8lMkijaeKOP5ItqlW4UJcw=; b=h MxknSRR1g451wKUe8OzLTrvtqbYMkAnVKCjWUc4Fhl6LMCfvemGV2D509YzJdPJM sWnaOTHuXnn2iF08QitA7fqtuZWMUeiQHrH0wNtXDdxo77Qn97RmzqCCejhs0X6K zTGOwlrVpUcyJx3Ezme5giGjcaPI8o/6wZ2XhFMCAUaKeJA9cK1mBERe9bOKDex5 eH4jl0ZMenBVBezOYoxDIRZCvznoSaNiHeqmabkIJvTSWhlIYIzDlE7VDbc9w0yr ccv+Q0ez+73P2MWLGt51gS9tECin0J3Z8jFxfriOjWbe5anMjamr6IyHaQtKYjX7 nNmX5aNDlRzbS9Rst/VyQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegtddgudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjughrpefofgggkfgjfhffhffv ufgtgfesthhqredtreerjeenucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuc eolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqeenucggtffrrghtthgvrhhn peduheevudektdeufefhffeggedtgeehvdeiteetgedtjeegtddujefgueefgffhueenuc ffohhmrghinhepghhithhhuhgsrdhiohdphhgrrhhvrghrugdrvgguuhdpmhhithdrvggu uhdpnhihuhdrvgguuhdprghprgdrohhrghdprgduudihphhrohhjvggtthdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhih sehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8A5FE1700093; Fri, 5 Apr 2024 16:55:30 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <37f1b0c6-a7c8-41f3-bf2f-7dd466bb31c9@app.fastmail.com> In-Reply-To: <80ac7108-e016-4ae8-87ad-50afa0c2f257@bastelstu.be> References: <792b2282-b7a3-40dd-899c-daab55353316@bastelstu.be> <69107662-eb03-4b75-8eed-59dd2eed6559@gmail.com> <66103C7A.3040906@adviesenzo.nl> <80ac7108-e016-4ae8-87ad-50afa0c2f257@bastelstu.be> Date: Fri, 05 Apr 2024 20:55:10 +0000 To: "php internals" Subject: Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Fri, Apr 5, 2024, at 7:15 PM, Tim D=C3=BCsterhus wrote: > Hi > > On 4/5/24 20:01, Juliette Reinders Folmer wrote: >> In the "It decreases readability" section you make a sweeping stateme= nt >> about accessibility, but don't back that up with research. Please back >> your statement up as based on my understanding, the opposite is true. > > For context: This paragraph was added by Larry. It's my name on the RF= C=20 > of course and I approved of the addition he made. Nevertheless Larry=20 > might've additional resources to add here. > >> Case in point: if written in all caps, screenreaders will spell the >> characters out - think HTML -. If written in Mixed case, screenreaders >> will try to pronounce the word, making acronyms and other abbreviatio= ns >> very hard to understand for anyone using a screenreader. >>=20 >> This is something which has repeatedly been pointed out, for instance= at >> conferences regarding conference acronym hashtags, like #DPC. >>=20 >> So, I'd be very interested to see your statement backed up by actual >> research and invite you to look into this a little deeper. > > Your remark looks at the accessibility from the PoV of a developer wit= h=20 > impaired eyesight that is dependent on assistive technology. However=20 > accessibility also affects developers with regular vision. The concern= s=20 > of these two groups might conflict. > > W3C's accessibility guidelines point out that: > > > Text in all capital letters is more difficult to read for most=20 > people, with and without disabilities. > > (https://w3c.github.io/low-vision-a11y-tf/requirements.html#capitaliza= tion) > > Harvards's Accessibility Guidelines agree: > > > Avoid using all caps. Readability is reduced with all caps because=20 > all words have a uniform rectangular shape, meaning readers can't=20 > identify words by their shape. > > (https://accessibility.huit.harvard.edu/design-readability) > > Of course program identifiers are not regular text and indeed more=20 > similar to hashtags, in that they do not permit the inclusion of=20 > whitespace to separate words. Underscores would work, but that would=20 > just add to the inconsistency. > > For Hashtags I found several resources pointing out to capitalize each=20 > word separately. For acronyms most resources pointed out that they=20 > should be avoided entirely (e.g.=20 > https://studentlife.mit.edu/das/accessibility/digital-accessibility/so= cialmedia,=20 > https://www.nyu.edu/life/information-technology/web-and-digital-publis= hing/digital-publishing/accessibility/how-to-guides/social-media.html#ac= ronyms)=20 > and that recommendation is already part of the existing guidelines. > > I've tested with my Android phone with the 'performHttpRequest' exampl= e=20 > and both variants where read out equally terrible as 'per-form age tee=20 > tee pre-quest' (i.e. merging the p with the request). And your example=20 > of HTML was read out as 'age tee em el' (or rather the German=20 > pronounciation of the letters) for both HTML and Html. The lack of=20 > vowels might've helped with the result, though. > > The case of the boundary between two consecutive acronyms being unclea= r=20 > should affect developers with regular vision and impaired vision alike=20 > (i.e. PDOODBC and XSLRR). > > From my personal experience as a human with regular vision (not even=20 > glasses), the variant of treating acronyms as regular words is much=20 > easier to parse. > > Best regards > Tim D=C3=BCsterhus Thanks Tim. Those are the same resources I was going to cite. :-) I'll= also add From the APA: https://apastyle.apa.org/style-grammar-guidelines/paper-fo= rmat/accessibility/typography "It is true that presenting text in all caps will slow down all readers,= especially those with certain types of visual and/or cognitive impairme= nts." (They then go on to recommend using proper casing in the source and CSS = styles to capitalize things, so that screen readers ignore it, which see= ms dumb to me given the other resources cited above.) And from the a11y Project: https://www.a11yproject.com/posts/how-to-acce= ssible-heading-structure/#all-caps "Text in all capitals is harder to read. The shape of a word disappears,= every word becomes a rectangle. Research shows that all caps text is es= pecially difficult for readers with dyslexia. Make life easy for your re= aders, don't capitalize all the words." So the professional consensus among accessibility and publishing organiz= ations is absolutely that ALLCAPS is bad for readability and accessibili= ty. I've added some of the links above to the RFC for citation. --Larry Garfield