• Robert Knight's avatar
    Break words in text layer when adjacent chars do not overlap vertically · 265e59fc
    Robert Knight authored
    For text selection to work well it is important that `<hypothesis-text-word>`
    elements do not span multiple lines. Previously the layout analysis only created
    new words after a space. Since most lines end with a whole word, this was
    sufficient in most cases. However this doesn't work if a word is broken across
    multiple lines (eg. with a hyphen). To handle this case, also create a word
    break if the current character does not vertically overlap the previous
    character. This may create some false positives (ie. unnecessary word breaks),
    but that doesn't harm text selection.
    
    Fixes #5066
    265e59fc
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
integrations Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
bucket-bar-client.js Loading commit data...
bucket-bar.js Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.ts Loading commit data...
highlight-clusters.tsx Loading commit data...
highlighter.ts Loading commit data...
hypothesis-injector.js Loading commit data...
icons.js Loading commit data...
index.ts Loading commit data...
notebook.js Loading commit data...
range-util.js Loading commit data...
selection-observer.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.js Loading commit data...
toolbar.js Loading commit data...