Re: [NTG-context] Linespacing in TOC

2013-11-23 Thread Jan Tosovsky
On 2013-11-23 Jan Tosovsky wrote:
 On 2013-11-22 Hans Hagen wrote:
  On 11/22/2013 9:44 PM, Jan Tosovsky wrote:
   On 2013-11-20 Hans Hagen wrote:
   On 11/19/2013 11:48 PM, Jan Tosovsky wrote:
  
   I'd like to tweak a default TOC linespacing...
  
   \title{Table of Contents}
  
   \start
 \setupinterlinespace[line=0.8ex]
 \placecontent
   \stop
  
   But as I found, any value below 2.8ex causes interline
   inconsistencies when
   special cases appears, see the extreme below:
  
   \starttext
   \start
   \setupinterlinespace[line=1.0ex]
   \placecontent
   \stop
   \chapter{}. % line without descenders
   \chapter{}. % line with descenders
   \chapter{}. % the result is an inconsistent baseline
   \stoptext
  
   Is there any remedy for this? Can I fix the baseline distance
   somehow?
  
 
  \definegridsnapping[crap] [fit,0.2]
  \setuplayout[grid=crap]
 
 This helps! But... it breaks something else :-(

I've finally found an acceptable solution.

During my tests I found a crucial difference between:

\setupinterlinespace[line=2.0ex]

and 

\setupinterlinespace[0.25]

The latter sets the baseline distance correctly even without that
problematic snapping to the grid!

 All lines in my book have a certain (default) linespacing.
 TOC entries are rendered (by default) using bigger linespacing.

Btw, is there any option to override a default (huge) TOC linespacing? I
still consider my solution rather a hack.

Regards, Jan

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-23 Thread Hans Hagen

On 11/22/2013 11:37 PM, Lars Huttar wrote:

On 11/22/2013 4:59 PM, Hans Hagen wrote:

On 11/20/2013 11:12 PM, Lars Huttar wrote:

On 11/20/2013 4:47 PM, Lars Huttar wrote:

However one thing we do miss from columnsets is the control over widows
 orphans in two ways: \testcolumn, and \setupcolumnsetlines.
\testcolumn[n] allowed us to do a conditional column break, so when we
were about to start a new subsection heading, we could prevent it being
an orphan at the bottom of the column; and when starting a paragraph
with a hangaround graphic framed flushright and bottom, we could
similarly use \testcolumn to prevent the graphic from hanging down into
the footer (which is what sometimes happened otherwise).

So I'm wondering, is there some way to achieve the equivalent of
\testcolumn in mixedcolumns?


for the moment add \penalty1



OK... where? In the same place we used to use \testcolumn?


just after the (sub)section title

i need time to figure out this kind of things in the balancer

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Linespacing in TOC

2013-11-23 Thread Hans Hagen

On 11/23/2013 12:16 PM, Jan Tosovsky wrote:

On 2013-11-23 Jan Tosovsky wrote:

On 2013-11-22 Hans Hagen wrote:

On 11/22/2013 9:44 PM, Jan Tosovsky wrote:

On 2013-11-20 Hans Hagen wrote:

On 11/19/2013 11:48 PM, Jan Tosovsky wrote:


I'd like to tweak a default TOC linespacing...


\title{Table of Contents}

\start
   \setupinterlinespace[line=0.8ex]
   \placecontent
\stop


But as I found, any value below 2.8ex causes interline
inconsistencies when
special cases appears, see the extreme below:

\starttext
\start
\setupinterlinespace[line=1.0ex]
\placecontent
\stop
\chapter{}. % line without descenders
\chapter{}. % line with descenders
\chapter{}. % the result is an inconsistent baseline
\stoptext

Is there any remedy for this? Can I fix the baseline distance
somehow?



\definegridsnapping[crap] [fit,0.2]
\setuplayout[grid=crap]


This helps! But... it breaks something else :-(


I've finally found an acceptable solution.

During my tests I found a crucial difference between:

\setupinterlinespace[line=2.0ex]

and

\setupinterlinespace[0.25]

The latter sets the baseline distance correctly even without that
problematic snapping to the grid!


All lines in my book have a certain (default) linespacing.
TOC entries are rendered (by default) using bigger linespacing.


Btw, is there any option to override a default (huge) TOC linespacing? I
still consider my solution rather a hack.


just set 'before' and 'after'

normally linespacing in the toc is the same as in the rest of the 
document unless one has assigned to before/after




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Paragraph - the last line handling

2013-11-23 Thread Hans Hagen

On 11/22/2013 11:07 PM, Jan Tosovsky wrote:

Hello Everyone,

in my document there are lot of cases when the last line in the paragraph
has a very narrow gap on the right (case 1 below). I understand it is
sometimes difficult to squeeze characters to the desired lenght (case 2)
without any impact to the final quality, but this looks very unnatural now
(besides all other lines, which are nicely typeset keeping the optical edge
on the right).

Is it possible to somehow define that under a certain limit the line will be
expanded to the end (case 3)?

     (1)
xx
x
     (2)
xx

     (3)
xx
xx

I use the following setup now:

\setupalign[hz, hanging]
\setuptolerance[verystrict] % even 'strict' doesn't help here
\setupindenting[medium, yes]

Any idea?


\hsize 15.4cm

\input tufte

\parfillskip30pt plus 1 fill  \input tufte


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Linespacing in TOC

2013-11-23 Thread Jan Tosovsky
On 2013-11-23 Hans Hagen wrote:
 On 11/23/2013 12:16 PM, Jan Tosovsky wrote:
  On 2013-11-23 Jan Tosovsky wrote:
  On 2013-11-22 Hans Hagen wrote:
  On 11/22/2013 9:44 PM, Jan Tosovsky wrote:
  On 2013-11-20 Hans Hagen wrote:
  On 11/19/2013 11:48 PM, Jan Tosovsky wrote:
 
  I'd like to tweak a default TOC linespacing...
 
  \title{Table of Contents}
 
  \start
 \setupinterlinespace[line=0.8ex]
 \placecontent
  \stop
 
  But as I found, any value below 2.8ex causes interline
  inconsistencies when
  special cases appears, see the extreme below:
 
  \starttext
  \start
  \setupinterlinespace[line=1.0ex]
  \placecontent
  \stop
  \chapter{}. % line without descenders
  \chapter{}. % line with descenders
  \chapter{}. % the result is an inconsistent baseline
  \stoptext
 
  Is there any remedy for this? Can I fix the baseline distance
  somehow?
 
 
  \definegridsnapping[crap] [fit,0.2]
  \setuplayout[grid=crap]
 
  This helps! But... it breaks something else :-(
 
  I've finally found an acceptable solution.
 
  During my tests I found a crucial difference between:
 
  \setupinterlinespace[line=2.0ex]
 
  and
 
  \setupinterlinespace[0.25]
 
  The latter sets the baseline distance correctly even without that
  problematic snapping to the grid!
 
  All lines in my book have a certain (default) linespacing.
  TOC entries are rendered (by default) using bigger linespacing.
 
  Btw, is there any option to override a default (huge) TOC
 linespacing? I
  still consider my solution rather a hack.
 
 just set 'before' and 'after'

Ok. I haven't realize that.

 normally linespacing in the toc is the same as in the rest of the
 document unless one has assigned to before/after

This example shows different behaviour:

\showgrid
\starttext
\start
\placecontent
\stop
\chapter{}Foo

Bar
\chapter{}.
\chapter{}.
\stoptext

On my computer the TOC linespacing is almost twice as big as that in the
paragraph.

Jan

___
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] Eliminating orphans/widows when grid is on

2013-11-23 Thread Jan Tosovsky
Dear All,

when the grid is switched on in my document, there are lots of orphan and
widows in the output. 

\setuplayout[grid=yes] % grid=tolerant doesn't help

According to the manual the grid typesetting is a solely ConTeXt feature not
available in the core TEX. Is it production ready? Are there any options to
handle o/w correctly?

Thanks, Jan

___
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] Linespacing in TOC

2013-11-23 Thread Hans Hagen

On 11/23/2013 1:44 PM, Jan Tosovsky wrote:

On 2013-11-23 Hans Hagen wrote:

On 11/23/2013 12:16 PM, Jan Tosovsky wrote:

On 2013-11-23 Jan Tosovsky wrote:

On 2013-11-22 Hans Hagen wrote:

On 11/22/2013 9:44 PM, Jan Tosovsky wrote:

On 2013-11-20 Hans Hagen wrote:

On 11/19/2013 11:48 PM, Jan Tosovsky wrote:


I'd like to tweak a default TOC linespacing...


\title{Table of Contents}

\start
\setupinterlinespace[line=0.8ex]
\placecontent
\stop


But as I found, any value below 2.8ex causes interline
inconsistencies when
special cases appears, see the extreme below:

\starttext
\start
\setupinterlinespace[line=1.0ex]
\placecontent
\stop
\chapter{}. % line without descenders
\chapter{}. % line with descenders
\chapter{}. % the result is an inconsistent baseline
\stoptext

Is there any remedy for this? Can I fix the baseline distance
somehow?



\definegridsnapping[crap] [fit,0.2]
\setuplayout[grid=crap]


This helps! But... it breaks something else :-(


I've finally found an acceptable solution.

During my tests I found a crucial difference between:

\setupinterlinespace[line=2.0ex]

and

\setupinterlinespace[0.25]

The latter sets the baseline distance correctly even without that
problematic snapping to the grid!


All lines in my book have a certain (default) linespacing.
TOC entries are rendered (by default) using bigger linespacing.


Btw, is there any option to override a default (huge) TOC

linespacing? I

still consider my solution rather a hack.


just set 'before' and 'after'


Ok. I haven't realize that.


normally linespacing in the toc is the same as in the rest of the
document unless one has assigned to before/after


This example shows different behaviour:

\showgrid
\starttext
\start
\placecontent
\stop
\chapter{}Foo

Bar
\chapter{}.
\chapter{}.
\stoptext

On my computer the TOC linespacing is almost twice as big as that in the
paragraph.


if the grid is on that can indeed be the case but only if there are 
lines with  lineheight so that's why you can use less strict options 
(older mails)


Hans



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Eliminating orphans/widows when grid is on

2013-11-23 Thread Hans Hagen

On 11/23/2013 1:49 PM, Jan Tosovsky wrote:

Dear All,

when the grid is switched on in my document, there are lots of orphan and
widows in the output.

\setuplayout[grid=yes] % grid=tolerant doesn't help

According to the manual the grid typesetting is a solely ConTeXt feature not
available in the core TEX. Is it production ready? Are there any options to
handle o/w correctly?


indeed no core tex but context specific ... and work in progress but the 
fundamentals will not change, only more options / control / better 
heuristics might show up (also as side effect of opening up tex more)


(usually i spend time on such things when i need it myself or in projects)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Linespacing in TOC

2013-11-23 Thread Jan Tosovsky
On 2013-11-23 Hans Hagen wrote:
 On 11/23/2013 1:44 PM, Jan Tosovsky wrote:
  On 2013-11-23 Hans Hagen wrote:
 
  normally linespacing in the toc is the same as in the rest of the
  document unless one has assigned to before/after
 
  This example shows different behaviour:
 
  \showgrid
  \starttext
  \start
  \placecontent
  \stop
  \chapter{}Foo
 
  Bar
  \chapter{}.
  \chapter{}.
  \stoptext
 
  On my computer the TOC linespacing is almost twice as big as that in
  the paragraph.
 
 if the grid is on that can indeed be the case but only if there are
 lines with  lineheight so that's why you can use less strict options
 (older mails)

Yes, it is true, but in my example the grid is not activated, just shown to
compare differences...



___
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] Linespacing in TOC

2013-11-23 Thread Hans Hagen

On 11/23/2013 2:32 PM, Jan Tosovsky wrote:

On 2013-11-23 Hans Hagen wrote:

On 11/23/2013 1:44 PM, Jan Tosovsky wrote:

On 2013-11-23 Hans Hagen wrote:


normally linespacing in the toc is the same as in the rest of the
document unless one has assigned to before/after


This example shows different behaviour:

\showgrid
\starttext
\start
\placecontent
\stop
\chapter{}Foo

Bar
\chapter{}.
\chapter{}.
\stoptext

On my computer the TOC linespacing is almost twice as big as that in
the paragraph.


if the grid is on that can indeed be the case but only if there are
lines with  lineheight so that's why you can use less strict options
(older mails)


Yes, it is true, but in my example the grid is not activated, just shown to
compare differences...


maybe

\showmakeup

shows what makes that happen (for instance it can be that you inject 
invisible stuff that interferes with spacing, in which case 
\dontleavehmode's might help as otherwise tex enters / exits h/v mode 
unexpected)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Paragraph - the last line handling

2013-11-23 Thread Jan Tosovsky
On 2013-11-23 Hans Hagen wrote:
 On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
 
  in my document there are lot of cases when the last line in the
  paragraph has a very narrow gap on the right. 
 
 \hsize 15.4cm
 
 \input tufte
 
 \parfillskip30pt plus 1 fill  \input tufte

Wow, exactly! Thanks a lot.

Sorry for a dumb question, but is there any way how to use it globally for
all paragraphs in my document?

Thanks, Jan

___
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] Paragraph - the last line handling

