[NTG-context] Ligatures blocking -- why block unspecified ligatures?

2021-05-12 Thread denis.maier
Hi,

I just ran into an issue with the \blockligatures mechanism. For some reason, 
the following examples replaces ffi with f|fi and ffl with f|fl although I have 
not specified them in \blockligatures:

==
\definefontfeature[default][default][dlig=yes,liga=yes]
\definefontfeature[default:block][default][blockligatures=yes]

% block certain ligatures globally, but not f|fl, f|fi
\blockligatures [ft,fft,fj,ffj,fk]

\definefontfamily[times][rm][Times New Roman]

\startbuffer[test]
fj\\
ffi\\
ffl\\
ff\\
fi
\stopbuffer

\starttext

\getbuffer[test]

\definedfont[Serif*default:block]
\getbuffer[test]

\switchtobodyfont[times]
\getbuffer[test]

% With Times New Roman, we can even see the bars in the output
\definedfont[Serif*default:block]
\getbuffer[test]

\stoptext
==

What am I missing?

(I am trying to block certain ligatures globally, ie. ft,fft,fj,ffj,fk, but fi, 
ffi, fl, fll are being dealt with in the language goodies file.)

Thanks for your help,
Denis
___
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] Ligatures missing with Times New Roman

2021-03-18 Thread denis.maier
Thanks, that solved it.

Denis

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Wolfgang Schuster
Gesendet: Donnerstag, 18. März 2021 17:44
An: mailing list for ConTeXt users 
Betreff: Re: [NTG-context] Ligatures missing with Times New Roman

Hans Hagen schrieb am 18.03.2021 um 17:00:
> On 3/18/2021 4:12 PM, denis.ma...@ub.unibe.ch wrote:
>> Ok. But where are they coming from in Word? I'm on Windows.
> 
> i don't see them in word when i enter 'effe' and select times, but i 
> admit that my knowledge of word is zero so


\definefontfeature [default] [default] [dlig=yes]

\definefontfamily [times] [rm] [Times New Roman]

\setupbodyfont[times]

\starttext

ff fi  fl ffi ffl

\utfchar{"FB00}
\utfchar{"FB01}
\utfchar{"FB02}
\utfchar{"FB03}
\utfchar{"FB04}

\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
___
___
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] Ligatures missing with Times New Roman

2021-03-18 Thread Wolfgang Schuster

Hans Hagen schrieb am 18.03.2021 um 17:00:

On 3/18/2021 4:12 PM, denis.ma...@ub.unibe.ch wrote:

Ok. But where are they coming from in
Word? I'm on Windows.


i don't see them in word when i enter 'effe' and select times, but i 
admit that my knowledge of word is zero so



\definefontfeature [default] [default] [dlig=yes]

\definefontfamily [times] [rm] [Times New Roman]

\setupbodyfont[times]

\starttext

ff fi  fl ffi ffl

\utfchar{"FB00}
\utfchar{"FB01}
\utfchar{"FB02}
\utfchar{"FB03}
\utfchar{"FB04}

\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] Ligatures missing with Times New Roman

2021-03-18 Thread Hans Hagen

On 3/18/2021 4:12 PM, denis.ma...@ub.unibe.ch wrote:

Ok. But where are they coming from in
Word? I'm on Windows.


i don't see them in word when i enter 'effe' and select times, but i 
admit that my knowledge of word is zero 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
___


Re: [NTG-context] Ligatures missing with Times New Roman

2021-03-18 Thread denis.maier
Ok. But where are they coming from in
Word? I'm on Windows.

Von: Hans Hagen 
Gesendet: Donnerstag, 18. März 2021 15:43:45
An: mailing list for ConTeXt users; Maier, Denis Christian (UB)
Betreff: Re: [NTG-context] Ligatures missing with Times New Roman

On 3/18/2021 2:02 PM, denis.ma...@ub.unibe.ch wrote:
> Hi
>
> I’m have to use Times New Roman for a text, and I’m finding that
> ligatures don’t seem to work properly.
>
> \starttext
>
> \definedfont[name:timesnewromanpsmt*default at 12 pt]
>
> ff fl
>
> \definedfont[name:linlibertineo*default at 12 pt]
>
> ff fl
>
> \switchtobodyfont[pagella]
>
> ff fl
>
> \stoptext
>
> The ff and fl ligatures work out of the box with Linux Libertine O, and
> with TeX Gyre Pagella, but not with Times New Roman. I can use the
> ligatures in MS Word so the font has them, but I don’t see why they
> shouldn’t work with ConTeXt (LMTX).
the windows version hasn o such ligatures (it has a few arabic ones)

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] Ligatures missing with Times New Roman

2021-03-18 Thread Hans Hagen

On 3/18/2021 2:02 PM, denis.ma...@ub.unibe.ch wrote:

Hi

I’m have to use Times New Roman for a text, and I’m finding that 
ligatures don’t seem to work properly.


\starttext

\definedfont[name:timesnewromanpsmt*default at 12 pt]

ff fl

\definedfont[name:linlibertineo*default at 12 pt]

ff fl

\switchtobodyfont[pagella]

ff fl

\stoptext

The ff and fl ligatures work out of the box with Linux Libertine O, and 
with TeX Gyre Pagella, but not with Times New Roman. I can use the 
ligatures in MS Word so the font has them, but I don’t see why they 
shouldn’t work with ConTeXt (LMTX).

the windows version hasn o such ligatures (it has a few arabic ones)

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] Ligatures missing with Times New Roman

2021-03-18 Thread denis.maier
Hi

I'm have to use Times New Roman for a text, and I'm finding that ligatures 
don't seem to work properly.

\starttext
\definedfont[name:timesnewromanpsmt*default at 12 pt]
ff fl
\definedfont[name:linlibertineo*default at 12 pt]
ff fl
\switchtobodyfont[pagella]
ff fl
\stoptext

The ff and fl ligatures work out of the box with Linux Libertine O, and with 
TeX Gyre Pagella, but not with Times New Roman. I can use the ligatures in MS 
Word so the font has them, but I don't see why they shouldn't work with ConTeXt 
(LMTX).

Best
Denis
___
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] ligatures/substituation at word boundaries

2017-07-30 Thread Hans Hagen

On 7/30/2017 11:39 AM, Ulrike Fischer wrote:

Am Fri, 28 Jul 2017 23:21:18 +0200 schrieb Hans Hagen:


Is it possible to refer in fonts.handlers.otf.addfeature to the word
boundary? The luatex manual speaks of a virtual "left_boundary"
char, but I couldn't find a way to use it.



It is possible to check against spaces in contextual lookups. There
isn't something like left boundary. I added some test code to the beta
but keep in mind that this will only work with self-made features.


Thanks. It seems to work quite good and after some playing around I
also got the knack of the syntax.

A few questions:

1. "lookups = { 1 }," refers to the first lookup. Is it possible to
name the lookups and to refer to this name?.


no, because order matters


2. 0xFFFC refers more or less to the begin and end of line, right?
Why doesn't it interfere with hyphenations? I tried to get
   ab-
ab

and the second wasn't replaced (as wanted) and I wondered how it
worked.


0xFFFC is just the same as "anything other than glyph or discretionary"


3. Why is in the following example "abcd" not replaced by "12"?


i'll have a look at this (advancing in somewhat messy defined)


\startluacode
  fonts.handlers.otf.addfeature {
  name= "test-a",
  type= "chainsubstitution",
  lookups = {
  {
  type = "ligature",
  data = {
  ['1'] = { "a", "b" },
  ['2'] = { "c", "d" },
  },
  },
  },
  data = {
  rules = {
  {
  before  = { { " ", 0xFFFC } },
  current = { { "a" }, { "b" } },
  lookups = { 1 },
  },
  {
  current = { { "c" }, { "d" } },
  after   = { { 0xFFFC, " " } },
  lookups = { 1 },
  },
  },
  },
  }


\stopluacode

\definefontfeature[test-a][test-a=yes]

\startbuffer
xxx abcd abxcd xxx
\stopbuffer

\starttext

\typebuffer

\definedfont[file:dejavu-serif.ttf*default] \getbuffer \blank
\definedfont[file:dejavu-serif.ttf*default,test-a] \getbuffer \blank

\stoptext



--

-
  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] ligatures/substituation at word boundaries

2017-07-30 Thread Ulrike Fischer
Am Fri, 28 Jul 2017 23:21:18 +0200 schrieb Hans Hagen:

>> Is it possible to refer in fonts.handlers.otf.addfeature to the word
>> boundary? The luatex manual speaks of a virtual "left_boundary"
>> char, but I couldn't find a way to use it.

> It is possible to check against spaces in contextual lookups. There 
> isn't something like left boundary. I added some test code to the beta 
> but keep in mind that this will only work with self-made features. 

Thanks. It seems to work quite good and after some playing around I
also got the knack of the syntax.

A few questions: 

1. "lookups = { 1 }," refers to the first lookup. Is it possible to
name the lookups and to refer to this name?.

2. 0xFFFC refers more or less to the begin and end of line, right?
Why doesn't it interfere with hyphenations? I tried to get 
  ab-
ab 

and the second wasn't replaced (as wanted) and I wondered how it
worked. 

3. Why is in the following example "abcd" not replaced by "12"? 


\startluacode
 fonts.handlers.otf.addfeature {
 name= "test-a",
 type= "chainsubstitution",
 lookups = {
 {
 type = "ligature",
 data = {
 ['1'] = { "a", "b" },
 ['2'] = { "c", "d" },
 },
 },
 },
 data = {
 rules = {
 {
 before  = { { " ", 0xFFFC } },
 current = { { "a" }, { "b" } },
 lookups = { 1 },
 },
 {
 current = { { "c" }, { "d" } },
 after   = { { 0xFFFC, " " } },
 lookups = { 1 },
 },
 },
 },
 }


\stopluacode

\definefontfeature[test-a][test-a=yes]

\startbuffer
xxx abcd abxcd xxx
\stopbuffer

\starttext

\typebuffer

\definedfont[file:dejavu-serif.ttf*default] \getbuffer \blank
\definedfont[file:dejavu-serif.ttf*default,test-a] \getbuffer \blank

\stoptext





-- 
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] ligatures/substituation at word boundaries

2017-07-28 Thread Hans Hagen

On 7/27/2017 8:09 PM, Ulrike Fischer wrote:

Is it possible to refer in fonts.handlers.otf.addfeature to the word
boundary? The luatex manual speaks of a virtual "left_boundary"
char, but I couldn't find a way to use it.

\startluacode
 fonts.handlers.otf.addfeature {
 name = "ltest",
 type = "ligature",
 data = {
 ['1'] = { "a", "b" },
 ['2'] = { "d", "a" },
 }
 }
\stopluacode

%how to replace only the start a

\startluacode
 fonts.handlers.otf.addfeature {
 name = "wtest",
 type = "ligature",
 data = {
 ['1'] = { "left_boundary", "a" },
 }
 }
\stopluacode

\definefontfeature[wtest][wtest=yes]
\definefontfeature[ltest][ltest=yes]
\starttext

 \definedfont[file:dejavu-serif.ttf*default]%


 {\addff{ltest} ababa\par}

 {\addff{wtest} ababa\par}


\stoptext
It is possible to check against spaces in contextual lookups. There 
isn't something like left boundary. I added some test code to the beta 
but keep in mind that this will only work with self-made features. (I 
have to check performance impact because I don't like making contextual 
lookups measurable slower due to some hardly used feature. First test 
show that it behaves ok.) In the test code below 0xFFFC is the boundary 
(this 0xFFFC check is the new thing). I adapted a few more things in the 
loader so best check that out too.


I'll upload a beta.

Hans

\starttext

\startluacode
fonts.handlers.otf.addfeature {
name= "test-a",
type= "chainsubstitution",
lookups = {
{
type = "substitution",
data = {
["a"] = "A",
["b"] = "B",
["c"] = "C",
["d"] = "D",
},
},
{
type = "ligature",
data = {
['1'] = { "a", "b" },
['2'] = { "c", "d" },
},
},
},
data = {
rules = {
{
before  = { { " ", 0xFFFC } },
current = { { "a" }, { "b" } },
lookups = { 2 },
},
{
current = { { "c" }, { "d" } },
after   = { { 0xFFFC, " " } },
lookups = { 2 },
},
{
current = { { "a" } },
after   = { { "b" } },
lookups = { 1 },
},
{
current = { { "c" } },
after   = { { "d" } },
lookups = { 1 },
},
},
},
}

fonts.handlers.otf.addfeature {
name= "test-b",
type= "chainsubstitution",
lookups = {
{
type = "ligature",
data = {
['1'] = { "a", "b" },
['2'] = { "c", "d" },
},
},
},
data = {
rules = {
{
-- the space is redundant as 0xFFFC contains it
before  = { { " ", 0xFFFC } },
current = { { "a" }, { "b" } },
lookups = { 1 },
},
{
current = { { "c" }, { "d" } },
-- the space is redundant as 0xFFFC contains it
after   = { { 0xFFFC, " " } },
lookups = { 1 },
},
},
},
}

fonts.handlers.otf.addfeature {
name= "test-c",
type= "chainsubstitution",
lookups = {
{
type = "ligature",
data = {
['1'] = { "a", "b" },
['2'] = { "c", "d" },
},
},
},
data = {
rules = {
{
before  = { { " " } },
current = { { "a" }, { "b" } },
lookups = { 1 },
},
{
current = { { "c" }, { "d" } },
after   = { { " " } },
lookups = { 1 },
},
},
},
}

\stopluacode

\definefontfeature[test-a][test-a=yes]
\definefontfeature[test-b][test-b=yes]
\definefontfeature[test-c][test-c=yes]

\startbuffer
abababcdcd abababcdcd abababcdcd
\stopbuffer

\typebuffer

\definedfont[file:dejavu-serif.ttf*default,test-a] \getbuffer \blank
\definedfont[file:dejavu-serif.ttf*default,test-b] \getbuffer \blank
\definedfont[file:dejavu-serif.ttf*default,test-c] \getbuffer \blank

\stoptext



-
  Hans Hagen | PRAGMA ADE
  

[NTG-context] ligatures/substituation at word boundaries

2017-07-27 Thread Ulrike Fischer
Is it possible to refer in fonts.handlers.otf.addfeature to the word
boundary? The luatex manual speaks of a virtual "left_boundary"
char, but I couldn't find a way to use it. 

\startluacode
fonts.handlers.otf.addfeature {
name = "ltest",
type = "ligature",
data = {
['1'] = { "a", "b" },
['2'] = { "d", "a" },
}
}
\stopluacode

%how to replace only the start a

\startluacode
fonts.handlers.otf.addfeature {
name = "wtest",
type = "ligature",
data = {
['1'] = { "left_boundary", "a" },
}
}
\stopluacode

\definefontfeature[wtest][wtest=yes]
\definefontfeature[ltest][ltest=yes]
\starttext

\definedfont[file:dejavu-serif.ttf*default]%


{\addff{ltest} ababa\par}

{\addff{wtest} ababa\par}


\stoptext





-- 
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] Ligatures in EB Garamond

2016-01-19 Thread Hans Hagen

On 1/19/2016 5:41 PM, Jan U. Hasecke wrote:

Am 19.01.2016 um 16:31 schrieb Kate F:

On 19 January 2016 at 09:05, Arthur Reutenauer
 wrote:

I have no clue what a package is supposed to do but any solution has to come
up with a list if words.


   I think the point is that often in German, breakpoints for hyphenation
also break ligatures.  I mentioned that in Nasbinals.

 Best,

 Arthur


The guts of the selnolig package just call \hyphenation{...}:
http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-english-hyphex.sty


The interesting part for ligatures is in the patterns file

http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-english-patterns.sty

http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-german-patterns.sty

By using patterns they don't need a very huge word list, I think.


If patterns were the solution then making better pattern files would be 
the solution ... anyway, i just see a list of what are basically 
exceptions.


So just for the fun of it i'll add {} as shortcut for \zwnj

  \replaceword[more][shiffling] [shiff{}ling]

and this already was there

  \replaceword[more][shiffling] [shiffling]

to prevent messing with something but i'll add an equivalent

  \replaceword[more][shiffling] [{shiffling}]

variant (more explicit). The already existing replacement mechanism is 
good enough for this purpose and if needed we can always ship some lists.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Ligatures in EB Garamond

2016-01-19 Thread Jan U. Hasecke
Am 19.01.2016 um 16:31 schrieb Kate F:
> On 19 January 2016 at 09:05, Arthur Reutenauer
>  wrote:
>>> I have no clue what a package is supposed to do but any solution has to come
>>> up with a list if words.
>>
>>   I think the point is that often in German, breakpoints for hyphenation
>> also break ligatures.  I mentioned that in Nasbinals.
>>
>> Best,
>>
>> Arthur
> 
> The guts of the selnolig package just call \hyphenation{...}:
> http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-english-hyphex.sty

The interesting part for ligatures is in the patterns file

http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-english-patterns.sty

http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-german-patterns.sty

By using patterns they don't need a very huge word list, I think.

juh



___
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] Ligatures in EB Garamond

2016-01-19 Thread Arthur Reutenauer
> The guts of the selnolig package just call \hyphenation{...}:
> http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-english-hyphex.sty

  That's not the core part of the package, it just sets a list of
hyphenation exceptions (that's what \hyphenation does).  The main code is
in selnolig.lua.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Ligatures in EB Garamond

2016-01-19 Thread Kate F
On 19 January 2016 at 09:05, Arthur Reutenauer
 wrote:
>> I have no clue what a package is supposed to do but any solution has to come
>> up with a list if words.
>
>   I think the point is that often in German, breakpoints for hyphenation
> also break ligatures.  I mentioned that in Nasbinals.
>
> Best,
>
> Arthur

The guts of the selnolig package just call \hyphenation{...}:
http://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/luatex/latex/selnolig/selnolig-english-hyphex.sty

Isn't this exactly the same for ConTeXt?
http://wiki.contextgarden.net/Command/hyphenation

-- 
Kate
___
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] Ligatures in EB Garamond

2016-01-19 Thread Arthur Reutenauer
> I have no clue what a package is supposed to do but any solution has to come
> up with a list if words.

  I think the point is that often in German, breakpoints for hyphenation
also break ligatures.  I mentioned that in Nasbinals.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Ligatures in EB Garamond

2016-01-19 Thread Hans Hagen

On 1/19/2016 8:13 AM, Jan U. Hasecke wrote:


I was disappointed to learn that there is no package like selnolig for
ConTeXt but the book I am now typesetting is only 120 pages long and
I'll switch ligatures off manually with the ZWNJ replacement. (The
ConTeXt notation is a bit uncomfortable, but as I only have to use it
once...)


