Re: [NTG-context] Indic fonts with MkIV and

2020-12-19 Thread Robert Zydenbos
I'll do some testing and see what I can contribute.


Robert


On 19.12.20 22:12, Pablo Rodriguez wrote:

> On 12/19/20 8:46 PM, Hans Hagen wrote:
>> [...]
>> can you wikify this?
> Wikified at https://wiki.contextgarden.net/Indic_Scripts.
>
> Please, Robert, could you improve it?
>
> Many thanks for your help,
>
> Pablo

___
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] Indic fonts with MkIV and

2020-12-19 Thread Pablo Rodriguez
On 12/19/20 8:46 PM, Hans Hagen wrote:
> [...]
> can you wikify this?

Wikified at https://wiki.contextgarden.net/Indic_Scripts.

Please, Robert, could you improve it?

Many thanks for your help,

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] Indic fonts with MkIV and

2020-12-19 Thread Pablo Rodriguez
On 12/19/20 8:46 PM, Hans Hagen wrote:
>> [...]
>> I hope the description above might help,
> can you wikify this?

Of course. Although Robert should review it (to avoid the nonsense I may
add to it)

BTW, I wonder whether it would be possible to add hyphenation patterns
for Kannada (Robert may benefit from that).

It might be even worth considering adding hyphenation patterns for all
Indic languages (https://github.com/hyphenation/tex-hyphen).

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] Indic fonts with MkIV and

2020-12-19 Thread Hans Hagen

On 12/19/2020 8:06 PM, Pablo Rodriguez wrote:

On 12/19/20 2:59 PM, Robert Zydenbos wrote:

On 19.12.20 09:10, Wolfgang Schuster wrote:

