Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Line Length #57

Closed
allanj-uaag opened this issue Nov 28, 2016 · 18 comments
Closed

Line Length #57

allanj-uaag opened this issue Nov 28, 2016 · 18 comments

Comments

@allanj-uaag
Copy link
Contributor

SC Shortname

Line Length

SC Text

For the visual presentation of all text, a mechanism is available such that line length is user adjustable, to 25 characters, with no two-dimensional scrolling required, and with the following exceptions.

  1. If the user-agent fits the layout to the view port, and does not provide a means of re-flowing content, then two-dimensional scrolling is exempt.
  2. If the spatial layout of text is essential to its use, then two-dimensional scrolling is exempt.

Suggested Priority Level

Level A

Related Glossary additions or changes

none

What Principle and Guideline the SC falls within.

Principle 1, Guideline 1.4.8 Visual Presentation

Description

The user can pick the length of lines to fit reading needs. Many user agents already support this using reflow and adjustable viewport size.

A reflowed HTML file with reduced line length.

This shows how a line length can be shortened by reducing the browser width. The page has been reflowed using a custom style sheet made available through a browser extension.

A reflowed display with reduced line length in PDF.

The same works with reflowed PDF.

Character count was chosen as a metric to measure line length because a character count enables line-length control for both large print with normal width, and narrow columns with normal print. The number 25 was chosen to fall in a range above the length of larger words in most languages. (Distribution of word lengths in various languages.) This reduces excessive hyphenation. On a 13-inch monitor, one can use 33 point font and fit in 25 characters. Character count size is 72(13cos(30))/25.

Benefits

For many people, with and without disabilities, it is harder to read very long lines of text than shorter lines. For people with a small field of vision, it can be even more difficult to read long lines of text, and from the end of a line of text, to find the beginning of the next line.

People with good visual acuity yet small field of vision might want to set the text size small and the text area narrow so they can get more characters in their field of vision.

'''User Need''': Users can set the line length for blocks of text. Often the easiest way to do this (for developers, designers, and users) is for users to resize text areas and the text rewraps to change the line length.

Source: Accessibility Requirements for People with Low Vision, Section 3.2.3

Testability

  1. For HTML: Use a browser with an adjustable view port. Resize the view port so the line length is 25 characters or fewer. If the lines of text word wrap appropriately, the test passes.
  2. For PDF: Using a user agent that enables reflow and resizing of the view port, reflow the content. Then, adjust the line length to 25 characters or fewer. If the lines of text word wrap appropriately, the test passes. Note: Each line of text does not have to reach a length of 25 characters, but line length must not exceed 25 characters.

Techniques

Existing Techniques

New Techniques

  • Using relative measurements so line length can be adjusted to 25 characters, with no two-dimensional scrolling. (Future Technique)

Related Information

Actions

Articles

  • Line length - Education and Outreach Working Group Tutorial

Email

GitHub

Resolutions

Minutes

Wiki Pages

@allanj-uaag allanj-uaag changed the title Line Length Line Length !! ready for review Nov 28, 2016
@DavidMacDonald
Copy link
Contributor

Need to define two-dimensional scrolling:

@DavidMacDonald
Copy link
Contributor

DavidMacDonald commented Dec 30, 2016

First attempt to combine Issue #57 and #58 SC Text

All content can be viewed as a single column with reflow; blocks of text in this column are user adjustable to 25 characters without requiring two dimensional scrolling, except where reflow would cause distortion or loss of information.

I've got a side by side at tinyurl.com/jmo9st4 . See the overlapping issues tab at the bottom.

I've borrowed some language from Gregg and dropped some of the complexity in the exception that I think is covered elsewhere in the WCAG. I think the exceptions need work.

@awkawk awkawk changed the title Line Length !! ready for review Line Length Jan 9, 2017
@DavidMacDonald
Copy link
Contributor

DavidMacDonald commented Jan 9, 2017

Here's a rewrite:

A mechanism is available to adjust all text to a line length of 25 characters, without requiring two-dimensional scrolling, except where:

  • The user-agent fits the layout to the view port with no means of re-flowing content.
  • The spatial layout of text is essential to its use.

@mbgower
Copy link
Contributor

mbgower commented Jan 9, 2017

Continuing with my discussions on themes in the LVTF candidate SCs and their relationship to the existing 1.4.8 Visual Presentation, I'm going to discuss Reflow to a Single Column, Line Length and Resize Content here.

