ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange spurious character
@ 2016-11-18 20:03 Otared Kavian
  2016-11-18 21:30 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Otared Kavian @ 2016-11-18 20:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

Hi Hans,

After having updated my installation of ConTeXt, I noticed the presence of a spurious « ß » character at the top of every document, or sometimes in the footer, or in the header.
Also in the example below the text is typeset with bold italic, even though there is no request for it.

Here is a minimal example:
%%%% begin bug-beta.tex
\definefallbackfamily[mainface][serif][palatino]
\definefontfamily[mainface][sans][palatino] 
\setupbodyfont[mainface]

\starttext

Why is there a « ß » LATIN SMALL LETTER SHARP S  above?

Why is the text in bold italic?

\stoptext
%%%% end bug-beta.tex

Best regards: OK

[-- Attachment #2: bug-beta.pdf --]
[-- Type: application/pdf, Size: 17927 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange spurious character
  2016-11-18 20:03 Strange spurious character Otared Kavian
@ 2016-11-18 21:30 ` Hans Hagen
  2016-11-18 21:50   ` Otared Kavian
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-11-18 21:30 UTC (permalink / raw)
  To: ntg-context

On 11/18/2016 9:03 PM, Otared Kavian wrote:
> Hi Hans,
>
> After having updated my installation of ConTeXt, I noticed the presence of a spurious « ß » character at the top of every document, or sometimes in the footer, or in the header.
> Also in the example below the text is typeset with bold italic, even though there is no request for it.
>
> Here is a minimal example:
> %%%% begin bug-beta.tex
> \definefallbackfamily[mainface][serif][palatino]
> \definefontfamily[mainface][sans][palatino]
> \setupbodyfont[mainface]
>
> \starttext
>
> Why is there a « ß » LATIN SMALL LETTER SHARP S  above?
>
> Why is the text in bold italic?
>
> \stoptext
> %%%% end bug-beta.tex

fixed

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange spurious character
  2016-11-18 21:30 ` Hans Hagen
@ 2016-11-18 21:50   ` Otared Kavian
  2016-11-18 22:08     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Otared Kavian @ 2016-11-18 21:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

Hi Hans,

Thanks for the quick fix.
Indeed the spurious character does not show up anymore, but in the minimal example below the default body font seems to be set to bold italic, please see the attached PDF (I did not observe this in my real documents, but curiously it shows up in this minimal example): it may be that I am using a wrong font definition here. 
The version of ConTeXt is  2016.11.18 22:20 MKIV beta  fmt: 2016.11.18.

%%%% begin bug-beta.tex
\definefallbackfamily[mainface][serif][palatino]
\definefontfamily[mainface][sans][palatino] 
\setupbodyfont[mainface]

\starttext

Why is the text in bold italic?

\stoptext
%%%% end bug-beta.tex

Best regards: OK

[-- Attachment #2: bug-beta.pdf --]
[-- Type: application/pdf, Size: 13737 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1677 bytes --]




> On 18 Nov 2016, at 22:30, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 11/18/2016 9:03 PM, Otared Kavian wrote:
>> Hi Hans,
>> 
>> After having updated my installation of ConTeXt, I noticed the presence of a spurious « ß » character at the top of every document, or sometimes in the footer, or in the header.
>> Also in the example below the text is typeset with bold italic, even though there is no request for it.
>> 
>> Here is a minimal example:
>> %%%% begin bug-beta.tex
>> \definefallbackfamily[mainface][serif][palatino]
>> \definefontfamily[mainface][sans][palatino]
>> \setupbodyfont[mainface]
>> 
>> \starttext
>> 
>> Why is there a « ß » LATIN SMALL LETTER SHARP S  above?
>> 
>> Why is the text in bold italic?
>> 
>> \stoptext
>> %%%% end bug-beta.tex
> 
> fixed
> 
> -----------------------------------------------------------------
>                                          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
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange spurious character
  2016-11-18 21:50   ` Otared Kavian
@ 2016-11-18 22:08     ` Hans Hagen
  2016-11-19  8:35       ` Otared Kavian
  2016-11-19 19:22       ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2016-11-18 22:08 UTC (permalink / raw)
  To: ntg-context

On 11/18/2016 10:50 PM, Otared Kavian wrote:
> Hi Hans,
>
> Thanks for the quick fix.
> Indeed the spurious character does not show up anymore, but in the minimal example below the default body font seems to be set to bold italic, please see the attached PDF (I did not observe this in my real documents, but curiously it shows up in this minimal example): it may be that I am using a wrong font definition here.
> The version of ConTeXt is  2016.11.18 22:20 MKIV beta  fmt: 2016.11.18.
>
> %%%% begin bug-beta.tex
> \definefallbackfamily[mainface][serif][palatino]
> \definefontfamily[mainface][sans][palatino]
> \setupbodyfont[mainface]
>
> \starttext
>
> Why is the text in bold italic?
>
> \stoptext

I don't know,

\definefallbackfamily[mainface][serif][texgyrepagella]
\definefontfamily[mainface][sans][texgyrepagella]
\setupbodyfont[mainface]

\starttext

Why is the text in bold italic?

\stoptext

works ok here so you need to check what palatino gets selected (maybe 
you need to be more specific)



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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange spurious character
  2016-11-18 22:08     ` Hans Hagen
@ 2016-11-19  8:35       ` Otared Kavian
  2016-11-19 19:22       ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Otared Kavian @ 2016-11-19  8:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

Indeed with your solution, that is saying

\definefallbackfamily[mainface][serif][texgyrepagella]
\definefontfamily[mainface][sans][texgyrepagella]
\setupbodyfont[mainface]

or more simply saying

\setupbodyfont[palatino,12pt]

there is no problem. It seems that the issue comes from the use of

\definefontfamily[mainface][sans][palatino]

in the example I sent.
So I am going to use your way of defining the fontfamily.

Thanks again and best regards: OK


> \starttext
> 
> Why is the text in bold italic?
> 
> \stoptext
> On 18 Nov 2016, at 23:08, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 11/18/2016 10:50 PM, Otared Kavian wrote:
>> Hi Hans,
>> 
>> Thanks for the quick fix.
>> Indeed the spurious character does not show up anymore, but in the minimal example below the default body font seems to be set to bold italic, please see the attached PDF (I did not observe this in my real documents, but curiously it shows up in this minimal example): it may be that I am using a wrong font definition here.
>> The version of ConTeXt is  2016.11.18 22:20 MKIV beta  fmt: 2016.11.18.
>> 
>> %%%% begin bug-beta.tex
>> \definefallbackfamily[mainface][serif][palatino]
>> \definefontfamily[mainface][sans][palatino]
>> \setupbodyfont[mainface]
>> 
>> \starttext
>> 
>> Why is the text in bold italic?
>> 
>> \stoptext
> 
> I don't know,
> 
> \definefallbackfamily[mainface][serif][texgyrepagella]
> \definefontfamily[mainface][sans][texgyrepagella]
> \setupbodyfont[mainface]
> 
> \starttext
> 
> Why is the text in bold italic?
> 
> \stoptext
> 
> works ok here so you need to check what palatino gets selected (maybe you need to be more specific)
> 
> 
> 
> -----------------------------------------------------------------
>                                          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
> ___________________________________________________________________________________

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange spurious character
  2016-11-18 22:08     ` Hans Hagen
  2016-11-19  8:35       ` Otared Kavian
@ 2016-11-19 19:22       ` Wolfgang Schuster
  2016-11-19 23:09         ` Otared Kavian
  2016-11-20 11:12         ` Hans Hagen
  1 sibling, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2016-11-19 19:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 743 bytes --]

> Hans Hagen <mailto:pragma@wxs.nl>
> 18. November 2016 um 23:08
>
>
> I don't know,
>
> \definefallbackfamily[mainface][serif][texgyrepagella]
> \definefontfamily[mainface][sans][texgyrepagella]
> \setupbodyfont[mainface]
>
> \starttext
>
> Why is the text in bold italic?
>
> \stoptext
>
> works ok here so you need to check what palatino gets selected (maybe 
> you need to be more specific)
I can reproduce with the palatino on my system which comes in ttc-format.

The problem is that context adds only a single font from a ttc-font to 
the database
which results in weird results.

Clearing the font cache with "mtxrun --script cache --fonts --erase" 
helps sometimes
but the problem can appear when the font cache is updated.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1778 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange spurious character
  2016-11-19 19:22       ` Wolfgang Schuster
@ 2016-11-19 23:09         ` Otared Kavian
  2016-11-20 11:12         ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Otared Kavian @ 2016-11-19 23:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1755 bytes --]

Hi Wolfgang,

Thanks for your remark: indeed after issuing the command

	mtxrun --script cache --fonts —erase

the result is correct with palatino as the choice of font. 
I notice that the luatex-cache increases during the time: is there any reason for which the luatex-cache is not erased when updating? 

Best regards: OK

> On 19 Nov 2016, at 20:22, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>> Hans Hagen <mailto:pragma@wxs.nl> 18. November 2016 um 23:08
>> 
>> 
>> I don't know, 
>> 
>> \definefallbackfamily[mainface][serif][texgyrepagella] 
>> \definefontfamily[mainface][sans][texgyrepagella] 
>> \setupbodyfont[mainface] 
>> 
>> \starttext 
>> 
>> Why is the text in bold italic? 
>> 
>> \stoptext 
>> 
>> works ok here so you need to check what palatino gets selected (maybe you need to be more specific) 
> I can reproduce with the palatino on my system which comes in ttc-format.
> 
> The problem is that context adds only a single font from a ttc-font to the database
> which results in weird results.
> 
> Clearing the font cache with "mtxrun --script cache --fonts --erase" helps sometimes
> but the problem can appear when the font cache is updated.
> 
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 4876 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange spurious character
  2016-11-19 19:22       ` Wolfgang Schuster
  2016-11-19 23:09         ` Otared Kavian
@ 2016-11-20 11:12         ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2016-11-20 11:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/19/2016 8:22 PM, Wolfgang Schuster wrote:
>> Hans Hagen <mailto:pragma@wxs.nl>
>> 18. November 2016 um 23:08
>>
>>
>> I don't know,
>>
>> \definefallbackfamily[mainface][serif][texgyrepagella]
>> \definefontfamily[mainface][sans][texgyrepagella]
>> \setupbodyfont[mainface]
>>
>> \starttext
>>
>> Why is the text in bold italic?
>>
>> \stoptext
>>
>> works ok here so you need to check what palatino gets selected (maybe
>> you need to be more specific)
> I can reproduce with the palatino on my system which comes in ttc-format.
>
> The problem is that context adds only a single font from a ttc-font to
> the database
> which results in weird results.
>
> Clearing the font cache with "mtxrun --script cache --fonts --erase"
> helps sometimes
> but the problem can appear when the font cache is updated.

afaiks ttc subfonts get an entry in the name list (of course access by 
file is debatable then, in which case the first found match is used)

if you add fonts to the system with the same name you need to force a 
mtxrun --script font --reload --force

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-20 11:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18 20:03 Strange spurious character Otared Kavian
2016-11-18 21:30 ` Hans Hagen
2016-11-18 21:50   ` Otared Kavian
2016-11-18 22:08     ` Hans Hagen
2016-11-19  8:35       ` Otared Kavian
2016-11-19 19:22       ` Wolfgang Schuster
2016-11-19 23:09         ` Otared Kavian
2016-11-20 11:12         ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).