YES… YES!
YES YES YES YES YES YES (I'm trying to express enthusiasm.) That's it!

The remaining question here is: where do I find such magical
expressions like "features=kannada-one"? (Why "kannada-one"?
"One"???) If I know that, then (so I assume) I could do the very same
with the other Indian scripts which I use in my work.

Hi Robert,

this is from font-pre.mkxl (and I assume font-pre.mkiv [I mean, the same
file for MkIV and LMTX).

The features for Indic scripts seem to be (sorry, I’m totally ignorant
outside the Latin or Greek scripts): devanagari-one, bengali-one,
gujarati-one, gurmukhi-one, kannada-one, malayalam-one, oriya-one,
tamil-one, telugu-one.

There are one versions, because they are also two counterparts
(devanagari-two, bengali-two, gujarati-two, gurmukhi-two, kannada-two,
malayalam-two, oriya-two, tamil-two, telugu-two).

What the OpenType specification includes as script tags
(https://docs.microsoft.com/en-us/typography/opentype/spec/scripttags)
contains second versions for what might be some (or all [I’m afraid I
don’t know]) Indic scripts.

Why are second versions? Using their own words:

“The OpenType script tags can also correlate with a particular OpenType
Layout implementation, with the result that more than one script tag may
be registered for a given Unicode script (e.g. 'deva' and 'dev2').”

I hope the description above might help,

can you wikify this?

-
  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] Indic fonts with MkIV and

2020-12-19 Thread Pablo Rodriguez
On 12/19/20 2:59 PM, Robert Zydenbos wrote:
> On 19.12.20 09:10, Wolfgang Schuster wrote:
>
> YES… YES!
> YES YES YES YES YES YES (I'm trying to express enthusiasm.) That's it!
>
> The remaining question here is: where do I find such magical
> expressions like "features=kannada-one"? (Why "kannada-one"?
> "One"???) If I know that, then (so I assume) I could do the very same
> with the other Indian scripts which I use in my work.
Hi Robert,

this is from font-pre.mkxl (and I assume font-pre.mkiv [I mean, the same
file for MkIV and LMTX).

The features for Indic scripts seem to be (sorry, I’m totally ignorant
outside the Latin or Greek scripts): devanagari-one, bengali-one,
gujarati-one, gurmukhi-one, kannada-one, malayalam-one, oriya-one,
tamil-one, telugu-one.

There are one versions, because they are also two counterparts
(devanagari-two, bengali-two, gujarati-two, gurmukhi-two, kannada-two,
malayalam-two, oriya-two, tamil-two, telugu-two).

What the OpenType specification includes as script tags
(https://docs.microsoft.com/en-us/typography/opentype/spec/scripttags)
contains second versions for what might be some (or all [I’m afraid I
don’t know]) Indic scripts.

Why are second versions? Using their own words:

“The OpenType script tags can also correlate with a particular OpenType
Layout implementation, with the result that more than one script tag may
be registered for a given Unicode script (e.g. 'deva' and 'dev2').”

I hope the description above might help,

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] Indic fonts with MkIV and

2020-12-19 Thread Robert Zydenbos
On 19.12.20 03:42, Jairo A. del Rio wrote:

> You need to use the LuaHBTeX backend which isn't actually supported by 
> ConTeXt (and Hans doesn't like it either, I think). There's a plugin mode, 
> however. If not in the mailing list, more info about Harfbuzz in ConTeXt is 
> available in some articles.

I tried Wolfgang's amendment (see his posting) just now using MacTeX 2020, and 
the plain LuaTeX without Harfbuzz worked well too.

Regards,

Robert


___
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] Indic fonts with MkIV and

2020-12-19 Thread Robert Zydenbos
On 19.12.20 09:10, Wolfgang Schuster wrote:

YES… YES!
YES YES YES YES YES YES (I'm trying to express enthusiasm.) That's it!

The remaining question here is: where do I find such magical expressions like 
"features=kannada-one"? (Why "kannada-one"? "One"???) If I know that, then (so 
I assume) I could do the very same with the other Indian scripts which I use in 
my work.

Robert


> \definefontfamily [kannada] [ss] [Tunga] [features=kannada-one]
>
> \definetypeface [kannada] [mm] [math] [modern]
>
> \setupbodyfont [kannada]
>
> \starttext
> ಇದು ಹೇಗಿದೆ? ನಾನು ಹೀಗೆ ತುಂಬ ಬರೆಯಬೇಕೆಂದು ಯೋಚಿಸುತ್ತಿದ್ದೇನೆ.
> \stoptext
___
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] Indic fonts with MkIV and

2020-12-19 Thread Wolfgang Schuster

Robert Zydenbos schrieb am 19.12.2020 um 02:47:

Dear all,

Recently I read about the use of Harfbuzz-enhanced LuaTeX with LaTeX for 
writing Arabic. Following that example, I wrote a minimal test text that worked 
excellently for Kannada script as well:

-
\documentclass{article}
\usepackage{fontspec}

\setmainfont{Kedage}[RawFeature={mode=harf;script=knda;}]

\begin{document}
ಇದು ಹೇಗಿದೆ? ನಾನು ಹೀಗೆ ತುಂಬ ಬರೆಯಬೇಕೆಂದು ಯೋಚಿಸುತ್ತಿದ್ದೇನೆ.
\end{document}
-

I want to do this in ConTeXt too! Can anyone tell me how to translate 
“\setmainfont{Kedage}[RawFeature={mode=harf;script=knda;}]” into ConTeXt? This 
could be the key to using MkIV with Indic scripts.



%\definefontfamily [kannada] [rm] [Kedage] [features=kannada-one]
\definefontfamily [kannada] [ss] [Tunga] [features=kannada-one]

\definetypeface [kannada] [mm] [math] [modern]

\setupbodyfont [kannada]

\starttext
ಇದು ಹೇಗಿದೆ? ನಾನು ಹೀಗೆ ತುಂಬ ಬರೆಯಬೇಕೆಂದು ಯೋಚಿಸುತ್ತಿದ್ದೇನೆ.
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Indic fonts with MkIV and

2020-12-18 Thread Jairo A. del Rio
You need to use the LuaHBTeX backend which isn't actually supported by
ConTeXt (and Hans doesn't like it either, I think). There's a plugin mode,
however. If not in the mailing list, more info about Harfbuzz in ConTeXt is
available in some articles.

Regards,

Jairo

El vie., 18 de dic. de 2020 9:24 p. m., Robert Zydenbos <
cont...@zydenbos.net> escribió:

> Dear all,
>
> Recently I read about the use of Harfbuzz-enhanced LuaTeX with LaTeX for
> writing Arabic. Following that example, I wrote a minimal test text that
> worked excellently for Kannada script as well:
>
> -
> \documentclass{article}
> \usepackage{fontspec}
>
> \setmainfont{Kedage}[RawFeature={mode=harf;script=knda;}]
>
> \begin{document}
> ಇದು ಹೇಗಿದೆ? ನಾನು ಹೀಗೆ ತುಂಬ ಬರೆಯಬೇಕೆಂದು ಯೋಚಿಸುತ್ತಿದ್ದೇನೆ.
> \end{document}
> -
>
> I want to do this in ConTeXt too! Can anyone tell me how to translate
> “\setmainfont{Kedage}[RawFeature={mode=harf;script=knda;}]” into ConTeXt?
> This could be the key to using MkIV with Indic scripts.
>
> Robert
>
>
> ___
> 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] Indic fonts with MkIV and

2020-12-18 Thread Robert Zydenbos
Dear all,

Recently I read about the use of Harfbuzz-enhanced LuaTeX with LaTeX for 
writing Arabic. Following that example, I wrote a minimal test text that worked 
excellently for Kannada script as well:

-
\documentclass{article}
\usepackage{fontspec}

\setmainfont{Kedage}[RawFeature={mode=harf;script=knda;}]

\begin{document}
ಇದು ಹೇಗಿದೆ? ನಾನು ಹೀಗೆ ತುಂಬ ಬರೆಯಬೇಕೆಂದು ಯೋಚಿಸುತ್ತಿದ್ದೇನೆ.
\end{document}
-

I want to do this in ConTeXt too! Can anyone tell me how to translate 
“\setmainfont{Kedage}[RawFeature={mode=harf;script=knda;}]” into ConTeXt? This 
could be the key to using MkIV with Indic scripts.

Robert

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