Re: [NTG-context] Inline itemize

2012-01-06 Thread Vianney le Clément
On Fri, Jan 6, 2012 at 00:25, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 No, this is a bug because with the “text” keyword you can create a inline 
 item which doesn’t start a new paragraph.

 Wolfgang

Thanks for the confirmation. I hope it will be fixed soon.

Vianney
___
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] searching for TEI on the wiki

2012-01-06 Thread Pablo Rodríguez
Hi there,

I don't know why when I search for TEI on the wiki
(wiki.contextgarden.net/index.php?title=Special%3ASearchsearch=tei), I
get only an item that lists the desired page
(http://wiki.contextgarden.net/TEI_xml),

But if I use Google
(http://wiki.contextgarden.net/google/new2.html?q=tei), the first
occurrence is the right one.

Is there something wrong here?

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] TeX inside XML

2012-01-06 Thread Meer, H. van der
Allthough typesetting through xmlcontext crashed, while direct typesetting did 
not, the culprit does not seem to be in the different routes. After one day 
ploughing through \halign and friends, I think I can nail it to a specific 
\omit in my code. Not that all problems are solved with that find, but it is a 
start. Anyway, for the moment no reason to panic about \xmlcontext. I hope this 
will please Hans Hagen, a bit.

Hans van der Meer



On 5 jan. 2012, at 18:33, Hans van der Meer wrote:

 I need to do some ConTeXt work inside an XML-proces. In principle this works 
 for most TeX-code through an appropriate xmlsetup that calls \xmlcontext.
 However some code has problems, and it will be no surprise that it concerns 
 table suff. The error is:
 
 Misplaced \omit ...
 \@tbxmultispans #1-\omit 
  \scratchcounter #1\relax \advance \scratchcounter …
 
 As this code runs fine in normal ConTeXt environments, the suspicion is some 
 catcode problem. Can I set inside the \xmlsetup-code something to have 
 \xmlcontext using the correct catcode's, iff that turns out to be the problem 
 of course.
 
 Thanks in advance.
 
 Hans van der Meer
 
 
 
 ___
 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
 ___

___
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] typesetting bilingual texts

2012-01-06 Thread Pablo Rodríguez
Hi there,

I'm trying to understand how to typeset bilingual texts with ConTeXt.

I'm new to ConTeXt and this is my third try to explain my questions on
the matter. I'm afraid that I can't find the right documentation on it
(or I wouldn't understand it, if I found it). If what I say is wrong (or
I'm doing something wrong here), please tell me.

On bilingual texts typesetting, I have the following examples:

-Homer's “Iliad” and “Odyssey”: Greek text and translation. Original
verse text and facing prose translation. Same numbers of paragraphs and
titles (although Greek titles may contain only the number and translated
titles may contain also text).

-Hegel's »Phänomenologie des Geistes«: German text and translation. Same
number of paragraphs and titles.

-Goethe's “Faust”: Original text and facing verse translation. Same
numbers of paragraphs and verses.

Notes (marginal, footnotes, endnotes) might differ in the original and
translated versions. Both body texts are similar in separation
(paragraphs and titles).

From Wolfgang's example
(http://www.ntg.nl/pipermail/ntg-context/2011/063353.html: the only
document I have and that I cannot decipher), it seems that you have to
type each translated paragraph after each original paragraph.

Hegel's work cited above contains about 600 pages. Having to copy and
paste every translated paragraph after every original paragraph sounds
crazy (too much work). And as far as I understand computing, this
shouldn't be a hard task to automatize.

Hegel is only an example here, and having to mix both texts not only
involves more work, but it might well lead to errors in the text itself
(not typesetting, but typing).

Not even asking about the code (yet): isn't it possible to typeset a
bilingual document having separate streams that ConTeXt automatically
synchronizes? And isn't it possible to have separate numbering for the
original and translated streams?

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] Not wanted hidden spaces when you compress fonts

2012-01-06 Thread Jan Heinen

Hello,