I have no clue what a package is supposed to do but any solution has to 
come up with a list if words.


\replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]

The {-}{}{\zwnj} is in fact a discretionary spec because you probably 
would like to permit hyphenation. You could inject just a \nzwj .


Btw, keep in mind that in context this kind of manipulations happens in 
ways that don't interfere too much with macro expansion and other trickery.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Ligatures in EB Garamond

2016-01-18 Thread Jan U. Hasecke
Hi Georg,

thank you very much for this insight. I really like the EB Garamond.
It's a wonderful typeface for reading. I used it to typeset books with
more than 500 pages together with lualatex and the selnolig package
which produced good results with no effort.

I was disappointed to learn that there is no package like selnolig for
ConTeXt but the book I am now typesetting is only 120 pages long and
I'll switch ligatures off manually with the ZWNJ replacement. (The
ConTeXt notation is a bit uncomfortable, but as I only have to use it
once...)

I only found one issue with ZWNJ. It splits up the words so that they
are not found by the search.

If ZWNJ is the right way to do it, I'll start a tiny project on Github
with a replacement file.

First time I hear about the new keyboard layout. I think I want my T2
keyboard now! ;-)

juh

Am 18.01.2016 um 23:38 schrieb Georg Duffner:
> Hi Jan, hi Hans,
> 
> This is the developer of EB Garamond. I’m only now and then reading this
> list so I only learnt about your troubles now.
> 
> The way the ligatures are composed simplifies the creation of more
> ligatures after the same scheme while not blowing up the font by having
> to create one glyph per ligature combination but only one per component.
> In fact, it’s not just kerning, like Hans said, but one-by-one glyph
> substitutions. It might be seen as inconsistency that one feature can be
> executed in different ways. I know of that problem but it’s not that
> inconsistent at user level if you use the methods intended by unicode
> and opentype to deal with breaking up ligatures. The symbol ZWNJ (zero
> width non joiner) is exactly meant to do this so if you insert it, you
> should get what you want. What’s more, by inserting ZWNJ you should also
> be able to benefit from kerning between the non ligated f and the
> following letter or from contextual alternate forms that fit better than
> the long bowed f, if you want that. With EB Garamond, this should be
> true for both, engines that handle ZWNJ correctly or not.
> 
> By the way, the newly standardized German keyboard layout even has the
> ZWNJ on it and the norm recommends its use to prevent ligation.
> 
> Best regards
> Georg Duffner
> 
> Am 18.01.2016 um 11:09 schrieb Hans Hagen:
>   > On 1/18/2016 10:16 AM, Jan U. Hasecke wrote:
>>> Am 17.01.2016 um 20:05 schrieb Hans Hagen:
 On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:
