unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Harald Hanche-Olsen <hanche@math.ntnu.no>
Cc: emacs-devel@gnu.org
Subject: Re: I'm is really I'm
Date: Wed, 7 Jul 2010 03:57:39 +0200	[thread overview]
Message-ID: <AANLkTilDP1ASkkC3-0Wx0PDC9mRRn0C8FWNIeV1nZC6l@mail.gmail.com> (raw)
In-Reply-To: <20100706.203803.12862906.hanche@math.ntnu.no>

On Wed, Jul 7, 2010 at 3:38 AM, Harald Hanche-Olsen <hanche@math.ntnu.no> wrote:
> + 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 ...


The PDF file says "PDF Producer: Microsoft Office Word 2007".


>> 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?


I hoped there were some easy cases where some characters commonly used
for typographic reasons could be replaced by more "wellknown"
characters.

Otherwise a very simple "AI" technique could perhaps be to just build
a table of things with ("I'm" "I'm").



  reply	other threads:[~2010-07-07  1:57 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
2010-07-07  1:57   ` Lennart Borgman [this message]
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=AANLkTilDP1ASkkC3-0Wx0PDC9mRRn0C8FWNIeV1nZC6l@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=hanche@math.ntnu.no \
    /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).