[NTG-context] font pathes with colons

2018-06-08 Thread Ulrike Fischer
I have been playing around with lua fonts and investigating where to
store and how to load them. 

The best with luaotfload and latex seems to be currently to get
(with a kpse call) the absolute path and then load with the "xetex"
syntax:

\font\duckchessfont =
  [\directlua{tex.sprint(kpse.find_file("luafont-duckchess.lua",
  "misc fonts"))}]:mode=node;+liga;+tlig;original=latinmodernsans


This worked but I also saw in the log curious messages

luaotfload | load : font option
"/Users//Documents/Git/lua-font-
pond/texmf/fonts/misc/luafont/luafont-duckchess.lua]:mode=node"
unknown.

I investigated a bit. I'm on windows and imho this looks as if the
syntax parser is splitting after the C: of the drive and putting the
rest in the specification.detail field.

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?




-- 
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] \seeindex with subentries

2018-06-08 Thread Alan Braslau
This has been reported before...

BTW, how should cat+Siamese be formatted?

cat 1
  Burmese 1
  obese, see Siamese

or

cat 1
  Burmese 1
  obese, see cat, Siamese


Clearly the second case would be needed for
\seeindex{pet+obese}{cat+Siamese}
with

pet
  obese, see cat, Siamese


Alan


On Fri, 8 Jun 2018 21:44:13 +0200
Henning Hraban Ramm  wrote:

> This MWE:
> 
> """
> \setupinteraction[state=start]
> \setupregister[index][n=1]
> 
> \starttext
> My \index{dog}dog is a \index{dog+bullterrier}bullterrier.
> He doesn't like \index{cat}cats.
> There are a lot of \index{cat+stray}stray cats, but only a few of
> them are \index{cat+Siamese}Siamese. I don’t think there are
> \index{cat+Burmese}Burmese cats.
> 
> \seeindex{cat+obese}{cat+Siamese}
> \seeindex{hound}{dog}
> 
> \completeindex
> 
> \stoptext
> """
> 
> ... shows two problems at once:
> 
> """
> c
> cat 1
>   Burmese 1, see cat+Siamese
>   Siamese 1
>   stray 1
> d
> dog 1
>   bullterrier 1
> h
> hound see dog
> """
> 
> While the reference "hound see dog" is properly formatted, cat+obese
> is missing (i.e. sorted under Burmese) while there is no
> \index{cat+obese}, and the reference "cat+Siamese" is shown as-is,
> not properly formatted.
> 
> That means, refering to index sub-entries is broken at the moment
> (current beta and at least several previous).
> 
> 
> 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
___

[NTG-context] \seeindex with subentries

2018-06-08 Thread Henning Hraban Ramm
This MWE:

"""
\setupinteraction[state=start]
\setupregister[index][n=1]

\starttext
My \index{dog}dog is a \index{dog+bullterrier}bullterrier.
He doesn't like \index{cat}cats.
There are a lot of \index{cat+stray}stray cats, but only a few of them are 
\index{cat+Siamese}Siamese. I don’t think there are \index{cat+Burmese}Burmese 
cats.

\seeindex{cat+obese}{cat+Siamese}
\seeindex{hound}{dog}

\completeindex

\stoptext
"""

... shows two problems at once:

"""
c
cat 1
  Burmese 1, see cat+Siamese
  Siamese 1
  stray 1
d
dog 1
  bullterrier 1
h
hound see dog
"""

While the reference "hound see dog" is properly formatted, cat+obese is missing 
(i.e. sorted under Burmese) while there is no \index{cat+obese}, and the 
reference "cat+Siamese" is shown as-is, not properly formatted.

That means, refering to index sub-entries is broken at the moment (current beta 
and at least several previous).


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


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