Re: [NTG-context] \unknown lost on xml export

2011-11-06 Thread Marco
Hans Hagen  writes:

> On 5-11-2011 15:52, Marco Pessotto wrote:
>>
>> Hello there.
>>
>> While exporting the ellipses are completely lost. Is there a workaround
>> for cases like that (I have the feeling this is the top of the iceberg)?
>
> Not using \unknown but \textellipsis

Thanks.

> I'm not sure why you're seeing an iceberg. 

Well, it's the feeling you get when you hit a bug while working on a
"Hello world" document after 5 minutes. :-\ I'm truly sorry if it
sounded harsh.

-- 
Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \unknown lost on xml export

2011-11-06 Thread Hans Hagen

On 5-11-2011 15:52, Marco Pessotto wrote:


Hello there.

While exporting the ellipses are completely lost. Is there a workaround
for cases like that (I have the feeling this is the top of the iceberg)?


Not using \unknown but \textellipsis

I'm not sure why you're seeing an iceberg. The \unknown\ commands uses 
leaders deep down and those don't get exported. I'll change the 
definition to the less efficient variant


\def\doperiods[#1]%
  {\dontleavehmode
   \hbox\bgroup
   \setbox\scratchbox\hbox to \periodswidth{\hss.\hss}%
   \dorecurse{\iffirstargument#1\else\periodsdefault\fi}{\copy\scratchbox}%
   \egroup}

which does export periods (but spaced, as expected).

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \unknown lost on xml export

2011-11-05 Thread Marco Pessotto

Hello there.

While exporting the ellipses are completely lost. Is there a workaround
for cases like that (I have the feeling this is the top of the iceberg)?

The following minimal example should be clear enough:

%%% start example

\setupbackend[export=yes]

\starttext

Hello\unknown{} world!

\stoptext

%%% end example

Which leads to:









http://www.w3.org/1998/Math/MathML";>
Hello world! 


Best regards

-- 
Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___