Re: [NTG-context] indenting in XML environment

2006-01-16 Thread Taco Hoekwater



Hans Hagen wrote:

Christopher G D Tipper wrote:


Hi Taco,

I've found the miscreant. In my stylesheet I have
\def\eDroppedCaps
{\DroppedCaps
{} {ptmr8r}
{2.2\baselineskip} {2pt} {\baselineskip} {2}}

and in my XML I have:
\defineXMLcommand [dropped-caps] \eDroppedCaps

and for some reason this screws up all paragraph indenting. Has this  
changed recently, because it used to work?


well, indenting has been extended (and a bit fixed)


My guess is this patch to supp-fun is needed (untested):

 \def\DroppedCaps#1#2#3#4#5#6#7% does not yet handle accented chars
   {\convertargument#7\to\asciia
\convertcommand \DroppedString\to\asciib
\ExpandBothAfter\doifinstringelse\asciia\asciib
- {\noindenting
+ {\noindentation
   \dontleavehmode
  %\ifhmode\hskip-\parindent\fi % sensitive for context mechanism

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


Re: [NTG-context] indenting in XML environment

2006-01-15 Thread Christopher G D Tipper

Hi Taco,

I've found the miscreant. In my stylesheet I have
\def\eDroppedCaps
{\DroppedCaps
{} {ptmr8r}
{2.2\baselineskip} {2pt} {\baselineskip} {2}}

and in my XML I have:
\defineXMLcommand [dropped-caps] \eDroppedCaps

and for some reason this screws up all paragraph indenting. Has this  
changed recently, because it used to work?


Christopher


xml-indenting.tex
Description: Binary data
document
body
pdropped-caps /Thus, I came to the conclusion that the designer of a new
system must not only be the implementer and first   
large-scale user; the designer should also write the first 
user manual.
/p
pThe separation of any of these four components would have   
hurt tex/ significantly. If I had not participated fully in
all these activities, literally hundreds of improvements
would never have been made, because I would never have  
thought of them or perceived why they were important.   
/p
pBut a system cannot be successful if it is too strongly 
influenced by a single person. Once the initial design is   
complete and fairly robust, the real test begins as people  
with many different viewpoints undertake their own  
experiments.
/p
/body
/document


On 14 Jan 2006, at 23:09, Taco Hoekwater wrote:


I've created a test file with this appended to your definition:

\defineXMLenvironment[p]{}{\par}
\starttext
\startXMLdata
body
ptext/p
ptext/p
ptext/p
/body
\stopXMLdata
\stoptext

And it nicely indents the second and third paragraph.

I would use
\noindentation }
instead of
{\noindening} }
but both possibilities work out fine here.


o00o
  “Since light travels faster than sound, isn’t that why
   some people appear bright until you hear them speak”
  — Steve Wright


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


[NTG-context] indenting in XML environment

2006-01-14 Thread Christopher G D Tipper
Ok, after taking deep breath I'll try this issue again. I got  
indenting to work after putting \noindenting inside its own environment.


However, the following code block stopped working recently and I  
don't know why:


\defineXMLenvironment[body]
  {\bgroup
   \rm\setupwhitespace[none]
   \setupindenting[small,yes]
   \startcolumns[rule=on,n=2,tolerance=strict]
   {\noindenting} }
  {\stopcolumns
   \egroup}

It just doesn't indent anything, even after removing the  
{\noindenting} environment.


Christopher
o00o
  “Since light travels faster than sound, isn’t that why
   some people appear bright until you hear them speak”
  — Steve Wright


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


Re: [NTG-context] indenting in XML environment

2006-01-14 Thread Taco Hoekwater

Christopher G D Tipper wrote:
Ok, after taking deep breath I'll try this issue again. I got  indenting 
to work after putting \noindenting inside its own environment.


However, the following code block stopped working recently and I  don't 
know why:


\defineXMLenvironment[body]
  {\bgroup
   \rm\setupwhitespace[none]
   \setupindenting[small,yes]
   \startcolumns[rule=on,n=2,tolerance=strict]
   {\noindenting} }
  {\stopcolumns
   \egroup}

It just doesn't indent anything, 


That's odd, because it looks fine to me.

I've created a test file with this appended to your definition:

\defineXMLenvironment[p]{}{\par}
\starttext
\startXMLdata
body
ptext/p
ptext/p
ptext/p
/body
\stopXMLdata
\stoptext

And it nicely indents the second and third paragraph.

I would use
\noindentation }
instead of
{\noindening} }
but both possibilities work out fine here.

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