all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: replace placeholders
Date: Tue, 3 Mar 2009 12:36:46 -0800 (PST)	[thread overview]
Message-ID: <739d03fc-5be5-48f5-9a36-30603e38110f@v5g2000prm.googlegroups.com> (raw)
In-Reply-To: 877i36obde.fsf@literaturlatenight.de

On Mar 3, 7:49 am, henry atting <nspm...@literaturlatenight.de> wrote:
> On Mo, Mär 02 2009, Peter Dyballa wrote:
>
> > Am 02.03.2009 um 15:06 schrieb henry atting:
>
> >> I simply typed \226 to `query-replace's prompt.
>
> > It should have been: C-q 2 2 6 <something non-digital> – and sometimes
> > care needs to be taken: GNU Emacs 23.x (could be also 22.x)  can be
> > set to accept hex (to input directly Unicode characters) and  other
> > coding instead of octal. Now you have strings comprised of \,  2, and
> > 6.
>
> Yes, this works fine.
> Strange. After I eliminated all these placeholders (it is a *.tex file)
> I do not really miss anything in the PDF output, the source does not
> contain any letter with a circumflex.
> Anyway, for now I do not have to convert any other latin1 file.

the best way i found to replace is simply copy & paste the char in
query-replace.

To find out what that char is, you can do “Ctrl+u Ctrl+x =”. It'll
give you the full unicode name, code number, and all sort of info. But
you have to intsall the unicode file... See:

Q: I have this character α on the screen. How to find out its
unicode's hex value or name?

You can find out a character's decimal, octal, or hex values by
placing your cursor on the character, and type “Alt+x what-cursor-
position” (Ctrl+x =). You can get more info if you place your cursor
on the character, then press “Ctrl+u Ctrl+x =”.

However, if you want the complete unicode info of a character, you
need to download a unicode data file and let emacs know where it is.
The unicode data file can be downloaded at: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
After you downloaded it, place the following code in your “~/.emacs”
to let emacs know where it is:

; set unicode data file location. (used by what-cursor-position)
(let ((x "~/Documents/emacs/UnicodeData.txt"))
  (when (file-exists-p x)
    (setq describe-char-unicodedata-file x)))

Then restart emacs. Once you've done this, then place your cursor on a
unicode char, and do “Ctrl+u Ctrl+x =”, then emacs will give you all
the unicode info about that char, including the code point in decimal,
octal, hex notations, as well the unicode character name, category,
the font emacs is using, and others.

For example, here's the output on the character “α”:

      character: α (332721, #o1211661, #x513b1, U+03B1)
        charset: mule-unicode-0100-24ff
                 (Unicode characters of the range U+0100..U+24FF.)
     code point: #x27 #x31
         syntax: w 	which means: word
       category: g:Greek
    buffer code: #x9C #xF4 #xA7 #xB1
      file code: #xCE #xB1 (encoded by coding system mule-utf-8-unix)
        display: by this font (glyph code)
     -apple-symbol-medium-r-normal--14-140-72-72-m-140-mac-symbol
(#x61)
   Unicode data:
           Name: GREEK SMALL LETTER ALPHA
       Category: lowercase letter
Combining class: Spacing
  Bidi category: Left-to-Right
      Uppercase: Α
      Titlecase: Α

There are text properties here:
  fontified            t

above from:
• Emacs and Unicode Tips
  http://xahlee.org/emacs/emacs_n_unicode.html

  Xah
∑ http://xahlee.org/

      reply	other threads:[~2009-03-03 20:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-01  7:18 replace placeholders henry atting
2009-03-01 17:17 ` Eli Zaretskii
2009-03-01 17:55 ` Ian Eure
     [not found] ` <mailman.2136.1235927829.31690.help-gnu-emacs@gnu.org>
2009-03-02 14:06   ` henry atting
2009-03-02 15:02     ` Peter Dyballa
     [not found]     ` <mailman.2209.1236006175.31690.help-gnu-emacs@gnu.org>
2009-03-03 15:49       ` henry atting
2009-03-03 20:36         ` Xah Lee [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=739d03fc-5be5-48f5-9a36-30603e38110f@v5g2000prm.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.