|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Member
![]() Posts: 16
Karma: 10
Join Date: Oct 2020
Device: Kindle
|
Copy from viewer to web form results in invisible characters being added
I'm reading a book in Spanish and trying to copy the words I don't know into a web form and additional characters are being added, for example:
or*gu*llo*sos When pasted into a search form at SpanishDict.com becomes: or%C2%ADgu%C2%ADllo%C2%ADsos Is this an option or something that I can turn off to prevent this? Thanks Mark |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,173
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Those are non-breaking spaces. If they are present in the text they will be present when copied as well. The viewer has no way to know whether the non-breaking spaces are safe to replace with ordinary spaces or not.
|
![]() |
![]() |
![]() |
#3 |
Member
![]() Posts: 16
Karma: 10
Join Date: Oct 2020
Device: Kindle
|
I can't imagine a scenario in which copy and pasting non-breaking spaces as normal spaces would matter though I could be wrong. Still, would it be possible to replace invisible characters (such as this) with a regular space either globally or at the book level? It kind of breaks the copy/paste functionality otherwise. I think in 100% of the cases the user is not going to intend to copy non-breaking spaces to the clipboard.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,173
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I would definitely expect non-breaking spaces to be preserved when copying text. non-breaking spaces often have semantic meaning. And if you want to replace then use search and replace either via the edit book tool or by doing a conversion from whatever format the book is in to the same format.
|
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,684
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Perhaps a minor nit but if I recall correctly, %C2%A0 would be a non-breaking space. %C2%AD would be a soft hyphen.
|
![]() |
![]() |
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,173
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah in that case you can use the Polish books tool in calibre to remove them automatically.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Enhancement request: special characters, invisible characters and html entities. | PenguinCEO | Editor | 15 | 04-08-2020 05:26 PM |
Web Browser and BookWalker web viewer | chronoreverse | Amazon Kindle | 0 | 02-06-2019 01:44 PM |
Comments field results in bad characters upon saving to CSV | da_jane | Library Management | 1 | 11-21-2012 05:29 PM |
problem with added characters | Oldpilot | Sigil | 11 | 09-16-2012 09:54 AM |