[NTG-context] Export to xml no longer works

2018-06-10 Thread Rik Kabel

With TL18, the following produces the expected xml and associated files.

   \setupbackend [export=yes]
   \starttext
   \input knuth
   \stoptext

With current betas, the xhtml file contains:

   invalid xml file - parsed text

and the other files have similar content.

Can anyone reproduce the error or offer a workaround?

--
Rik

___
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] sort order in registers (indexes)

2018-06-10 Thread Wolfgang Schuster



Hans Hagen 
10. Juni 2018 um 21:07
On 6/10/2018 8:50 PM, Henning Hraban Ramm wrote:

wolfgang provided these so he has to give his blessing


You can add them.

AFAIK the ß replacement was added later (no idea who sent it) because it 
wasn’t in the patch I found in my mail archive.


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

Re: [NTG-context] sort order in registers (indexes)

2018-06-10 Thread Henning Hraban Ramm
Am 2018-06-10 um 20:50 schrieb Henning Hraban Ramm :

> Ah, thanks for the hint. But how can I employ these definitions with 
> index/list ordering?
> Setting mainlanguage and method "*,uc" doesn’t seem to do the trick.

Sorry, found it. In my test file there was still "language=cz" in the setup, 
and the language key is not documented.

> Hans, please add the replacement
> { "ß", "ss" }
> to definitions['DIN 5007-1'] and definitions['DIN 5007-2']
> Thank you!

Wikified:
http://wiki.contextgarden.net/Command/setupregister
http://wiki.contextgarden.net/Command/keyword:method

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] sort order in registers (indexes)

2018-06-10 Thread Hans Hagen

On 6/10/2018 8:50 PM, Henning Hraban Ramm wrote:


Hans, please add the replacement
{ "ß", "ss" }
to definitions['DIN 5007-1'] and definitions['DIN 5007-2']

wolfgang provided these so he has to give his blessing

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] sort order in registers (indexes)

2018-06-10 Thread Henning Hraban Ramm
Am 2018-06-10 um 20:09 schrieb Pablo Rodriguez :