2013-11-23 Thread Hans Hagen

On 11/23/2013 2:43 PM, Jan Tosovsky wrote:

On 2013-11-23 Hans Hagen wrote:

On 11/22/2013 11:07 PM, Jan Tosovsky wrote:


in my document there are lot of cases when the last line in the
paragraph has a very narrow gap on the right.


\hsize 15.4cm

\input tufte

\parfillskip30pt plus 1 fill  \input tufte


Wow, exactly! Thanks a lot.

Sorry for a dumb question, but is there any way how to use it globally for
all paragraphs in my document?


no, as i need to think of a decent interface to that (so remind me in a 
few months)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Index entries - custom font size

2013-11-23 Thread Jan Tosovsky
On 2013-11-16 Jan Tosovsky wrote:
 there are lot of index entries in my document and with the standard
 body font size they occupy too much space. I've tried to decrease 
 the size by the textstyle parameter. It works, but it is applied 
 recursively to every nested level: secondary items are smaller twice 
 and tertiary items three times...
 
 \setupregister[index][command=\Word, textstyle=small]
 \starttext
 \index{primary}\index{primary+secondary}\index{primary+secondary+tertia
 ry}Text
 \completeindex
 \stoptext
 

The following code switches the font size for all the index content. Even
for group titles (letters), but it is beneficial here. The index title is
split to keep the original size.