when I turn off the compression [extend=0.8]  - [extend=1] 
the problems are gone :-) ... the compression unfourtunately 
also :-(
What do I have to configure to get the compression without 
spaces? :-)


Regards
Jannis

= copy
Hello,


if I compress a font, there are suddenly hidden spaces 
between words. You can't see the spaces in the PDF, but when 
you copy the text from the PDF to an editor you can see the 
spaces. And when you search for a word (with hidden spaces) 
in the PDF, the word can't be found.


This is the result when you copy the text from the PDF into 
an editor: The quick brow n fox jum ps over the lazy dog.


There is a space in brow n and one in jum ps.
When you search for brown in the PDF you get no result.

Here is an example:


\definefontfeature[cond][default][extend=0.8]
\usemodule[simplefonts]
\setmainfont[Allerlight][features=cond]

\starttext
The quick brown fox jumps over the lazy dog.
\stoptext


How to get rid of this hidden spaces?

Regards
Jannis
___
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] Not wanted hidden spaces when you compress fonts

2012-01-06 Thread Susan Dittmar
Dear Jan,

 when I turn off the compression [extend=0.8]  - [extend=1] 
 the problems are gone :-) ... the compression unfourtunately 
 also :-(
 What do I have to configure to get the compression without 
 spaces? :-)

I guess you will need a new font, or a new version of the same font with
compression. I am sure there are tools out there that can do the
compression of a font.

As far as I understand, TeX itself knows nothing about the glyphs. They are
just some boxes for the TeX engine. It does not handle the glyphs itself --
TeX just places them. So the only way TeX has to compress fonts is to push
the glyphs closer together -- thus introducing these 'spaces' (in fact,
they are negative spaces, places where TeX interrupts words to push the
glyphs closer together).

In very special cases you might be able to use postscript's (or pdf's)
transformation engine to archieve condensed fonts. I once used that by
creating a minipage with 'normal' font within a picture environment that
itself then did the transformation. But I guess that's not what you really
are after.

Hope that helps,

Susan
___
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] searching for TEI on the wiki

2012-01-06 Thread Mojca Miklavec
2012/1/6 Pablo Rodríguez wrote:
 Hi there,

 I don't know why when I search for TEI on the wiki
 (wiki.contextgarden.net/index.php?title=Special%3ASearchsearch=tei), I
 get only an item that lists the desired page
 (http://wiki.contextgarden.net/TEI_xml),

 But if I use Google
 (http://wiki.contextgarden.net/google/new2.html?q=tei), the first
 occurrence is the right one.

 Is there something wrong here?

I have no idea how MediaWiki's search box works and no idea how to
check that (apart from logging all sql requests and analyzing them, or
checking the source code).

But I always found the search box hardly usable. That is why there are
three buttons: Go, Search and Google. The last button might return you
more relevant results.

(If you have any idea what to check with respect to wikimedia's
search, please let us know.)

Mojca
___
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] Not wanted hidden spaces when you compress fonts

2012-01-06 Thread Wolfgang Schuster

Am 06.01.2012 um 12:23 schrieb Susan Dittmar:

 Dear Jan,
 
 when I turn off the compression [extend=0.8]  - [extend=1] 
 the problems are gone :-) ... the compression unfourtunately 
 also :-(
 What do I have to configure to get the compression without 
 spaces? :-)
 
 I guess you will need a new font, or a new version of the same font with
 compression. I am sure there are tools out there that can do the
 compression of a font.
 
 As far as I understand, TeX itself knows nothing about the glyphs. They are
 just some boxes for the TeX engine. It does not handle the glyphs itself --
 TeX just places them. So the only way TeX has to compress fonts is to push
 the glyphs closer together -- thus introducing these 'spaces' (in fact,
 they are negative spaces, places where TeX interrupts words to push the
 glyphs closer together).
 
 In very special cases you might be able to use postscript's (or pdf's)
 transformation engine to archieve condensed fonts. I once used that by
 creating a minipage with 'normal' font within a picture environment that
 itself then did the transformation. But I guess that's not what you really
 are after.


