unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: Re: (un)expand-region-abbrevs
Date: Fri, 06 Jun 2014 16:45:02 +0200	[thread overview]
Message-ID: <87fvjip05t.fsf@gilgamesch.quim.ucm.es> (raw)
In-Reply-To: 8361ke3yr7.fsf@gnu.org

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

   >> 
   >> שלום -->     שָלֹם 
   >> 
   >> So sometimes I want to delete the niqqud. 

   > You can delete the niqqud characters by hand, you know.

I am not sure what you mean by hand, deleting individually?

Or something like this.
;; incomplete!

(defun my-anti-niqqud ()
  (interactive)
  (query-replace-regexp "ֿ\\|ֱ\\|ֲ\\|ֳ\\|״\\|ְ\\|ּ\\| ֻ\\|ֹ\\|ֶ\\|ֵ\\|ִ\\|ַ\\|ָ\\|ׂ\\|ׁ\\|ׇ\\|ׄ\\|ׅ" ""))

   > (I actually wonder why you need the abbrevs at all.  Why not just use
   > an input method that allows to type the niqqud characters at will.)

This you can ask for any abbrev: "why don't  you type it at will?"

I think in both cases the answer should be: "Because I am lazy" 

   >> One might argue that I would be better off to write a short trans-tab
   >> which replaces the niqqud by "nothing", but I got curious whether I
   >> could use an inverse abbrev function.

   > You can always _add_ those reverse abbrevs, right?

You mean another table which is the inverse table?

Maybe the query-replace-regexp is the easiest solution, although I am
not sure about performance and we can forget the issue.








  reply	other threads:[~2014-06-06 14:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06  9:18 (un)expand-region-abbrevs Uwe Brauer
2014-06-06 11:09 ` (un)expand-region-abbrevs Andreas Röhler
2014-06-06 11:15 ` (un)expand-region-abbrevs Stephen J. Turnbull
2014-06-06 11:54   ` (un)expand-region-abbrevs Andreas Röhler
2014-06-06 12:37   ` (un)expand-region-abbrevs Uwe Brauer
2014-06-06 14:21     ` (un)expand-region-abbrevs Eli Zaretskii
2014-06-06 14:45       ` Uwe Brauer [this message]
2014-06-06 15:10         ` (un)expand-region-abbrevs Eli Zaretskii
2014-06-06 16:33           ` (un)expand-region-abbrevs Uwe Brauer
2014-06-06 17:19             ` (un)expand-region-abbrevs Stefan Monnier
2014-06-09 15:56               ` (un)expand-region-abbrevs Uwe Brauer
2014-06-09 18:59                 ` (un)expand-region-abbrevs Stefan Monnier
2014-06-06 14:21     ` (un)expand-region-abbrevs Andreas Röhler
2014-06-06 15:31     ` (un)expand-region-abbrevs Stefan Monnier
2014-06-06 13:16 ` (un)expand-region-abbrevs Stefan Monnier
2014-06-06 13:53   ` (un)expand-region-abbrevs Uwe Brauer

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=87fvjip05t.fsf@gilgamesch.quim.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-devel@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 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).