\startbackmatter
\chapter{Index}
\start
\switchtobodyfont[8pt]
\placeindex
\stop
\stopbackmatter

Jan

___
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] Paragraph - the last line handling

2013-11-23 Thread Jan Tosovsky
On 2013-11-23 Hans Hagen wrote:
 On 11/23/2013 2:43 PM, Jan Tosovsky wrote:
  On 2013-11-23 Hans Hagen wrote:
  On 11/22/2013 11:07 PM, Jan Tosovsky wrote:
 
  in my document there are lot of cases when the last line in the
  paragraph has a very narrow gap on the right.
 
  \hsize 15.4cm
 
  \input tufte
 
  \parfillskip30pt plus 1 fill  \input tufte
 
  Sorry for a dumb question, but is there any way how to use it
  globally for all paragraphs in my document?
 
 no, as i need to think of a decent interface to that (so remind me in a
 few months)

Ok. And is there any temporary hack like redefining \par macro on my side?
I've stumbled upon macro redefining somewhere, but I have no idea if this
case is doable this way. I am still newbie in the TeX world...

Jan

___
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] [***SPAM***] Eliminating orpans in the Index

2013-11-23 Thread Jan Tosovsky
Hello Everyone,

in my two-column index there are several cases when the last entry in the
given letter group overflows to the next column/page. In the extreme case it
is just the last page reference. Can I somehow prevent this? E.g. keep at
least two/three index entries together when the overflowing is triggered?
And always keep all the page references together?

