Re: [NTG-context] bug in current beta?

2015-02-03 Thread Pablo Rodriguez
On 02/03/2015 09:40 PM, Otared Kavian wrote:
 Hi Pablo,
 
 I don’t have the font FreeSerif, but with another font (stix, to be
 precise) I get the attached PDF.
 My version is 2015.01.30 15:28. I can’t say much what you really
 expect and where there should be a bug…

Hi Otared,

sorry for being cryptic in my bug reports.

Besides the fact that Hans fixed both the bug and my mistake (enabling
languages before setting them up), the bug was having the first χαλεπὰ
unhyphenated and the second one hyphenated.

The output was:

ho-
la
χαλεπὰ
χα-
λε-
πὰ

It should have been (as it is with beta from 2015.02.03 23:55):

ho-
la
χα-
λε-
πὰ
χα-
λε-
πὰ

Sorry for the (unwanted) secrecy and 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in current beta?

2015-02-03 Thread Pablo Rodriguez
On 02/03/2015 09:31 PM, Hans Hagen wrote:
 [...]
 more a side effect of a speedup in language switching (assuming no 
 change in patterns after enabling a language)
 [...]
 actually, a \mainlanguage after \setuplanguage would work in your case

Many thanks for your reply and the fix, Hans.

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

[NTG-context] bug in current beta?

2015-02-03 Thread Pablo Rodriguez
Dear list,

beta from 2015.01.30 15:28 isn’t able to hyphenate the second word in
this sample (also beta from 2014.11.26 21:43 doesn’t hyphenate it):

\mainlanguage[es]
\setuplanguage[es][patterns={es, agr}]
\setupdirections[bidi=on,method=two]
\definefontfamily[mainface][rm][FreeSerif]
\setupbodyfont[mainface]
\starttext
\hsize\zeropoint
hola χαλεπὰ {\agr χαλεπὰ}
\stoptext

Beta from 2014.07.14 19:25 hypehantes all three words.

I’m afraid this may be a bug. Could someone else confirm 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in current beta?

2015-02-03 Thread Hans Hagen

On 2/3/2015 8:55 PM, Pablo Rodriguez wrote:

Dear list,

beta from 2015.01.30 15:28 isn’t able to hyphenate the second word in
this sample (also beta from 2014.11.26 21:43 doesn’t hyphenate it):

 \mainlanguage[es]
 \setuplanguage[es][patterns={es, agr}]
 \setupdirections[bidi=on,method=two]
 \definefontfamily[mainface][rm][FreeSerif]
 \setupbodyfont[mainface]
 \starttext
 \hsize\zeropoint
 hola χαλεπὰ {\agr χαλεπὰ}
 \stoptext

Beta from 2014.07.14 19:25 hypehantes all three words.

I’m afraid this may be a bug. Could someone else confirm it?


more a side effect of a speedup in language switching (assuming no 
change in patterns after enabling a language)


you can put this in cont-new.mkiv

\unprotect

\appendtoks

\global\expandafter\let\csname\??languagenumbers\currentlanguage\endcsname\undefined
\to \everysetuplanguage

\protect

actually, a \mainlanguage after \setuplanguage would work in your case

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] bug in current beta?

2015-02-03 Thread Otared Kavian
Hi Pablo,

I don’t have the font FreeSerif, but with another font (stix, to be precise) I 
get the attached PDF.
My version is 2015.01.30 15:28. I can’t say much what you really expect and 
where there should be a bug…

Best regards: OK


greek-espanish.pdf
Description: Adobe PDF document


 On 03 Feb 2015, at 20:55, Pablo Rodriguez oi...@gmx.es wrote:
 
 Dear list,
 
 beta from 2015.01.30 15:28 isn’t able to hyphenate the second word in
 this sample (also beta from 2014.11.26 21:43 doesn’t hyphenate it):
 
\mainlanguage[es]
\setuplanguage[es][patterns={es, agr}]
\setupdirections[bidi=on,method=two]
\definefontfamily[mainface][rm][FreeSerif]
\setupbodyfont[mainface]
\starttext
\hsize\zeropoint
hola χαλεπὰ {\agr χαλεπὰ}
\stoptext
 
 Beta from 2014.07.14 19:25 hypehantes all three words.
 
 I’m afraid this may be a bug. Could someone else confirm 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://tex.aanhet.net
 archive  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] bug in current beta

2013-08-15 Thread Schmitz Thomas A.
Hi Hans,

I get this error running 2013.08.14 15:25:

! LuaTeX error .../context/tex/texmf-context/tex/context/base/font-col.lua:180: 
table index is nil
stack traceback:
.../context/tex/texmf-context/tex/context/base/font-col.lua:180: in 
function 'fontcollectionclone'
[string \directlua ]:1: in main chunk.

system   tex  error on line 137 in file 
/Users/tas/context/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX 
error  ...



\ctxcommand #1^^@-\directlua {commands.#1}

l.137 }
 
\ctxcommand #1^^@-\directlua {commands.#1}

\font_fallbacks_prepare_indeed ...backs_prepare #1
  \endgroup 
inserted text ...llbacks_prepare_indeed \m_font_class_fallbacks 
  \fi \else \font_fallbacks_...
\font_helpers_low_level_define ...everydefinefont 
  \c_font_feature_inheritanc...
...
l.91 \stopluacode

Unfortunately, I have no idea what triggers it, same document compiles fine 
with a July beta.

All best

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
___


Re: [NTG-context] bug in current beta

2013-08-15 Thread Hans Hagen

On 8/15/2013 11:40 AM, Schmitz Thomas A. wrote:

Hi Hans,

I get this error running 2013.08.14 15:25:


as you know lua ... just look at those lines and a few lines above ... 
you need to add


local unic = unicode + offset - start

(new beta later, in the middle of something)

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] bug in current beta

2013-08-15 Thread Schmitz Thomas A.

On Aug 15, 2013, at 1:43 PM, Hans Hagen pra...@wxs.nl wrote:

 as you know lua ... just look at those lines and a few lines above ... you 
 need to add
 
local unic = unicode + offset - start
 
 (new beta later, in the middle of something)

Ah, you're right, I could have seen that myself - that assignment was missing 
from the else branch. Thanks, that fixed the problem!

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
___