Re: [NTG-context] Italic correction spoils XHTML-output

2011-10-31 Thread Aditya Mahajan

PS. By composing this example I noticed that \savebuffer do nothing.


Unless something has changed recently, \savebuffer[buffer-list][filename] 
concatenates all the buffers in `buffer-list` and saves them to the file 
`\jobname-filename.tmp`.


In the filter module, I work around this limitation by using
\ctxlua{os.copy(...)}. Ideally, one should be able to use 
\ctxlua{os.rename(...)} but os.rename does not work on Windows.


Aditya
___
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] Italic correction spoils XHTML-output

2011-10-31 Thread Andreas Harder
Hi all,

I spotted an curious side effect while using italic correction together with 
the export feature. The XHTML-export has unwanted spaces while the PDF is fine.

\startbuffer[css]
highlight[detail=emph] { font-style: italic }
\stopbuffer
\savebuffer[css][test.css] % -> do not work!

\setupbackend[export=yes,xhtml=yes,css={test.css}]

\definefontfeature[default][default][itlc=yes]

\setupitaliccorrection[always] % not OK
% \setupitaliccorrection[always,global] % OK

\definehighlight[emph][style=\it]

\starttext
  \emph{example} % ex am ple
\spottiest


Regards
Andreas

PS. By composing this example I noticed that \savebuffer do nothing.
___
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
___