> On 06/10/2018 06:16 PM, Henning Hraban Ramm wrote:
>> [...] 
>> * Aren’t language specific sorting rules possible at the current state? Or 
>> does "unicode" handle that?
>> E.g.
>> -- DIN 5007-1 (German default sorting) is like zm,zc,uc, but ß should be 
>> sorted like ss.
>> -- DIN 5007-2 (German phonebook sorting) would additionally require umlauts 
>> to be sorted as ä = ae etc.
>> -- Austrian phonebook sorting sorts umlauts after base vocals, i.e. a, ä, o, 
>> ö, u, ü, s, ß.
>> -- Danish and Norwegian: x, y, z, æ, ø, å
>> -- Finnish and Swedish: x, y = ü, z, æ, ä, ö, ø, å (until 2006 v = w)
>> -- etc.
>> (according to https://de.wikipedia.org/wiki/Alphabetische_Sortierung)
> 
> sort-lan.lua contains different language definitions.

Ah, thanks for the hint. But how can I employ these definitions with index/list 
ordering?
Setting mainlanguage and method "*,uc" doesn’t seem to do the trick.

> Among others: DIN
> 5007-1, DIN 5007-2, Duden.

Hans, please add the replacement
{ "ß", "ss" }
to definitions['DIN 5007-1'] and definitions['DIN 5007-2']
Thank you!

> Swedish doesn’t contain ø (according to https://sv.wikipedia.org/wiki/Ø,
> it is replaced with ö) or ü (it is a foreign letter to their alphabet).
> and  "fi" seems to order the way you describe. And v is different from w.

I wouldn’t touch it then, who knows how accurate German wikipedia is...

> I would say, Finnish isn’t included in sort-lan.lua.

Yes it is.
(http://source.contextgarden.net/tex/context/base/mkiv/sort-lan.lua)

> Please, it would be extremely helpful (I remember thinking that
> registers didn’t make any sense in ConTeXt, before someone helped me).

As soon as I understand how the language dependent sorting works...


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] sort order in registers (indexes)

2018-06-10 Thread Pablo Rodriguez
On 06/10/2018 06:16 PM, Henning Hraban Ramm wrote:
> [...] 
> * Aren’t language specific sorting rules possible at the current state? Or 
> does "unicode" handle that?
> E.g.
> -- DIN 5007-1 (German default sorting) is like zm,zc,uc, but ß should be 
> sorted like ss.
> -- DIN 5007-2 (German phonebook sorting) would additionally require umlauts 
> to be sorted as ä = ae etc.
> -- Austrian phonebook sorting sorts umlauts after base vocals, i.e. a, ä, o, 
> ö, u, ü, s, ß.
> -- Danish and Norwegian: x, y, z, æ, ø, å
> -- Finnish and Swedish: x, y = ü, z, æ, ä, ö, ø, å (until 2006 v = w)
> -- etc.
> (according to https://de.wikipedia.org/wiki/Alphabetische_Sortierung)

sort-lan.lua contains different language definitions. Among others: DIN
5007-1, DIN 5007-2, Duden.

Languages "de-AT", "no", "da" and "sv" are ordered as you explain.

Swedish doesn’t contain ø (according to https://sv.wikipedia.org/wiki/Ø,
it is replaced with ö) or ü (it is a foreign letter to their alphabet).
and  "fi" seems to order the way you describe. And v is different from w.

I would say, Finnish isn’t included in sort-lan.lua.

> If nobody objects I’ll add this to the wiki.

Please, it would be extremely helpful (I remember thinking that
registers didn’t make any sense in ConTeXt, before someone helped me).

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

Re: [NTG-context] sort order in registers (indexes)

2018-06-10 Thread Henning Hraban Ramm
Am 2018-06-10 um 14:11 schrieb Henning Hraban Ramm :

> Am 2018-06-10 um 13:07 schrieb Henning Hraban Ramm :
> 
>>> I think this may achieve what you want:
>>> \setupregister[index][method={zm,zc}]
>>> I hope it helps,
>> 
>> Thank you very much!
>> 
>> I overlooked that there is indeed some documentation:
>> http://wiki.contextgarden.net/Command/keyword:method
> 
> But reading through that and the source I’m still confused.
> 
> I’d like to write a proper explanation for the wiki (and my book).
> 
> Is there anywhere documentation about the meaning/goal of the presets or 
> algorithms?
> 
> Are these codes translatable into something like "ignore diacritics", "ignore 
> upper/lowercase" etc.?

Ok, I think I got it...
For a proper sorting, you first apply a "mapping", then a "casing" and finally 
"unicode".

Presets:
default = upper like lowercase, diacritics separate
before  = upper before lower, diacritics ignored
after   = lower before upper, diacritics ignored
first   = lower before upper, diacritics separate
last= upper before lower, diacritics separate

* If you don’t set the sorting method, the preset "first" ist used (and not 
"default").

* There’s no preset for the (in my eyes most meaningful) combination "upper 
like lowercase, diacritics ignored" (zm,zc,uc).

* Aren’t language specific sorting rules possible at the current state? Or does 
"unicode" handle that?
E.g.
-- DIN 5007-1 (German default sorting) is like zm,zc,uc, but ß should be sorted 
like ss.
-- DIN 5007-2 (German phonebook sorting) would additionally require umlauts to 
be sorted as ä = ae etc.
-- Austrian phonebook sorting sorts umlauts after base vocals, i.e. a, ä, o, ö, 
u, ü, s, ß.
-- Danish and Norwegian: x, y, z, æ, ø, å
-- Finnish and Swedish: x, y = ü, z, æ, ä, ö, ø, å (until 2006 v = w)
-- etc.
(according to https://de.wikipedia.org/wiki/Alphabetische_Sortierung)

If nobody objects I’ll add this to the wiki.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] sort order in registers (indexes)

2018-06-10 Thread Henning Hraban Ramm
Am 2018-06-10 um 13:07 schrieb Henning Hraban Ramm :

>> I think this may achieve what you want:
>> \setupregister[index][method={zm,zc}]
>> I hope it helps,
> 
> Thank you very much!
> 
> I overlooked that there is indeed some documentation:
> http://wiki.contextgarden.net/Command/keyword:method

But reading through that and the source I’m still confused.

Source snippet:

local validmethods  = tohash {
"ch", -- raw character (for tracing)
"mm", -- minus mapping
"zm", -- zero  mapping
"pm", -- plus  mapping
"mc", -- lower case - 1
"zc", -- lower case
"pc", -- lower case + 1
"uc", -- unicode
}

local predefinedmethods = {
[v_default] = "zc,pc,zm,pm,uc",
[v_before]  = "mm,mc,uc",
[v_after]   = "pm,mc,uc",
[v_first]   = "pc,mm,uc",
[v_last]= "pc,mm,uc",
}

I’d like to write a proper explanation for the wiki (and my book).

Is there anywhere documentation about the meaning/goal of the presets or 
algorithms?

Are these codes translatable into something like "ignore diacritics", "ignore 
upper/lowercase" etc.?


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] ToC as itemize

2018-06-10 Thread Henning Hraban Ramm
Am 2018-06-10 um 13:35 schrieb Hans Hagen :

> On 6/10/2018 11:55 AM, Henning Hraban Ramm wrote:
>> Might there be a solution to this problem?
>> I.e. how to insert ToC entries in an itemize?
> 
> Well, don't expect a solution without a MWE ... anyway

The MWE was in my first mail (May 3rd).
Thank you anyway!

> 
> \starttext
> 
> \define[3]\ChapterTocEntry{%
> \startitem
>   \structurelistuservariable{author}: #1/#2/#3
> \stopitem
> }
> 
> \definelist[chapter][%
>   alternative=command,
>   interaction=all,
>   criterium=all,
>   before=,
>   after=,
>   command=\ChapterTocEntry]

So I was missing alternative=command.

If you consider my attached MWE one problem remains:
The usual space between items is missing between the last manual item and the 
ToC list:

...
\startitem Test entry \stopitem
%\blank[1em]

\placelist[chapter]
...

I can fix it with the blank, but I’d like to understand.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


toctest.tex
Description: Binary data
___
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] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen

On 6/10/2018 1:40 PM, Hans Hagen wrote:

On 6/10/2018 12:05 AM, Rik Kabel wrote:
When the first line of the following example is removed, all is well. 
With it present, the image in the layer has the text "image" added to 
the image. This problem is not present in, inter alia, TL18.


    \setuptagging [state=start]
    \setupexternalfigures [location=default]
    \definelayout [testpage]
    \definelayer  [testpage]
    [width=\paperwidth,height=\paperheight]
    \startsetups  [testpage]
     \setlayerframed   [testpage]
    [preset=rightbottom,hoffset=.25in,voffset=.25in,
    background=color,backgroundcolor=yellow]
   {\externalfigure[cow.pdf]}
    \stopsetups
    \setupbackgrounds [page]
    [setups=testpage,background={testpage}]
    \starttext
    \startmakeup  [testpage]
    \framed[background=color,backgroundcolor=yellow]
  {\externalfigure[cow.pdf]}
    \stopmakeup
    \stoptext

line 287 in strc-tag:

\let\strc_tags_start_nop_ignore\gobbletwoarguments

hm, not ok .. just wait for beta


-
  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] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen

On 6/10/2018 12:05 AM, Rik Kabel wrote:
When the first line of the following example is removed, all is well. 
With it present, the image in the layer has the text "image" added to 
the image. This problem is not present in, inter alia, TL18.


\setuptagging [state=start]
\setupexternalfigures [location=default]
\definelayout [testpage]
\definelayer  [testpage]
[width=\paperwidth,height=\paperheight]
\startsetups  [testpage]
     \setlayerframed   [testpage]
[preset=rightbottom,hoffset=.25in,voffset=.25in,
background=color,backgroundcolor=yellow]
   {\externalfigure[cow.pdf]}
\stopsetups
\setupbackgrounds [page]
[setups=testpage,background={testpage}]
\starttext
\startmakeup  [testpage]
\framed[background=color,backgroundcolor=yellow]
  {\externalfigure[cow.pdf]}
\stopmakeup
\stoptext

line 287 in strc-tag:

\let\strc_tags_start_nop_ignore\gobbletwoarguments

fixed in next beta

-
  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] ToC as itemize

2018-06-10 Thread Hans Hagen

On 6/10/2018 11:55 AM, Henning Hraban Ramm wrote:

Might there be a solution to this problem?

I.e. how to insert ToC entries in an itemize?


Well, don't expect a solution without a MWE ... anyway

\starttext

\define[3]\ChapterTocEntry{%
 \startitem
   \structurelistuservariable{author}: #1/#2/#3
 \stopitem
}

\definelist[chapter][%
   alternative=command,
   interaction=all,
   criterium=all,
   before=,
   after=,
   command=\ChapterTocEntry]

\startitemize
\placelist[chapter]
\stopitemize

\chapter{one}
\chapter{two}
\chapter{three}

\stoptext





Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-05-03 um 16:13 schrieb Henning Hraban Ramm :


