* Re[2]: How to define complex descriptions?
[not found] <20010713121237.317%65696@smtp.puretec.de>
@ 2001-07-13 12:17 ` Giuseppe Bilotta
0 siblings, 0 replies; 2+ messages in thread
From: Giuseppe Bilotta @ 2001-07-13 12:17 UTC (permalink / raw)
Cc: ntg-context
Friday, July 13, 2001 Henning Hraban Ramm wrote:
HHR> Heigh ho, Guiseppe!
(Giuseppe is the name)
HHR> Sorry, that I can't help you with your problem, but I'm
HHR> interested in the same solution, too. With my ears the whole
HHR> thing sounds like a XML task, and you're lucky: ConTeXt is
HHR> able to process XML directly. (But don't ask me.)
Yes, that was my thought too. I guess I'll have to study the
feature more deeply. Especially the integration between XML and
TeX documents.
Maybe studying XML in ConTeXt will give me ideas on how things are
manageable ...
HHR> Some time ago I tried to write a Midgard conclusion manual (never got it
HHR> completed)... My main problems were huge tables (spells).
Well, then I hope to be able to have it up and running, so you can
complete your manual! ;-)
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 2+ messages in thread
* How to define complex descriptions?
@ 2001-07-12 20:51 Giuseppe Bilotta
2001-07-15 22:21 ` Giuseppe Bilotta
0 siblings, 1 reply; 2+ messages in thread
From: Giuseppe Bilotta @ 2001-07-12 20:51 UTC (permalink / raw)
Well, I have this enhancements request, and it's about
descriptions. Precisely, I am thinking of descriptions with
attributes. It should then be possible to list the descriptions by
attribute. An example will probably show what I mean.
For those in Role-Playing Game the best examples are "spells".
When describing a spell, you will need:
Spell name, Class, Level, Sphere,
Range, Components, Duration, Casting Time
Area, Save, Description
It should then be possible to say
=====================
\definecomplexdescription[spell][spells]%
[class,level,sphere,range,comp,duration,time,area,save]
\spell[detectmagic][class=Cleric,level=1,sphere=Divination,range=Touch,
comp={V,S},duration={1 round/level},time={1 round},
area={1 creature},save=None]{Detect magic}
Description of this spell, and all the info we want to put
here, just like a standard description.
=====================
and there should be a way to set up the way this is typeset. We
could even have it with long and short descriptions ({Detect
magic}{short, one par desc}{long, multipar desc}), and the reuse
them ... ?
Typesetting could be defined through templates:
=====================
\startspelltemplate[longspell]
{\bf <name>} ({\it <sphere>})
{\bf Class:} <class>
{\bf Level:} <level>
{\bf Sphere:} <sphere>
{\bf Range:} <range>
{\bf Components:} <comp>
{\bf Duration:} <duration>
{\bf Casting Time:} <time>
{\bf Area Affected:} <area>
{\bf Save:} <save>
\begingroup
<longdesc>
\endgroup
\stopspelltemplate
\usespelltemplate[longspell]
\usespell[detectmagic] % or any other
% appropriate name
% for the command
=====================
Note how a similar approach (template) could be used, e.g., for
epigraphs. Don't know yet how to insert conditional printout (that
is, what to do when one attribute is not defined). Maybe pictures
and all the stuff that may be accessible through external
databases could/should make use of the same code?
It should also be possible to say
\completelistofspells[criterium=bylevel]
or
\completelistofspells[criterium={byclass,bylevel}]
and have appropriate lists be automatically created (with setups to
specify how much information should be put in the lists).
Is this possible (yet)? Is it feasible? Ideas? Comments?
Shall I work on it? Do you think it will be hard to implement?
Side question: is it possible to have XML and TeX intermixed?
(precisely, XML parts in a TeX file)
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-16 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20010713121237.317%65696@smtp.puretec.de>
2001-07-13 12:17 ` Re[2]: How to define complex descriptions? Giuseppe Bilotta
2001-07-12 20:51 Giuseppe Bilotta
2001-07-15 22:21 ` Giuseppe Bilotta
2001-07-16 16:48 ` Re[2]: " Giuseppe Bilotta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).