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

Adjust the heuristics to recognize more cases of unknown glyphs for |toUnicode| (issue 5070) #5095

Merged
merged 2 commits into from
Aug 5, 2014

Conversation

Snuffleupagus
Copy link
Collaborator

Fixes #5070.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/6ed19823f2dcdb8/output.txt

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.22.172.223:8877/6e88c55bbe05183/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/59a7916bf2a08ed/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/6e88c55bbe05183/output.txt

Total script time: 19.85 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/59a7916bf2a08ed/output.txt

Total script time: 23.27 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@@ -4313,26 +4314,41 @@ var Font = (function FontClosure() {
var glyphName = encoding[charcode];
// b) Look up the character name in the Adobe Glyph List (see the
// Bibliography) to obtain the corresponding Unicode value.
if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
if (glyphName === '' || GlyphsUnicode[glyphName] === undefined) {
// (undocumented) c) Few heuristics to recognize unknown glyphs
// NOTE: Adobe Reader does not do this step, but OSX Preview does
var code;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you assign it to 0 or null?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done; I've also factored out the glyphName === '' case to avoid all of the, in this case, unnecessary heuristics.

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Linux)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/5557e563f0bc0cd/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/8e45a7e3a897823/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/8e45a7e3a897823/output.txt

Total script time: 2.83 mins

  • Font tests: FAILED
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.22.172.223:8877/8e45a7e3a897823/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/5557e563f0bc0cd/output.txt

Total script time: 22.75 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@yurydelendik
Copy link
Contributor

/botio-windows test

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Windows)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/a8ddbcd3771c6ab/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/a8ddbcd3771c6ab/output.txt

Total script time: 19.72 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@yurydelendik
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Windows)


Received

Command cmd_makeref from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/273eabf835cc56b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Linux)


Received

Command cmd_makeref from @yurydelendik received. Current queue size: 0

Live output at: http://107.21.233.14:8877/02b52725ceec492/output.txt

yurydelendik added a commit that referenced this pull request Aug 5, 2014
Adjust the heuristics to recognize more cases of unknown glyphs for |toUnicode| (issue 5070)
@yurydelendik yurydelendik merged commit fa53fcb into mozilla:master Aug 5, 2014
@yurydelendik
Copy link
Contributor

Looks good. Thank you!

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/273eabf835cc56b/output.txt

Total script time: 19.79 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2014

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/02b52725ceec492/output.txt

Total script time: 22.61 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the issue-5070 branch August 5, 2014 23:00
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.

Chars missing from a document
4 participants