Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Henri Menke
You asked the same question on TeX.SX but also without MWE, so I have no idea
what is going on.  The MWE below works.

Cheers, Henri

---

\usebtxdefinitions[apa]
\usebtxdataset[default][samples.bib]
\definebtxrendering[default][apa]
\setupbtx
[apa:list:title:book]
[style=]

\starttext

\nocite[Tufte:1990:EI:78223]
\placelistofpublications[criterium=all]

\stoptext

On 17/05/19 10:41 PM, Dmitry Starostin wrote:
> I tried several variants, but I cannot find where exactly the switch
> happens.
> 
> \definebtx[apa:list:title:incollection][apa:list:title][style=]
> \definebtx[apa:list:title:book][apa:list:title][style=]
> 
> \definebtx[apa:list:journal][apa:list][style=]
> 
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \xmlfirst lookup over whole document

2019-05-17 Thread Hans Hagen

On 5/17/2019 10:55 AM, Denis Maier wrote:
Does this work even if I don't have a buffer? I process chapters as 
standalone xml files and a master doc with \xmlprocessfile
if you have a master doc you can use an \xmlinclude at the beginning of 
the setups chain to merge the standalone files into that master doc so 
that you get one tree and then access that one only


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] readposition() in mkiv font-dsp.lua

2019-05-17 Thread Hans Hagen

On 5/17/2019 3:01 PM, Dohyun Kim wrote:

Hi,

I am using luaotfload.sty in TexLive 2019, that is latex.
On my mac, everything is flawlessly working.

But I've heard from somebody that NotoSansCJKkr-Regular etc fonts
are not usable on Windows machine; so I tested on 32-bit Windows 10
virtual machine with small memory (2GB) and it was really unusable.

I did some digging into the source code of luaotfload package.
Now I have a guess that readposition() in font-dsp.lua might be the culprit.
For instance, when format == 0x04 and the result of readshort(f) == 0,
then the return value of the function is currently "true".
After it has been changed to "false", NotoSansCJKkr fonts are working
quite well on 32-bit Windows.

With the same changes of readposition() on my 64-bit Mac,
the elapsed time for making cache file of NotoSansCJK fonts has been
dramatically reduced: from 25 seconds to 10 seconds. And the resulting
cache file is perfectly the same as before.

So I would like to suggest those return values to be changed to "false".
Certainly, I do not know much about opentype spec, so I might be wrong and
there could be good reasons for current code state.

Hm, just changing somethign from true to false is not a good idea

- what font are you talking about
- how does yuour test file look

here,

\starttext
\definedfont[notosanscjkkr-regular] test
\stoptext

gives "otf loading > loading, optimizing, packing and caching time 11.1" 
with context lmtx (and 12.9 seconds with regular mkiv) on a not that new 
laptop (64 bit windows), with the latest context beta.


So, I need more info.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Emdash

2019-05-17 Thread Alan Braslau
On Fri, 17 May 2019 10:54:39 +0300
Dmitry Starostin  wrote:

> btxspace and btxsemicolon do exist, but how does one do a 'em-dash'?
> What is the best way to define it?

— :-)


\def\btxemdash {\removeunwantedspaces —}


--
Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Alan Braslau
On Fri, 17 May 2019 14:10:03 +0200
"Thomas A. Schmitz"  wrote:

> On 5/17/19 12:41 PM, Dmitry Starostin wrote:
> > I tried several variants, but I cannot find where exactly the switch
> > happens.
> > 
> > \definebtx[apa:list:title:incollection][apa:list:title][style=]
> > \definebtx[apa:list:title:book][apa:list:title][style=]
> > 
> > \definebtx[apa:list:journal][apa:list][style=]  
> 

...

> 
> For further questions, please remember that it is considered polite
> to create complete minimal working examples, not just send code
> snippets that leave everybody guessing what it is you want to achieve.

Use \setupbtx rather than \definebtx to change parameters.
Which namespace depends on what you want to achieve.

--
Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] readposition() in mkiv font-dsp.lua

2019-05-17 Thread Dohyun Kim
Hi,

I am using luaotfload.sty in TexLive 2019, that is latex.
On my mac, everything is flawlessly working.

But I've heard from somebody that NotoSansCJKkr-Regular etc fonts
are not usable on Windows machine; so I tested on 32-bit Windows 10
virtual machine with small memory (2GB) and it was really unusable.

I did some digging into the source code of luaotfload package.
Now I have a guess that readposition() in font-dsp.lua might be the culprit.
For instance, when format == 0x04 and the result of readshort(f) == 0,
then the return value of the function is currently "true".
After it has been changed to "false", NotoSansCJKkr fonts are working
quite well on 32-bit Windows.

With the same changes of readposition() on my 64-bit Mac,
the elapsed time for making cache file of NotoSansCJK fonts has been
dramatically reduced: from 25 seconds to 10 seconds. And the resulting
cache file is perfectly the same as before.

So I would like to suggest those return values to be changed to "false".
Certainly, I do not know much about opentype spec, so I might be wrong and
there could be good reasons for current code state.

Regards,
-- 
Dohyun Kim
Seoul, Republic of Korea
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Thomas A. Schmitz

On 5/17/19 12:41 PM, Dmitry Starostin wrote:

I tried several variants, but I cannot find where exactly the switch
happens.

\definebtx[apa:list:title:incollection][apa:list:title][style=]
\definebtx[apa:list:title:book][apa:list:title][style=]

\definebtx[apa:list:journal][apa:list][style=]


Since a number of questions about custom bibliographic styles came up 
during the past few days, I have created a section on the wiki that 
explains how one can get started with creating their own custom setups 
from scratch; it's at 
https://wiki.contextgarden.net/Bibliography_mkiv#Custom_bibliographical_styles


For further questions, please remember that it is considered polite to 
create complete minimal working examples, not just send code snippets 
that leave everybody guessing what it is you want to achieve.


All best

Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test XML node registration

2019-05-17 Thread Hans Hagen

On 5/17/2019 10:28 AM, Hans van der Meer wrote:

Having a series of nodes in setups in a helper module:
\startxmlsetups xmlcommon:setups
\xmlsetsetup{#1}{error|comment|... etcetera}{xmlcommon:*}
\stopxmlsetups
\xmlregistersetup{xmlcommon:setups}

I would like to check if a certain node is in that series of nodes. For 
example doing \doifelse{\xmltag{#1}}... where the true branch is taken 
when \xmltag{#1} is one of those registered in the xmlcommon:setups.


Is that possible? Then what macro has to be called?

there is no such information


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Remove italics from bibliography list

2019-05-17 Thread Dmitry Starostin
I tried several variants, but I cannot find where exactly the switch
happens.

\definebtx[apa:list:title:incollection][apa:list:title][style=]
\definebtx[apa:list:title:book][apa:list:title][style=]

\definebtx[apa:list:journal][apa:list][style=]
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Test XML node registration

2019-05-17 Thread Hans van der Meer
Having a series of nodes in setups in a helper module:
\startxmlsetups xmlcommon:setups
\xmlsetsetup{#1}{error|comment|... etcetera}{xmlcommon:*}
\stopxmlsetups
\xmlregistersetup{xmlcommon:setups}

I would like to check if a certain node is in that series of nodes. For example 
doing \doifelse{\xmltag{#1}}... where the true branch is taken when \xmltag{#1} 
is one of those registered in the xmlcommon:setups.

Is that possible? Then what macro has to be called?

dr. 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Emdash

2019-05-17 Thread Dmitry Starostin
btxspace and btxsemicolon do exist, but how does one do a 'em-dash'? What
is the best way to define it?
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___