> Am 16.01.2016 um 13:31 schrieb Schmitz Thomas A.:
>>
>> Please provide a minimal example of your problem. It’s impossible to
>> help when we have no clue what you’re doing.
>
> Sorry, of course.
>
> After setting up a mwe I found that it is a font related issue.
>
> When I don't specify a font, it works. --> example.tex
>
> When I choose EB Garamond, it does not work. -- example-Garamond.tex
>
> I confirmed this behaviour in my real setup.

 don't assume that ligatures are always real ligatures ... in that font
 it's just kerning .. this kind of works okay:

 \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]
>>>
>>> I am confused as the specimen of EB Garamond mentions (real) ligatures.
>>> They are listed as glyphs.
>>>
>>> https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf
>>
>> maybe the archaic st ligature is a precomposed but f f l i aren't done
>> that way but by either kerning or replacement of individual glyphs +
>> kerning (there are many methods for this) ... also, 'liga' might mean
>> ligature but in practice is used for all kind of things ... in opentype
>> 'ligature substitution' is just a many-to-one replacement but that
>> doesn't mean that 'liga' uses that ... welcome to the inconsistent open
>> type mess
>>
> 
> Mh, yes. :-(
> 
> Two additional questions. Shall I file a bugreport for this issue? What
> would be the right words: please provide real ligature glyphs instead of
> composed ones?
> 
> EB Garamond is a free font also in the sense free of charge. But what
> can I expect when I buy a commercial font? I would be quite annoyed when
> I buy a font which does not provide the features in a way that I can use
> them in ConTeXt.
> 
> Is there a font quality page on the Wiki with a feature comparison?
> 
> juh
> 
> 
> 

___
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] Ligatures in EB Garamond

2016-01-18 Thread Georg Duffner
Hi Jan, hi Hans,

This is the developer of EB Garamond. I’m only now and then reading this
list so I only learnt about your troubles now.

The way the ligatures are composed simplifies the creation of more
ligatures after the same scheme while not blowing up the font by having
to create one glyph per ligature combination but only one per component.
In fact, it’s not just kerning, like Hans said, but one-by-one glyph
substitutions. It might be seen as inconsistency that one feature can be
executed in different ways. I know of that problem but it’s not that
inconsistent at user level if you use the methods intended by unicode
and opentype to deal with breaking up ligatures. The symbol ZWNJ (zero
width non joiner) is exactly meant to do this so if you insert it, you
should get what you want. What’s more, by inserting ZWNJ you should also
be able to benefit from kerning between the non ligated f and the
following letter or from contextual alternate forms that fit better than
the long bowed f, if you want that. With EB Garamond, this should be
true for both, engines that handle ZWNJ correctly or not.

By the way, the newly standardized German keyboard layout even has the
ZWNJ on it and the norm recommends its use to prevent ligation.

Best regards
Georg Duffner

Am 18.01.2016 um 11:09 schrieb Hans Hagen:
> On 1/18/2016 10:16 AM, Jan U. Hasecke wrote:
>> Am 17.01.2016 um 20:05 schrieb Hans Hagen:
>>> On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:
 Am 16.01.2016 um 13:31 schrieb Schmitz Thomas A.:
>
> Please provide a minimal example of your problem. It’s impossible to
> help when we have no clue what you’re doing.

 Sorry, of course.

 After setting up a mwe I found that it is a font related issue.

 When I don't specify a font, it works. --> example.tex

 When I choose EB Garamond, it does not work. -- example-Garamond.tex

 I confirmed this behaviour in my real setup.
