From shae@ScannedInAvian.com Thu Jun 20 10:49:16 2002 Received: with ECARTIS (v1.0.0; list lojban-list); Thu, 20 Jun 2002 10:49:16 -0700 (PDT) Received: from [194.251.242.201] (helo=fep06.tmt.tele.fi) by chain.digitalkingdom.org with esmtp (Exim 3.35 #1 (Debian)) id 17L63W-0003w9-00 for ; Thu, 20 Jun 2002 10:49:15 -0700 Received: from raven ([194.251.171.49]) by fep06.tmt.tele.fi (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with ESMTP id <20020620174828.ADI3204.fep06.tmt.tele.fi@raven> for ; Thu, 20 Jun 2002 20:48:28 +0300 Cc: lojban-list Subject: Re: [lojban] How to make best use of jbofi'e? References: From: Shae Matijs Erisson Date: 20 Jun 2002 20:47:38 +0300 In-Reply-To: Message-ID: <87it4dsuyt.fsf@webwitches.com> Lines: 42 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-archive-position: 39 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: shae@ScannedInAvian.com Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list And Rosta writes: > Bearing in mind that I've not used or downloaded it -- and do tell me > if I'm talking out my arse here -- I'd like to ask if there are any clever > ways of using it in a Windows invironment, or whether one has to > create a text file and run jbofi'e on it -- which is something one > probably wouldn't bother to do for, say, an email message with > one sentence of Lojban in it. I primarily use a lightly modified elisp defun that runs jbofi'e on any selected region, though I have another version that uses the rest of the line instead. These started with the file "emacs_functions" that comes with the debian jbofi'e package and they require emacs of course: ;;;;;;;;; lojban defuns (defun lojban-parse () "" (interactive) (shell-command-on-region (region-beginning) (region-end) "jbofihe -x -b")) (defun lojban-fgrep (regexp) "fgrep lojban-common for a word" (interactive "sfgrep pattern: ") (grep (concat "fgrep -h \"" regexp "\" /usr/share/lojban/*"))) (global-set-key [(f9)] 'lojban-fgrep) (global-set-key [(f11)] 'lojban-parse) ; end lojban stuff The lojban-fgrep defun searches all of the files in the lojban-common debian package for whatever regexp you put in. Since I also use XEmacs for my irc client, these are very useful on the #lojban channel on irc.openprojects.net. Assuming you already know how to use emacs, this will all work equally well on windows with minor modifications. -- Shae Matijs Erisson - http://www.webwitches.com/~shae/ shapr: I think you *are* a purist :) shapr: it's just that you're morally against unstable software, instead of morally against MS, or non-free software, or whatnot.