Re: [NTG-context] ligature exceptions

2017-09-27 Thread Florian Grammel
There is a LuaLaTeX-package "selnolig" to achieve this goal. Its wordlists and 
rules could probably be adapted. There is also a thorough discussion of this 
challenge in the documentation.
https://www.ctan.org/pkg/selnolig

Best regards,
Florian

____

Florian Grammel

Copenhagen, Denmark

___
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] compressing register ranges

2017-06-16 Thread Florian Grammel

>> Using [compress=all] for registers yields somewhat puzzling results (1.0.4 
>> (TeX Live 2017)).
>> I would expect the register of the following code to become one single range 
>> "1--7", though context produces "1--2, 3--7".
>> Is this the expected behaviour?
>> And if so: is there another switch to get the ranges to be collapsed 
>> completely?
>> 
>> Also: There wouldn't be a shorthand to define explicit ranges? LaTeX has 
>> \index{Demorange|(} to \index{Demorange|)} which is actually very convenient.
> 
> ConTeXt has \startregister, see 
> http://wiki.contextgarden.net/Registers#Collapse_Page_Numbers

I shoud probably have been more specific: While \startregister as such works 
for me, it 
1) isn't collapsed as expected together with ordinary single 
register-entries (my main problem, cf mwe below)
2) is a bit cumbersome to use as it requires the user to keep track of 
keys, as explained in your link from contextgarden.

Best,
Florian.

> 
> \defineregister [demo] [demoes]
> \starttext
> 
> 1
> \demo{Demorange}
> 
> \page[yes]
> 
> 2
> \demo{Demorange}
> 
> \page[yes]
> 
> 3
> \startregister[demo][demorange]{Demorange}
> 
> \page[yes]
> 
> 4
> \demo{Demorange} 
> 
> \page[yes]
> 
> 5
> 
> \page[yes]
> 
> 6
> \stopregister[demo][demorange]
> 
> \page[yes]
> 
> 7
> \demo{Demorange} 
> 
> \page[yes]
> 
> \placeregister [demo] [compress=all]
> 
> \stoptext





Florian Grammel

Copenhagen, Denmark

___
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] compressing register ranges

2017-06-16 Thread Florian Grammel
Using [compress=all] for registers yields somewhat puzzling results (1.0.4 (TeX 
Live 2017)).
I would expect the register of the following code to become one single range 
"1--7", though context produces "1--2, 3--7".
Is this the expected behaviour?
And if so: is there another switch to get the ranges to be collapsed completely?

Also: There wouldn't be a shorthand to define explicit ranges? LaTeX has 
\index{Demorange|(} to \index{Demorange|)} which is actually very convenient.

Best regards,
Florian.


\defineregister [demo] [demoes]
\starttext

1
\demo{Demorange}

\page[yes]

2
\demo{Demorange}

\page[yes]

3
\startregister[demo][demorange]{Demorange}

\page[yes]

4
\demo{Demorange} 

\page[yes]

5

\page[yes]

6
\stopregister[demo][demorange]

\page[yes]

7
\demo{Demorange} 

\page[yes]

\placeregister [demo] [compress=all]

\stoptext




____________

Florian Grammel

Copenhagen, Denmark

___
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] overrule italics

2017-06-02 Thread Florian Grammel
> 
>> I have a long text with section headers partly in italics and/or emphasis. 
>> I'd like to setup the formatting in a way that overrules these.
>> 
>> \setuphead[section][style=\tfb\up]
>> 
>> In LaTeX there would be \upshape/\textup -- is there an equivalent in 
>> ConTeXt?
> 
> Did you try \tf ?
> 

yes I did, unfortunately it doesn't work

> Otherwise \emph{italics \emph{upright} italics} should work (didn’t try).

Nested emph to invert works. But my text has both italicised and regular 
headers -- both should be printed upright with the modified style.

Even though I can modify them manually in this present case, something like 
\upshape would be good to have.

Best
Florian.


___
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] overrule italics

2017-06-02 Thread Florian Grammel
I have a long text with section headers partly in italics and/or emphasis. I'd 
like to setup the formatting in a way that overrules these.

\setuphead[section][style=\tfb\up]

In LaTeX there would be \upshape/\textup -- is there an equivalent in ConTeXt?


Thanks in advance!
Florian.





Florian Grammel

Copenhagen, Denmark

___
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] (re)defining command with options

2017-05-18 Thread Florian Grammel
> See also http://wiki.contextgarden.net/Commands_with_optional_arguments 
> <http://wiki.contextgarden.net/Commands_with_optional_arguments>

How could I possibly have overlooked this?!

Thanks a lot!

________

Florian Grammel

Copenhagen, Denmark

___
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] (re)defining command with options

2017-05-16 Thread Florian Grammel
While visualising index-entires in the margin using \version[temporary] isn't 
implemented for MkIV yet, I'd like to define a basic stand-in in the meantime:

\setupmargindata[inmargin][location=outer, style=itxx]
\define[1]\myindex{\index{#1}%
\inmargin{#1}%
}

But occurrences of e.g.

\myindex[CONTEXT]{\ConTeXt}

break these simple definitions.

Is there an easy way to define commands with options and/or patching 
(extending) existing commands?




Thanks in advance!
Florian.




Florian Grammel

Copenhagen, Denmark

___
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] (again) index sorting of accented characters

2017-04-28 Thread Florian Grammel
>> Have you played with the different "methods" defined in sort-ini.lua, 
>> lines 96-103?
> 
> Many thanks for your reply, Thomas.
> 
> The right values seem to be {zm, zc}. This works fine with Spanish and
> French, […]


Even with {zm, zc} or any of the predefined methods I don’t really think it is 
working completely as expected, even though the problem might just occur in 
very special cases:

\setupregister[method={zm, zc}]
\starttext
\startTEXpage[offset=2em]
\index{káv}
\index{kav}
\index{káva}
\index{kava}
\index{káf}
\index{kaf}
\index{káfa}
\index{kafa}
\index{kaka}
\index{káka}
\placeindex[language=es]
\stopTEXpage
\stoptext

gives

kaf
kafa
káf
káfa
kaka
káka
kav
kava
káv
káva

though I’d think it would be correct/logical to sort: 

kaf
káf
kafa
káfa
kaka
káka
kav
káv
kava
káva

It there a way to get this result with „methods“ or would I need to modify the 
sort-rules?

(The example words are not Spanish, obviously, but Icelandic/Faroese, which I 
am trying to correct/set up. But I’d imagine that the same would be the desired 
behaviour for Spanish and languages with similar traditions, too, wouldn’t it?)

Best
Florian.



________

Florian Grammel

Copenhagen, Denmark

___
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] Index with distinguishable entries -- again

2017-04-27 Thread Florian Grammel
Thank you very much for your example -- it really helps a lot!

That’s one smart trick for the endnotes. It will do fine for my current 
project, but obviously it will not work for footnotes directly on the pages.
I had somehow hoped that there would be something like „if within some 
environment/command" to the processors. With this also the formating of the 
items within the captions could be done automatically.

A real problem though is that adding
\setupregister [index] [compress=yes]
will wrongly compress e.g. "aaa 1, 2, 1n“ to "aaa 1–1n“. I’ll need to use 
compressed ranges and would be happy with a result, where formatted numbers a 
subsumed under the regular ones.
You don’t happen to know how to make this work correctly, do you?

Best,
Florian.


