Skip to content

brailleInput.handler.sendChars: allow sending Unicode characters beyond U+FFFF#10796

Merged
michaelDCurran merged 1 commit into
nvaccess:masterfrom
AAClause:sendCharsFix
Jul 3, 2020
Merged

brailleInput.handler.sendChars: allow sending Unicode characters beyond U+FFFF#10796
michaelDCurran merged 1 commit into
nvaccess:masterfrom
AAClause:sendCharsFix

Conversation

@AAClause

@AAClause AAClause commented Feb 18, 2020

Copy link
Copy Markdown
Contributor

Link to issue number:

None

Summary of the issue:

We currently don't properly send an Unicode characters beyond U+FFFF from the braille input.

>>> brailleInput.handler.sendChars("😆")
>>> 

Description of how this pull request fixes the issue:

Break UTF-32 characters into its UTF-16 surrogate pair and send them using SendInput.

Testing performed:

Tested the previous test with a try build.
Also I addded this patch to Braille Extender add-on since awhile. The add-on allows send any Unicode character via HUC/hexadecimal/decimal/octal/binary value of the character. Tested with several Unicode characters beyond U+FFFF.

Known issues with pull request:

None

Change log entry:

Section: bug fixes

- You can now send Unicode characters beyond U+FFFF from a braille display. (#10796)

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 01f923b69e

@LeonarddeR

Copy link
Copy Markdown
Collaborator

I wonder whether there is a cleaner way to do this than using struct.

@michaelDCurran

Copy link
Copy Markdown
Member

Is this really just a change to an API, or is there a practical use case with a physical braille display you can describe here?

@lukaszgo1

Copy link
Copy Markdown
Contributor

@Andre9642 Could you please respond to this commend by @michaelDCurran ?

@AAClause

AAClause commented Jul 2, 2020

Copy link
Copy Markdown
Contributor Author

Is this really just a change to an API, or is there a practical use case with a physical braille display you can describe here?

Assumme you have a braille table contains the following rule:

sign \y1f606 23478 # 😆

Currently, if we enter dots 2-3-4-7-8 from braille keyboard,  (U+f606) is printed instead of 😆 (U+1f606).

@michaelDCurran michaelDCurran merged commit 6154658 into nvaccess:master Jul 3, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.3 milestone Jul 3, 2020
michaelDCurran added a commit that referenced this pull request Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants