Re: [NTG-context] Missing missing character warning

2012-05-28 Thread Marco Pessotto
Marco Pessotto melmo...@gmail.com writes:

 Hans Hagen pra...@wxs.nl writes:

 On 25-5-2012 09:45, luigi scarso wrote:

 enabletrackers[fonts.missing]
 \mainlanguage[hr]
 \starttext ȃ\stoptext

 indeed better

After a lot of mumbling by myself... Is there a reason not to have the
fonts.missing tracker enabled by default? Performance hit?

-- 
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] Missing missing character warning

2012-05-28 Thread Hans Hagen

On 28-5-2012 18:26, Marco Pessotto wrote:


After a lot of mumbling by myself... Is there a reason not to have the
fonts.missing tracker enabled by default? Performance hit?


indeed but you can enable it in your local cont-sys.tex file or in your 
texmfcnf.lua additions


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] Missing missing character warning

2012-05-28 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes:

 On 28-5-2012 18:26, Marco Pessotto wrote:

 After a lot of mumbling by myself... Is there a reason not to have the
 fonts.missing tracker enabled by default? Performance hit?

 indeed but you can enable it in your local cont-sys.tex file or in
 your texmfcnf.lua additions

I see, thanks!

Best wishes

-- 
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] Missing missing character warning

2012-05-28 Thread Mojca Miklavec
On Mon, May 28, 2012 at 7:00 PM, Hans Hagen wrote:
 On 28-5-2012 18:26, Marco Pessotto wrote:

 After a lot of mumbling by myself... Is there a reason not to have the
 fonts.missing tracker enabled by default? Performance hit?

 indeed

Still, given the large amount of data that gets printed during a
compilation (it is basically impossible to figure out if something
goes wrong without carefully looking at the log), I would also support
the idea to print missing characters by default.

I'm also contemplating a different idea (after TL): wouldn't it be
nice if ConTeXt (luatex) would print warnings (missing image, missing
module, missing character, ...) in colour (if that's supported), to
make it clearly stand out from the rest?

clang and CMake use that regularly for example.

Mojca
___
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] Missing missing character warning

2012-05-28 Thread Hans Hagen

On 28-5-2012 20:51, Mojca Miklavec wrote:

On Mon, May 28, 2012 at 7:00 PM, Hans Hagen wrote:

On 28-5-2012 18:26, Marco Pessotto wrote:


After a lot of mumbling by myself... Is there a reason not to have the
fonts.missing tracker enabled by default? Performance hit?


indeed


Still, given the large amount of data that gets printed during a
compilation (it is basically impossible to figure out if something
goes wrong without carefully looking at the log), I would also support
the idea to print missing characters by default.

I'm also contemplating a different idea (after TL): wouldn't it be
nice if ConTeXt (luatex) would print warnings (missing image, missing
module, missing character, ...) in colour (if that's supported), to
make it clearly stand out from the rest?

clang and CMake use that regularly for example.

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



--

-
  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] Missing missing character warning

2012-05-28 Thread Hans Hagen

On 28-5-2012 20:51, Mojca Miklavec wrote:

On Mon, May 28, 2012 at 7:00 PM, Hans Hagen wrote:

On 28-5-2012 18:26, Marco Pessotto wrote:


After a lot of mumbling by myself... Is there a reason not to have the
fonts.missing tracker enabled by default? Performance hit?


indeed


Still, given the large amount of data that gets printed during a
compilation (it is basically impossible to figure out if something
goes wrong without carefully looking at the log), I would also support
the idea to print missing characters by default.


one can configure that locally ... much functionality only kicks in when 
really used (thereby limiting the overhead) and in that case messages 
also get suppressed till they make sense



I'm also contemplating a different idea (after TL): wouldn't it be
nice if ConTeXt (luatex) would print warnings (missing image, missing
module, missing character, ...) in colour (if that's supported), to
make it clearly stand out from the rest?


i once played with it (1) but such a thing will only work on a console 
that supports ansi escape sequences (and console output of tex is 
already rather slow and flushing being character based it might give 
problems)


Hans

(1) in pdftex times ... it failed due to thsu ^^ escaping that tex applies

-
  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] Missing missing character warning

2012-05-25 Thread Hans Hagen

On 25-5-2012 09:15, Marco Pessotto wrote:


Hello all.

Reading the manual “Fonts in ConTeXt” I found the following statement
(p.97):

“In both cases we end up with a message in the log file and a resulting
file with missing data”. [When the font doesn't provide a glyph].

Now, the only case when the warning is issued is using mkii with xetex
(texexec -xtx), not with mkiv. (Unsurprisingly, the file with missing
data is always there :-)

Minimal example:

%% start
\mainlanguage[hr]

\starttext
Ja sam sȃm, i sȃm sam došao da izvršim pravdu.
\stoptext
%% stop

The name of the char is: LATIN SMALL LETTER A WITH INVERTED BREVE (0x0203)

So:

$ context prova.tex

$ grep -i -E '(warn|miss)' prova.*
[ match nothing ]

$ texexec --xtx prova.tex

$ grep -i -E '(warn|miss)' prova.*
prova.log:Missing character: There is no ȃ in font 
[lmroman12-regular]:+liga;+kern;mappi
prova.log:Missing character: There is no ȃ in font 
[lmroman12-regular]:+liga;+kern;mappi

It's not a regression, since the behaviour is the same with the last
year ConTeXt.


You can add this:

\checkcharactersinfont

and get missing characters reported to the terminal. Unfortunately I 
forgot () when adapting this command to the command namespace ...


\unexpanded\def\checkcharactersinfont 
{\ctxcommand{checkcharactersinfont()}}


(fixed in next beta)

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] Missing missing character warning

