help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stemming Porter algorithm for Emacs


From: Tiago Charters de Azevedo
Subject: Re: stemming Porter algorithm for Emacs
Date: Tue, 26 Feb 2008 10:58:09 +0000

I have used Google and I did find the Commnon Lisp version that you have
mentioned. This, I think,  justifies the question that I've just posted.

Is there any stemming Porter algorithm for Emacs?

I guess not.

Thanks again.

On Mon, 2008-02-25 at 23:40 -0500, help-gnu-emacs-request@gnu.org wrote:
> Send help-gnu-emacs mailing list submissions to
>       help-gnu-emacs@gnu.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> or, via email, send a message with subject or body 'help' to
>       help-gnu-emacs-request@gnu.org
> 
> You can reach the person managing the list at
>       help-gnu-emacs-owner@gnu.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of help-gnu-emacs digest..."
> 
> 
> Today's Topics:
> 
>    1. finding tags files based on location (gamename)
>    2. Re: C-mode-style whitesmith with emacs 21/22 (Will Parsons)
>    3. two-mode: make-local-variable and cpu consumption (Peter M?nster)
>    4. Re: Too small fonts after Emacs-Snapshot update (Romain Francoise)
>    5. Re: remapping keys (Seldon)
>    6. emacs could not show this symbol. (anhnmncb)
>    7. Re: Stemming Porter algorithm (Pascal Bourguignon)
>    8. Re: finding tags files based on location (Kevin Rodgers)
>    9. Re: Testing that a font is installed (Kevin Rodgers)
>   10. Re: copy visible text with some lines hidden with hide-lines
>       (Kevin Rodgers)
>   11. Re: emacs could not show this symbol. (anhnmncb)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 25 Feb 2008 11:18:55 -0800 (PST)
> From: gamename <namesagame-usenet@yahoo.com>
> Subject: finding tags files based on location
> To: help-gnu-emacs@gnu.org
> Message-ID:
>       <8433d21a-3b4e-48b1-a88a-f5639d8e2f2d@i7g2000prf.googlegroups.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi,
> 
> I often have to checkout multiple copies of the same source tree from
> cvs.  For example, if I have a source tree 'foo' in cvs, I may have 2
> copies like ~/foo0/bar and ~/foo1/bar in my home directory at the same
> time.  Each copy of the foo tree will have a tags file in 'foo/tags'.
> 
> Does anyone have code that will enable emacs to determine which tags
> file to use based on the tree i'm currently using?  For example, if
> I'm in foo1/bar, I would be using the tags file in foo1/tags, not foo0/
> tags.  Is there code to dynamically determine that?
> 
> TIA,
> -T
> 
> 
> ------------------------------
> 
> Message: 2
> Date: 24 Feb 2008 22:15:41 GMT
> From: Will Parsons <oudeis@nodomain.invalid>
> Subject: Re: C-mode-style whitesmith with emacs 21/22
> To: help-gnu-emacs@gnu.org
> Message-ID: <slrnfs3r4d.22hk.oudeis@isis.thalatta.eme>
> 
> Lars Meier wrote:
> > Hallo NG,
> >
> > I'm using whitesmith style for the emacs c-mode because this style is
> > very simular to the existing code I'm working on.
> >
> > Some time ago I switched to emacs 22 because the version has some
> > improvements which are important for me. But with emacs 22 the
> > whitesmith-style does the indentation different than emacs 21 at least
> > in the default setting. Hear is a short example:
> >
> > emacs 21:
> >
> > int main()
> >    {
> >    my_function(xxxxxxxxxxxx,
> >                yyyyyyyyyyyy,
> >                zzzzzzzzzz);
> >    }
> >
> >
> > emacs 22:
> >
> > int main()
> >    {
> >    my_function(xxxxxxxxxxxx,
> >       yyyyyyyyyyyy,
> >       zzzzzzzzzz);
> >    }
> >
> >
> > But the emacs-22-version is not what I need and it's very tedious to fix
> > this by hand. Is there a simple way to change this back to the old
> > behaviour maybe by changing an indentation setting or something like that?
> 
> I don't know if you've found a solution to this, but you probably should
> file a bug report since it's clearly (IMO) wrong behaviour.  (I use
> ellemtel which doesn't seem to be affected in the same way.)
> 
> - Will
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Sun, 24 Feb 2008 20:25:29 +0100
> From: Peter M?nster <pmlists@free.fr>
> Subject: two-mode: make-local-variable and cpu consumption
> To: Emacs Users <help-gnu-emacs@gnu.org>
> Message-ID: <20080224192529.GA945@gaston.couberia.bzh>
> Content-Type: text/plain; charset=utf-8
> 
> Hello,
> 
> I've two problems with two-mode.el:
> 
> 1.) make-local-variable does not work with default-mode and second-modes:
> After (make-local-variable 'default-mode) and
> (make-local-variable 'second-modes) new assignments with setq don't have
> any effect.
> 
> 2.) When the current buffer is in two-mode-mode, the cpu usage of emacs is
> 100%.
> 
> Could anybody help please?
> 
> Thanks in advance for any hints!
> Regards, Peter
> 
> -- 
> http://pmrb.free.fr/contact/
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Mon, 25 Feb 2008 19:22:27 +0100
> From: Romain Francoise <romain@orebokech.com>
> Subject: Re: Too small fonts after Emacs-Snapshot update
> To: Sven Bretfeld <sven.bretfeld@gmx.ch>
> Cc: help-gnu-emacs@gnu.org
> Message-ID: <87ve4cgal8.fsf@elegiac.orebokech.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Sven Bretfeld <sven.bretfeld@gmx.ch> writes:
> 
> > I've now downgraded my Emacs version to 23.0.50 again. I think I
> > will be happier with this one.
> 
> Or you could keep the latest snapshot and use --disable-font-backend,
> I guess.
> 
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Mon, 25 Feb 2008 11:45:02 +0100
> From: Seldon <seldon@katamail.it>
> Subject: Re: remapping keys
> To: help-gnu-emacs@gnu.org
> Message-ID: <47c29beb$0$37198$4fafbaef@reader3.news.tin.it>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> muede73 wrote:
> > Seldon wrote:
> >>>
> >>
> >> I would prefer a more selective approach, remapping only the keys I need.
> >>
> > 
> > Is 'keyboard-translate' what you want ?
> > 
> > -ap
> 
> As  I said, I read the documentation, but I didn't understood how to 
> call or use this function.
> 
> I think I will switch to an US layout.
> 
> 
> -- 
> Seldon
> 
> "L'immaginazione e' piu' importante della conoscenza"
> Alberto Unapietra
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Tue, 26 Feb 2008 09:11:44 +0800
> From: anhnmncb <anhnmncb@gmail.com>
> Subject: emacs could not show this symbol.
> To: help-gnu-emacs@gnu.org
> Message-ID: <86ejb08qsv.fsf@freebsd.hasee.cpu>
> Content-Type: text/plain; charset=utf-8
> 
>         character:  (3665, #o7121, #xe51)
> preferred charset: gb18030 (GB18030)
>        code point: 0x8132D639
>            syntax: w  which means: word
>          category: 6:digit t:Thai
>       buffer code: #xE0 #xB9 #x91
>         file code: #xE0 #xB9 #x91 (encoded by coding system utf-8-unix)
>           display: no font available
> 
> How to configure emacs to show this symbol? I'm quite sure I have the
> font that contains it, because urxvt and opera (yes, I use opera to test
> it ;p) could. urxvt use "wenquanyi zen hei", I don't know how to get the
> font info opera uses.
> 
> My .emacs font setting:
>   (set-default-font "Bitstream Vera Sans Mono-12")
>   (set-fontset-font (frame-parameter nil 'font)
>                   'latin '("Bitstream Vera Sans Mono" . "unicode-bmp"))
>   (set-fontset-font (frame-parameter nil 'font)
>                   'han '("Microsoft YaHei" . "unicode-bmp"))
>   (set-fontset-font (frame-parameter nil 'font)
>                   'cjk-misc '("Microsoft Yahei" . "unicode-bmp"))
>   (set-fontset-font (frame-parameter nil 'font)
>                   'bopomofo '("Microsoft Yahei" . "unicode-bmp"))
>   (set-fontset-font (frame-parameter nil 'font)
>                   'gb18030 '("Microsoft Yahei". "unicode-bmp"))
>   (set-fontset-font "fontset-default"
>                   'gb18030 '("WenQuanYi Zen Hei". "unicode-bmp"))
>   (set-fontset-font "fontset-default"
>                   'mule-unicode-0100-24ff
>                   '("Courier New". "unicode-bmp"))
>   (add-to-list 'default-frame-alist '(font . "Bitstream Vera Sans Mono-12"))
> 
> -- 
> Regards,
> 
>   anhnmncb
>  gpg key: 44A31344
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Tue, 26 Feb 2008 02:32:20 +0100
> From: Pascal Bourguignon <pjb@informatimago.com>
> Subject: Re: Stemming Porter algorithm
> To: help-gnu-emacs@gnu.org
> Message-ID: <87ejb0pknv.fsf@thalassa.informatimago.com>
> Content-Type: text/plain; charset=us-ascii
> 
> "Tiago Charters Azevedo" <tca@cii.fc.ul.pt> writes:
> > Is there any stemming Porter algorithm for Emacs?
> 
> Use google!  Why can't you people just use google?    Well, actually,
> never mind, this way I learn about new stuff, so thanks for asking,
> but really, if you used google, you would have had the answer much
> sooner.
> 
> 
> This is just what I did, and while it looks like there's no elisp
> implementations, there's a Common Lisp one at:
> http://tartarus.org/~martin/PorterStemmer/commonlisp.txt
> that should be rather easy to port to elisp (or just (try to) use
> emacs-cl to run it in emacs).
> 
> 
> -- 
> __Pascal Bourguignon__                     http://www.informatimago.com/
> 
> "What is this talk of "release"?  Klingons do not make software
> "releases".  Our software "escapes" leaving a bloody trail of
> designers and quality assurance people in its wake."
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Mon, 25 Feb 2008 21:08:15 -0700
> From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
> Subject: Re: finding tags files based on location
> To: help-gnu-emacs@gnu.org
> Message-ID: <fq03ap$upf$1@ger.gmane.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> gamename wrote:
> > I often have to checkout multiple copies of the same source tree from
> > cvs.  For example, if I have a source tree 'foo' in cvs, I may have 2
> > copies like ~/foo0/bar and ~/foo1/bar in my home directory at the same
> > time.  Each copy of the foo tree will have a tags file in 'foo/tags'.
> > 
> > Does anyone have code that will enable emacs to determine which tags
> > file to use based on the tree i'm currently using?  For example, if
> > I'm in foo1/bar, I would be using the tags file in foo1/tags, not foo0/
> > tags.  Is there code to dynamically determine that?
> 
> Is it enough to make tags-file-name a buffer local variable, set
> appropriately for each file?  If so:
> 
> (defun set-local-tags-file-name ()
>    (when (file-exists-p "tags")
>      (set (make-local-variable 'tags-file-name)
>        (expand-file-name "tags"))))
> 
> (add-hook 'find-file-hook 'set-local-tags-file-name)
> 
> -- 
> Kevin Rodgers
> Denver, Colorado, USA
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 9
> Date: Mon, 25 Feb 2008 21:14:45 -0700
> From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
> Subject: Re: Testing that a font is installed
> To: help-gnu-emacs@gnu.org
> Message-ID: <fq03mv$vge$1@ger.gmane.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Sbastien Vauban wrote:
> > Could someone tell me which function I could use to test (under
> > Ubuntu or under Windows) that a font is installed?
> > 
> > For example, I would like to test, in my `.emacs', if "Consolas"
> > has been added to my system.
> 
> (x-family-fonts "Consolas")
> 
> -- 
> Kevin Rodgers
> Denver, Colorado, USA
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 10
> Date: Mon, 25 Feb 2008 21:22:14 -0700
> From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
> Subject: Re: copy visible text with some lines hidden with hide-lines
> To: help-gnu-emacs@gnu.org
> Message-ID: <fq0450$vge$2@ger.gmane.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Rupert Swarbrick wrote:
> > On Thu, 21 Feb 2008 16:46:20 -0800, jdzhang wrote:
> > 
> >> I need looking at large (10s of MB) log files regularly. I use hide-
> >> lines to filter out the lines I don't care. However, I was able to
> >> figure out how to copy only the text being displayed. Any suggestions
> >> are welcome.
> >>
> >> Thanks.
> >>
> >> Jason Zhang
> > 
> > One thing I've done in the past was to use C-M-! and run a grep command 
> > which will give me the lines I want (and not too much cruft). Then you 
> > get a temporary buffer, with which you can't accidentally blat your log 
> > file by saving (so you needn't be scared of deleting lots more stuff) and 
> > which is hopefully small enough the Emacs won't get upset about buffer 
> > size.
> 
> I think you meant `M-!'.  Have you tried `M-x occur'?
> 
> > If it's a regular job, I suspect one could write a short elisp function 
> > to get the relevant bits in this way, and maybe rename the buffer to 
> > something more informative than the standard thing with ** in it.
> > 
> > Rupert
> > 
> 
> 
> -- 
> Kevin Rodgers
> Denver, Colorado, USA
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 11
> Date: Tue, 26 Feb 2008 12:05:03 +0800
> From: anhnmncb <anhnmncb@gmail.com>
> Subject: Re: emacs could not show this symbol.
> To: help-gnu-emacs@gnu.org
> Message-ID: <86y798s6q8.fsf@freebsd.hasee.cpu>
> Content-Type: text/plain; charset=us-ascii
> 
> Sorry, I forgot to give my OS and emacs info:
> OS: freebsd_stable7
> emacs: 23.0.60.2, yesterdaya cvsed from trunk. font-backend has been enabled.
> -- 
> Regards,
> 
>   anhnmncb
>  gpg key: 44A31344
> 
> 
> ------------------------------
> 
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> 
> 
> End of help-gnu-emacs Digest, Vol 63, Issue 85
> **********************************************

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]