From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Olson Subject: Re: [Emacs-orgmode] Interaction of org-mode and Muse Date: Thu, 27 Apr 2006 08:56:13 -0400 Message-ID: <87u08fnpn6.fsf@tuxtanker.mwolson.org> References: <8ad6e8e719e192f5101f6b5f2b9d651b@science.uva.nl> <87k69c6qiu.fsf_-_@tuxtanker.mwolson.org> <6d317e262aa13872492a4f94066f2ddc@science.uva.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1362834299==" Return-path: In-Reply-To: <6d317e262aa13872492a4f94066f2ddc@science.uva.nl> (Carsten Dominik's message of "Thu, 27 Apr 2006 09:31:01 +0200") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-wiki-discuss-bounces+gewg-emacs-wiki-discuss=m.gmane.org@nongnu.org Errors-To: emacs-wiki-discuss-bounces+gewg-emacs-wiki-discuss=m.gmane.org@nongnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org, emacs-wiki-discuss@nongnu.org List-Id: emacs-orgmode.gnu.org --===============1362834299== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Carsten Dominik writes: > Besides the obvious interaction, using the Muse engine to produce > other export formats, can you think of more ways to interact? Organization of work into publishable projects comes to mind. One nice feature of Muse is that you can specify the major mode to call on files inside of a project. >> One of the plans for the next release of Muse + 1 (3.04) is to >> support publishing documents that use other markup syntaxes, such >> as Markdown and reSt. Perhaps org-mode syntax could be supported >> as well. > > I have actually been thinking about an org-to-muse converter as a > possibility for easy expansion to many more export formats. So I > have a number of ideas about what would be needed and where the > difficulties lie. A short appetizer: > > - Headline detection should be trivial, however > - Org-mode uses (at least: can use) many more levels than the 4 > available in Muse now. The Org-mode exporters just switch to > itemized lists at some headline level. Muse can publish headings beyond the 3rd level now. The only requirement for the built-in heading publishing function is that either: 1. The same markup is used for each level beyond the 3rd, or 2. The markup for different levels varies only by the number of the level. Even if none of these conditions are met, it's easy to tell Muse to use a different (custom) function for publishing headings. I do something like this with Planner headings, since they have level 1 =3D=3D

, and use some specialized
stuff. > - Org-mode allows plain lists (itemize, bullet, numbered) of > arbitrary depth and uses indentation to see the end of items. > Muse, if I remember correctly, has one level of lists and is > therefore very relaxed about indentation in lists Muse now supports different levels of lists in its development version, and that aspect is very stable (if undocumented). Levels are based on initial indentation. > - Apart from plain lists, indentation is not syntactically significant > in Org-mode, it is more visual sugar to make outline easily readable. > Muse uses indentation for syntax, to quote text, for example. > - Links are similar, but not identical. > - Org-mode table lines also start with "|". Table headlines are > implicit, before the first horizontal line in the table. No > footer lines. > - etc..... This will indeed involve some fine-tuning of the rules. It should be feasible though. The tricky thing will be to make these rules project-dependent, so that people have the option of having two projects with different markup syntaxes. One way of accomplishing this might be to make the regexps in most publishing rules to be variables, so that buffer-local values for them can be set. =2D-=20 Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.n= et /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEUL9x+1Ho2POo0xkRAseVAJ47t2kywuybcYD5ihcaRDIZG66ydwCbBpS3 k4feQjwdL9rm8o4Rxj+4whk= =XZb2 -----END PGP SIGNATURE----- --=-=-=-- --===============1362834299== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ emacs-wiki-discuss mailing list emacs-wiki-discuss@nongnu.org http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss --===============1362834299==--