question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No spaces between words when copying text

See original GitHub issue

PDF files: 1.pdf 2.pdf 3.pdf

Configuration:

Steps to reproduce the problem:

  1. Select text
  2. Copy text

What went wrong?

Getting this: OpenSansisahumanistsansseriftypefacedesignedbySteveMatteson.OpenSanswasdesignedwithanuprightstress,openformsandaneu-tral,yetfriendlyappearance.Itwasoptimizedforprint,web,andmobileinterfaces,andhasexcellentlegibilitycharacteristicsinitsletterforms(seefigureonthefollowingpage).ThisfontisavailablefromtheGoogleFontDirectory[]asTrueTypefileslicensedundertheApacheLicenseversion‚.€.

Instead of this: Open Sans is a humanist sans serif typeface designed by Steve Matteson. Open Sans was designed with an upright stress, open forms and a neutral, yet friendly appearance. It was optimized for print, web, and mobile interfaces, and has excellent legibility characteristics in its letterforms (see figure 1 on the following page). This font is available from the Google Font Directory [1] as TrueType files licensed under the Apache License version 2.0.

This is quite significant problem, because I would say 1/20 of scientific papers encounter this problem.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
KnIfERcommented, Nov 26, 2019

how do chrome and acrobat handle this?

0reactions
FredBonuxcommented, May 1, 2021

My “solution” above was based on this thought: If the distance is greater than the width of the narrower char of the font, then that distance should be a space. That’s because, usually, the " " is not the narrower char. But that is based on my “close to none” knowledge on fonts, hope it could help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spacing between words changing when copy pasting text ...
Hi, Easy answer: stop retaining the formatting from the source. This is, ultimately, the source of your problem. If this is not ......
Read more >
How to remove Spaces between Words from Text Copied from ...
Here is a video on how you can remove spaces between words that are copied from PDF into MS word....Check out our tutorial...
Read more >
How to Fix issue of extra space between lines while pasting text
Are you getting an extra space between lines when you paste text from a Microsoft® Word document into Gmail®? Just follow the easy...
Read more >
When I copy text from pdf file there is no spacing between ...
copied text from pdf is pasted without spaces​​ proposes the following reasonable reason: The problem is that the PDF file may or may...
Read more >
How to remove Spaces between Words on text that are ...
4. Then go to "Replace All" command and Word will remove all the spaces. 5. Click close to finish the task.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found