>>>
>>> don't assume that ligatures are always real ligatures ... in that font
>>> it's just kerning .. this kind of works okay:
>>>
>>> \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]
>>
>> I am confused as the specimen of EB Garamond mentions (real) ligatures.
>> They are listed as glyphs.
>>
>> https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf
>
> maybe the archaic st ligature is a precomposed but f f l i aren't done
> that way but by either kerning or replacement of individual glyphs +
> kerning (there are many methods for this) ... also, 'liga' might mean
> ligature but in practice is used for all kind of things ... in opentype
> 'ligature substitution' is just a many-to-one replacement but that
> doesn't mean that 'liga' uses that ... welcome to the inconsistent open
> type mess
>

Mh, yes. :-(

Two additional questions. Shall I file a bugreport for this issue? What
would be the right words: please provide real ligature glyphs instead of
composed ones?

EB Garamond is a free font also in the sense free of charge. But what
can I expect when I buy a commercial font? I would be quite annoyed when
I buy a font which does not provide the features in a way that I can use
them in ConTeXt.

Is there a font quality page on the Wiki with a feature comparison?

juh



-- 
EB Garamond: http://www.georgduffner.at/ebgaramond
___
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] Ligatures in EB Garamond

2016-01-18 Thread Hans Hagen

On 1/18/2016 1:46 PM, Jan U. Hasecke wrote:

Am 18.01.2016 um 11:09 schrieb Hans Hagen:

On 1/18/2016 10:16 AM, Jan U. Hasecke wrote:

Am 17.01.2016 um 20:05 schrieb Hans Hagen:

On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:

Am 16.01.2016 um 13:31 schrieb Schmitz Thomas A.:


Please provide a minimal example of your problem. It’s impossible to
help when we have no clue what you’re doing.


Sorry, of course.

After setting up a mwe I found that it is a font related issue.

When I don't specify a font, it works. --> example.tex

When I choose EB Garamond, it does not work. -- example-Garamond.tex

I confirmed this behaviour in my real setup.


don't assume that ligatures are always real ligatures ... in that font
it's just kerning .. this kind of works okay:

\replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]


I am confused as the specimen of EB Garamond mentions (real) ligatures.
They are listed as glyphs.

https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf


maybe the archaic st ligature is a precomposed but f f l i aren't done
that way but by either kerning or replacement of individual glyphs +
kerning (there are many methods for this) ... also, 'liga' might mean
ligature but in practice is used for all kind of things ... in opentype
'ligature substitution' is just a many-to-one replacement but that
doesn't mean that 'liga' uses that ... welcome to the inconsistent open
type mess



Mh, yes. :-(

Two additional questions. Shall I file a bugreport for this issue? What
would be the right words: please provide real ligature glyphs instead of
composed ones?


there are many fonts out that that do similar things replacing f an i by 
different shapes, or overlaying, or kerning, or replacing by one char, 
looking forward (from f to i) or backward (from i to f) ... as all is 
technically possible/permitted nothing is a bug (but there might be 
occasional differences between hyphenation although quite some effort 
went into getting that kind of right ... and it makes a good topic for 
complex hard to follow boring presentations (see attachment)


(btw, sometimes glyphs get funny non standard names in which case 
roundtrip copy/paste becomes a mess)



EB Garamond is a free font also in the sense free of charge. But what
can I expect when I buy a commercial font? I would be quite annoyed when
I buy a font which does not provide the features in a way that I can use
them in ConTeXt.


you can expect the same ... in fact you can also expect type1 -> otf 
converted fonts with hardly any use of opentype features



Is there a font quality page on the Wiki with a feature comparison?


that would be nice (has been discussed)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-


ligatures.pdf
Description: Adobe PDF document
___
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] Ligatures in EB Garamond

2016-01-18 Thread Jan U. Hasecke
Am 18.01.2016 um 11:09 schrieb Hans Hagen:
> On 1/18/2016 10:16 AM, Jan U. Hasecke wrote:
>> Am 17.01.2016 um 20:05 schrieb Hans Hagen:
>>> On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:
 Am 16.01.2016 um 13:31 schrieb Schmitz Thomas A.:
>
> Please provide a minimal example of your problem. It’s impossible to
> help when we have no clue what you’re doing.

 Sorry, of course.

 After setting up a mwe I found that it is a font related issue.

 When I don't specify a font, it works. --> example.tex

 When I choose EB Garamond, it does not work. -- example-Garamond.tex

 I confirmed this behaviour in my real setup.
>>>
>>> don't assume that ligatures are always real ligatures ... in that font
>>> it's just kerning .. this kind of works okay:
>>>
>>> \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]
>>
>> I am confused as the specimen of EB Garamond mentions (real) ligatures.
>> They are listed as glyphs.
>>
>> https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf
> 
> maybe the archaic st ligature is a precomposed but f f l i aren't done
> that way but by either kerning or replacement of individual glyphs +
> kerning (there are many methods for this) ... also, 'liga' might mean
> ligature but in practice is used for all kind of things ... in opentype
> 'ligature substitution' is just a many-to-one replacement but that
> doesn't mean that 'liga' uses that ... welcome to the inconsistent open
> type mess
> 

Mh, yes. :-(

Two additional questions. Shall I file a bugreport for this issue? What
would be the right words: please provide real ligature glyphs instead of
composed ones?

EB Garamond is a free font also in the sense free of charge. But what
can I expect when I buy a commercial font? I would be quite annoyed when
I buy a font which does not provide the features in a way that I can use
them in ConTeXt.

Is there a font quality page on the Wiki with a feature comparison?

juh

___
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] Ligatures in EB Garamond

2016-01-18 Thread Hans Hagen

On 1/18/2016 10:16 AM, Jan U. Hasecke wrote:

Am 17.01.2016 um 20:05 schrieb Hans Hagen:

On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:

Am 16.01.2016 um 13:31 schrieb Schmitz Thomas A.:


Please provide a minimal example of your problem. It’s impossible to
help when we have no clue what you’re doing.


Sorry, of course.

After setting up a mwe I found that it is a font related issue.

When I don't specify a font, it works. --> example.tex

When I choose EB Garamond, it does not work. -- example-Garamond.tex

I confirmed this behaviour in my real setup.


don't assume that ligatures are always real ligatures ... in that font
it's just kerning .. this kind of works okay:

\replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]