Additionaly, columns are not balanced properly in all cases. When the first
is longer, it is not a big problem. But the opposite case looks weird.

Can I influence this behaviour?

Thanks, Jan

PS: Grid is not activated.

___
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] Numberconversion problem in caption prefixes

2013-11-23 Thread Géry Ogam
Thanks again Wolfgang, with this setup everything is fine.

But I wanted to bring to the attention of Hans the inconsistency of the
prefix conversions by defaut, so that he can correct them:

I A chapter

[a figure] Figure I.1  % -- Here the conversion of the prefix to
Romannumerals is done AUTOMATICALLY.

1.1 A section

[a figure] Figure 1.2 % -- Here the conversion of the prefix to
Romannumerals is NOT done AUTOMATICALLY (the presence of a section before
seems to DISCARD THE AUTOMATIC CONVERSION). Nor in the prefix of the
section.


Code:

\setuphead[chapter][conversion=Romannumerals]
\starttext
\chapter{A chapter}
\placefigure{}{\externalfigure}
\section{A section}
\placefigure{}{\externalfigure}
\stoptext


Every prefix should be AUTOMATICALLY converted, not half of them. Hans,
could you please correct that in the next betas?

Best regards.
___
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] [OT] − RobotoSlab Italics… or not

2013-11-23 Thread Wolfgang Schuster

Am 23.11.2013 um 18:51 schrieb Renaud Aubin r...@renaud.io:

 Hi folks,
 
 I'm working on a Roboto typescript and starting from the work done by
 Zen Lima back in last July, I would like to push things further.
 Since I work on some Android projects and use Google Keep mostly on a
 daily basis, I was surprised to not find italics for the RobotoSlab
 (either on the web or by extracting the assets of the Keep package).
 
 Why am I surprised: Keep do have serif title placeholders for the new
 note EditText and I see it everyday!
 
 $ mtxrun --script font --list --all --pattern=robotoslab
 
 robotoslab  robotoslabbold  RobotoSlab-Bold.ttf
 robotoslabbold  robotoslabbold  RobotoSlab-Bold.ttf
 robotoslablight robotoslablight RobotoSlab-Light.ttf
 robotoslabregular   robotoslabregular   RobotoSlab-Regular.ttf
 robotoslabthin  robotoslabthin  RobotoSlab-Thin.ttf
 
 OK, RobotoSlab fonts are accessible and I have a working typescript to
 use RobotoSlab with ConTeXt MkIV (I'll made the git repo public soon).
 At first, my thoughts are: nevermind the Slab italics but now, I'm
 curious since Inkscape, LibreOffice, … propose the italic and bolditalic
 features of the RobotoSlab (check out the attached font-manager screenshot).
 I've worked with different kind of fonts'family (more or less complete)
 and used and modified many typescripts in my ConTeXter's life but there
 I should be missing something obvious. Where are the RobotoSlab
 Italics??? My experience is that italic and bolditalic should correspond
 to files… First guess: no files so the RobotoSlab Italic and BoldItalic
 features are just faked ones composed by my GNU/Linux Debian system. No,
 I must be wrong here too…
 
 Any thoughts on The Quest of the Hidden Italics of the RobotoSlab fonts!“?


The font has no italic but inkscape slants the regular and bold styles to get 
them,
you can do the same in context with the slant key from \definefontfeature.

\definefontfeature[slanted][default][mode=base,slant=.25]

\definefontfamily[roboto][rm][Roboto 
Slab][it=features:slanted,bi=features:slanted]

\setupbodyfont[roboto]

\starttext
Regular {\it Italic} {\bf Bold} {\bi BoldItalic}
\stoptext

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] [OT] − RobotoSlab Italics… or not

2013-11-23 Thread Renaud Aubin
Le 23/11/2013 19:08, Wolfgang Schuster a écrit :
 Am 23.11.2013 um 18:51 schrieb Renaud Aubin r...@renaud.io:

 Hi folks,

 I'm working on a Roboto typescript and starting from the work done by
 Zen Lima back in last July, I would like to push things further.
 Since I work on some Android projects and use Google Keep mostly on a
 daily basis, I was surprised to not find italics for the RobotoSlab
 (either on the web or by extracting the assets of the Keep package).

 Why am I surprised: Keep do have serif title placeholders for the new
 note EditText and I see it everyday!

 $ mtxrun --script font --list --all --pattern=robotoslab

 robotoslab  robotoslabbold  RobotoSlab-Bold.ttf
 robotoslabbold  robotoslabbold  RobotoSlab-Bold.ttf
 robotoslablight robotoslablight RobotoSlab-Light.ttf
 robotoslabregular   robotoslabregular   RobotoSlab-Regular.ttf
 robotoslabthin  robotoslabthin  RobotoSlab-Thin.ttf

 OK, RobotoSlab fonts are accessible and I have a working typescript to
 use RobotoSlab with ConTeXt MkIV (I'll made the git repo public soon).
 At first, my thoughts are: nevermind the Slab italics but now, I'm
 curious since Inkscape, LibreOffice, … propose the italic and bolditalic
 features of the RobotoSlab (check out the attached font-manager screenshot).
 I've worked with different kind of fonts'family (more or less complete)
 and used and modified many typescripts in my ConTeXter's life but there
 I should be missing something obvious. Where are the RobotoSlab
 Italics??? My experience is that italic and bolditalic should correspond
 to files… First guess: no files so the RobotoSlab Italic and BoldItalic
 features are just faked ones composed by my GNU/Linux Debian system. No,
 I must be wrong here too…

 Any thoughts on The Quest of the Hidden Italics of the RobotoSlab fonts!“?

 The font has no italic but inkscape slants the regular and bold styles to get 
 them,
 you can do the same in context with the slant key from \definefontfeature.

 \definefontfeature[slanted][default][mode=base,slant=.25]

 \definefontfamily[roboto][rm][Roboto 
 Slab][it=features:slanted,bi=features:slanted]

 \setupbodyfont[roboto]

 \starttext
 Regular {\it Italic} {\bf Bold} {\bi BoldItalic}
 \stoptext

 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
 ___

Thank you Wolfgang,

I've made a repo: https://github.com/nibua-r/roboto-context
Reviews are always welcome!

Any chance that this typescript could find a way to the main ConTeXt distro?

Renaud

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