> 
> On 2017-04-26 09:18, Florian Grammel wrote:
>> Back in april 2012 Robert Blackstone asked some questions about indexing
>> http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html 
>> <http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html>
>> i.a.:
>> 
>>> For a book in the area of musicology I would like to make one register with 
>>> entries of different kinds, distinguishable by their appearance in the  
>>> register (or index or whatever).
>>> The index entries will mostly be authors, including composers, musical 
>>> terms 
>>> and musical compositions. The titles of the compositions and the foreign 
>>> words 
>>> are set in italic characters throughout in the text of the book.
>>> What I would like is to be able to distinguish all entries according to 
>>> whether 
>>> they are treated in the text, are shown in a musical example, or are 
>>> mentioned 
>>> only in a foot- or endnote.
>>> 
>>> In many books page numbers indicating illustrations are set in italics. 
>>> Pagenumbers indicating foot- or endnotes often have a suffix "n".
>>> 
>> His other question were resolved, but this one remained unanswered, apart 
>> from that two other users also wanted to do exactly the same thing.
>> 
>> I would like to do something very similar and was wondering: Has this been 
>> addressed/solved since then?
>> 
>> 
> Perhaps the following can help. It has separate user page numbers for the 
> main matter and back matter, with a suffixed ‘n’ for the items indexed from 
> backmatter pages, but no suffix on the backmatter page numbers. The index 
> entries for figures are rubricated and have a leading ‘f’.
> 
> \defineprocessor [backpart] [style=slanted,right=n]
> \defineprocessor [Figure] [style=\tf,color=red,left=f]
> \defineconversionset [backpart:pagenumber][][backpart->o]
> \setupuserpagenumber[way=byblock]
> \setuppagenumbering [location=none]
> \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}]
> \setupnote[footnote][location=none]
> \useMPlibrary[dum]
> \starttext
> \startbodymatter
> \startchapter[title=A chapter]
>   \index{aaa}This is in the main body.\footnote{\index{bbb}This is a 
> footnote.}
> \stopchapter
> \startchapter[title={Another chapter}]
>   \index{aaa}This is in the main body.\footnote{\index{bbb}This is a 
> footnote.}
>   \startplacefigure[location=default,
>   title={Body illustration\index[Figure->]{ccc}}]
> \externalfigure[dummy][]
>   \stopplacefigure
> \stopchapter
> \stopbodymatter
> \page
> \startbackmatter
> \startchapter[title=An appendix]
>   This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is a 
> footnote.}
>   \startplacefigure[location=default,
>   title={Appendix illustration\index[Figure->]{ddd}}]
> \externalfigure[dummy][]
>   \stopplacefigure
> \stopchapter
> \startchapter[title=Notes]
>   \placenotes[footnote]
> \stopchapter
> \startchapter[title=Index]
>   \placeregister[index]
> \stopchapter
> \stopbackmatter
> \stoptext
> 
> -- 
> 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
___

[NTG-context] Index with distinguishable entries -- again

2017-04-26 Thread Florian Grammel
Back in april 2012 Robert Blackstone asked some questions about indexing
http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html
i.a.:

> For a book in the area of musicology I would like to make one register with 
> entries of different kinds, distinguishable by their appearance in the  
> register (or index or whatever).
> The index entries will mostly be authors, including composers, musical terms 
> and musical compositions. The titles of the compositions and the foreign 
> words 
> are set in italic characters throughout in the text of the book.
> What I would like is to be able to distinguish all entries according to 
> whether 
> they are treated in the text, are shown in a musical example, or are 
> mentioned 
> only in a foot- or endnote.
> 
> In many books page numbers indicating illustrations are set in italics. 
> Pagenumbers indicating foot- or endnotes often have a suffix "n".
> 

His other question were resolved, but this one remained unanswered, apart from 
that two other users also wanted to do exactly the same thing.

I would like to do something very similar and was wondering: Has this been 
addressed/solved since then?


Thanks in advance!
Best,
Florian.


____

Florian Grammel

Copenhagen, Denmark

___
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] \hyphenation command in TL 16

2017-04-16 Thread Florian Grammel
Obviously fixed in new beta. Splendid -- thank you!
Florian.

> Den 14. apr. 2017 kl. 01.20 skrev Florian Grammel
> 
> ok, thanks;
> so I’ll need to get some things to work in the standalone then…
> 
> For one ver: 2017.04.08 12:00 doesn’t seem to hyphenate in \WORDS
> Please compare
> 
> \setuphead[section][style={\WORDS}]
> \section{this is bit of a problem problem problem problem problem problem 
> problem problems}
> 
> on the standalone (last word in the margin) to TL16 (properly hyphenated)
> 
> Can this be fixed?
> 
> Best
> Florian.
> 
>> Den 13. apr. 2017 kl. 22.10 skrev Hans Hagen <pra...@wxs.nl 
>> <mailto:pra...@wxs.nl>>:
>> 
>> On 4/13/2017 9:37 PM, Florian Grammel wrote:
>>> The \hyphenation{}-command is ignored in the texlive 2016 version (ver: 
>>> 2016.05.17 19:20 MKIV). This has obviously been fixed since, as it works in 
>>> the standalone.
>>> 
>>> For other reasons I’d prefer to keep working with the TL16-version -- is it 
>>> possible to patch the hyphenation easily in TL 16?
>> 
>> unlikely
>> 
>> Hans
>> 
>> 
>> -
>>  Hans Hagen | PRAGMA ADE
>>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
>> www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <http://contextgarden.net/>
>> ___
> 
> 
> 
> Florian Grammel
> 
> Copenhagen, Denmark
> 

___
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] \hyphenation command in TL 16

2017-04-13 Thread Florian Grammel
ok, thanks;
so I’ll need to get some things to work in the standalone then…

For one ver: 2017.04.08 12:00 doesn’t seem to hyphenate in \WORDS
Please compare

\setuphead[section][style={\WORDS}]
\section{this is bit of a problem problem problem problem problem problem 
problem problems}

on the standalone (last word in the margin) to TL16 (properly hyphenated)

Can this be fixed?

Best
Florian.

> Den 13. apr. 2017 kl. 22.10 skrev Hans Hagen <pra...@wxs.nl>:
> 
> On 4/13/2017 9:37 PM, Florian Grammel wrote:
>> The \hyphenation{}-command is ignored in the texlive 2016 version (ver: 
>> 2016.05.17 19:20 MKIV). This has obviously been fixed since, as it works in 
>> the standalone.
>> 
>> For other reasons I’d prefer to keep working with the TL16-version -- is it 
>> possible to patch the hyphenation easily in TL 16?
> 
> unlikely
> 
> 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
> _______



Florian Grammel

Copenhagen, Denmark

___
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] \hyphenation command in TL 16

2017-04-13 Thread Florian Grammel
The \hyphenation{}-command is ignored in the texlive 2016 version (ver: 
2016.05.17 19:20 MKIV). This has obviously been fixed since, as it works in the 
standalone.

For other reasons I’d prefer to keep working with the TL16-version -- is it 
possible to patch the hyphenation easily in TL 16?

Thanks in advance!
Best,
Florian.




Florian Grammel

Copenhagen, Denmark

___
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] \language[is] not working

2017-04-13 Thread Florian Grammel
Thanks! I kept the default, because Icelandic conventions for quotes and 
spacing are like in German. Looks like that setting right/lefthyphenmin 
explicitely will work.

Please excuse the noise!
Florian.


> 
> 
> 
>> Florian Grammel <mailto:florian.gram...@gmail.com>  13. April 2017 um 19:53
>> At first sight this seemed to work fine: the scheme is switched and the 
>> resulting hyphenations are mostly correct. But the patterns are in a way not 
>> complete. 
>> 
>> \hyphenatedword with context ver: 2017.04.08 12:09 MKIV beta  fmt: 2017.4.9 
>> (or TL16’s) gives:
>> 
>> Önundur hét maður. Hann var Ófeigs-son burlu-fóts Ívars-sonar beytils. 
>> „Önundur“ var bróðir Guð-bjargar, móður Guð-brands kúlu, föður Ástu, 
>> móður Ólafs kon-ungs hins helga. Önundur var upp-lenskur að móð-urætt en 
>> föð-urkyn hans var mest um Roga-land og Hörða- land.
>> 
>> while polyglossia/babel on (xe)latex find most of the orthographically 
>> possible ones:
>> 
>> Ön-und-ur hét mað-ur. Hann var Ófeigs-son burlu-fóts Ívars-son-ar beytils. 
>> Ön-und-ur var bróð-ir Guð-bjarg-ar, móð-ur Guð-brands kúlu, föð-ur Ástu, 
>> móð-ur Ól-afs kon-ungs hins helga. Ön-und-ur var upp-lensk-ur að móð-urætt 
>> en föð-urkyn hans var mest um Roga-land og Hörða-land.
>> 
>> 
>> Any ideas?
>> 
> Remove the default key from \installlanguage.
> 
>  begin example
> \installlanguage
>   [is]
>   [patterns=is]
> 
> \starttext
> 
> \hyphenatedword{Önundur hét maður. Hann var Ófeigsson burlufóts Ívarssonar 
> beytils. Önundur var bróðir Guðbjargar, móður Guðbrands kúlu, föður Ástu, 
> móður Ólafs konungs hins helga. Önundur var upplenskur að móðurætt en 
> föðurkyn hans var mest um Rogaland og Hörðaland.}
> 
> \blank \language[is]
> 
> \hyphenatedword{Önundur hét maður. Hann var Ófeigsson burlufóts Ívarssonar 
> beytils. Önundur var bróðir Guðbjargar, móður Guðbrands kúlu, föður Ástu, 
> móður Ólafs konungs hins helga. Önundur var upplenskur að móðurætt en 
> föðurkyn hans var mest um Rogaland og Hörðaland.}
> 
> \stoptext
>  end example
> 
> 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] \language[is] not working