It seems to me there are 2 broad principles being advocated:

  • no horizontal scrolling
  • resize content to 400%

I don't understand the value of considering Reflow to a Single Column and Line Length separately. They seem highly dependent. @DavidMacDonald is already proposing merging the two. Can anyone explain what is gained by separating them?

@joshueoconnor
Copy link
Contributor

I like the idea of merging this with #58 because it bypasses the mechanism issue as well as the proscriptive 25 characters issues.

@lauracarlson
Copy link
Contributor

lauracarlson commented Jan 10, 2017

@DavidMacDonald
Copy link
Contributor

DavidMacDonald commented Jan 11, 2017

I think what is emerging is two amendments to the proposal
(1) Line length can be narrowed to around 50-60 characters rather than 25
(2) a baseline font size of 100% (no zoom) for the purposes of measuring whether the SC was met or not.
So the new proposal, addressing some of Greg Lowney's, Mike Pluke's comments and others could be something like:

For all visual presentation of text, a mechanism is available to adjust the line length to a maximum of 50 characters without increasing the font size in the user agent, and without requiring two-dimensional scrolling, except where:

  • The user-agent provides no means of re-flowing content.
  • The spatial layout of text is essential to its use.

I also would not rule out integrating this into a 1.4.8 omnibus text SC (Issue #51 COGA), or merging with (#58) in future drafts, but I think for the first draft in 6 weeks this is sufficient.
See discussion also:
https://lists.w3.org/Archives/Public/w3c-wai-gl/2017JanMar/0165.html

@awkawk
Copy link
Member

awkawk commented Jan 11, 2017

Thanks David. It seems that the internationalization question is still open. John has expressed concerns about using a specific number of characters, but if we do we should model after the 1.4.8 80/40 split to support CJK.

@DavidMacDonald
Copy link
Contributor

DavidMacDonald commented Jan 11, 2017

For all visual presentation of text, a mechanism is available to adjust the line length to a maximum of 25 characters (13 if CJK) without increasing the font size in the user agent, and without requiring two-dimensional scrolling, except where:

  • The user-agent provides no means of re-flowing content.
  • The spatial layout of the text is essential to its use.
  • A line has a word which is longer than 25 (13 if CJK) characters.

I'm guessing @MakotoUeki will be OK with this, but I'll wait on his approval.

@jnurthen
Copy link
Member

This is going to be really hard to implement in a way that doesn't make the entire construct more difficult to use for many widgets. For example, if you wrap in a tree it is going to be really difficult to tell apart the wrapped line vs the next object in the tree. Same applies for menus.
Can this be limited to paragraphs of text which I think is its original aim?

@DavidMacDonald
Copy link
Contributor

DavidMacDonald commented Jan 11, 2017

My instinct was "blocks of text" which is a familiar construct and I edited the SC. On the call some argued that blocks of text refer to more than 1 sentence, and there are times when there is less than a sentence that needs to be viewed on 25 character lines. I personally prefer "blocks of text" but there are those who object. Here it is with "Blocks of Text".

A mechanism is available to adjust the line length of all blocks of text to a maximum of 25 characters (13 if CJK) without increasing the font size in the user agent, and without requiring two-dimensional scrolling, except where:

The user-agent provides no means of re-flowing content.
The spatial layout of the text is essential to its use.
A line has a word which is longer than 25 (13 if CJK) characters.

@DavidMacDonald
Copy link
Contributor

I just got off a meeting with the low vision task force and the consensus is to retire #57, this one on line length, and to focus on #58 reflow. So the LVTF is retiring this issue.

@DavidMacDonald
Copy link
Contributor

I'll let @alastc jump in... it was his suggestion... @patrickhlauke

@alastc
Copy link
Contributor

alastc commented Feb 3, 2017

Shouldn't we move discussion onto #89?

@lseeman
Copy link
Contributor

lseeman commented Feb 5, 2017

What is the status with this SC? Can it cover some of #51 ?

@mbgower
Copy link
Contributor

mbgower commented Feb 6, 2017

What is the status with this SC? Can it cover some of #51 ?

@lseeman, see the post about 4 comments back from 25 days ago:

I just got off a meeting with the low vision task force and the consensus is to retire #57, this one on line length, and to focus on #58 reflow. So the LVTF is retiring this issue.

@alastc
Copy link
Contributor

alastc commented Feb 6, 2017

@lseeman This one has been retired, but I'll comment on 51 about the overlap.

@allanj-uaag
Copy link
Contributor Author

closed see #89

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants