Re: [NTG-context] customizing headers/footers first page

2005-02-25 Thread Hans Hagen
Paul Tremblay wrote:
On Thu, Feb 24, 2005 at 11:48:32AM -0500, Steve Grathwohl wrote:
How about
\definetext[chapterstart][header][First Header]
\setuphead[chapter][header=chapterstart]
for starters?
Steve

Thanks. Are there any other location keywords besides chapterstart? 

%???
\definetext[chapterlast][footer][last footer]
\setuphead[chapter][footer=chapterlast]
you can have any keyword you want; it's just a reference to what you define and 
recall later

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pdf-mode

2005-02-25 Thread Hans Hagen
Adam Lindsay wrote:
h h extern said this at Thu, 24 Feb 2005 23:17:41 +0100:

I'll add \jobsuffix as systemmode:
\startmode[*pdf] ...
\startmode[*dvi] ...
be aware of the fact that this is only true when a driver is loaded

I never was sure of that, by the way:
the true output of a xetex job is .xdv
It's an opaque format that gets transformed into .pdf after texexec's
last run. 

Is the real jobsuffix (as you define it) pdf or xdv?
interesting point, i'd say pdf since that's the final format, and in this case 
the jobsuffix is an indication of final functionality

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setting up even and odd pages

2005-02-25 Thread Hans Hagen
Paul Tremblay wrote:
I'm confused on setting up even and odd pages. If I wanted to set up a
chapter with the first page one way, and even and odd pages another way,
how do I do this? Say the first page must start on an odd page. The
right margin will be 1 inch. Now the each succeeding left (or
even-numbered) page will have a left margin of 1 inch. The right margin
(the inner part if it were in a book) should be 1/2 inch. For the right
(odd-numbered page), the left margin (the inner part if it were a book)
should be 1/2 inch, while the right, outer margin should be 1 inch.
There are several methods, like:
\setuplayout[left] []
\setuplayout[right][]
normally, if your layout is mirrored, setting
\setuppagenumbering[alternative=doublesided]
\setuplayout[...]
will swap dimensions
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] languages

2005-02-25 Thread Hans Hagen
Mojca Miklavec wrote:
How can I try it (hyphenation)? I did
\enableregime[utf]
\mainlanguage[sl]
\starttext
elezniar
\showhyphens{elezniar}
\showhyphens{zeleznicar}
\showhyphens{mojca pokrajculja}
\stoptext
can you send me a zip with that test file? my mailer cq. cut/paste messes up the 
encoding

keep in mind that utf is an input encoding regime, while hyphenation is based on 
font encodings; in principle each font encoding that has all chars needed for a 
language can be used, but the patterns need to be loaded

also, the name of the pattern files for slovenian have changes (si vs sl), which 
is one of the reasons for context going to ship its own pattern files

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt and DocBook - beginner's questions

2005-02-25 Thread Radoslaw Moszczynski
Hello everyone,

I am new to ConTeXt (I've been tempted to try it out because of a message by
Sebastian Rahtz, posted on TEI-L). I admit that so far I have been
able to get through only the main manual, but I am very curious about
some things and therefore I would really appreciate it if you could
answer my questions:

1. I am interested in authoring in XML and than typesetting in
ConTeXt. Are there any preferences towards using some particular
markup language for typesetting in ConTeXt? Is e.g. using DocBook more
preferable that using TEI--from the point of view of typesetting in
ConTeXt, of course. 

2. Are there any generic tools available (stylesheets etc.) for typesetting
DocBook/TEI or does one have to come up with his own stylesheets? I
assume that the latter is necessary if one wants to get exactly the
layout he wants, but maybe there are some basic stylesheets that one
can use as a base for his own ones?

3. Also, I have a more general question -- for some (short) period of
time I have been reading both TEI-L and NTG-CONTEXT, all the issues
related to typesetting documents marked up in XML are very
confusing. Do you know any good manual/tutorial concerned with these
issues that I could use a starting point for my studies on the
subject? 

Thank you in advance-

-Radek Moszczynski
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Latin5 regime

2005-02-25 Thread luigi.scarso
I need for my job a regime for Latin5 languages (spec. Turkish).
I have made two files regi-lt5.tex  and enco-lt5.tex
that seem to do a good work.
Any comment is useful.
luigi
---begin 
regi-lt5.tex---

