Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Issue 2322403002: SkPDF: Implement /ActualText to make text extraction correct. (Closed)

Created:
4 years, 3 months ago by hal.canary
Modified:
4 years, 3 months ago
CC:
reviews_skia.org, RikC
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: Implement /ActualText to make text extraction correct. For old API: no change. For new API: LTR text is perfectly extracted, RTL needs better testing. CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-ASAN-Trybot,Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-MSAN-Trybot BUG=skia:5434 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2322403002 Committed: https://skia.googlesource.com/skia/+/f59d18a4ea5ad56975502faf50eae43418ea9c2a

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : make internalDrawText 182 lines #

Patch Set 4 : comments, fix win build #

Patch Set 5 : one more win fix #

Patch Set 6 : ReversedChars #

Total comments: 2

Patch Set 7 : fix Reversed #

Patch Set 8 : SkPDFUtils::WriteUTF16beHex #

Total comments: 12

Patch Set 9 : comments from bungeman@ #

Total comments: 24

Patch Set 10 : comments from tomhudson@ #

Patch Set 11 : rebase #

Patch Set 12 : asserts, bounds check before read, not after #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -65 lines) Patch
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +300 lines, -52 lines 0 comments Download
M src/pdf/SkPDFMakeToUnicodeCmap.cpp View 1 2 3 4 5 6 7 3 chunks +2 lines, -12 lines 0 comments Download
M src/pdf/SkPDFUtils.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 65 (48 generated)
hal.canary
PTAL.
4 years, 3 months ago (2016-09-12 19:24:53 UTC) #11
tomhudson
internalDrawText() is now 250 lines long with lots of deep conditional structures. Can we break ...
4 years, 3 months ago (2016-09-12 19:28:56 UTC) #12
hal.canary
On 2016/09/12 19:28:56, tomhudson wrote: > internalDrawText() is now 250 lines long with lots of ...
4 years, 3 months ago (2016-09-12 19:30:56 UTC) #13
hal.canary
On 2016/09/12 19:30:56, Hal Canary wrote: > On 2016/09/12 19:28:56, tomhudson wrote: > > internalDrawText() ...
4 years, 3 months ago (2016-09-12 19:59:30 UTC) #18
bungeman-skia
https://codereview.chromium.org/2322403002/diff/120001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2322403002/diff/120001/src/pdf/SkPDFDevice.cpp#newcode1164 src/pdf/SkPDFDevice.cpp:1164: // TODO: move into SkPDFUtils.h Any reason not to ...
4 years, 3 months ago (2016-09-13 18:28:25 UTC) #33
tomhudson
On 2016/09/13 18:28:25, bungeman-skia wrote: > https://codereview.chromium.org/2322403002/diff/120001/src/pdf/SkPDFDevice.cpp > File src/pdf/SkPDFDevice.cpp (right): > > https://codereview.chromium.org/2322403002/diff/120001/src/pdf/SkPDFDevice.cpp#newcode1164 > ...
4 years, 3 months ago (2016-09-13 19:40:42 UTC) #34
bungeman-skia
Mostly nits. If it works, lgtm. https://codereview.chromium.org/2322403002/diff/160001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2322403002/diff/160001/src/pdf/SkPDFDevice.cpp#newcode929 src/pdf/SkPDFDevice.cpp:929: // harfbuzz), iterate ...
4 years, 3 months ago (2016-09-13 22:08:06 UTC) #35
hal.canary
https://codereview.chromium.org/2322403002/diff/120001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2322403002/diff/120001/src/pdf/SkPDFDevice.cpp#newcode1164 src/pdf/SkPDFDevice.cpp:1164: // TODO: move into SkPDFUtils.h On 2016/09/13 18:28:24, bungeman-skia ...
4 years, 3 months ago (2016-09-14 01:36:37 UTC) #36
tomhudson
https://codereview.chromium.org/2322403002/diff/180001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2322403002/diff/180001/src/pdf/SkPDFDevice.cpp#newcode947 src/pdf/SkPDFDevice.cpp:947: // work for clusters produced by HarfBuzz This is ...
4 years, 3 months ago (2016-09-14 16:15:03 UTC) #41
hal.canary
https://codereview.chromium.org/2322403002/diff/180001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2322403002/diff/180001/src/pdf/SkPDFDevice.cpp#newcode947 src/pdf/SkPDFDevice.cpp:947: // work for clusters produced by HarfBuzz On 2016/09/14 ...
4 years, 3 months ago (2016-09-15 20:27:17 UTC) #43
tomhudson
lgtm https://codereview.chromium.org/2322403002/diff/180001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2322403002/diff/180001/src/pdf/SkPDFDevice.cpp#newcode963 src/pdf/SkPDFDevice.cpp:963: fGlyphCount = 0; On 2016/09/15 20:27:17, Hal Canary ...
4 years, 3 months ago (2016-09-16 17:49:09 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322403002/220001
4 years, 3 months ago (2016-09-16 18:47:53 UTC) #50
commit-bot: I haz the power
Committed patchset #11 (id:220001) as https://skia.googlesource.com/skia/+/dbd16345a5b2b824f2696af791bb0f01304cf549
4 years, 3 months ago (2016-09-16 19:09:06 UTC) #52
hal.canary
A revert of this CL (patchset #11 id:220001) has been created in https://codereview.chromium.org/2338213008/ by halcanary@google.com. ...
4 years, 3 months ago (2016-09-16 20:20:54 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322403002/240001
4 years, 3 months ago (2016-09-16 20:44:24 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322403002/240001
4 years, 3 months ago (2016-09-16 21:25:55 UTC) #63
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 21:45:00 UTC) #65
Message was sent while issue was closed.
Committed patchset #12 (id:240001) as
https://skia.googlesource.com/skia/+/f59d18a4ea5ad56975502faf50eae43418ea9c2a

Powered by Google App Engine
This is Rietveld 408576698