Re: [NTG-context] context manuals -- absence of \definefontfamily

2022-01-05 Thread Hans Hagen via ntg-context

On 1/4/2022 11:07 PM, Arthur Rosendahl wrote:

On Mon, Jan 03, 2022 at 11:16:46PM +0100, Hans Hagen via ntg-context wrote:

Because Wolfgang has to write a chapter (or a MyWay document) and we're all
mostly volunteers so ...


   Youssef has got a point, though: \definefontfamily should perhaps be
given a tiny bit better treatment on the wiki.  I agree with him that
https://wiki.contextgarden.net/Use_the_fonts_you_want seems like the
best place to mention it, and even think that all of the last section
could be rewritten using \definefontfamily instead of a typescript
definition (which can be moved elsewhere, it obviously doesn’t need to
be deleted from the wiki entirely).  But I wouldn’t like to disturb the
good work that Garulfo did when he overhauled the wiki, hence if you’re
around, Garulfo, perhaps you could comment on that?

a note:

basically we have 3 ways to define a font (collection):

- selectfont: works find when fonts have 'correct' names and come in 
consistent 'sets' (which is not always the case)


- typescripts: for long term stable style usage this is best because one 
uses filenames and can even rename font files then so that updates don't 
clash (typescripts can be in styles or in separate files)


- single font: for specific usage, like special fonts or titling; 
definition by name or file or spec but probably most oiften by file 
(just to be sure); although one can use abstraction by name this methoid 
is not used for collections


mechanisms like fallbacks work for all but may need additional definitions

design siszes can complicate matters but there are no many

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] context manuals -- absence of \definefontfamily

2022-01-04 Thread Arthur Rosendahl via ntg-context
On Mon, Jan 03, 2022 at 11:16:46PM +0100, Hans Hagen via ntg-context wrote:
> Because Wolfgang has to write a chapter (or a MyWay document) and we're all
> mostly volunteers so ...

  Youssef has got a point, though: \definefontfamily should perhaps be
given a tiny bit better treatment on the wiki.  I agree with him that
https://wiki.contextgarden.net/Use_the_fonts_you_want seems like the
best place to mention it, and even think that all of the last section
could be rewritten using \definefontfamily instead of a typescript
definition (which can be moved elsewhere, it obviously doesn’t need to
be deleted from the wiki entirely).  But I wouldn’t like to disturb the
good work that Garulfo did when he overhauled the wiki, hence if you’re
around, Garulfo, perhaps you could comment on that?

Best,

Arthur
___
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] context manuals -- absence of \definefontfamily

2022-01-04 Thread Jeong Dal via ntg-context
Dear Aditya and Youssef Cherem,

To: Aditya,
> 
> There is the talk that Wolfgang gave in this year's context meeting:
> 
> https://meeting.contextgarden.net/2021/talks/2021-09-23/definefontfamily.pdf
> 
Thank you for letting me know the talk which gives me more understanding about 
\definefontfamily.

To: Youssef Cherem,

Recently, Wolfgang helped me to define a font family as following, and I hope 
that it gives you some idea to use \definefontfamily.

\definefallbackfamily [nanum] [rm] [Tex Gyre Pagella]
  [range={basiclatin,latinsupplement,latinextendeda,latinextendedb}, 
   force=yes]
\definefallbackfamily [nanum] [rm] [Noto Serif CJK KR]
  [range={cjkunifiedideographs},force=yes]
