Re: [NTG-context] copy/paste text broken with certain ligatures

2016-04-14 Thread Brian R. Landy

> On Apr 14, 2016, at 6:24 PM, Hans Hagen  wrote:
> 
>> On 4/14/2016 3:47 PM, Brian R. Landy wrote:
>> Hi, sometime between version 2015.08.05 and 2016.04.10 the handling of
>> certain ligatures changed (sorry, I don't have intermediate versions to
>> test with).  The issue is the ligatures no longer copy/paste as the
>> original two characters, which also breaks text searched of the pdf.
>> Instead they copy as a single glyph.
>> 
>> I'm seeing the problem with "ti" and "fj", while others like "ffi",
>> "fi", and "ff" are fine in both versions.
>> 
>> I see this using Calibri (other fonts I tried don't support those two
>> ligatures):
>> 
>>   \starttypescript[cleartype]
>> \definetypeface[\typescriptone][ss][sans][calibri][default]
>>   \stoptypescript
>>   \usetypescript[cleartype]
>>   \setupbodyfont[cleartype,sans,10pt]
>>   \starttext
>>   ffi\par
>>   fi\par
>>   ff\par
>>   fi\par
>>   ti\par
>>   fj\par
>>   \stoptext
>> 
>> Thank you.
> 
> not all pdf viewers can do that well, unless it's broken, context outputs the 
> tounicode vectors needed for it
> 
> Hans

But Acrobat works fine with the pdf generated by the older version of ConTeXt, 
which also uses the ligatures. So something must be different about the files 
generated by the two versions?

I can post examples tomorrow if you'd like. 

Thanks,
Brian

> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | 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
> ___
___
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] xml input

2016-04-14 Thread Mica Semrick
I'm interested in this thread too... But I'm american, so English only. I 
appreciate your understanding!

-m