I am confused as the specimen of EB Garamond mentions (real) ligatures.
They are listed as glyphs.

https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf


maybe the archaic st ligature is a precomposed but f f l i aren't done 
that way but by either kerning or replacement of individual glyphs + 
kerning (there are many methods for this) ... also, 'liga' might mean 
ligature but in practice is used for all kind of things ... in opentype 
'ligature substitution' is just a many-to-one replacement but that 
doesn't mean that 'liga' uses that ... welcome to the inconsistent open 
type mess


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

[NTG-context] Ligatures in EB Garamond (was: \replaceword and \setreplacements with xml files)

2016-01-18 Thread Jan U. Hasecke
Am 17.01.2016 um 20:05 schrieb Hans Hagen:
> On 1/16/2016 3:58 PM, Jan U. Hasecke wrote:
>> Am 16.01.2016 um 13:31 schrieb Schmitz Thomas A.:
>>>
>>> Please provide a minimal example of your problem. It’s impossible to
>>> help when we have no clue what you’re doing.
>>
>> Sorry, of course.
>>
>> After setting up a mwe I found that it is a font related issue.
>>
>> When I don't specify a font, it works. --> example.tex
>>
>> When I choose EB Garamond, it does not work. -- example-Garamond.tex
>>
>> I confirmed this behaviour in my real setup.
> 
> don't assume that ligatures are always real ligatures ... in that font
> it's just kerning .. this kind of works okay:
> 
> \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen]

I am confused as the specimen of EB Garamond mentions (real) ligatures.
They are listed as glyphs.

https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf

juh
___
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] Ligatures and copy-paste

2015-11-09 Thread Tommaso Petrucciani
>> is there some command to issue in order to have ligatures copy-paste 
>> correctly in PDFs?
>> I thought Mk IV did this automatically, but it’s not working on my system.
>> Ligatures paste as spaces and searching the PDF doesn’t find the words.
>> 
>> I use ConTeXt beta 2015-10-09, Apple Preview and Skim as readers.
>> 
>> My code now is just:
>> \starttext
>> effective and efficient
>> \stoptext
> 
> Your example works on linux with evince 3.16, so I assume it's more a problem 
> of your pdf viewer than of context.
> 

Thanks, I’ve checked and in fact my PDF works with Acrobat Reader on OS X.

However, PDFs with ligatures made by other programs (including LuaLaTeX with 
fontspec) work just fine in Apple Preview. Some PDFs made with Mk IV work too 
(for example I can copy-paste from the fonts-mkiv.pdf book).

Do you have any clue whether there is something I can change which might be 
responsible?

Thanks again,
Tommaso

___
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] Ligatures and copy-paste

2015-11-09 Thread Thomas A. Schmitz

On 09.11.2015 16:25, Tommaso Petrucciani wrote:

is there some command to issue in order to have ligatures copy-paste correctly 
in PDFs?
I thought Mk IV did this automatically, but it’s not working on my system.
Ligatures paste as spaces and searching the PDF doesn’t find the words.

I use ConTeXt beta 2015-10-09, Apple Preview and Skim as readers.

My code now is just:
\starttext
effective and efficient
\stoptext

Thanks in advance,
Tommaso Petrucciani


Your example works on linux with evince 3.16, so I assume it's more a 
problem of your pdf viewer than of context.


Thomas
___
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] Ligatures and copy-paste

2015-11-09 Thread Tommaso Petrucciani
Dear list members,

is there some command to issue in order to have ligatures copy-paste correctly 
in PDFs?
I thought Mk IV did this automatically, but it’s not working on my system.
Ligatures paste as spaces and searching the PDF doesn’t find the words.

I use ConTeXt beta 2015-10-09, Apple Preview and Skim as readers.

My code now is just:
\starttext
effective and efficient
\stoptext

Thanks in advance,
Tommaso Petrucciani

___
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] Ligatures on Linux Libertine Bold Italic

2010-11-08 Thread Marco
Taco Hoekwater  writes:

> On 11/08/2010 03:53 PM, Marco wrote:
>>
>> Hello there.
>>
>> I'm pretty new to ConTeXt and I'm really impressed by your work. So a
>> huge thanks is due.
>>
>> Anyway. Today I found that Linux Libertine Bold Italic doesn't create
>> the ligatures. These work on XeTeX. I took a look at
>> /tex/texmf-context/tex/context/base/type-otf.mkiv where the libertine
>> typescript is defined, but I couldn't find anything wrong. The fonts are
>> the one shipped with the latest updated TeXlive 2010 (they are correctly
>> loaded).
>>
>> With other fonts the ligatures for Bold Italic are created, so I'm a bit
>> lost. Is my setup broken somehow? Or the fonts are broken? Or is it a
>> bug?
>
> Whether this is broken and/or a bug is not clear cut, but the Bold
> Italic font does not have a default script, so it needs an explicit
> script=latn in the feature setup (the other fonts actually do have a
> default script, it is just the bold italic that does not have one).
>
> I don't really know how to set that up in such a way that it will not
> affect other fonts as well, but as a workaround/large hammer method,
> adding this
>
>   \definefontfeature[default][default][script=latn]
>
> before loading the typescript will probably work.
>
> Best wishes,
> Taco

It worked. Now it's all clear to me. Thanks Wolfgang and Taco. 

I'll report the bug to the linux libertine project.

-- 
Marco

___
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] Ligatures on Linux Libertine Bold Italic

2010-11-08 Thread Taco Hoekwater

On 11/08/2010 03:53 PM, Marco wrote:


Hello there.

I'm pretty new to ConTeXt and I'm really impressed by your work. So a
huge thanks is due.

Anyway. Today I found that Linux Libertine Bold Italic doesn't create
the ligatures. These work on XeTeX. I took a look at
/tex/texmf-context/tex/context/base/type-otf.mkiv where the libertine
typescript is defined, but I couldn't find anything wrong. The fonts are
the one shipped with the latest updated TeXlive 2010 (they are correctly
loaded).

With other fonts the ligatures for Bold Italic are created, so I'm a bit
lost. Is my setup broken somehow? Or the fonts are broken? Or is it a
bug?


Whether this is broken and/or a bug is not clear cut, but the Bold
Italic font does not have a default script, so it needs an explicit
script=latn in the feature setup (the other fonts actually do have a
default script, it is just the bold italic that does not have one).