\definefontfamily [nanum] [rm] [Nanum Myeongjo OTF]
  [   it={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

Explanation:
1. I use Korean font whose family name is “Nanum Myeongjo OTF” as main font. 
Since it doesn’t have italic style and bold italic style, I add [it=… , bi=…] 
to simulate the styles.

2. Since I want to use English character in "TeX Gyre Pagella”. I add it in the 
first \definefallbackfamily with an option [range={…},force=yes] which restrict 
the use of font to Latin characters.

3. We use chinese characters also in the Korean sentences. But "Nanum Myeongjo 
OTF” doesn’t have Chinese characters. So I add another font “Noto Serif CJK KR” 
which contains Chinese character with the option 
[range={cjkunified…},force=yes] in the second \definefallbackfamily.

There are two font families more,  sans and mono which is similar as rm.
It is really nice to use \definefontfamily which saves a lot of work to define 
fonts. 

Thanks Wolfgang.
If there are something should changed in the above definition, please tell me 
what to do.

Best regards,

Dalyoung


___
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] context manuals -- absence of \definefontfamily

2022-01-03 Thread Aditya Mahajan via ntg-context
On Mon, 3 Jan 2022, Hans Hagen via ntg-context wrote:

> On 1/3/2022 9:41 PM, Youssef Cherem via ntg-context wrote:
> > Dear all,
> > 
> > I've come back to using Context and I noticed the nice manuals around -- 
> > but one thing I miss is \definefontfamily (and \definefallbackfamily).
> > 
> > There is info here:
> > https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt 
> > 
> > 
> > and then checking out the specific page: 
> > https://wiki.contextgarden.net/Command/definefontfamily 
> > 
> > 
> > It still baffles me that definefontfamily, though much simpler than 
> > typescripts (which is intimidating), is not mentioned in the beginner's 
> > manuals (unless I missed something) and neither is it given more 
> > prominence in the Wiki, although I often see it mentioned in the forums. 
> > Being used to fontspec's simplicity, I'd never use typescripts. It would 
> > help a lot, for example, to include a sample of "definefontfamily" in 
> > "Use any font you like".
> > 
> > Is there a reason why definefontfamily doesn't appear at all in the 
> > manuals (as far as I could see), which are rather comprehensive otherwise?
> 
> Because Wolfgang has to write a chapter (or a MyWay document) and we're 
> all mostly volunteers so ...

There is the talk that Wolfgang gave in this year's context meeting:

https://meeting.contextgarden.net/2021/talks/2021-09-23/definefontfamily.pdf

Aditya___
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] context manuals -- absence of \definefontfamily

2022-01-03 Thread Hans Hagen via ntg-context

On 1/3/2022 9:41 PM, Youssef Cherem via ntg-context wrote:

Dear all,

I've come back to using Context and I noticed the nice manuals around -- 
but one thing I miss is \definefontfamily (and \definefallbackfamily).


There is info here:
https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt 



and then checking out the specific page: 
https://wiki.contextgarden.net/Command/definefontfamily 



It still baffles me that definefontfamily, though much simpler than 
typescripts (which is intimidating), is not mentioned in the beginner's 
manuals (unless I missed something) and neither is it given more 
prominence in the Wiki, although I often see it mentioned in the forums. 
Being used to fontspec's simplicity, I'd never use typescripts. It would 
help a lot, for example, to include a sample of "definefontfamily" in 
"Use any font you like".


Is there a reason why definefontfamily doesn't appear at all in the 
manuals (as far as I could see), which are rather comprehensive otherwise?


Because Wolfgang has to write a chapter (or a MyWay document) and we're 
all mostly volunteers so ...


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
___


[NTG-context] context manuals -- absence of \definefontfamily

2022-01-03 Thread Youssef Cherem via ntg-context
Dear all,

I've come back to using Context and I noticed the nice manuals around --
but one thing I miss is \definefontfamily (and \definefallbackfamily).

There is info here:
https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt

and then checking out the specific page:
https://wiki.contextgarden.net/Command/definefontfamily

It still baffles me that definefontfamily, though much simpler than
typescripts (which is intimidating), is not mentioned in the beginner's
manuals (unless I missed something) and neither is it given more prominence
in the Wiki, although I often see it mentioned in the forums. Being used to
fontspec's simplicity, I'd never use typescripts. It would help a lot, for
example, to include a sample of "definefontfamily" in "Use any font you
like".

Is there a reason why definefontfamily doesn't appear at all in the manuals
(as far as I could see), which are rather comprehensive otherwise?

All the best and thanks again for everything.
___
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
___