Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braille word wrap #1890

Closed
nvaccessAuto opened this issue Nov 7, 2011 · 2 comments
Closed

Braille word wrap #1890

nvaccessAuto opened this issue Nov 7, 2011 · 2 comments

Comments

@nvaccessAuto
Copy link

Reported by jteh on 2011-11-07 10:51
NVDA currently splits braille whenever no more cells will fit on the display. However, this is often in the middle of a word or even contraction, making fluent reading tedious for many users. NVDA should break at the end of a word where possible.

One question is whether this should be configurable. Are there cases where a user will not want this functionality?

@nvaccessAuto
Copy link
Author

Comment 2 by jteh on 2011-11-11 13:40
5bc58f2
Changes:
State: closed

@school510587
Copy link
Contributor

CC: @surfer0627, @andy72039, @vgjh2005, @loomee

Hi @jcsteh, @LeonarddeR, @michaelDCurran, and other developers,

Is your feature request related to a problem? Please describe.

Is it possible to apply the same feature to Chinese and other multi-cell characters?
Now, "Avoid splitting words when possible" option works on every word, that is, a string of alphabets.
However, every Chinese character is viewed as a letter, because of its "Letter, other" (Lo) property.
As a consequence, when this option is on, it is usual for Chinese users (including Taiwan and Mainland China) that braille discontinues after a punctuation mark (such as , and 。), because a "word" is composed of all characters between two punctuation marks.
However, the concept of "word" doesn't exist in Chinese. A string of Chinese characters without space is a sentence.
Every Chinese character is mapped into 2-3 cells frequently, which makes a sentence consist of dozens of cells.
In other words, only one sentence can be shown on the braille display, for an example:

本周以來每一天都是超高溫的熱爆天氣,6月17日到20日連續四天用電量都擠進今年前十大用電排行榜,台電中央調度監鄭有財表示,預估今天的用電量還會攀高。

This short article results in 6 sections of braille, with zh-tw.ctb output translation table and a 40-cell display:

⠕⠥⠈⠁⠷⠄⠡⠈⠉⠺⠂⠍⠴⠈⠡⠄⠋⠞⠄⠙⠷⠄⠊⠱⠐⠃⠩⠄⠅⠩⠄⠿⠄⠙⠮⠁⠛⠮⠐⠕
⠩⠐⠋⠞⠄⠚⠡⠐⠆⠀
⠖⠦⠐⠂⠶⠛⠱⠐⠙⠩⠐⠆⠴⠛⠱⠐⠉⠞⠂⠑⠳⠐⠑⠱⠐⠋⠞⠄⠖⠐⠙⠞⠐⠉⠨⠐⠙⠷⠄⠅
⠡⠈⠅⠹⠐⠅⠹⠄⠝⠞⠂⠚⠞⠂⠊⠱⠂⠙⠜⠐⠖⠐⠙⠞⠐⠏⠺⠂⠗⠭⠂⠕⠭⠈⠆⠀
⠋⠺⠂⠙⠞⠐⠁⠯⠄⠨⠄⠙⠪⠐⠙⠌⠐⠅⠞⠄⠁⠵⠐⠎⠈⠚⠺⠂⠕⠪⠈⠊⠱⠐⠆⠀
⠳⠐⠅⠌⠄⠅⠹⠄⠋⠞⠄⠙⠮⠁⠖⠐⠙⠞⠐⠉⠨⠐⠗⠺⠂⠗⠫⠐⠏⠧⠄⠅⠩⠄⠤⠀

One can observe that the second section is abnormally short, because "6月17日到20日連續四天用電量都擠進今年前十大用電排行榜" is viewed as a "word" by this option.

Describe the solution you'd like

Here is an better layout of braille:

⠕⠥⠈⠁⠷⠄⠡⠈⠉⠺⠂⠍⠴⠈⠡⠄⠋⠞⠄⠙⠷⠄⠊⠱⠐⠃⠩⠄⠅⠩⠄⠿⠄⠙⠮⠁⠛⠮⠐
⠕⠩⠐⠋⠞⠄⠚⠡⠐⠆⠀⠖⠦⠐⠂⠶⠛⠱⠐⠙⠩⠐⠆⠴⠛⠱⠐⠉⠞⠂⠑⠳⠐⠑⠱⠐⠋⠞⠄
⠖⠐⠙⠞⠐⠉⠨⠐⠙⠷⠄⠅⠡⠈⠅⠹⠐⠅⠹⠄⠝⠞⠂⠚⠞⠂⠊⠱⠂⠙⠜⠐⠖⠐⠙⠞⠐⠏⠺⠂
⠗⠭⠂⠕⠭⠈⠆⠀⠋⠺⠂⠙⠞⠐⠁⠯⠄⠨⠄⠙⠪⠐⠙⠌⠐⠅⠞⠄⠁⠵⠐⠎⠈⠚⠺⠂⠕⠪⠈
⠊⠱⠐⠆⠀⠳⠐⠅⠌⠄⠅⠹⠄⠋⠞⠄⠙⠮⠁⠖⠐⠙⠞⠐⠉⠨⠐⠗⠺⠂⠗⠫⠐⠏⠧⠄⠅⠩⠄
⠤⠀

Please note that braille never splits in the middle of a character.
PS. ⠤⠀ is left in line 6 because there is no enough cell in line 5 to contain ⠤⠀.
This improves efficiency of braille reading in languages with multi-cell characters and without concept of words, like "Avoid splitting words when possible" do for Latin languages.

If it is necessary to open a new issue for discussion, please tell me, thanks!

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

No branches or pull requests

3 participants