[Foxet] typescript definitions
Adam Lindsay
atl at comp.lancs.ac.uk
Thu Dec 23 18:32:10 CET 2004
Hans Hagen said this at Thu, 23 Dec 2004 17:39:12 +0100:
>> ...but I'd like to get rid of the class parameter, as, for most
>> everyone's purposes, it adds no information. I considered and rejected
>> \mapXMLvalue, because it's from a different attribute.
>
>hm, actually mapping is a fast and effient way to achieve this
okay...
I have no idea how it works, then. I'll try to work through it.
Thanks so much for this!
>> ConTeXt's XML mappings are new to me, so I'm clearly overlooking
>> something. Anyone have any advice?
>
>\usemodule[fx]
>
>\starttext
>
>\mapXMLvalue {fox:dtf} {serif} {rm}
>\mapXMLvalue {fox:dtf} {sans} {ss}
>\mapXMLvalue {fox:dtf} {mono} {tt}
>\mapXMLvalue {fox:dtf} {math} {mm}
>
>\defineXMLcommand
> [define:typeface] [fox]
> [label=default, class=rm, family=serif, name=times,
> size=default, rscale=1, encoding=\defaultencoding]
> {\initializefox
> \expanded{\definetypeface
> [\foxlabel]
> [\XMLval{fox:dtf}{\XMLop\foxclass}{\XMLop\foxclass}]
Okay, I'll admit that here it makes no sense to me. I'm guessing that
fox:dtf is the namespace for these mappings, but I don't see how "serif"
or "sans" (contained in \foxfamily) gets input into that mapping!
>Do you collect these code snippet somewhere?
I am.
I'm really close to completing a little module that extends ContML's
structural markup for the purpose of handling exports from a very nice
outliner[1]. It's a nice author's tool in its current form, and getting
quick ConTeXt markup is about as easy as an XSLT script (which has been
getting most of my attention).
The attached t-oo seems to be all I need for those formats so far. Early
days, though.
>BTW, instead of \foxarguments, just add the encoding, rscale and handling
>(else
>you quickly run out of hashspace)
Okay, done.
Thanks again. I still don't get the mapping, though!
[1] <http://www.omnigroup.com/applications/omnioutliner/beta/>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl at comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/x-tex
Size: 4836 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/foxet/attachments/20041223/030c5f82/attachment-0001.tex
More information about the Foxet
mailing list