2017-04-13 Thread Florian Grammel
At first sight this seemed to work fine: the scheme is switched and the 
resulting hyphenations are mostly correct. But the patterns are in a way not 
complete. 

\hyphenatedword with context ver: 2017.04.08 12:09 MKIV beta  fmt: 2017.4.9 (or 
TL16’s) gives:

Önundur hét maður. Hann var Ófeigs-son burlu-fóts Ívars-sonar beytils. 
„Önundur“ var bróðir Guð-bjargar, móður Guð-brands kúlu, föður Ástu, 
móður Ólafs kon-ungs hins helga. Önundur var upp-lenskur að móð-urætt en 
föð-urkyn hans var mest um Roga-land og Hörða- land.

while polyglossia/babel on (xe)latex find most of the orthographically possible 
ones:

Ön-und-ur hét mað-ur. Hann var Ófeigs-son burlu-fóts Ívars-son-ar beytils. 
Ön-und-ur var bróð-ir Guð-bjarg-ar, móð-ur Guð-brands kúlu, föð-ur Ástu, móð-ur 
Ól-afs kon-ungs hins helga. Ön-und-ur var upp-lensk-ur að móð-urætt en 
föð-urkyn hans var mest um Roga-land og Hörða-land.


Any ideas?
Best regards,
Florian



> Den 30. mar. 2017 kl. 15.58 skrev Hans Hagen <pra...@wxs.nl>:
> 
> On 3/30/2017 3:13 PM, Florian Grammel wrote:
>> Adapting the example
>> from http://wiki.contextgarden.net/Command/language to use luatex (which
>> I’ll need). But I get the same result when using the original mkii.
> 
> Islandic is not defined as language
> 
> \installlanguage
>  [is]
>  [default=en,
>   patterns=is]
> 
> look into lang-def.mkiv for what more is needed (and in lang-txt.lua)
> 
> We can of course add that.
> 
> Hans
> 
>> Many thanks!
>> Florian.
>> 
>> 
>> \setuppapersize[A6, landscape]
>> 
>> \definefontfamily [mainface] [rm] [Palatino Linotype]
>> \setupbodyfont[mainface,10pt]
>> 
>> \setupwhitespace[big]  % blank line between paragraphs
>> 
>> \version[temporary]% show overful hboxes
>> 
>> \startcolumns[n=4, distance=3em]
>>  (English hyphenation)
>> 
>> Önundur hét maður. Hann var Ófeigsson burlufóts Ívarssonar beytils.
>> Önundur var bróðir Guðbjargar, móður Guðbrands kúlu, föður Ástu, móður
>> Ólafs konungs hins helga. Önundur var upplenskur að móðurætt en föðurkyn
>> hans var mest um Rogaland og Hörðaland.
>> 
>> \currentdate
>> 
>> \column
>> 
>>  \language[is] % or [icelandic]
>>  (Icelandic hyphenation)
>> 
>> Önundur hét maður. Hann var Ófeigsson burlufóts Ívarssonar beytils.
>> Önundur var bróðir Guðbjargar, móður Guðbrands kúlu, föður Ástu, móður
>> Ólafs konungs hins helga. Önundur var upplenskur að móðurætt en föðurkyn
>> hans var mest um Rogaland og Hörðaland.
>> 
>> \currentdate
>> 
>> 
>> \stopcolumns
>> 
>> \end
>> 
>> 