As you can in the example below the font is stretched to the given value
but the problem when you copy the text can be in the algorithm Adobe Reader
use to determine spaces in the text.

\starttext

\define[1]\ExtendFont
  {\definefontfeature[condensed][default][extend=#1]
   \definedfont[name:allerlight*condensed]The quick brown fox jumps over the 
lazy dog.\endgraf}

\processcommalist[0.4,0.6,0.8,1.0,1.2,1.4]\ExtendFont

\stoptext

Wolfgang
___
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] typesetting bilingual texts

2012-01-06 Thread Susan Dittmar
Dear Pablo,

Quoting Pablo Rodríguez (oi...@web.de):
 Hegel's work cited above contains about 600 pages. Having to copy and
 paste every translated paragraph after every original paragraph sounds
 crazy (too much work). And as far as I understand computing, this
 shouldn't be a hard task to automatize.

I understand your hesitation to do that work by hand. You are right, it
should be easy to do that automatically. But I think ConTeXt, mighty as it
is, is not the right tool to do that merging. How about a small perl script
that does the merging? In fact, any programming language should do, if the
breakpoints are really as easy to spot as you suggest. And then ConTeXt can
do the typesetting without the need to keep 600+ pages of
read-but-not-yet-processed text in memory before it receives the second
half so it can start typesetting...

Hope that helps,

Susan

___
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] redefining paragraph breaks

2012-01-06 Thread Michael Talbot-Wilson

On Fri, 6 Jan 2012, Michael Talbot-Wilson wrote:


On Tue, 3 Jan 2012, Chris Lott wrote:


I know I could do it manually, but that makes the source ugly, so is
there a way to redefine paragraph breaks so that instead of actual
breaks in the output they are kept as running text separate by a
paragraph symbol, e.g.:

This is paragraph 1.

This is paragraph 2.

Becomes in the typeset document:

This is paragraph 1. ¶ This is paragraph 2.



Can't you use plain's \everypar?


Not plain, built-in, but it's not the thing.  The thing's \let.

\starttext
\let\oldp=\par
\def\par{\P}
In case you

can't tell,

this is a test.
\let\par=\oldp

\stoptext
___
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] xmlfiles and url address

2012-01-06 Thread Martin Fechner

Am 05.01.2012 13:36, schrieb Hans Hagen:
 On 5-1-2012 09:19, Martin Fechner wrote:
 Hi all,

 I wish you happy new year and start with an xml-question:
 Is it possible to process files from an URL address? It should be
 something like:

 \starttext

 

 \xmlprocessfile{main}{http://example.com/document1.xml}{}
 \xmlprocessfile{main}{http://example.com/document2.xml}{}

 low level hackery ...

 \edef\MyFileName#1{\cldcontext{resolvers.findbinfile(url.hashed(#1))}}

 \xmlprocessfile{main}{\MyFileName{http://example.com/document1.xml}}{}

 \xmlshow{main}

This doesn't seem to work. The output says only:

errorempty xml file/error

But the xml-file isn't empty. Any solution?
___
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] Overprinting

2012-01-06 Thread Jan Heinen

The company who prints my books says that my text
is not overprinted over the framed boxes.
They do a preflight with Adobe.

I think, I made no mistake - what do you think?
I hope it is not a missing  \par?


\setupcolors[state=start,rgb=no,cmyk=yes]
\definecolor[myc] [c=.40, m=.10, y=.50, k=0]
\starttext
\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {1 Overprinted or not?}

\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {\startcolorintent[knockout]3 Overprinted or 
not?\stopcolorintent}


\stoptext


Regards
Jannis

___
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] footnote way=bypage

2012-01-06 Thread Vianney le Clément
Hi,

I think I've found another bug. When asking to number footnotes by
page, context says the \checkpagechange macro is undefined.

Minimal example:

\setupnote[footnote][way=bypage]
\starttext
\input{tufte}\footnote{Note}
\stoptext

Vianney
___
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] CMYK and Linux

2012-01-06 Thread Jan Heinen
I am working with Linux and it seems to be a littlebit 
difficult to test if a resulting PDF from Context is cmyk (I 
don't have Adobe).


With the frontend display from Imagemagick I get the 
following information about the pdf:

Type=PaplatteMatte
Colorspace=RGB
Debth=16/8-bit

Hasn't the PDF to be Colorspace=CMYK?
Here is what I did:


\setupcolors[state=start]
\definecolor[myc] [c=.30, m=.60, y=.60, k=0]
\starttext
{\color[myc] Only some words}
\page
\stoptext


Ho can I say to ConText: This PDF has to be CMYK?

Regards
Jannis

___
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] Overprinting

2012-01-06 Thread Peter Rolf
Am 06.01.2012 16:54, schrieb Jan Heinen:
 The company who prints my books says that my text
 is not overprinted over the framed boxes.
 They do a preflight with Adobe.
 
 I think, I made no mistake - what do you think?

hard to say without seeing your sources :-)

 I hope it is not a missing  \par?