Hi again,
Alan Bowen invented this interesting setup where the table of contents is to be 
included in an itemize.
E.g.

   Foreword   I
1. Smth unrelated .. II
2. Author: Title ...  1
3. Author: Title ...  5

etc.
Only 2. and 3. come from a "list" of chapters, other entries are added manually.


The attached not-really-minimal working example also handles the author setup – 
IRL we use a lot of user variables for metadata that needs different 
representation in ToC and titling.

This is the core code:

\define[1]\ChapterTocEntry{%
  \startitem
\structurelistuservariable{author}:
#1\leaderfill\currentlistentrypagenumber
  \stopitem
}

\definelist[chapter][%
alternative=b,
interaction=all,
criterium=all,
textcommand=\ChapterTocEntry,
pagecommand=\gobbleoneargument,
]

\startContentsList
%\sym{}Preface\leaderfill\at{Preface} % Preface unnumbered

\startitem Test entry\leaderfill 123 \stopitem

\placelist[chapter][criterium=all]

\stopContentsList


The actual problem:
The chapter list entries don’t adhere to the formatting of the itemize.
I guess there’s some expansion problem, due to the \startitem inside if the 
textcommand?


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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




--

-
  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] font pathes with colons

2018-06-10 Thread Hans Hagen

On 6/10/2018 12:58 PM, Ulrike Fischer wrote:

Am Sun, 10 Jun 2018 12:42:25 +0200 schrieb Hans Hagen:


Thanks. But if protection is possible, why doesn't [...] already
does it? I thought that in the brackets is always only a path
anyway.

because we share soem code with context and i don't want to support this
[] syntax there (conflicts too much)


Ah ok.  I'm not really bound to a specific syntax as long as
luaotfload at the end gets the correct data.

The problem is that luaotfload is not really maintained currently,
so it is difficult to improve its handling of lua-fonts. The current
setup has some problems with them:

I tried at first the {file:luafont.lua} syntax, but luaotfload
doesn't look in fonts/misc in this case (which imho is a more
logical place then tex/luatex), and also it constantly triggered the
rebuilding of the database. Absolute pathes found with kpathsea
looked like the way out -- apart from the problem with the colon.
i changed the parser for generic a bit so you need to check careful next 
beta as i'm only testing some basic plain loading


i have no clue how otfload locates files but maybe you need to add an 
entry to


local remapper = {
otf= "opentype fonts",
ttf= "truetype fonts",
ttc= "truetype fonts",
cid= "cid maps",
cidmap = "cid maps",
 -- fea= "font feature files", -- no longer supported
pfb= "type1 fonts",-- needed for vector loading
afm= "afm",
enc= "enc files",
lua= "tex", -- LIKE THIS
}

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] sort order in registers (indexes)

2018-06-10 Thread Henning Hraban Ramm
Am 2018-06-10 um 12:42 schrieb Pablo Rodriguez :

> On 06/10/2018 11:49 AM, Henning Hraban Ramm wrote:
>> Ahoi,
>> 
>> usually, uppercase index entries are sorted before all lowercase entries.
>> Is there a simple setup to change that?
>> 
>> i.e. I need the sorting
>> sum - Sun - sunny
>> instead of
>> Sun - sum - sunny
>> 
>> I know I can influence sort order for single entries, but I’d like a general 
>> setting.
> 
> Hi Hraban,
> 
> I think this may achieve what you want:
> 
>  \setupregister[index][method={zm,zc}]
> 
> I hope it helps,

Thank you very much!

I overlooked that there is indeed some documentation:
http://wiki.contextgarden.net/Command/keyword:method

(Source: 
http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/sort-ini.lua)


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] font pathes with colons

2018-06-10 Thread Ulrike Fischer
Am Sun, 10 Jun 2018 12:42:25 +0200 schrieb Hans Hagen:

>> Thanks. But if protection is possible, why doesn't [...] already
>> does it? I thought that in the brackets is always only a path
>> anyway.
> because we share soem code with context and i don't want to support this 
> [] syntax there (conflicts too much)

Ah ok.  I'm not really bound to a specific syntax as long as
luaotfload at the end gets the correct data. 

The problem is that luaotfload is not really maintained currently,
so it is difficult to improve its handling of lua-fonts. The current
setup has some problems with them: 

I tried at first the {file:luafont.lua} syntax, but luaotfload
doesn't look in fonts/misc in this case (which imho is a more
logical place then tex/luatex), and also it constantly triggered the
rebuilding of the database. Absolute pathes found with kpathsea
looked like the way out -- apart from the problem with the colon.


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] sort order in registers (indexes)

