ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* accented letters in mkiv
@ 2008-05-19 16:16 Thomas A. Schmitz
  2008-05-19 18:04 ` Hans Hagen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas A. Schmitz @ 2008-05-19 16:16 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Hi all,

sorry if this is obvious and I have simply overlooked something. I  
need the character U0113 "emacron." It is not present in the font I  
use. In mkii, I could simply write \=e, and TeX would take care of  
building (faking) the character. When I try this in mkiv, I get an  
error:

error: ...al/texlive/texmf-local/tex/context/base/font-otf.lua:3329:  
attempt to index field '?' (a nil value)

I'm not complaining about this somewhat opaque error message, but I'm  
wondering how I can fake this glyph. There was an older discussion on  
the list which pointed me to char-utf.tex and \definecomposedutf, but  
the file says "This feature is obsolete." So what would be the  
canonical way to build such a character in mkiv?

Thanks a lot, 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: accented letters in mkiv
  2008-05-19 16:16 accented letters in mkiv Thomas A. Schmitz
@ 2008-05-19 18:04 ` Hans Hagen
  2008-05-19 19:52   ` Thomas A. Schmitz
  2008-05-19 20:52 ` Hans Hagen
  2008-05-19 20:54 ` Hans Hagen
  2 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2008-05-19 18:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas A. Schmitz wrote:
> Hi all,
> 
> sorry if this is obvious and I have simply overlooked something. I  
> need the character U0113 "emacron." It is not present in the font I  
> use. In mkii, I could simply write \=e, and TeX would take care of  
> building (faking) the character. When I try this in mkiv, I get an  
> error:
> 
> error: ...al/texlive/texmf-local/tex/context/base/font-otf.lua:3329:  
> attempt to index field '?' (a nil value)
> 
> I'm not complaining about this somewhat opaque error message, but I'm  
> wondering how I can fake this glyph. There was an older discussion on  
> the list which pointed me to char-utf.tex and \definecomposedutf, but  
> the file says "This feature is obsolete." So what would be the  
> canonical way to build such a character in mkiv?

use the feature:

	combine=yes

maybe you're lucky


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


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

* Re: accented letters in mkiv
  2008-05-19 18:04 ` Hans Hagen
@ 2008-05-19 19:52   ` Thomas A. Schmitz
  2008-05-19 20:48     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas A. Schmitz @ 2008-05-19 19:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On May 19, 2008, at 8:04 PM, Hans Hagen wrote:

> use the feature:
>
> 	combine=yes
>
> maybe you're lucky

:-) No such luck, unfortunately. I have now found a post by Taco on a  
similar problem and use this:

\catcode`\ē=\active \def ē{\buildtextaccent\textmacron e}

Works well!

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

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

* Re: accented letters in mkiv
  2008-05-19 19:52   ` Thomas A. Schmitz
@ 2008-05-19 20:48     ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2008-05-19 20:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas A. Schmitz wrote:
> On May 19, 2008, at 8:04 PM, Hans Hagen wrote:
> 
>> use the feature:
>>
>> 	combine=yes
>>
>> maybe you're lucky
> 
> :-) No such luck, unfortunately. I have now found a post by Taco on a  
> similar problem and use this:
> 
> \catcode`\ē=\active \def ē{\buildtextaccent\textmacron e}
> 
> Works well!

hm, but that will do it for *all* fonts

i have no plans yet to set up a mechanism for that; at some point we 
will have a callback for missing characters and then we can think of 
something more structural

btw, i wonder why combine does not work here


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

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

* Re: accented letters in mkiv
  2008-05-19 16:16 accented letters in mkiv Thomas A. Schmitz
  2008-05-19 18:04 ` Hans Hagen
@ 2008-05-19 20:52 ` Hans Hagen
  2008-05-19 21:30   ` Arthur Reutenauer
  2008-05-19 20:54 ` Hans Hagen
  2 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2008-05-19 20:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas A. Schmitz wrote:
> Hi all,
> 
> sorry if this is obvious and I have simply overlooked something. I  
> need the character U0113 "emacron." It is not present in the font I  
> use. In mkii, I could simply write \=e, and TeX would take care of  
> building (faking) the character. When I try this in mkiv, I get an  
> error:
> 
> error: ...al/texlive/texmf-local/tex/context/base/font-otf.lua:3329:  
> attempt to index field '?' (a nil value)

         while next and next.id == glyph and next.subtype<256 and 
next.font == currentfont do
             local cn = characters[next.char]
             if not cn or cn.description.class == 'mark' then
                 prev = next
                 next = next.next
             else

should repair this

> I'm not complaining about this somewhat opaque error message, but I'm  

well, eventually all such errors should go away

makes me wonder ... maybe in addition to combine i should have a 
simplify feature (so that a missing emacron at least gives an e)

Hans


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


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

* Re: accented letters in mkiv
  2008-05-19 16:16 accented letters in mkiv Thomas A. Schmitz
  2008-05-19 18:04 ` Hans Hagen
  2008-05-19 20:52 ` Hans Hagen
@ 2008-05-19 20:54 ` Hans Hagen
  2 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2008-05-19 20:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas A. Schmitz wrote:


can you try compose=yes

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


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

* Re: accented letters in mkiv
  2008-05-19 20:52 ` Hans Hagen
@ 2008-05-19 21:30   ` Arthur Reutenauer
  0 siblings, 0 replies; 7+ messages in thread
From: Arthur Reutenauer @ 2008-05-19 21:30 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> makes me wonder ... maybe in addition to combine i should have a 
> simplify feature (so that a missing emacron at least gives an e)

  That would be great indeed ... as a very very last resort ;-)

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


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

end of thread, other threads:[~2008-05-19 21:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 16:16 accented letters in mkiv Thomas A. Schmitz
2008-05-19 18:04 ` Hans Hagen
2008-05-19 19:52   ` Thomas A. Schmitz
2008-05-19 20:48     ` Hans Hagen
2008-05-19 20:52 ` Hans Hagen
2008-05-19 21:30   ` Arthur Reutenauer
2008-05-19 20:54 ` 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).