%D \module
%D   [   file=regi-lt5,
%Dversion=2005.0.0,
%D  title=\CONTEXT\ Encoding Macros,
%D   subtitle=TEST fot latin5,
%D author=Luigi Scarso,
%D   date=\currentdate,
%D  copyright=PRAGMA-ADE]
%C
%C This module is NOT part of the \CONTEXT\ macro||package.
%C rif:
%C www.ecma-internaltional.org/pubblications/standards/Ecma-128.htm
%C This module is NOT part of the \CONTEXT\ macro||package.
\startregime [latin5]
%% \defineactivetoken 32 {} % SPACE
%% \defineactivetoken 33 {} % EXCLAMATION MARK
%% \defineactivetoken 34 {} % QUOTATION MARK
%% \defineactivetoken 35 {} % NUMBER SIGN
%% \defineactivetoken 36 {} % DOLLAR SIGN
%% \defineactivetoken 37 {} % PERCENT SIGN
%% \defineactivetoken 38 {} % AMPERSAND
%% \defineactivetoken 39 {} % APOSTROPHE
%% \defineactivetoken 40 {} % LEFT PARENTHESIS
%% \defineactivetoken 41 {} % RIGHT PARENTHESIS
%% \defineactivetoken 42 {} % ASTERISK
%% \defineactivetoken 43 {} % PLUS SIGN
%% \defineactivetoken 44 {} % COMMA
%% \defineactivetoken 45 {} % HYPHEN-MINUS
%% \defineactivetoken 46 {} % FULL STOP
%% \defineactivetoken 47 {} % SOLIDUS
%% \defineactivetoken 48 {} % DIGIT ZERO
%% \defineactivetoken 49 {} % DIGIT ONE
%% \defineactivetoken 50 {} % DIGIT TWO
%% \defineactivetoken 51 {} % DIGIT THREE
%% \defineactivetoken 52 {} % DIGIT FOUR
%% \defineactivetoken 53 {} % DIGIT FIVE
%% \defineactivetoken 54 {} % DIGIT SIX
%% \defineactivetoken 55 {} % DIGIT SEVEN
%% \defineactivetoken 56 {} % DIGIT EIGHT
%% \defineactivetoken 57 {} % DIGIT NINE
%% \defineactivetoken 58 {} % COLON
%% \defineactivetoken 59 {} % SEMICOLON
%% \defineactivetoken 60 {} % LESS-THAN SIGN
%% \defineactivetoken 61 {} % EQUALS SIGN
%% \defineactivetoken 62 {} % GREATER-THAN SIGN
%% \defineactivetoken 63 {} % QUESTION MARK
%% \defineactivetoken 64 {} % COMMERCIAL AT
%% \defineactivetoken 65 {} % LATIN CAPITAL LETTER A
%% \defineactivetoken 66 {} % LATIN CAPITAL LETTER B
%% \defineactivetoken 67 {} % LATIN CAPITAL LETTER C
%% \defineactivetoken 68 {} % LATIN CAPITAL LETTER D
%% \defineactivetoken 69 {} % LATIN CAPITAL LETTER E
%% \defineactivetoken 70 {} % LATIN CAPITAL LETTER F
%% \defineactivetoken 71 {} % LATIN CAPITAL LETTER G
%% \defineactivetoken 72 {} % LATIN CAPITAL LETTER H
%% \defineactivetoken 73 {} % LATIN CAPITAL LETTER I
%% \defineactivetoken 74 {} % LATIN CAPITAL LETTER J
%% \defineactivetoken 75 {} % LATIN CAPITAL LETTER K
%% \defineactivetoken 76 {} % LATIN CAPITAL LETTER L
%% \defineactivetoken 77 {} % LATIN CAPITAL LETTER M
%% \defineactivetoken 78 {} % LATIN CAPITAL LETTER N
%% \defineactivetoken 79 {} % LATIN CAPITAL LETTER O
%% \defineactivetoken 80 {} % LATIN CAPITAL LETTER P
%% \defineactivetoken 81 {} % LATIN CAPITAL LETTER Q
%% \defineactivetoken 82 {} % LATIN CAPITAL LETTER R
%% \defineactivetoken 83 {} % LATIN CAPITAL LETTER S
%% \defineactivetoken 84 {} % LATIN CAPITAL LETTER T
%% \defineactivetoken 85 {} % LATIN CAPITAL LETTER U
%% \defineactivetoken 86 {} % LATIN CAPITAL LETTER V
%% \defineactivetoken 87 {} % LATIN CAPITAL LETTER W
%% \defineactivetoken 88 {} % LATIN CAPITAL LETTER X
%% \defineactivetoken 89 {} % LATIN CAPITAL LETTER Y
%% \defineactivetoken 90 {} % LATIN CAPITAL LETTER Z
%% \defineactivetoken 91 {} % LEFT SQUARE BRACKET
%% \defineactivetoken 92 {} % REVERSE SOLIDUS
%% \defineactivetoken 93 {} % RIGHT SQUARE BRACKET
%% \defineactivetoken 94 {} % CIRCUMFLEX ACCENT
%% \defineactivetoken 95 {} % LOW LINE
%% \defineactivetoken 96 {} % GRAVE ACCENT
%% \defineactivetoken 97 {} % LATIN SMALL LETTER A
%% \defineactivetoken 98 {} % LATIN SMALL LETTER B
%% \defineactivetoken 99 {} % LATIN SMALL LETTER C
%% \defineactivetoken 100 {} % LATIN SMALL LETTER D
%% \defineactivetoken 101 {} % LATIN SMALL LETTER E
%% \defineactivetoken 102 {} % LATIN SMALL LETTER F
%% \defineactivetoken 103 {} % LATIN SMALL LETTER G
%% \defineactivetoken 104 {} % LATIN SMALL LETTER H
%% \defineactivetoken 105 {} % LATIN SMALL LETTER I
%% \defineactivetoken 106 {} % LATIN SMALL LETTER J
%% \defineactivetoken 107 {} % LATIN SMALL LETTER K
%% \defineactivetoken 108 {} % LATIN SMALL LETTER L
%% \defineactivetoken 109 {} % LATIN SMALL LETTER M
%% \defineactivetoken 110 {} % LATIN SMALL LETTER N
%% \defineactivetoken 111 {} % LATIN SMALL LETTER O
%% \defineactivetoken 112 {} % LATIN SMALL LETTER P
%% \defineactivetoken 113 {} % LATIN SMALL LETTER Q
%% \defineactivetoken 114 {} % LATIN SMALL LETTER R
%% \defineactivetoken 115 {} % LATIN SMALL LETTER S
%% \defineactivetoken 116 {} % LATIN SMALL LETTER T
%% \defineactivetoken 117 {} % LATIN SMALL LETTER U
%% \defineactivetoken 118 {} % LATIN SMALL LETTER V
%% \defineactivetoken 119 {} % LATIN SMALL LETTER W
%% \defineactivetoken 120 {} % LATIN SMALL 

Re: [NTG-context] Latin5 regime

2005-02-25 Thread Hans Hagen
luigi.scarso wrote:
I need for my job a regime for Latin5 languages (spec. Turkish).
I have made two files regi-lt5.tex  and enco-lt5.tex
that seem to do a good work.
Any comment is useful.
do you also need a real font encoding (i.e. an enc file and a real enco-lt5 
file); this depends on availability of the glyphs you need in other encodings as 
well as hyphenation; [for instance, are all \namedchars you need part of 
texnsnsi and/or ec?]

---begin 
regi-lt5.tex--- 
looks ok to me
enco-lt5.tex--- 

% temporary module, needed for downward compatibility
\input regi-lt5.tex
\enableregime[latin5]
\endinput
this one is not needed
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Latin5 regime

2005-02-25 Thread luigi.scarso
Hans Hagen wrote:
do you also need a real font encoding (i.e. an enc file and a real 
enco-lt5 file); this depends on availability of the glyphs you need in 
other encodings as well as hyphenation; [for instance, are all 
\namedchars you need part of texnsnsi and/or ec?]
I should like to do this by myself:what can I do ?
(I must do this pdf with an Helvetica like fonts (I use
\setupbodyfont[pos,ss,11pt] and an old context distro,
TeXExec 3.0 - ConTeXt / PRAGMA ADE 1997-2002)).
luigi.scarso wrote:
%C This module is NOT part of the \CONTEXT\ macro||package.
%C rif:
%C www.ecma-internaltional.org/pubblications/standards/Ecma-128.htm
%C This module is NOT part of the \CONTEXT\ macro||package.

do you want this module to be part of the distribution? if so I will 
change these lines

Hans
absolutely yes:
I want this module to be part of the distribution.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Gerben Wierda
Would someone be able to take lettrine.sty as an example and produce a 
version that works with ConTeXt (and plain TeX)?

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Hoi Gerben,
Probably, but .. I do not know what it is that lettrine does that
\DroppedCaps does not do. Please do not assume that context users
have any specific knowledge of what latex packages do.
Gerben Wierda wrote:
Would someone be able to take lettrine.sty as an example and produce a 
version that works with ConTeXt (and plain TeX)?

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt and DocBook - beginner's questions

2005-02-25 Thread phthenry
Hi Radoslaw,

I think we are on the same mailing list and got the same message from 
Sebastain. We are discovering ConTeXt both at the same time.

For starters, you can look here:

http://contextgarden.net/XML

http://www.pragma-ade.com/show-mag-9.htm

As the author of the second page concedes, you need somewhat complicated 
syntax to directly map XML to ConTeXt. Many of the examples mix XML and 
non XML. 

There is a solution that I personally think is simpler, TeXML. In this 
method, you convert TEI (or other forms of XML) to TeXML, a specialized 
form of XML. You then run the TeXML processor, which converts this to a 
plain old ConTeXt document. The advantage of this method is that you are 
converting from an XML tree to an XML tree, which is always easier than 
converting from XML to text. 

Have a look at:

http://sourceforge.net/forum/forum.php?thread_id=1232812forum_id=352892

http://sourceforge.net/forum/forum.php?forum_id=427786

and of course

http://getfo.sourceforge.net/texml/index.html

I am working on a document that explains how to convert XML to ConTeXt. 
The document will explain how to one would do something in FO and then 
how you would do the same in ConTeXt. It will be a rough document 
because I am just learning myself, but it will be a start.

Paul

-Original Message-
From: Radoslaw Moszczynski [EMAIL PROTECTED]
To: ntg-context@ntg.nl
Date: Fri, 25 Feb 2005 11:34:41 +0100
Subject: [NTG-context] ConTeXt and DocBook - beginner's questions

 Hello everyone,
 
 I am new to ConTeXt (I've been tempted to try it out because of a
 message by
 Sebastian Rahtz, posted on TEI-L). I admit that so far I have been
 able to get through only the main manual, but I am very curious about
 some things and therefore I would really appreciate it if you could
 answer my questions:
 
 1. I am interested in authoring in XML and than typesetting in
 ConTeXt. Are there any preferences towards using some particular
 markup language for typesetting in ConTeXt? Is e.g. using DocBook more
 preferable that using TEI--from the point of view of typesetting in
 ConTeXt, of course. 
 
 2. Are there any generic tools available (stylesheets etc.) for
 typesetting
 DocBook/TEI or does one have to come up with his own stylesheets? I
 assume that the latter is necessary if one wants to get exactly the
 layout he wants, but maybe there are some basic stylesheets that one
 can use as a base for his own ones?
 
 3. Also, I have a more general question -- for some (short) period of
 time I have been reading both TEI-L and NTG-CONTEXT, all the issues
 related to typesetting documents marked up in XML are very
 confusing. Do you know any good manual/tutorial concerned with these
 issues that I could use a starting point for my studies on the
 subject? 
 
 Thank you in advance-
 
   -Radek Moszczynski
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt and DocBook - beginner's questions

2005-02-25 Thread Adam Lindsay
[EMAIL PROTECTED] said this at Fri, 25 Feb 2005 09:17:29 -0500:

As the author of the second page concedes, you need somewhat complicated 
syntax to directly map XML to ConTeXt. Many of the examples mix XML and 
non XML. 

You guys are aware of foXet, right? That's ConTeXt's XSL-FO processor module.

As part of writing that module, Hans really streamlined the XML mapping
to TeX commands. As a result, I'm becoming more and more of a fan of a
streamlined XML markup that works in parallel with the ConTeXt idiom.

Hans began that with ContML, a simplified XML structure for basic
documents, mirroring familiar ConTeXt commands (take a look at the x-
contml.tex source). He enabled a lot more with the tricks features in
This Way #9 (the magazine link).

I extended ContML a little more using those foXet tricks with my t-oo-03
module. It was primarily intended to process XSLT-mediated output from a
GUI Outline editor, but the underlying format seems like a good jumping-
off point for other formats as well.

http://oo2contml.sourceforge.net/
http://prdownloads.sourceforge.net/oo2contml/oo2contml-source.zip

(I didn't put too much effort into making my code readable, but I hope it
gives an idea of how easily XML parameters can be changed into ConTeXt
parameters. I can provide sample documents to interested people to show
the general XML format.)
I plan on documenting the ConTeXt/XML side (rather than the user side) of
it a bit more, but I'm a bit over-committed, at the moment!

There is a solution that I personally think is simpler, TeXML. In this 
method, you convert TEI (or other forms of XML) to TeXML, a specialized 
form of XML. You then run the TeXML processor, which converts this to a 
plain old ConTeXt document. The advantage of this method is that you are 
converting from an XML tree to an XML tree, which is always easier than 
converting from XML to text. 

That's nice. I wasn't aware of that project before. The format looks
superficially similar to Hans's foXet extensions.

I am working on a document that explains how to convert XML to ConTeXt. 
The document will explain how to one would do something in FO and then 
how you would do the same in ConTeXt. It will be a rough document 
because I am just learning myself, but it will be a start.

Oh, nice... I look forward to seeing that. Sounds like a good My Way
candidate at some point.

adam


-Original Message-
From: Radoslaw Moszczynski [EMAIL PROTECTED]
To: ntg-context@ntg.nl
Date: Fri, 25 Feb 2005 11:34:41 +0100
Subject: [NTG-context] ConTeXt and DocBook - beginner's questions

 Hello everyone,
 
 I am new to ConTeXt (I've been tempted to try it out because of a
 message by
 Sebastian Rahtz, posted on TEI-L). I admit that so far I have been
 able to get through only the main manual, but I am very curious about
 some things and therefore I would really appreciate it if you could
 answer my questions:
 
 1. I am interested in authoring in XML and than typesetting in
 ConTeXt. Are there any preferences towards using some particular
 markup language for typesetting in ConTeXt? Is e.g. using DocBook more
 preferable that using TEI--from the point of view of typesetting in
 ConTeXt, of course. 
 
 2. Are there any generic tools available (stylesheets etc.) for
 typesetting
 DocBook/TEI or does one have to come up with his own stylesheets? I
 assume that the latter is necessary if one wants to get exactly the
 layout he wants, but maybe there are some basic stylesheets that one
 can use as a base for his own ones?
 
 3. Also, I have a more general question -- for some (short) period of
 time I have been reading both TEI-L and NTG-CONTEXT, all the issues
 related to typesetting documents marked up in XML are very
 confusing. Do you know any good manual/tutorial concerned with these
 issues that I could use a starting point for my studies on the
 subject? 
 
 Thank you in advance-
 
  -Radek Moszczynski
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Python,swig and pdftex ?

2005-02-25 Thread luigi.scarso
I'm try do make something useful with Python and pdftex using swig.
Any suggestions ?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt and DocBook - beginner's questions

2005-02-25 Thread phthenry


-Original Message-
From: Adam Lindsay [EMAIL PROTECTED]
To: mailing list for ConTeXt users ntg-context@ntg.nl, 
[EMAIL PROTECTED], Radoslaw  Moszczynski [EMAIL PROTECTED]
Date: Fri, 25 Feb 2005 14:48:36 +
Subject: Re: [NTG-context] ConTeXt and DocBook - beginner's questions

 [EMAIL PROTECTED] said this at Fri, 25 Feb 2005 09:17:29 -0500:
 
 As the author of the second page concedes, you need somewhat
 complicated 
 syntax to directly map XML to ConTeXt. Many of the examples mix XML
 and 
 non XML. 
 
 You guys are aware of foXet, right? That's ConTeXt's XSL-FO processor
 module.
 
 As part of writing that module, Hans really streamlined the XML mapping
 to TeX commands. As a result, I'm becoming more and more of a fan of a
 streamlined XML markup that works in parallel with the ConTeXt idiom.
 
 Hans began that with ContML, a simplified XML structure for basic
 documents, mirroring familiar ConTeXt commands (take a look at the x-
 contml.tex source). He enabled a lot more with the tricks features in
 This Way #9 (the magazine link).

Sorry to be dense, but I can't find this. Could you give me a link? It 
looks like ContML is just for math?



 
 I extended ContML a little more using those foXet tricks with my
 t-oo-03
 module. It was primarily intended to process XSLT-mediated output from
 a
 GUI Outline editor, but the underlying format seems like a good
 jumping-
 off point for other formats as well.
 
 http://oo2contml.sourceforge.net/
 http://prdownloads.sourceforge.net/oo2contml/oo2contml-source.zip
 
 (I didn't put too much effort into making my code readable, but I hope
 it
 gives an idea of how easily XML parameters can be changed into ConTeXt
 parameters. I can provide sample documents to interested people to show
 the general XML format.)
 I plan on documenting the ConTeXt/XML side (rather than the user side)
 of
 it a bit more, but I'm a bit over-committed, at the moment!
 
 There is a solution that I personally think is simpler, TeXML. In this
 method, you convert TEI (or other forms of XML) to TeXML, a
 specialized 
 form of XML. You then run the TeXML processor, which converts this to
 a 
 plain old ConTeXt document. The advantage of this method is that you
 are 
 converting from an XML tree to an XML tree, which is always easier
 than 
 converting from XML to text. 
 
 That's nice. I wasn't aware of that project before. The format looks
 superficially similar to Hans's foXet extensions.
 
 I am working on a document that explains how to convert XML to
 ConTeXt. 
 The document will explain how to one would do something in FO and then
 how you would do the same in ConTeXt. It will be a rough document 
 because I am just learning myself, but it will be a start.
 
 Oh, nice... I look forward to seeing that. Sounds like a good My Way
 candidate at some point.
 
 adam
 
 
 -Original Message-
 From: Radoslaw Moszczynski [EMAIL PROTECTED]
 To: ntg-context@ntg.nl
 Date: Fri, 25 Feb 2005 11:34:41 +0100
 Subject: [NTG-context] ConTeXt and DocBook - beginner's questions
 
  Hello everyone,
  
  I am new to ConTeXt (I've been tempted to try it out because of a
  message by
  Sebastian Rahtz, posted on TEI-L). I admit that so far I have been
  able to get through only the main manual, but I am very curious
 about
  some things and therefore I would really appreciate it if you could
  answer my questions:
  
  1. I am interested in authoring in XML and than typesetting in
  ConTeXt. Are there any preferences towards using some particular
  markup language for typesetting in ConTeXt? Is e.g. using DocBook
 more
  preferable that using TEI--from the point of view of typesetting in
  ConTeXt, of course. 
  
  2. Are there any generic tools available (stylesheets etc.) for
  typesetting
  DocBook/TEI or does one have to come up with his own stylesheets? I
  assume that the latter is necessary if one wants to get exactly the
  layout he wants, but maybe there are some basic stylesheets that one
  can use as a base for his own ones?
  
  3. Also, I have a more general question -- for some (short) period
 of
  time I have been reading both TEI-L and NTG-CONTEXT, all the issues
  related to typesetting documents marked up in XML are very
  confusing. Do you know any good manual/tutorial concerned with these
  issues that I could use a starting point for my studies on the
  subject? 
  
  Thank you in advance-
  
 -Radek Moszczynski
  ___
  ntg-context mailing list
  ntg-context@ntg.nl
  http://www.ntg.nl/mailman/listinfo/ntg-context
  
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 -- 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
  Lancaster University, InfoLab21+44(0)1524/510.514
  Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
 

Re: [NTG-context] ConTeXt and DocBook - beginner's questions

2005-02-25 Thread Adam Lindsay
[EMAIL PROTECTED] said this at Fri, 25 Feb 2005 11:38:27 -0500:

 Hans began that with ContML, a simplified XML structure for basic
 documents, mirroring familiar ConTeXt commands (take a look at the x-
 contml.tex source). He enabled a lot more with the tricks features in
 This Way #9 (the magazine link).

Sorry to be dense, but I can't find this. Could you give me a link? It 
looks like ContML is just for math?

Well, x-contml.tex is in the ConTeXt source tree. (Often we'll talk about
filenames like x-contml, type-exa, and m-layout on the list. They have an
implied .tex extension and are (almost) all found in your updated TeX
tree, in tex/context/base.)

You can have an XML document/fragment like:
context:text
 context:sectionA Sample Document/context:section
 context:include name=knuth type=tex/
 context:subsectionSomething deeper/context:subsection
 context:pSome text with context:ememphasis/context:em and
  context:typesome/context:type other 
  context:bstyle/context:b.
  context:itemize type=n
   context:itemOh look, a list/context:item
   context:itemWith three items, which/context:item
   context:itemHardly seems worth the effort./context:item
  /context:itemize
 /context:p
/context:text


and run it with:
 texexec --pdf --use=contml filename.xml

So ContML is not just about math at all.
For (XML) math, you want to go to the MathML modules, which are in the
xtag-mm* ConTeXt files.

The interesting things come when you use mappings akin to the ones here:
 http://www.pragma-ade.com/show-mag-9.htm
and my stuff that I plugged earlier. Not only can you use XML for
structural markup, but (with a little work) you can use it for simple
style configuration, like this in front of a document similar to the above:

config:setupwhitespace dimension=big/
config:definetypeface name=charter/
config:definetypeface family=sans name=helvetica rscale=0.91/
config:setupbodyfont size=12pt/
config:setuphead label=section style=tfb alternative=inmargin/
config:setuphead label=subsection style=ita alternative=inmargin/
config:setuplayout label=preset-2-2 columns=8/
config:enablelayout label=preset-2-2/
context:articleheader title=On ContML author=Adam T. Lindsay
date=February 25, 2005/

This will look *very* familiar to ConTeXt users, and some of them might
even find this syntax easier to remember than with some of ConTeXt's commands.

One of the key ideas to take away from ConTeXt's XML manual http://
www.pragma-ade.com/show-man-15.htm is that there are *many* different
paths to take when processing XML. You can now take a 100% XML path with
XSL-FO, now, but that misses out on so much of ConTeXt's excellent
capabilities.

Hope that helps,
adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Peter Münster
On Fri, 25 Feb 2005, Taco Hoekwater wrote:

 Probably, but .. I do not know what it is that lettrine does that
 \DroppedCaps does not do.

Hello Taco,
could you please give an example how to do the same with \DroppedCaps, what
is shown on page 30 of http://pmrb.free.fr/work/cours/latex-intro.pdf ?
Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Ah ok, I see. No you cannot do that with DroppedCaps, as is.
Will post something later ...
Taco
Peter Münster wrote:
On Fri, 25 Feb 2005, Taco Hoekwater wrote:

Probably, but .. I do not know what it is that lettrine does that
\DroppedCaps does not do.

Hello Taco,
could you please give an example how to do the same with \DroppedCaps, what
is shown on page 30 of http://pmrb.free.fr/work/cours/latex-intro.pdf ?
Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Mats Broberg
Dear listmembers,

I am not quite yet a ConTeXt user (struggling with the installation),
but having a background as typographer, graphic designer, and printer, I
feel that the lettrine.sty package could serve very well as a model for
something similar in ConTeXt. 

At any rate, in order to produce high quality intitials, a ConTeXt
equivalent should not have any less parameters than lettrine.sty.


To re-cap the parameters in lettrine.sty:

==

- lines=integer sets how many lines the dropped capital will occupy
(default=2);

- lhang=decimal (0  lhang = 1) sets how much of the dropped
capital’s width should hang into the margin (default=0);

- loversize=decimal (-1  loversize = 1) enlarges the dropped
capital’s height: with loversize=0.1 its height is enlarged by 10% so
that it raises above the top paragraph’s line (default=0);