Florian Grammel

Copenhagen, Denmark

___
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] side caption top aligned on grid -- not implemented?

2017-04-08 Thread Florian Grammel

> There’s still one catch: When I change the caption key „location“ to „bottom“ 
> together with „inbetween={\blank[-\strutdepth]}“ the picture is aligned with 
> the black line (top of the first text line). 
> This would actually be the preferred solution also for „{left,high}“. Yet I 
> couldn’t find a possibility to shift the picture vertically by some 
> millimeters.
> Is there?

To whoever might be trying to get this to work, too:
\offset[y=2mm] *inside* \placeongrid will do this.

Best,
Florian.

___
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] side caption top aligned on grid -- not implemented?

2017-04-08 Thread Florian Grammel
By trial-and-error I’ve come up with the following. It seems like a hack but 
both variants are close enough to my requirements that I would be able to work 
with one of them.

There’s still one catch: When I change the caption key „location“ to „bottom“ 
together with „inbetween={\blank[-\strutdepth]}“ the picture is aligned with 
the black line (top of the first text line). 
This would actually be the preferred solution also for „{left,high}“. Yet I 
couldn’t find a possibility to shift the picture vertically by some millimeters.
Is there?


Best regards,
Florian.




\useMPlibrary[dum]
\setuplayout [grid=yes]
\setupinterlinespace [line=20pt]


\setupcaption [figure] [
location={left,high}, 
%%  location={bottom}, %different 
alignment
number=no,
%   inbetween={\blank[-.01mm]}, 
%Variant 1: picture top-aligned, caption on grid

inbetween={\blank[-\strutdepth]}, %Variant 2: picture and caption top-aligned, 
caption not on grid
]


\starttext
\showgrid

\startplacefigure
[location=top,none,title={There is not so much basic instruction, as of 
now, as there was
in the old days, showing the differences between good and bad typographic 
design.},
]
  \placeongrid[max]{
  \externalfigure [dummy] [width=.6\textwidth]
  }
\stopplacefigure

\input zapf


\stoptext







> Den 6. apr. 2017 kl. 10.12 skrev Florian Grammel <florian.gram...@gmail.com>:
> 
> At http://tex.stackexchange.com/q/362215/6819 I asked: How can I place the 
> top line of the caption (location={left, high}) on the grid and have it align 
> with the figure at same height.
> 
> I hoped this to be solvable by some simple instructions that I just haven’t 
> been able to figure out. But Henri Menke suggested in a comment that the 
> mechanism might not be implemented.
> Is this really the case?
> And if so: is there any way to achieve the alignment anyway?
> 
> I’d greatly appreciate any help as this is an important requirement for my 
> present project!
> 
> Best regards,
> Florian.
> 

____

Florian Grammel

Copenhagen, Denmark

___
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] side caption top aligned on grid -- not implemented?

2017-04-06 Thread Florian Grammel
At http://tex.stackexchange.com/q/362215/6819 I asked: How can I place the top 
line of the caption (location={left, high}) on the grid and have it align with 
the figure at same height.

I hoped this to be solvable by some simple instructions that I just haven’t 
been able to figure out. But Henri Menke suggested in a comment that the 
mechanism might not be implemented.
Is this really the case?
And if so: is there any way to achieve the alignment anyway?

I’d greatly appreciate any help as this is an important requirement for my 
present project!

Best regards,
Florian.





Florian Grammel

Copenhagen, Denmark

___
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] float pages again

