From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Rankin Newsgroups: gmane.emacs.help Subject: Looking for good element parser Date: Mon, 17 Nov 2014 15:44:14 +1000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416207490 32525 80.91.229.3 (17 Nov 2014 06:58:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 06:58:10 +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 07:58:05 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 1XqGGC-0006SL-Qf for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 07:58:04 +0100 Original-Received: from localhost ([::1]:46436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqGGC-0008Kw-Gf for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 01:58:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqF70-000504-Ko for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 00:44:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqF6v-0006hn-9J for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 00:44:30 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:48200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqF6v-0006hX-1w for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 00:44:25 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C3DF62092A; Mon, 17 Nov 2014 00:44:21 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 17 Nov 2014 00:44:21 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=tilk.co; h= x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=lXGaTENJoJ+bfCo3NSqhy5LcpkU=; b=YYn9 jXZ8nh1EQooIBhNg7PpvYiIzAI/RX2161BlfzzGxNBSRZ6TNNLbThDW/81Io6Xzd We9mOvX7N4rpKQk0by2F38YXDISYwjcFqd4j74FXejjy3fU6IYALBMa9CIWjWsH2 hXUUKujJqUmhWETeL2pGNw9Z3A7eIbK2fFcYNAg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=lXGaTENJoJ+ bfCo3NSqhy5LcpkU=; b=slnq/uMiCJDyl/B21vpoDmyjn5f2xDaEp59nnv+ALWz +fy7NfDwe+NlUvVizNtOVJOWy0vFnMnq3r0taS3yZAmToEAkP1W64u0S8knKnK/e FDvzyEPGPX7B0ZDDLvJPVH6ilJvaRS0W8z0sAl46FwWU/QIsXofc42PchciufrG0 = X-Sasl-enc: 3fgFrKmdyywKcXhRF3SZGRSBsCan9ABeVcnjqT2+8rXN 1416203060 Original-Received: from Paul-Rankins-MacBook-Pro.local (unknown [202.0.190.43]) by mail.messagingengine.com (Postfix) with ESMTPA id 980CD68016C for ; Mon, 17 Nov 2014 00:44:20 -0500 (EST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.26 X-Mailman-Approved-At: Mon, 17 Nov 2014 01:57:53 -0500 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:100983 Archived-At: 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... Thanks :) -- Paul W. Rankin http://www.paulwrankin.com