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

Improve cmap parsing and internal error handling #335

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

liningpan
Copy link
Contributor

  • CMap parsing
    • beginbfchar sections could have spaces separating each 2-byte character.
    • In some cases, /CIDSystemInfo sections are encoded using a different dictionary syntax.

I also re-wired all the functions to use LocatedSpan from nom_locate. This was necessary to locate the error when debugging. I hope this is helpful, but I could also revert these changes.
A future PR could better expose this information to end users.

Fix #334

@J-F-Liu J-F-Liu merged commit 80b3e73 into J-F-Liu:master Sep 30, 2024
8 checks passed
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.

CMap dstString with space between unicode values
2 participants