probably not



your example works as expected here (tested with 08.11.2011 and 02.01.2012).

1 knockout (default)
2 overprinting
3 knockout (explicitly set)

as long as you use the second form, there shouldn't be a problem.


best wishes, peter

 
 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {1 Overprinted or not?}
 
 \blank[big]
 
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[overprint]2 Overprinted or not?\stopcolorintent}
 
 \blank[big]
 
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[knockout]3 Overprinted or not?\stopcolorintent}
 
 \stoptext
 
 
 Regards
 Jannis
 
 ___
 
 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
 ___
 
 

___
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] CMYK and Linux

2012-01-06 Thread William Adams
On Jan 6, 2012, at 11:23 AM, Jan Heinen wrote:

 Ho can I say to ConText: This PDF has to be CMYK?

You did, the tool you specified isn't doing a good job verifying that.

The folio is Gray Color, brightness 0, the colour text is c30 m60 y60 k0 as 
expected (as checked w/ Enfocus PitStop).

Acrobat Reader has some preflight capabilities --- check that. See:

http://beckerprint.com/resources/

which has:

Preflighting your PDFs

In many cases, issues within PDF files can be found through Acrobat and Acrobat 
Reader's Preflight tool. The Preflight tool analyzes your PDF and returns a 
report listing potential problem areas within the file, including images in 
non-CMYK color spaces, colors within the document that are not CMYK, 
low-resolution images, layers that don't knock out, and so on.

Preflighting on a Mac:

• Open your PDF in Acrobat or Acrobat Reader.
• Go to Advanced → Preflight.
• Choose your desired Profile preset.
• Hit Preflight.
• Adjust your source files accordingly.
Preflighting on a Windows computer:

• Open your PDF in Acrobat or Acrobat Reader.
• Go to Document → Preflight.
• Choose your desired Profile preset.
• Hit Analyze.
• Adjust your source files accordingly.

Not sure if the Linux version of Acrobat Reader has such capabilities or no --- 
perhaps Ghostscript has some facility at this?

William


-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

___
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] Centering and splitting a table

2012-01-06 Thread Fulvio
Hi, it's me again, with another problem.

I want to typeset very simple tables. Each table system is ok, because
I need very simple tables, as long as I can split the table in multiple
pages and repeat the header in multiple pages, so it should be ok to
use Tabulate, Tables, TABLE and Linetable.

I can typeset a similar table easily, but I want to center the table
horizontally in the page. I can box the table (with an hbox or a vbox)
and then center the box, but in this way the box won't split in
multiple pages. I think that floatings aren't the solution, too, because
I need the table exactly in place (I understand that the here
placement don't give me that guaranty, but I'm not totally sure).

I've at least a solution in my mind, but that requires too
much work, so I hope that there is a simple one.

Thanks in advance.
Fulvio Satta


signature.asc
Description: PGP signature
___
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
___