Skip to content

Instantly share code, notes, and snippets.

@temberature
Created May 31, 2022 14:48
Show Gist options
  • Save temberature/1808da212c7937b2c022fef07a65b7a5 to your computer and use it in GitHub Desktop.
Save temberature/1808da212c7937b2c022fef07a65b7a5 to your computer and use it in GitHub Desktop.
var i = getPageNumWords();
for (var p = 0; p < i; p++) {
var word = getPageNthWord(0, p, false);
console.println(word);
if (word == "通" && getPageNthWord(0, p - 1, false) == "沟") {
var annot = this.addAnnot({
page: 0,
type: "Highlight",
author: "A. C. Robat",
point: [300, 400],
strokeColor: color.yellow,
contents: "Need a little help with this paragraph.",
noteIcon: "Help",
quads: getPageNthWordQuads(0, p),
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment