xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.7k stars 95 forks source link

Word acrossing lines in pdf #1397

Open playgithub opened 9 months ago

playgithub commented 9 months ago

e.g.

... im-
portant ...

When selecting the word important above, and press Ctrl+C, C to tranlate it. The word is pasted as im portant in the search edit. Is it possible to do an optimization here? Thanks

playgithub commented 7 months ago

@xiaoyifang

A little digging, for splitted word, .e.g.

cre­-
ative

hex

63 72 65 C2 AD 0A 61 74 69 76 65

C2 AD is special here for a splitted word,

For two continuous words across lines without word splitting, only 0A there.

So is it better to remove pattern C2 AD 0A before translating?