- lraise=decimal does not affect the dropped capital’s height, but
moves it up (if positive), down (if negative); useful with capitals like
J or Q which have a positive depth, (default=0);

- findent=dimen (positive or negative) controls the horizontal gap
between the dropped capital and the indented block of text
(default=0pt);

- nindent=dimen shifts all indented lines, starting from the second
one, horizontally by dimen (this shift is relative to the first line,
default=0.5em);

- slope=dimen can be used with dropped capitals like A or V to add
dimen (positive or negative) to the indentation of each line starting
from the third one (no e
ect if lines=2, default=0pt);

- ante=text can be used to typeset text before the dropped capital
(typical use is for French guillemets starting the paragraph);

- image=true (new to version 1.6) will force \lettrine to replace the
letter normally used as dropped capital by an image in eps format
(latex) or in pdf, jpg, etc. format (pdflatex); this needs the graphicx
package to be loaded in the preamble of course.
\lettrine[image=true]{A}{n exemple} or just \lettrine[image]{A}{n
exemple} will load A.eps or A.pdf instead of letter A. This was
suggested by Bill Jetzer. Redefining \LettrineFont as \LettrineFontEPS
still works for compatibility but is deprecated.

==

Also, sometimes one wants to indent all indented lines to the same
position (instead of intenting the first line less) and this should
ideally be possible too. 

Plus setting a specific color for the initial, but that is handled by
ConTeXt's standard features (I guess).

Best regards,
Mats Broberg

 Ah ok, I see. No you cannot do that with DroppedCaps, as is.
 
 Will post something later ...
 
 Taco
 
 Peter Münster wrote:
  On Fri, 25 Feb 2005, Taco Hoekwater wrote:
  
  
 Probably, but .. I do not know what it is that lettrine does that 
 \DroppedCaps does not do.
  
  
  Hello Taco,
  could you please give an example how to do the same with 
 \DroppedCaps, 
  what is shown on page 30 of 
  http://pmrb.free.fr/work/cours/latex-intro.pdf ? Peter

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Hans Hagen
Mats Broberg wrote:
I am not quite yet a ConTeXt user (struggling with the installation),
but having a background as typographer, graphic designer, and printer, I
feel that the lettrine.sty package could serve very well as a model for
something similar in ConTeXt. 

 ...
basically you want to follow a shape; this is not that hard to implement so i 
can have a look at it; lettrines is then an instance of it

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Hans Hagen wrote:

basically you want to follow a shape; this is not that hard to implement 
so i can have a look at it; lettrines is then an instance of it
Lettrine is easier than that, actually. I thought this would be quite
funny, so here is a brand new module called t-lettri.tex, and an example.
Greetings, Taco



t-lettri.tex
Description: TeX document


drop.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt and DocBook - beginner's questions

2005-02-25 Thread Paul Tremblay
 
 One of the key ideas to take away from ConTeXt's XML manual http://
 www.pragma-ade.com/show-man-15.htm is that there are *many* different
 paths to take when processing XML. 


But this makes me confused. You can have context:text and fx:text.
If I am understanding things correctly, each of these namespaces refers
to a document that already pre-defines the mapping. I could also make up
my own mapping, and use the namespace paul:myElement? Although this
allows each user to create his own XML vocabulary, I would argue that
such an XML vocabulary already exists: FO. The FO XML language is
well-thought out and thorough. I see no sense in developing completely
differnt XML vocabularies as work arounds until fotex is mature enough
to handle the FO vocabulary directly. Creating these workaround
vocabularies adds another layer to processing and seems to add to the
complexity of processing XML. It seems simpler to think in terms of raw
(non XML) ConTeXt. That way, if you have a question about formatting,
you will find the answer relatively easy on the mailing list. 

I hope I am understanding things correctly. I want to develop a sound
XML = ConTeXt strategy, so don't want to overlook any of ConTeXt's
native XML abiblities. 

You can now take a 100% XML path with  XSL-FO, now, but that misses
out on so much of ConTeXt's excellent  capabilities.  

Yes, I completely agree.

Paul



-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] languages

2005-02-25 Thread VnPenguin
On Wed, 23 Feb 2005 18:23:09 +0100, Hans Hagen [EMAIL PROTECTED] wrote:
 Hi,
 
 Attached is an xml file that describes the hyphenation pattern files. I'd
 appreciate checking (some records are incomplete). I'd also like to add (for
 each language) a couple of tricky hyphenatable words [for testing]. Preferable
 in utf-8 encoding. There is room for more comments as well, like: prefered 
 input
 and font encodings etc.
 
 Hans
 

Hi Hans,

Vietnamese lang uses empty hyphenation pattern.

FYI,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread VnPenguin
On Fri, 25 Feb 2005 22:04:11 +0100, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Hans Hagen wrote:
  
  basically you want to follow a shape; this is not that hard to implement
  so i can have a look at it; lettrines is then an instance of it
 
 Lettrine is easier than that, actually. I thought this would be quite
 funny, so here is a brand new module called t-lettri.tex, and an example.
 

