From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Looking for good element parser Date: Mon, 17 Nov 2014 15:26:34 +0800 Message-ID: <87y4raxp79.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416208911 21185 80.91.229.3 (17 Nov 2014 07:21:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 07:21:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 08:21:41 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XqGd2-0006vL-Dd for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 08:21:40 +0100 Original-Received: from localhost ([::1]:46491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqGd1-0000Tw-W3 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 02:21:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqGcm-0000Tf-CT for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 02:21:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqGcg-0007r9-4O for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 02:21:24 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:38707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqGcf-0007r5-UJ for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 02:21:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XqGce-0006mr-SK for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 08:21:16 +0100 Original-Received: from 221.218.160.248 ([221.218.160.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Nov 2014 08:21:16 +0100 Original-Received: from eric by 221.218.160.248 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Nov 2014 08:21:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.218.160.248 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:lb68ARfJZbw5NyATbFFiefBX51M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100984 Archived-At: Paul Rankin writes: > Hello, > > I maintain a package that exports the Fountain screenplay markup to > HTML. Currently it uses text-properties set with font-lock to figure out > what elements are what, but I think this is perhaps not the best > approach. > > I've been looking at org-element.el but it's a little overwhelming for > my Jedi skills. Can anyone point me in the direction of a good text > element parser that's maybe a little simpler than org-element.el? > > Or, failing that, should I just use `while' through the buffer doing a > `cond' on every element? Seems like overkill... The Org export routine is only suited to exporting from an Org file to something else, ie you'd be more likely to write your screenplay in Org format, and then export it to Fountain markup. So that's probably not what you're looking for. If you give a little sample of what Fountain markup looks like, you'll probably get better responses... Yours, Eric