2017-04-05 Thread Florian Grammel
Back in 2007 there was a discussion here on the list about whether context 
could do something like LaTeX’s float pages. 
http://www.mail-archive.com/search?l=ntg-context%40ntg.nl=subject%3A%22%5C%5BNTG%5C-context%5C%5D+LaTeX+float+pages+in+ConTeXt%22=0=0

In short these are designated pages that LeTeX puts in to collect abundant top- 
and here-floats. There can -- in contrast to contex’s default=page -- be more 
than one float on such a page and there is no running text.

In a LaTeX-setup correcponding to:

%\setupfloats[nlines=15]
\setupfloat[figure][default={here,top,bottom,page}]

\starttext

\section{First Section}

\input zapf

\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.5in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.5in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.3in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.3in]}

\section{Second Section}
\input zapf
\input zapf
\input zapf

\stoptext


pages 2 and 3 wouldn’t have body text on them.

Is there a possibility to have context remove body text from pages with floats 
when the space falls short of a certain number of lines?

Hans mentioned nlines in the old thread, but commenting it in doesn’t seem to 
have any effect.


Best regards,
Florian.




Florian Grammel

Copenhagen, Denmark

___
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] \language[is] not working

2017-03-30 Thread Florian Grammel
Great, I can work with that!

Just never occurred to me that it might not be defined, as it is in babel and 
all other babel-languages I tried seemed to be there.
Could it be an idea to put all available ones on the list on 
http://wiki.contextgarden.net/Command/language 
<http://wiki.contextgarden.net/Command/language> and add patterns=... to 
http://wiki.contextgarden.net/Command/installlanguage ?

Best
Florian.


> Den 30. mar. 2017 kl. 15.58 skrev Hans Hagen <pra...@wxs.nl>:
> 
> On 3/30/2017 3:13 PM, Florian Grammel wrote:
>> Adapting the example
>> from http://wiki.contextgarden.net/Command/language to use luatex (which
>> I’ll need). But I get the same result when using the original mkii.
> 
> Islandic is not defined as language
> 
> \installlanguage
>  [is]
>  [default=en,
>   patterns=is]
> 
> look into lang-def.mkiv for what more is needed (and in lang-txt.lua)
> 
> We can of course add that.
> 
> Hans

___
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] \language[is] not working

2017-03-30 Thread Florian Grammel
Adapting the example from http://wiki.contextgarden.net/Command/language 
 to use luatex (which I’ll 
need). But I get the same result when using the original mkii.

Many thanks!
Florian.


\setuppapersize[A6, landscape]

\definefontfamily [mainface] [rm] [Palatino Linotype]
\setupbodyfont[mainface,10pt]

\setupwhitespace[big]  % blank line between paragraphs

\version[temporary]% show overful hboxes

\startcolumns[n=4, distance=3em]
  (English hyphenation)

Önundur hét maður. Hann var Ófeigsson burlufóts Ívarssonar beytils. Önundur var 
bróðir Guðbjargar, móður Guðbrands kúlu, föður Ástu, móður Ólafs konungs hins 
helga. Önundur var upplenskur að móðurætt en föðurkyn hans var mest um Rogaland 
og Hörðaland.

\currentdate

\column

  \language[is] % or [icelandic]
  (Icelandic hyphenation)

Önundur hét maður. Hann var Ófeigsson burlufóts Ívarssonar beytils. Önundur var 
bróðir Guðbjargar, móður Guðbrands kúlu, föður Ástu, móður Ólafs konungs hins 
helga. Önundur var upplenskur að móðurætt en föðurkyn hans var mest um Rogaland 
og Hörðaland.

\currentdate


\stopcolumns

\end

___
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] \language[is] not working

2017-03-30 Thread Florian Grammel
The Icelandic hyphenation and language settings, though present in the 
installation (lang-is.lua), don’t seem to work on ConTeXt  ver: 2016.05.17 
19:20 MKIV current  fmt: 2017.3.21
I’ve tried both \language[is] / \language[icelandic] and \mainlanguage[is] but 
the result is identical to English. Other languages (fr, ru, de) work as 
expected.

Thanks in advance!



Florian Grammel

Copenhagen, Denmark

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