I don't really know how to set that up in such a way that it will not 
affect other fonts as well, but as a workaround/large hammer method,

adding this

  \definefontfeature[default][default][script=latn]

before loading the typescript will probably work.

Best wishes,
Taco
___
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] Ligatures on Linux Libertine Bold Italic

2010-11-08 Thread Wolfgang Schuster

Am 08.11.2010 um 15:53 schrieb Marco:

> 
> Hello there. 
> 
> I'm pretty new to ConTeXt and I'm really impressed by your work. So a
> huge thanks is due. 
> 
> Anyway. Today I found that Linux Libertine Bold Italic doesn't create
> the ligatures. These work on XeTeX. I took a look at
> /tex/texmf-context/tex/context/base/type-otf.mkiv where the libertine
> typescript is defined, but I couldn't find anything wrong. The fonts are
> the one shipped with the latest updated TeXlive 2010 (they are correctly
> loaded). 
> 
> With other fonts the ligatures for Bold Italic are created, so I'm a bit
> lost. Is my setup broken somehow? Or the fonts are broken? Or is it a
> bug? 

Add \definefontfeature[default][default][script=latn] before \setupbodyfont for 
Libertine.

ConTeXt expects for fonts to have ligatures in the default script of the font
which is for the case for the libertine fonts except for the bolditalic style
where you need the latin script to have ligatures, for me this is a bug in
the font and you should make a bug report.

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
___


[NTG-context] Ligatures on Linux Libertine Bold Italic

2010-11-08 Thread Marco

Hello there. 

I'm pretty new to ConTeXt and I'm really impressed by your work. So a
huge thanks is due. 

Anyway. Today I found that Linux Libertine Bold Italic doesn't create
the ligatures. These work on XeTeX. I took a look at
/tex/texmf-context/tex/context/base/type-otf.mkiv where the libertine
typescript is defined, but I couldn't find anything wrong. The fonts are
the one shipped with the latest updated TeXlive 2010 (they are correctly
loaded). 

With other fonts the ligatures for Bold Italic are created, so I'm a bit
lost. Is my setup broken somehow? Or the fonts are broken? Or is it a
bug? 

Thanks in advance. 

 start minimal example % 
\usetypescript[termes,libertine]
\setupbodyfont[termes,12pt]

\def\testtext{
The fi ffl ffi fluf \par 
{\it The fi ffl ffi fluf fi} \par
{\bf The fi ffl ffi fluf} \par
{\bi The fi ffl ffi fluf}\par}



\starttext
Termes:
\testtext
\switchtobodyfont[libertine,12pt]
Libertine: 
\testtext
\stoptext

% end minimal example %%

ConTeXt  ver: 2010.11.03 19:42 MKIV  fmt: 2010.11.8  
LuaTeX, Version beta-0.63.0-2010091123 (From the latest minimal distribution)


pdffonts output

name type  emb sub uni object ID
 - --- --- --- -
PHAMRR+TeXGyreTermes-Regular CID Type 0C   yes yes yes 18  0
OOTVTU+TeXGyreTermes-Italic  CID Type 0C   yes yes yes 19  0
QEYIRB+TeXGyreTermes-BoldCID Type 0C   yes yes yes 20  0
ONUACL+TeXGyreTermes-BoldItalic  CID Type 0C   yes yes yes 21  0
YFUCDN+LinLibertineO CID Type 0C   yes yes yes 22  0
PYLANJ+LinLibertineOICID Type 0C   yes yes yes 23  0
LBBYDA+LinLibertineOBCID Type 0C   yes yes yes 24  0
FBIQKN+LinLibertineOBI   CID Type 0C   yes yes yes 25  0





-- 
Marco


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

2009-12-26 Thread Andreas Harder
Hi,

can someone confirm the misbehaviour with ligatures in my example? It’s there 
since the last three or four betas, perhaps longer.



test-ligatures2.tex
Description: Binary data


test-ligatures2.pdf
Description: Adobe PDF document


Greetings
Andreas

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

2009-12-26 Thread Hans Hagen

On 26-12-2009 15:33, Andreas Harder wrote:

Hi,

can someone confirm the misbehaviour with ligatures in my example? It’s there 
since the last three or four betas, perhaps longer.


i will look into it nbut not today ... btw, a better test is

\startbuffer
effe betroffenen betroffenen
\stopbuffer

must be some side effect


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] Ligatures

2009-12-26 Thread Andreas Harder

Am 26.12.2009 um 15:39 schrieb Khaled Hosny:

> On Sat, Dec 26, 2009 at 03:33:30PM +0100, Andreas Harder wrote:
>> Hi,
>> 
>> can someone confirm the misbehaviour with ligatures in my example? It’s 
>> there since the last three or four betas, perhaps longer.
>> 
> 
> Could you please start a new thread when you want to ask a question,
> replying to an existing thread, though you changed the subject, makes
> following threads harder.

Yes sure, it wasn’t deliberate.

Andreas
___
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] Ligatures

2009-12-26 Thread Khaled Hosny
On Sat, Dec 26, 2009 at 03:33:30PM +0100, Andreas Harder wrote:
> Hi,
> 
> can someone confirm the misbehaviour with ligatures in my example? It’s there 
> since the last three or four betas, perhaps longer.
> 

Could you please start a new thread when you want to ask a question,
replying to an existing thread, though you changed the subject, makes
following threads harder.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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] Ligatures

2009-12-26 Thread Andreas Harder
Hi,

can someone confirm the misbehaviour with ligatures in my example? It’s there 
since the last three or four betas, perhaps longer.



test-ligatures2.tex
Description: Binary data


test-ligatures2.pdf
Description: Adobe PDF document


Greetings
Andreas___
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] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread Santy, Michael
Thanks for the suggestion.  Don't worry about looking further into this issue, 
I'm just going to use the texnansi times encoding instead of the ec encoding.  
I'm not going to spend to much time on fancy fonts for my documents until 
LuaTeX is ready for prime time.

Cheers,
Mike

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread Idris Samawi Hamid
Hi Mojca,

On Tue, 04 Dec 2007 08:59:29 -0700, Mojca Miklavec  
<[EMAIL PROTECTED]> wrote:

> I will try to investigate, but I don't promise anything. A quick
> workaround would be to use TeX Gyre instead.

Has a simple TeX-Gyre package for ConTeXt been released, or is TeX-Gyre  
now in the distribution?

