Android: Cut Out Copy & Paste Headers

#1
I feel like this has been talked about before - but I'm struggling to find anything about it.

When copying from Word I always end up getting their ugly long headers pasted into Pleco:

<!-- /* Font Definitions */ @font-face {font-family:宋体; mso-font-charset:80; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:1 135135232 16 0 262144 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-536870145 1107305727 0 0 415 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:"Times New Roman"; mso-fareast-language:ZH-CN;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Calibri; mso-ascii-font-family:Calibri; mso-fareast-font-family:宋体; mso-hansi-font-family:Calibri;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.WordSection1 {page:WordSection1;} -->
In clipboard it doesn't really matter but in the normal dictionary gui - it slows everything down while it's trying look up everything in the header - sometimes bringing things to a standstill.

Anyway to cut out these headers?
 

mikelove

皇帝
Staff member
#2
I suppose we could add a regex filter option of some sort for text pasted into the search field, just not something we've had a lot of requests for. Long breakdown searches are getting way faster in 4.0, FWIW (redesigned the whole engine), so even without a filter, text like this should no longer cause a slowdown.
 
Top