2018-06-10 Thread Pablo Rodriguez
On 06/10/2018 11:49 AM, Henning Hraban Ramm wrote:
> Ahoi,
> 
> usually, uppercase index entries are sorted before all lowercase entries.
> Is there a simple setup to change that?
> 
> i.e. I need the sorting
> sum - Sun - sunny
> instead of
> Sun - sum - sunny
> 
> I know I can influence sort order for single entries, but I’d like a general 
> setting.

Hi Hraban,

I think this may achieve what you want:

  \setupregister[index][method={zm,zc}]

I hope it helps,

Pablo



> (Diacritics are handled as wanted.)
> 
> 
> \starttext
> \strut
> \index{Sun}\index{sun}\index{Suomi}\index{suave}
> \index{sunny}\index{sum}\index{Sumatra}\index{summon}
> \index{sample}\index{super}
> \index{şample}\index{südlich}\index{súper}
> \index{şun}\index{sün}\index{şüñ}
> 
> \completeindex
> 
> \stoptext
> 
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> ___
> 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
> ___
> 


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

Re: [NTG-context] font pathes with colons

2018-06-10 Thread Hans Hagen

On 6/9/2018 11:34 PM, Ulrike Fischer wrote:

Am Sat, 9 Jun 2018 11:52:43 +0200 schrieb Hans Hagen:


As far as I can see the code which does the splitting is in
font-def.lua and so part of the generic code. Is there anything that
can be done to correct his? Or can one somehow protect the colon
after c: to be interpretated as file-detail separator?



i can support {weird name} but need to check first if it will not
interfere with context (or luatex-plain)


Thanks. But if protection is possible, why doesn't [...] already
does it? I thought that in the brackets is always only a path
anyway.
because we share soem code with context and i don't want to support this 
[] syntax there (conflicts too much)


i'll see if i can make a dedicated variant (after all latex doesn't need 
some of the trickery present)



-
  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] ToC as itemize

2018-06-10 Thread Henning Hraban Ramm
Might there be a solution to this problem?

I.e. how to insert ToC entries in an itemize?

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-05-03 um 16:13 schrieb Henning Hraban Ramm :

> Hi again,
> Alan Bowen invented this interesting setup where the table of contents is to 
> be included in an itemize.
> E.g.
> 
>   Foreword   I
> 1. Smth unrelated .. II
> 2. Author: Title ...  1
> 3. Author: Title ...  5
> 
> etc.
> Only 2. and 3. come from a "list" of chapters, other entries are added 
> manually.
> 
> 
> The attached not-really-minimal working example also handles the author setup 
> – IRL we use a lot of user variables for metadata that needs different 
> representation in ToC and titling.
> 
> This is the core code:
> 
> \define[1]\ChapterTocEntry{%
>  \startitem
>\structurelistuservariable{author}:
>#1\leaderfill\currentlistentrypagenumber
>  \stopitem
> }
> 
> \definelist[chapter][%
>alternative=b,
>interaction=all,
>criterium=all,
>textcommand=\ChapterTocEntry,
>pagecommand=\gobbleoneargument,
> ]
> 
> \startContentsList
> %\sym{}Preface\leaderfill\at{Preface} % Preface unnumbered
> 
> \startitem Test entry\leaderfill 123 \stopitem
> 
> \placelist[chapter][criterium=all]
> 
> \stopContentsList
> 
> 
> The actual problem:
> The chapter list entries don’t adhere to the formatting of the itemize.
> I guess there’s some expansion problem, due to the \startitem inside if the 
> textcommand?
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
> 
> ___
> 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
___

[NTG-context] sort order in registers (indexes)

2018-06-10 Thread Henning Hraban Ramm
Ahoi,

usually, uppercase index entries are sorted before all lowercase entries.
Is there a simple setup to change that?

i.e. I need the sorting
sum - Sun - sunny
instead of
Sun - sum - sunny

I know I can influence sort order for single entries, but I’d like a general 
setting.

(Diacritics are handled as wanted.)


\starttext
\strut
\index{Sun}\index{sun}\index{Suomi}\index{suave}
\index{sunny}\index{sum}\index{Sumatra}\index{summon}
\index{sample}\index{super}
\index{şample}\index{südlich}\index{súper}
\index{şun}\index{sün}\index{şüñ}

\completeindex

\stoptext



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

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