Skip to content

Update liblouis to commit 58d67e63#10168

Merged
michaelDCurran merged 3 commits into
nvaccess:masterfrom
BabbageCom:liblouisPythonWrapper
Oct 4, 2019
Merged

Update liblouis to commit 58d67e63#10168
michaelDCurran merged 3 commits into
nvaccess:masterfrom
BabbageCom:liblouisPythonWrapper

Conversation

@LeonarddeR

@LeonarddeR LeonarddeR commented Sep 6, 2019

Copy link
Copy Markdown
Collaborator

Link to issue number:

Fixes #10094

Summary of the issue:

The python 3 transition caused a regression for liblouis, printing unicode surrogate characters like \ud83d cause an UnicodeEncodeError.

Description of how this pull request fixes the issue:

Updates liblouis to a commit that has a fix for this. This is a commit post 3.10, also applying the following fixes:

  • Don't let a caps passage end on a word with no letters
  • Handle word resets in the last word of an caps or emphasis passage if the end indicator was placed before the word- Never convert to lowercase if capsletter is not defined
  • Fix position mapping for back-translation when noUndefinedDots mode is active
  • Fix an issue with ordinal numbers inside caps passages in Dutch braille
  • Improved back-translation for Mongolian

Testing performed:

Tested that liblouis prints the hexadecimal representation of a surrogate character, when printed to a python console.

Known issues with pull request:

This does not update to liblouis 3.11, see #10161

Change log entry:

@lukaszgo1

Copy link
Copy Markdown
Contributor

I believe this PR fixes #10094

@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

Good catch, thanks @lukaszgo1

@zstanecic

zstanecic commented Sep 6, 2019 via email

Copy link
Copy Markdown
Contributor

@LeonarddeR

This comment has been minimized.

@zstanecic

zstanecic commented Sep 6, 2019 via email

Copy link
Copy Markdown
Contributor

@LeonarddeR LeonarddeR changed the title Update liblouis to commit 58d67e63 Update liblouis to commit 146c0757 Sep 6, 2019
@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

This is c870f23c63dc3a2eed9e025d3bbf63de175f00cb

I will see what I can do to have these changes included.

@LeonarddeR LeonarddeR changed the title Update liblouis to commit 146c0757 Update liblouis to commit 58d67e63 Sep 6, 2019
@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

Unfortunately, there is no point in the liblouis history where both the polish changes and the python wrapper changes can be build as part of NVDA. The only way would be using a fork of liblouis, but I don't see a real need for that at the moment.

@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

I actually discovered that we could also go to 146c0757b91c186742922b8e0f4e2f8f4a8350cc, which is the last merge commit before the MSVC incompatible code was merged. That will include the changes to Polish and will also fix the double underscores bug.

Ugh, I was wrong there, I'm sorry for creating wrong expectations here.

@zstanecic

zstanecic commented Sep 6, 2019 via email

Copy link
Copy Markdown
Contributor

@michaelDCurran

Copy link
Copy Markdown
Member

@LeonarddeR What is the state of this pr exactly? Did you settle on an exact commit?

@LeonarddeR

LeonarddeR commented Sep 13, 2019 via email

Copy link
Copy Markdown
Collaborator Author

@michaelDCurran

Copy link
Copy Markdown
Member

Do you have a branch or draft pr based on your vs 2019 work with Liblouis being successfully built with clang? It owuld be good to know that this is definitely technically possible within NVDA's infrastructure. If not, then we'll go with this pr.

@Adriani90

Copy link
Copy Markdown
Collaborator

@LeonarddeR is #10275 not including this commit already?

@michaelDCurran

Copy link
Copy Markdown
Member

@feerrenrut and I have decided that we do not want to take the risk of updating to VS 2019 for 2019.3. Therefore, we will most likely take this pr.

@michaelDCurran michaelDCurran merged commit 7b0aea1 into nvaccess:master Oct 4, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Oct 4, 2019
michaelDCurran added a commit that referenced this pull request Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nvda bug in win 10 mail app

6 participants