Just tried 2 attached files and I see error:
...
system (E-TEX) : [line 2280] \ifcsname 
protect 4 protect 3)
specials: fdf loaded
unprotect 3 protect 3)
specials: fdf,tpd loaded
)
system  : macros of module lettri loaded
(./t-lettri.tex
! Illegal parameter number in definition of \LettrineFontEPS.
to be read again 
   1
l.99 \def\LettrineFontEPS{#1
}{%
?

In the src t-lettri.tex  if I change

\def\LettrineFontEPS{#1}{%

to

\def\LettrineFontEPS#1{%

It works fine ;)

Cheers,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread Taco Hoekwater
Sorrry about that, last-minute change :-)
VnPenguin wrote:
On Fri, 25 Feb 2005 22:04:11 +0100, Taco Hoekwater [EMAIL PROTECTED] wrote:
In the src t-lettri.tex  if I change
\def\LettrineFontEPS{#1}{%
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread David Wooten
Hmm, this is great.
However, I can't seem to get it to accept an image (Image=true or 
Image=yes). Anyone else have some luck?

On Feb 25, 2005, at 2:28 PM, Taco Hoekwater wrote:
Sorrry about that, last-minute change :-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt and DocBook - beginner's questions

2005-02-25 Thread Adam Lindsay
Paul Tremblay said this at Fri, 25 Feb 2005 16:32:40 -0500:

 
 One of the key ideas to take away from ConTeXt's XML manual http://
 www.pragma-ade.com/show-man-15.htm is that there are *many* different
 paths to take when processing XML. 

But this makes me confused.

Sorry, I was writing for a couple different people, and sometimes being
expansive and descriptive (look at all the possibilities!) is less
useful than being prescriptive (thou shalt...), especially if you're a
newcomer wondering about how (one way) to do things.

Chances are, you'll find one or two favoured ways of doing things, and
use that constellation of solutions for your documents.

 You can have context:text and fx:text.

These namespaces contain elements with different levels of abstraction.
ContML is higher-level, more structural, fx (just a demonstration, so
far) was a bit more low-level, somewhere between ConTeXt and FO.

If I am understanding things correctly, each of these namespaces refers
to a document that already pre-defines the mapping. I could also make up
my own mapping, and use the namespace paul:myElement? 

Yes.

Although this
allows each user to create his own XML vocabulary,

This is one of the biggest blessings and curses of XML. Having helped
design an ISO standard using XML, this had an immense effect on what we
did. Yes, it's a standard, but how can we be sure that people don't try
to create documents with other, private elements?

 I would argue that
such an XML vocabulary already exists: FO. The FO XML language is
well-thought out and thorough. I see no sense in developing completely
differnt XML vocabularies as work arounds until fotex is mature enough
to handle the FO vocabulary directly. 

FO isn't for everyone.
In fact, some here have a rather poor opinion of it. (I tend to agree,
but let's try to steer away from a flame war.)

However, XSL-FO is rather indisputably a page layout vocabulary, and not
semantic/structured markup. If you're from the TEI world, I don't need to
go further there.

Creating these workaround
vocabularies adds another layer to processing and seems to add to the
complexity of processing XML.

Depends on the source format. I use that extended ContML as an
intermediate format, because I'm converting from a much more complex file
format that doesn't make the document structure very transparent. That
suits my needs well.

 It seems simpler to think in terms of raw
(non XML) ConTeXt. That way, if you have a question about formatting,
you will find the answer relatively easy on the mailing list. 

True. 
It's one of the reasons why I bring things to my intermediate format that
corresponds with ConTeXt macros: I can break into expert ConTeXt to
configure things when I want to get sophisticated.

I hope I am understanding things correctly. I want to develop a sound
XML = ConTeXt strategy, so don't want to overlook any of ConTeXt's
native XML abiblities. 

Different applications mean different strategies. I'm fairly confident
you can find what you need somewhere in there...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Strange result with 2 columns and textbackground

2005-02-25 Thread VnPenguin
Hi,
I do a small test with 2 columns and textbackground :

\setupcolors[state=start]
\definetextbackground[preface]
[backgroundcolor=green,
backgroundoffset=.25cm,
offset=.5cm,
frame=off,
location=paragraph,
color=blue]

\starttext
\chapter{Chapter TEST}
\startcolumns[rule=off,n=2]
\starttextbackground[preface]

\section{tufte.tex}
\input tufte

\section{knuth.tex}
\input knuth

\stoptextbackground
\stopcolumns

\stoptext
-
The result is very strange : 
 http://people.vnoss.org/~vnpenguin/pub/context/test-bgcolor.png
 http://people.vnoss.org/~vnpenguin/pub/context/test-bgcolor.pdf

I'm wrong some things ?

Thank you,
Q.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context