On April 14, 2016 1:56:18 PM PDT, Pablo Rodriguez  wrote:
>Hans,
>
>excuse my top-posting.
>
>I was really interested in this thread. But Dutch isn’t something in
>between English and German (two languages I used to know).
>
>My apologies for the comment, if the message was intended as private.
>
>I’m eager to learn XML in ConTeXt, since the possibilities are less
>than
>with standard (or the other) ConTeXt.
>
>
>Pablo
>
>
>On 04/14/2016 10:30 PM, Meer, Hans van der wrote:
>>> On 14 Apr 2016, at 10:45, Hans Hagen wrote:
>>> [...]
>>> a clue: \xmlinclude
>>>
>> By the way: hoe laad ik de inhoud van een /buffer/ net als van een
>file,
>> is er een buffer equivalent van \xmlinclude?
>> 
>> Hans, het spijt me zeer, maar ik begrijp er geen hout meer van want
>er
>> volgt een crash met een lua-error.
>> Ik lees voor \xmlinclude dat \xmlinclude{NODE}{LPATH}{ATTRIBUTE} de
>file
>> in het attribuut laadt.
>> 
>> Ik heb wat in de code rondgeneusd. 
>> Uit  lxml> tex > including file 'notes-example.xml' 
>> in de log blijkt dat in function
>lxml.include(id,pattern,attribute,options)
>> moet zijn uitgevoerd
>> 
>> if trace_loading then
>> report_lxml("including file %a",filename)
>> end
>> noffiles, nofconverted = noffiles + 1, nofconverted + 1
>> return resolvers.loadtexfile(filename) or ""
>> 
>> Met resolvers tracking komt hier nog tussen:
>> lxml> tex > including file 'notes-example.xml'
>> resolvers   > methods > resolving, method 'finders', how 'uri',
>> handler 'file', argument 'notes-example.xml'
>> resolvers   > resolving > remembering file 'notes-example.xml'
>using
>> hash 'xml::notes-example.xml'
>> resolvers   > files > file finder: 'notes-example.xml' found
>> resolvers   > methods > resolving, method 'loaders', how 'uri',
>> handler 'file', argument 'notes-example.xml'
>> resolvers   > files > file loader: 'notes-example.xml' loaded
>> het lijkt erop dat de gezochte file wel geladen is en dat pas daarna
>> ConTeXt het opgeeft met de error.
>> 
>> De log geeft me hier:
>> 
>> HVDM-NOTE-DEBUG > enter notes:include
>> HVDM-NOTE-DEBUG > ..looking for file notes-example.xml
>> lxml> tex > including file 'notes-example.xml'
>> 
>> lua error   > lua error on line 14 in file
>> /Users/hansm/Documents/TeX/texmf/publications/takenotes/take
>notes.tex:
>> 
>> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428:
>attempt
>> to index field 'settings' (a nil value)
>> stack traceback:
>> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: in
>> function 'include'
>> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:579: in
>> function
><...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567>
>> (...tail calls...)
>> 
>> 
>> De navolgende code is toch niet fout?
>> 
>> De main input is
>> 
>> 
>>   
>> 
>> 
>> 
>> De file notes-example.xml bevat slechts
>>  subnodes  etc
>> omsluiten met ... doet niets anders.
>> 
>> Ik doe het volgende (met loading tracker enabled
>> \startxmlsetups notes:takenotes
>>   % Include files and buffers.
>>   \xmlfilter{#1}{/include/command(notes:include)}
>> \stopxmlsetups
>> 
>> \startxmlsetups notes:include
>>   % Include from file.
>>  \doifnot{\xmlatt{#1}{file}}{\empty}
>> {\writestatus{HVDM-NOTE-DEBUG}{..looking for file
>\xmlatt{#1}{file}}
>>  \xmlinclude{#1}{}{file}}
>> \stopxmlsetups
>> 
>> Zelfde crash in de volgende gevallen
>> \xmlinclude{#1}{}{file}
>> \xmlinclude{#1}{.}{file}
>> \xmlinclude{#1}{../include}{file}
>> 
>> met vriendelijke groet
>> Hans van der Meer
>> met vriendelijke groet
>> Hans van der Meer
>
>
>-- 
>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
>___
___
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] copy/paste text broken with certain ligatures

2016-04-14 Thread Hans Hagen

On 4/14/2016 3:47 PM, Brian R. Landy wrote:

Hi, sometime between version 2015.08.05 and 2016.04.10 the handling of
certain ligatures changed (sorry, I don't have intermediate versions to
test with).  The issue is the ligatures no longer copy/paste as the
original two characters, which also breaks text searched of the pdf.
Instead they copy as a single glyph.

I'm seeing the problem with "ti" and "fj", while others like "ffi",
"fi", and "ff" are fine in both versions.

I see this using Calibri (other fonts I tried don't support those two
ligatures):

   \starttypescript[cleartype]
 \definetypeface[\typescriptone][ss][sans][calibri][default]
   \stoptypescript
   \usetypescript[cleartype]
   \setupbodyfont[cleartype,sans,10pt]
   \starttext
   ffi\par
   fi\par
   ff\par
   fi\par
   ti\par
   fj\par
   \stoptext

Thank you.


not all pdf viewers can do that well, unless it's broken, context 
outputs the tounicode vectors needed for it


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

Re: [NTG-context] xml input

2016-04-14 Thread Meer, Hans van der
My fault, wholly my fault! 
Just didn't look precise enough in replying. 
Thought to answer Hans Hagen in private but was a little offguard.
No offense taken.

Hans van der Meer

> On 14 Apr 2016, at 22:56, Pablo Rodriguez  wrote:
> 
> Hans,
> 
> 
> My apologies for the comment, if the message was intended as private.
> 
> 
> Pablo
> 

___
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] xml input

2016-04-14 Thread Pablo Rodriguez
Hans,

excuse my top-posting.

I was really interested in this thread. But Dutch isn’t something in
between English and German (two languages I used to know).

My apologies for the comment, if the message was intended as private.

I’m eager to learn XML in ConTeXt, since the possibilities are less than
with standard (or the other) ConTeXt.


Pablo


On 04/14/2016 10:30 PM, Meer, Hans van der wrote:
>> On 14 Apr 2016, at 10:45, Hans Hagen wrote:
>> [...]
>> a clue: \xmlinclude
>>
> By the way: hoe laad ik de inhoud van een /buffer/ net als van een file,
> is er een buffer equivalent van \xmlinclude?
> 
> Hans, het spijt me zeer, maar ik begrijp er geen hout meer van want er
> volgt een crash met een lua-error.
> Ik lees voor \xmlinclude dat \xmlinclude{NODE}{LPATH}{ATTRIBUTE} de file
> in het attribuut laadt.
> 
> Ik heb wat in de code rondgeneusd. 
> Uit  lxml> tex > including file 'notes-example.xml' 
> in de log blijkt dat in function lxml.include(id,pattern,attribute,options)
> moet zijn uitgevoerd
> 
> if trace_loading then
> report_lxml("including file %a",filename)
> end
> noffiles, nofconverted = noffiles + 1, nofconverted + 1
> return resolvers.loadtexfile(filename) or ""
> 
> Met resolvers tracking komt hier nog tussen:
> lxml> tex > including file 'notes-example.xml'
> resolvers   > methods > resolving, method 'finders', how 'uri',
> handler 'file', argument 'notes-example.xml'
> resolvers   > resolving > remembering file 'notes-example.xml' using
> hash 'xml::notes-example.xml'
> resolvers   > files > file finder: 'notes-example.xml' found
> resolvers   > methods > resolving, method 'loaders', how 'uri',
> handler 'file', argument 'notes-example.xml'
> resolvers   > files > file loader: 'notes-example.xml' loaded
> het lijkt erop dat de gezochte file wel geladen is en dat pas daarna
> ConTeXt het opgeeft met de error.
> 
> De log geeft me hier:
> 
> HVDM-NOTE-DEBUG > enter notes:include
> HVDM-NOTE-DEBUG > ..looking for file notes-example.xml
> lxml> tex > including file 'notes-example.xml'
> 
> lua error   > lua error on line 14 in file
> /Users/hansm/Documents/TeX/texmf/publications/takenotes/take notes.tex:
> 
> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: attempt
> to index field 'settings' (a nil value)
> stack traceback:
> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: in
> function 'include'
> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:579: in
> function <...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567>
> (...tail calls...)
> 
> 
> De navolgende code is toch niet fout?
> 
> De main input is
> 
> 
>   
> 
> 
> 
> De file notes-example.xml bevat slechts
>  subnodes  etc
> omsluiten met ... doet niets anders.
> 
> Ik doe het volgende (met loading tracker enabled
> \startxmlsetups notes:takenotes
>   % Include files and buffers.
>   \xmlfilter{#1}{/include/command(notes:include)}
> \stopxmlsetups
> 
> \startxmlsetups notes:include
>   % Include from file.
>  \doifnot{\xmlatt{#1}{file}}{\empty}
> {\writestatus{HVDM-NOTE-DEBUG}{..looking for file \xmlatt{#1}{file}}
>  \xmlinclude{#1}{}{file}}
> \stopxmlsetups
> 
> Zelfde crash in de volgende gevallen
> \xmlinclude{#1}{}{file}
> \xmlinclude{#1}{.}{file}
> \xmlinclude{#1}{../include}{file}
> 
> met vriendelijke groet
> Hans van der Meer
> met vriendelijke groet
> Hans van der Meer


-- 
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] xml input

2016-04-14 Thread luigi scarso
On Thu, Apr 14, 2016 at 10:30 PM, Meer, Hans van der 
wrote:

>
> On 14 Apr 2016, at 10:45, Hans Hagen  wrote:
>
> On 4/13/2016 4:21 PM, Meer, Hans van der wrote:
>
> I would like to process several input sources as one xml tree. Like this:
>
> 
> 
> 
> 
> 
>
> with the sources having the structure
> 
> ...
> ...
> 
>
> and the code for  containing:
> read from all sources given on -notes
> afterwards process all content at once
>
> Thus the content of the various source should be read into one tree to
> be processed, but I cannot get this done.
> How to amalgam this separate sources into one?
>
>
> a clue: \xmlinclude
>
> By the way: hoe laad ik de inhoud van een *buffer* net als van een file,
> is er een buffer equivalent van \xmlinclude?
>
> Hans, het spijt me zeer, maar ik begrijp er geen hout meer van want er
> volgt een crash met een lua-error.
> Ik lees voor \xmlinclude dat \xmlinclude{NODE}{LPATH}{ATTRIBUTE} de file
> in het attribuut laadt.
>
> Ik heb wat in de code rondgeneusd.
> Uit  lxml> tex > including file 'notes-example.xml'
> in de log blijkt dat in function
> lxml.include(id,pattern,attribute,options)
> moet zijn uitgevoerd
>
> if trace_loading then
> report_lxml("including file %a",filename)
> end
> noffiles, nofconverted = noffiles + 1, nofconverted + 1
> return resolvers.loadtexfile(filename) or ""
>
> Met resolvers tracking komt hier nog tussen:
> lxml> tex > including file 'notes-example.xml'
> resolvers   > methods > resolving, method 'finders', how 'uri',
> handler 'file', argument 'notes-example.xml'
> resolvers   > resolving > remembering file 'notes-example.xml' using
> hash 'xml::notes-example.xml'
> resolvers   > files > file finder: 'notes-example.xml' found
> resolvers   > methods > resolving, method 'loaders', how 'uri',
> handler 'file', argument 'notes-example.xml'
> resolvers   > files > file loader: 'notes-example.xml' loaded
> het lijkt erop dat de gezochte file wel geladen is en dat pas daarna
> ConTeXt het opgeeft met de error.
>
> De log geeft me hier:
>
> HVDM-NOTE-DEBUG > enter notes:include
> HVDM-NOTE-DEBUG > ..looking for file notes-example.xml
> lxml> tex > including file 'notes-example.xml'
>
> lua error   > lua error on line 14 in file
> /Users/hansm/Documents/TeX/texmf/publications/takenotes/take notes.tex:
>
> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: attempt
> to index field 'settings' (a nil value)
> stack traceback:
> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: in
> function 'include'
> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:579: in
> function <...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567>
> (...tail calls...)
>
>
> De navolgende code is toch niet fout?
>
> De main input is
> 
> 
>   
> 
> 
>
> De file notes-example.xml bevat slechts
>  subnodes  etc
> omsluiten met ... doet niets anders.
>
> Ik doe het volgende (met loading tracker enabled
> \startxmlsetups notes:takenotes
>   % Include files and buffers.
>   \xmlfilter{#1}{/include/command(notes:include)}
> \stopxmlsetups
>
> \startxmlsetups notes:include
>   % Include from file.
>  \doifnot{\xmlatt{#1}{file}}{\empty}
> {\writestatus{HVDM-NOTE-DEBUG}{..looking for file \xmlatt{#1}{file}}
>  \xmlinclude{#1}{}{file}}
> \stopxmlsetups
>
> Zelfde crash in de volgende gevallen
> \xmlinclude{#1}{}{file}
> \xmlinclude{#1}{.}{file}
> \xmlinclude{#1}{../include}{file}
>
> met vriendelijke groet
> Hans van der Meer
> met vriendelijke groet
> Hans van der Meer
>
>
>

private message ?

-- 
luigi
___
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] xml input

2016-04-14 Thread Meer, Hans van der

On 14 Apr 2016, at 10:45, Hans Hagen > 
wrote:

On 4/13/2016 4:21 PM, Meer, Hans van der wrote:
I would like to process several input sources as one xml tree. Like this:







with the sources having the structure

...
...


and the code for  containing:
read from all sources given on -notes
afterwards process all content at once

Thus the content of the various source should be read into one tree to
be processed, but I cannot get this done.
How to amalgam this separate sources into one?

a clue: \xmlinclude

By the way: hoe laad ik de inhoud van een buffer net als van een file, is er 
een buffer equivalent van \xmlinclude?

Hans, het spijt me zeer, maar ik begrijp er geen hout meer van want er volgt 
een crash met een lua-error.
Ik lees voor \xmlinclude dat \xmlinclude{NODE}{LPATH}{ATTRIBUTE} de file in het 
attribuut laadt.

Ik heb wat in de code rondgeneusd.
Uit  lxml> tex > including file 'notes-example.xml'
in de log blijkt dat in function lxml.include(id,pattern,attribute,options)
moet zijn uitgevoerd

if trace_loading then
report_lxml("including file %a",filename)
end
noffiles, nofconverted = noffiles + 1, nofconverted + 1
return resolvers.loadtexfile(filename) or ""

Met resolvers tracking komt hier nog tussen:
lxml> tex > including file 'notes-example.xml'
resolvers   > methods > resolving, method 'finders', how 'uri', handler 
'file', argument 'notes-example.xml'
resolvers   > resolving > remembering file 'notes-example.xml' using hash 
'xml::notes-example.xml'
resolvers   > files > file finder: 'notes-example.xml' found
resolvers   > methods > resolving, method 'loaders', how 'uri', handler 
'file', argument 'notes-example.xml'
resolvers   > files > file loader: 'notes-example.xml' loaded
het lijkt erop dat de gezochte file wel geladen is en dat pas daarna ConTeXt 
het opgeeft met de error.

De log geeft me hier:

HVDM-NOTE-DEBUG > enter notes:include
HVDM-NOTE-DEBUG > ..looking for file notes-example.xml
lxml> tex > including file 'notes-example.xml'

lua error   > lua error on line 14 in file 
/Users/hansm/Documents/TeX/texmf/publications/takenotes/take notes.tex:

...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: attempt to 
index field 'settings' (a nil value)
stack traceback:
...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: in function 
'include'
...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:579: in function 
<...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567>
(...tail calls...)


De navolgende code is toch niet fout?

De main input is


  



De file notes-example.xml bevat slechts
 subnodes  etc
omsluiten met ... doet niets anders.

Ik doe het volgende (met loading tracker enabled
\startxmlsetups notes:takenotes
  % Include files and buffers.
  \xmlfilter{#1}{/include/command(notes:include)}
\stopxmlsetups

\startxmlsetups notes:include
  % Include from file.
 \doifnot{\xmlatt{#1}{file}}{\empty}
{\writestatus{HVDM-NOTE-DEBUG}{..looking for file \xmlatt{#1}{file}}
 \xmlinclude{#1}{}{file}}
\stopxmlsetups

Zelfde crash in de volgende gevallen
\xmlinclude{#1}{}{file}
\xmlinclude{#1}{.}{file}
\xmlinclude{#1}{../include}{file}

met vriendelijke groet
Hans van der Meer
met vriendelijke groet
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
___

Re: [NTG-context] Questions about Scite lexers

2016-04-14 Thread Nicola

On 2016-04-14 05:10:18 +, Christoph Reller said:

On Wed, Apr 13, 2016 at 10:39 PM Christoph Reller 
 wrote:

Nicola  wrote on Wed., 13. Apr. 2016 19:36:

I have found an old document of mine, which uses a
(slightly customized) pret-c.lua, located inside the project's folder.
It compiles, but I don't get syntax highlighting. Is it because pret-c
is not searched in the project's directory? 

Alternatively you can set the TEXMF_LOCAL environment variable to some 
directory where your "private" texmf-tree resides. Note that after this 
you have to run

    context --generate
in order for context to find the modules in your texmf-tree.
Also note that the compilation logfile written by context tells you 
what modules have been found in which locations.


I hope this helps,

Christoph

Sorry, the environment variable should be named TEXMFLOCAL, without the 
underscore


Thanks for all the suggestions. I will experiment a bit, and come back 
to the mailing list for further questions.


Nicola


___
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] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Wolfgang Schuster

Michael Guravage 
14. April 2016 um 09:46
Greetings,

I would like to use a variable for the value of the list argument in, 
e.g., the \startsection command. If you compile my little example you 
will see that the first 'literal' assignment works, while the second 
'variable' assignment does not. What am I missing here?



ConTeXt saves by default the list entries without expanding them
which means you get "\getvariable{TOC}{list}" as entry in the table
of contents for your section section entry but at this moment you
haven’t set a value for this variable.

To get the content of the variable in the list entry you have to expand
the argument of the list key, one way is the use of the \expanded
command as shown by Marco but you also let ConTeXt do this for
you (no need for \expanded{…}) when you add

\setuphead[section][expansion=yes]

at the begin of your document.

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] contextjit missing from win32

2016-04-14 Thread Pablo Rodriguez
On 04/14/2016 10:42 AM, Hans Hagen wrote:
> On 4/13/2016 8:01 PM, Pablo Rodriguez wrote:
>> Hans,
>>
>> I downloaded the latest beta from the ConTeXt Suite yesterday for win32
>> and win64.
>>
>> I’m afraid that contextjit isn’t available for win32. I guess it might
>> be a bug.
> 
> ok, fixed in next upload

Hans,

many thanks for the fix.


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
___

[NTG-context] copy/paste text broken with certain ligatures

2016-04-14 Thread Brian R. Landy
Hi, sometime between version 2015.08.05 and 2016.04.10 the handling of 
certain ligatures changed (sorry, I don't have intermediate versions to 
test with).  The issue is the ligatures no longer copy/paste as the 
original two characters, which also breaks text searched of the pdf. 
Instead they copy as a single glyph.


I'm seeing the problem with "ti" and "fj", while others like "ffi", 
"fi", and "ff" are fine in both versions.


I see this using Calibri (other fonts I tried don't support those two 
ligatures):


  \starttypescript[cleartype]
\definetypeface[\typescriptone][ss][sans][calibri][default]
  \stoptypescript
  \usetypescript[cleartype]
  \setupbodyfont[cleartype,sans,10pt]
  \starttext
  ffi\par
  fi\par
  ff\par
  fi\par
  ti\par
  fj\par
  \stoptext

Thank you.

Best regards,
Brian
___
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] PageSetup

2016-04-14 Thread Aidan Nichol
I’ve been have been having a couple of problems with swapping pages and so I 
went back to the example in Context Garden using the latest beta

\definepapersize[main] [A4]
\definepapersize[extra][A4,landscape]

\setuppapersize[main]
\starttext
Page 1. Portrait \page
Page 2. Portrait \page
\adaptpapersize[extra]
Page 3. Landscape \page
Page 4. Portrait \page
\stoptext

The main problem I have is that \adaptpapersize is working as though I had 
entered \setuppapersize. Page 3 was created as landscape and but it didn’t 
revert to main to give page 4 as portrait.

The secondary issue is that the landscape page is not as expected in that it is 
a square page. Inserting a \showsetups and \showframe into page 3 I can see 
that it is layed out Ok but on a large piece of paper. \printpaperwidth and 
\printpaperheight are both set to 29.7cm.

Aidan
___
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] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Marco Patzer
On Thu, 14 Apr 2016 09:46:34 +0200
Michael Guravage  wrote:

> I would like to use a variable for the value of the list argument in,
> e.g., the \startsection command. If you compile my little example you
> will see that the first 'literal' assignment works, while the second
> 'variable' assignment does not. What am I missing here?
> 
> Cheers,
> 
> Michael
> 
> 
> \starttext
> 
>   \placecontent
> 
>   \setvariables[TOC][list=Second Section]
> 
>   \startsection [title={First}, list={First Section}]
> This is the first section.
>   \stopsection
> 
>   \startsection [title={Second}, list={\getvariable{TOC}{list}}]

I suspect issues with the order of expansion because it works with

  \expanded{\startsection [title={Second}, list={\getvariable{TOC}{list}}]}

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
___

[NTG-context] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Michael Guravage
Greetings,

I would like to use a variable for the value of the list argument in, e.g.,
the \startsection command. If you compile my little example you will see
that the first 'literal' assignment works, while the second 'variable'
assignment does not. What am I missing here?

Cheers,

Michael


\starttext

  \placecontent

  \setvariables[TOC][list=Second Section]

  \startsection [title={First}, list={First Section}]
This is the first section.
  \stopsection

  \startsection [title={Second}, list={\getvariable{TOC}{list}}]
This is the \getvariable{TOC}{list}
  \stopsection

\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] xml input

2016-04-14 Thread Hans Hagen

On 4/13/2016 4:21 PM, Meer, Hans van der wrote:

I would like to process several input sources as one xml tree. Like this:







with the sources having the structure

...
...


and the code for  containing:
read from all sources given on -notes
afterwards process all content at once

Thus the content of the various source should be read into one tree to
be processed, but I cannot get this done.
How to amalgam this separate sources into one?


a clue: \xmlinclude


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

Re: [NTG-context] xml input

2016-04-14 Thread Hans Hagen

On 4/13/2016 5:35 PM, Meer, Hans van der wrote:

Just a thought.

\xmlprocessbuffer and \xmlprocessfile{id}... register the tree they read
under id. Is there a way to merge several id's to one tree?


no, but you can of course access trees mixed (as long as #1 reflects id)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

Re: [NTG-context] contextjit missing from win32

2016-04-14 Thread Hans Hagen

On 4/13/2016 8:01 PM, Pablo Rodriguez wrote:

Hans,

I downloaded the latest beta from the ConTeXt Suite yesterday for win32
and win64.

I’m afraid that contextjit isn’t available for win32. I guess it might
be a bug.


ok, fixed in next upload

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

Re: [NTG-context] contextjit missing from win32

2016-04-14 Thread Hans Hagen

On 4/13/2016 8:32 PM, Mojca Miklavec wrote:

On 13 April 2016 at 20:01, Pablo Rodriguez wrote:

Hans,

I downloaded the latest beta from the ConTeXt Suite yesterday for win32
and win64.

I’m afraid that contextjit isn’t available for win32. I guess it might
be a bug.


Should contextjit come with ConTeXt or with W32TeX?


it's just a copy of context.exe (but one that then will trigger luatexjit)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

Re: [NTG-context] RTL section heads

2016-04-14 Thread Hans Hagen

On 4/13/2016 5:14 PM, Mohammad Hossein Bateni wrote:

I updated my context standalone but it gives me current version:
2016.*_04.10_* 23:52, which is buggy.  This is from 3 days ago.


the garden is being reinstalled / updates but you can get the zip from 
the website and unpack it in the right spot


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Michael Guravage
Greetings,

I would like to use a variable for the value of the list argument in, e.g.,
the \startsection command. If you compile my little example you will see
that the first 'literal' assignment works, while the second 'variable'
assignment does not. What am I missing here?

Cheers,

Michael


\starttext

  \placecontent

  \setvariables[TOC][list=Second Section]

  \startsection [title={First}, list={First Section}]
This is the first section.
  \stopsection

  \startsection [title={Second}, list={\getvariable{TOC}{list}}]
This is the \getvariable{TOC}{list}
  \stopsection

\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
___