2012-05-25 Thread luigi scarso
On Fri, May 25, 2012 at 9:40 AM, Hans Hagen pra...@wxs.nl wrote:
 On 25-5-2012 09:15, Marco Pessotto wrote:


 Hello all.

 Reading the manual “Fonts in ConTeXt” I found the following statement
 (p.97):

 “In both cases we end up with a message in the log file and a resulting
 file with missing data”. [When the font doesn't provide a glyph].

 Now, the only case when the warning is issued is using mkii with xetex
 (texexec -xtx), not with mkiv. (Unsurprisingly, the file with missing
 data is always there :-)

 Minimal example:

 %% start
 \mainlanguage[hr]

 \starttext
 Ja sam sȃm, i sȃm sam došao da izvršim pravdu.
 \stoptext
 %% stop

 The name of the char is: LATIN SMALL LETTER A WITH INVERTED BREVE (0x0203)

 So:

 $ context prova.tex

 $ grep -i -E '(warn|miss)' prova.*
 [ match nothing ]

 $ texexec --xtx prova.tex

 $ grep -i -E '(warn|miss)' prova.*
 prova.log:Missing character: There is no ȃ in font
 [lmroman12-regular]:+liga;+kern;mappi
 prova.log:Missing character: There is no ȃ in font
 [lmroman12-regular]:+liga;+kern;mappi

 It's not a regression, since the behaviour is the same with the last
 year ConTeXt.


 You can add this:

 \checkcharactersinfont

 and get missing characters reported to the terminal. Unfortunately I forgot
 () when adapting this command to the command namespace ...

 \unexpanded\def\checkcharactersinfont {\ctxcommand{checkcharactersinfont()}}

 (fixed in next beta)

 Hans

Also

enabletrackers[fonts.missing]
\mainlanguage[hr]
\starttext ȃ\stoptext



-- 
luigi
___
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] Missing missing character warning

2012-05-25 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes:

 You can add this:

 \checkcharactersinfont

 and get missing characters reported to the terminal. Unfortunately I
 forgot () when adapting this command to the command namespace ...

 \unexpanded\def\checkcharactersinfont
 {\ctxcommand{checkcharactersinfont()}}

 (fixed in next beta)

And indeed this works.

Thanks!


-- 
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] Missing missing character warning

2012-05-25 Thread luigi scarso
On Fri, May 25, 2012 at 9:45 AM, luigi scarso luigi.sca...@gmail.com wrote:
 On Fri, May 25, 2012 at 9:40 AM, Hans Hagen pra...@wxs.nl wrote:
 On 25-5-2012 09:15, Marco Pessotto wrote:


 Hello all.

 Reading the manual “Fonts in ConTeXt” I found the following statement
 (p.97):

 “In both cases we end up with a message in the log file and a resulting
 file with missing data”. [When the font doesn't provide a glyph].

 Now, the only case when the warning is issued is using mkii with xetex
 (texexec -xtx), not with mkiv. (Unsurprisingly, the file with missing
 data is always there :-)

 Minimal example:

 %% start
 \mainlanguage[hr]

 \starttext
 Ja sam sȃm, i sȃm sam došao da izvršim pravdu.
 \stoptext
 %% stop

 The name of the char is: LATIN SMALL LETTER A WITH INVERTED BREVE (0x0203)

 So:

 $ context prova.tex

 $ grep -i -E '(warn|miss)' prova.*
 [ match nothing ]

 $ texexec --xtx prova.tex

 $ grep -i -E '(warn|miss)' prova.*
 prova.log:Missing character: There is no ȃ in font
 [lmroman12-regular]:+liga;+kern;mappi
 prova.log:Missing character: There is no ȃ in font
 [lmroman12-regular]:+liga;+kern;mappi

 It's not a regression, since the behaviour is the same with the last
 year ConTeXt.


 You can add this:

 \checkcharactersinfont

 and get missing characters reported to the terminal. Unfortunately I forgot
 () when adapting this command to the command namespace ...

 \unexpanded\def\checkcharactersinfont {\ctxcommand{checkcharactersinfont()}}

 (fixed in next beta)

 Hans

 Also

 enabletrackers[fonts.missing]
 \mainlanguage[hr]
 \starttext ȃ\stoptext
Uh I mean
\enabletrackers[fonts.missing]
\mainlanguage[hr]
\starttext ȃ\stoptext



-- 
luigi
___
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] Missing missing character warning

2012-05-25 Thread Hans Hagen

On 25-5-2012 09:45, luigi scarso wrote:


enabletrackers[fonts.missing]
\mainlanguage[hr]
\starttext ȃ\stoptext


indeed better

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] Missing missing character warning

2012-05-25 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes:

 On 25-5-2012 09:45, luigi scarso wrote:

 enabletrackers[fonts.missing]
 \mainlanguage[hr]
 \starttext ȃ\stoptext

 indeed better


Wikified.

http://wiki.contextgarden.net/Fonts_in_LuaTeX#Get_a_warning_if_the_glyph_is_missing

Cheers

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