[Tshwanelex-l] Adding new formatting markup characters

David Joffe david.joffe at tshwanedje.com
Mon Jan 7 21:58:05 EST 2013

Hmm, if it's 'acceptable' for the markup char to just do nothing and 
disappear in TLex, i.e. if you can live with that, then I wonder if 
an 'entity' wouldn't do the trick instead, e.g. add an entity (in 
the DTD editor) "&p;" and define its expansion text as just nothing, 
an empty string. Then your scripts could perhaps look for "&p;" 
instead of "%p", but TLex should replace the entity with nothing in 
the output.

If it needs to use a different font in TLex, that could be a bit 
more complex, as it implies probably associating an actual 'style' 
(like in the Styles system) somewhere with it. (It's not entirely 
trivial to add new markup in the code, as the markup characters need 
to be specially handled by several parts of the code, e.g. 
auto-sorting, error checks, highlighting, and associating a font 
implies a UI for editing the style; I'll have to think about if 
there are some ways to do that that are not too complex.)

 - David

On 7 Jan 2013 at 18:13, James Crippen wrote:

From:           	James Crippen <jcrippen at gmail.com>
Date sent:      	Mon, 7 Jan 2013 18:13:38 -0800
To:             	maxwell <maxwell at umiacs.umd.edu>
Copies to:      	TshwaneLex-L <tshwanelex-l at mailman.yale.edu>
Subject:        	Re: [Tshwanelex-l] Adding new formatting markup 

> On Wed, Jan 2, 2013 at 7:48 AM, maxwell <maxwell at umiacs.umd.edu> wrote:
> > I somehow missed the original posting on this, but: why not use
> > Unicode, XeLaTeX, and a font that handles both standard ASCII/Latin
> > script and IPA?  Like SIL Charis.  Then there'd be no need for this
> > inline markup.
> All the text is already Unicode, that’s not a problem. The font I’m
> using for the body text actually does support IPA, it’s just that I
> don’t entirely like its appearance. So I want to switch it out for one
> I like. There’s no problem in XeLaTeX for doing this, it’s just in the
> TLex UI (and the default HTML) where the %p is still present. In fact,
> in the TLex UI I use the same font for IPA stuff and for other text.
> So my desire is just for %p to do nothing, just to disappear.
> _______________________________________________
> Tshwanelex-l mailing list
> Tshwanelex-l at mailman.yale.edu
> http://mailman.yale.edu/mailman/listinfo/tshwanelex-l

More information about the Tshwanelex-l mailing list