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

MAINT: Add a comment #3034

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

MAINT: Add a comment #3034

wants to merge 2 commits into from

Conversation

j-t-1
Copy link
Contributor

@j-t-1 j-t-1 commented Jan 9, 2025

No description provided.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.36%. Comparing base (c6dcdc6) to head (f0b2eae).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3034   +/-   ##
=======================================
  Coverage   96.36%   96.36%           
=======================================
  Files          52       52           
  Lines        8770     8770           
  Branches     1595     1595           
=======================================
  Hits         8451     8451           
  Misses        191      191           
  Partials      128      128           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@j-t-1
Copy link
Contributor Author

j-t-1 commented Jan 9, 2025

@stefan6419846 in test_parse_encoding_advanced_encoding_not_implemented, /WinAnsEncoding should be /WinAnsiEncoding. Do you know where is the corresponding change to fix this?

@stefan6419846
Copy link
Collaborator

The warnings are emitted in pypdf._cmap._parse_encoding. But the corresponding test file is just broken - we already should have support for the correct name:

"/WinAnsiEncoding": _win_encoding,

@j-t-1
Copy link
Contributor Author

j-t-1 commented Jan 9, 2025

So in tika-957144.pdf there is /WinAnsEncoding and this is deliberately chosen as a wrong encoding for the test?

@stefan6419846
Copy link
Collaborator

Yes:

%PDF-1.2
3 0 obj
<<
/Type /Font
/Subtype /Type1
/Name /F1
/BaseFont /Helvetica
/Encoding /WinAnsEncoding
>>
endobj
4 0 obj
<<
...

Plus correct one typo.
@j-t-1 j-t-1 changed the title MAINT: Correct typos MAINT: Add a comment Jan 9, 2025
@j-t-1 j-t-1 marked this pull request as ready for review January 9, 2025 13:16
@stefan6419846
Copy link
Collaborator

Before merging, we probably need to have a look at #3035.

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.

2 participants