The last time I tried I spent too much time downloading/installing from  
GUST, struggling to get it to work, only two fonts worked, etc...

I'm hoping/waiting for/till the mswincontext mkiv beta that will come with  
the approaching luatex beta but if there is any other info...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread Mojca Miklavec
On Dec 4, 2007 1:19 AM, Mike Santy wrote:
> Hello,
>
> Ligatures seem to be missing when using the ConTeXt minimals distribution
> (8/8/2007) with the times font (see below example).  Note that ligatures are
> rendered correctly using live.contextgarden.net, so I assume that something
> needs to be configured on my end.
>
> Could someone please be kind enough to tell me what I should configure to
> get proper ligatures for the times font in the minimals distribution?
>
> Cheers,
> Mike
>
>
> \usetypescript[times][ec]
> \setupbodyfont[times,12pt]
>
> \starttext
>
> \input knuth
> \blank
> And this is some maths with PostScript fonts.
> \startformula
> {a \over b} = {c \over d} \iff ad - bc = 0,
> \qquad \int_0^{2\pi}\!\!\! \sin^2(x)dx =\pi,
> \qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
> \qquad \sum_{k=1}^{\infty}{1 \over k^2} = {\pi^2 \over 6}.
> \stopformula
> Some ligatures: ffi, ffl.
>
> \stoptext

Weird indeed ... The funny part is that I get two warnings (both of
them are my faut since I don't have those files):

pdfTeX warning: pdftex (file ec-urw-times.map): cannot open font map file
fonts   : using map file: ec-urw-helvetica

pdfTeX warning: pdftex (file ec-urw-helvetica.map): cannot open font map file
fonts   : using map file: original-youngryu-tx

and the output still looks fine (I get at least fi ligature, I'm not
sure about the others.).

It looks like a font problem to me, but not something that the user
could misconfigure. (Old or wrong font files perhaps? I really have no
clue.)

The garden doesn't use the standalone distribution (but a fraction of TeX Live).

Mojca

I will try to investigate, but I don't promise anything. A quick
workaround would be to use TeX Gyre instead.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread luigi scarso
On Dec 4, 2007 3:10 PM, Santy, Michael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> OK, fair enough.  What I don't understand is why do I see ligatures when
> compiling the following on live.contextgarden.net using pdftex:
>
>
>  \usetypescript[times][ec]
>  \setupbodyfont[times,12pt]
>  \starttext
>  Some ligatures ffi, ffl, fi, fl
>  \stoptext
>
>  Cheers,
>  Mike
>
Maybe because gyre open type fonts are used.
-- 
luigi
...
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread Santy, Michael

OK, fair enough.  What I don't understand is why do I see ligatures when 
compiling the following on live.contextgarden.net using pdftex:

\usetypescript[times][ec]
\setupbodyfont[times,12pt]
\starttext
Some ligatures ffi, ffl, fi, fl
\stoptext

Cheers,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of Hans Hagen
Sent: Tue 12/4/2007 4:12 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Ligatures in ConTeXt minimals distribution
 
Mike Santy wrote:
> Hello, 
> 
> Ligatures seem to be missing when using the ConTeXt minimals distribution
> (8/8/2007) with the times font (see below example).  Note that ligatures are
> rendered correctly using live.contextgarden.net, so I assume that something
> needs to be configured on my end.
> 
> Could someone please be kind enough to tell me what I should configure to
> get proper ligatures for the times font in the minimals distribution?
> 
> Cheers,
> Mike
> 
> 
> \usetypescript[times][ec]
> \setupbodyfont[times,12pt]
> 
> \starttext
> 
> \input knuth
> \blank
> And this is some maths with PostScript fonts.
> \startformula
> {a \over b} = {c \over d} \iff ad - bc = 0,
> \qquad \int_0^{2\pi}\!\!\! \sin^2(x)dx =\pi,
> \qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
> \qquad \sum_{k=1}^{\infty}{1 \over k^2} = {\pi^2 \over 6}.
> \stopformula
> Some ligatures: ffi, ffl.
> 
> \stoptext

in ec encoding there are no ligs in these fonts, in texnansi encoding 
only see fi and fl

tex gyre open type variants (in luatex) shows ffl and ffi


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread Hans Hagen
Mike Santy wrote:
> Hello, 
> 
> Ligatures seem to be missing when using the ConTeXt minimals distribution
> (8/8/2007) with the times font (see below example).  Note that ligatures are
> rendered correctly using live.contextgarden.net, so I assume that something
> needs to be configured on my end.
> 
> Could someone please be kind enough to tell me what I should configure to
> get proper ligatures for the times font in the minimals distribution?
> 
> Cheers,
> Mike
> 
> 
> \usetypescript[times][ec]
> \setupbodyfont[times,12pt]
> 
> \starttext
> 
> \input knuth
> \blank
> And this is some maths with PostScript fonts.
> \startformula
> {a \over b} = {c \over d} \iff ad - bc = 0,
> \qquad \int_0^{2\pi}\!\!\! \sin^2(x)dx =\pi,
> \qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
> \qquad \sum_{k=1}^{\infty}{1 \over k^2} = {\pi^2 \over 6}.
> \stopformula
> Some ligatures: ffi, ffl.
> 
> \stoptext

in ec encoding there are no ligs in these fonts, in texnansi encoding 
only see fi and fl

tex gyre open type variants (in luatex) shows ffl and ffi


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-03 Thread Mike Santy
Hello, 

Ligatures seem to be missing when using the ConTeXt minimals distribution
(8/8/2007) with the times font (see below example).  Note that ligatures are
rendered correctly using live.contextgarden.net, so I assume that something
needs to be configured on my end.

Could someone please be kind enough to tell me what I should configure to
get proper ligatures for the times font in the minimals distribution?

Cheers,
Mike


\usetypescript[times][ec]
\setupbodyfont[times,12pt]

\starttext

\input knuth
\blank
And this is some maths with PostScript fonts.
\startformula
{a \over b} = {c \over d} \iff ad - bc = 0,
\qquad \int_0^{2\pi}\!\!\! \sin^2(x)dx =\pi,
\qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
\qquad \sum_{k=1}^{\infty}{1 \over k^2} = {\pi^2 \over 6}.
\stopformula
Some ligatures: ffi, ffl.

\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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___