From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: lennart.borgman@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: I'm is really I'm
Date: Tue, 06 Jul 2010 20:38:03 -0500 (CDT) [thread overview]
Message-ID: <20100706.203803.12862906.hanche@math.ntnu.no> (raw)
In-Reply-To: <AANLkTin_HpNXlzaliFKwvXbxOwpEezSrg-3cY_12nZW_@mail.gmail.com>
+ Lennart Borgman <lennart.borgman@gmail.com>:
> I was just copying some text from a pdf file to store in org-mode in
> Emacs. Some of the characters are not readable with my font. For
> example when pasting something that looked like
>
> I'm
>
> I got in Emacs
>
> I‟m
>
> where the middle char is
DOUBLE HIGH-REVERSED-9 QUOTATION MARK
which is really sort of wrong.
I suspect that the PDF file has used a non-unicode font for that
character. And once the PDF file creator resorts to such then ...
> Do we have any tool for replacing such characters in Emacs? Or is
> there a better way?
... all bets for an automatic recovery are off, except for some AI
technique. Otherwise, I am very much afraid that good old search and
replace is the best you can do. Of course, if you have a lot of these
files and they all suffer the same symptoms, you might want to build a
translation table of sorts. Is your question really about how you can
build and apply such tables to text?
- Harald
next prev parent reply other threads:[~2010-07-07 1:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 1:21 I'm is really I'm Lennart Borgman
2010-07-07 1:38 ` Harald Hanche-Olsen [this message]
2010-07-07 1:57 ` Lennart Borgman
2010-07-07 4:19 ` Jason Rumney
2010-07-07 6:44 ` Reiner Steib
2010-07-07 2:34 ` Karl Fogel
2010-07-07 13:55 ` Davis Herring
2010-07-07 15:22 ` Karl Fogel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100706.203803.12862906.hanche@math.ntnu.no \
--to=hanche@math.ntnu.no \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).