ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to make an accent
       [not found] <mailman.1.1256986802.11443.ntg-context@ntg.nl>
@ 2009-11-01  0:29 ` Vyatcheslav Yatskovsky
  2009-11-01  7:52   ` Mojca Miklavec
  0 siblings, 1 reply; 8+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-11-01  0:29 UTC (permalink / raw)
  To: ntg-context

Hello,

How to make an accent over a letter in a word?

I use Times New Roman and Cyrillic letters.

Regards,
Vyatcheslav
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: How to make an accent
  2009-11-01  0:29 ` How to make an accent Vyatcheslav Yatskovsky
@ 2009-11-01  7:52   ` Mojca Miklavec
  0 siblings, 0 replies; 8+ messages in thread
From: Mojca Miklavec @ 2009-11-01  7:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Nov 1, 2009 at 01:29, Vyatcheslav Yatskovsky wrote:
> Hello,
>
> How to make an accent over a letter in a word?

It might help to know what letters exactly you have in mind.

> I use Times New Roman and Cyrillic letters.

If there is no suitable letter in Unicode you may:
- try to use Unicode accent combining characters and complain if it doesn't work
- this used to work not so long ago (well, during BachoTeX Hans has
fixed it), but the second example behaves weird again:
    \buildtextaccent\textcircumflex{y}
    \buildtextaccent\textcircumflex{\schwa}
so try with your letters and report if you stumble into problems problems.

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
___________________________________________________________________________________


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

* Re: How to make an accent
       [not found] <mailman.228.1257195428.22155.ntg-context@ntg.nl>
@ 2009-11-02 22:45 ` Vyatcheslav Yatskovsky
  0 siblings, 0 replies; 8+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-11-02 22:45 UTC (permalink / raw)
  To: ntg-context

Thanks, Arthur, for explanations. It works now via macro and I'm happy )
>    No, the letter doesn't exist at all in Unicode, and most likely won't be
> encoded in the future either, due to the rule known as "normalization
> stability".  Generally speaking, you have to input it as Cyrillic a followed by
> combining acute accent, from the Unicode point of view.  Inside TeX, you should
> of course build it with an accent macro.
>    
Vyatcheslav
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: How to make an accent
  2009-11-01 15:33   ` Mojca Miklavec
@ 2009-11-02 20:27     ` Arthur Reutenauer
  0 siblings, 0 replies; 8+ messages in thread
From: Arthur Reutenauer @ 2009-11-02 20:27 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> Not sure, but if that letter exists in unicode and not in your font

  No, the letter doesn't exist at all in Unicode, and most likely won't be
encoded in the future either, due to the rule known as "normalization
stability".  Generally speaking, you have to input it as Cyrillic a followed by
combining acute accent, from the Unicode point of view.  Inside TeX, you should
of course build it with an accent macro.

	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
___________________________________________________________________________________


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

* Re: How to make an accent
  2009-11-01 14:31 ` Vyatcheslav Yatskovsky
@ 2009-11-01 15:33   ` Mojca Miklavec
  2009-11-02 20:27     ` Arthur Reutenauer
  0 siblings, 1 reply; 8+ messages in thread
From: Mojca Miklavec @ 2009-11-01 15:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Nov 1, 2009 at 15:31, Vyatcheslav Yatskovsky wrote:
>> 1. you can do
>> \def\myacute#1{\buildtextaccent\textacute{#1}}
>> Апроксим{\myacute а}ція
>>
>> 2. of course you can also define an ugly shortcut:
>> \catcode`'=\active
>> \let\'=\myacute
>> Апроксим\'ація
>>
>> 3. though in reality I would be most grateful if
>> \'а
>> would work out of the box (at least it mkiv) and generate accent over
>> whatever letter comes next. If glyph doesn't exist, it could just
>> place one over a.
>
> Thank you, Mojca. (1) works fine.
>
> Before asking, I tried (3) option, but failed. Why it doesn't work? This is
> the classic way.

Not sure, but if that letter exists in unicode and not in your font
... that might be the most probably cause. If not, read further.

In mkii it has never worked since Hans reimplemented the mechanism (it
was different from Knuth's) to enable choosing the right glyph - if
font encoding has some glyph, it comes from the font, else it gets
composed from accent and letter.

Maybe I'm wrong, but from what I remember you only get those
characters that indeed exist in Unicode and the whole set of allowed
combinations is defined somewhere in source (see enco-def.mkii). I
don't know what exactly needs to be done in mkiv.

In mkii it will never get changed; I don't remember too many
complaints, but the truth is that (all) the characters that people
need are usually covered. If any were missing, they were added to the
list.

4.) I indeed forgot the fourth option: you can also build a slightly
larger file with all letter-accent combinations that you possibly
need.

I would assume that mkiv just builds all the accent combinations (to
support "\v c" constructs) from Unicode specification. If you need
some special character with a special accent like those definitions in
enco-def.mkii ... then you need to ask someone else for mkiv since I
stayed behind of a time for quite a giant leap.

(Hans, why cannot I put any accent on \schwa any more?)

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
___________________________________________________________________________________

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

* Re: How to make an accent
       [not found] <mailman.1.1257073202.19114.ntg-context@ntg.nl>
  2009-11-01 13:11 ` Vyatcheslav Yatskovsky
@ 2009-11-01 14:31 ` Vyatcheslav Yatskovsky
  2009-11-01 15:33   ` Mojca Miklavec
  1 sibling, 1 reply; 8+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-11-01 14:31 UTC (permalink / raw)
  To: ntg-context

> 1. you can do
> \def\myacute#1{\buildtextaccent\textacute{#1}}
> Апроксим{\myacute а}ція
>
> 2. of course you can also define an ugly shortcut:
> \catcode`'=\active
> \let\'=\myacute
> Апроксим\'ація
>
> 3. though in reality I would be most grateful if
> \'а
> would work out of the box (at least it mkiv) and generate accent over
> whatever letter comes next. If glyph doesn't exist, it could just
> place one over a.

Thank you, Mojca. (1) works fine.

Before asking, I tried (3) option, but failed. Why it doesn't work? This 
is the classic way.

Regards,
Vyatcheslav
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: How to make an accent
  2009-11-01 13:11 ` Vyatcheslav Yatskovsky
@ 2009-11-01 13:42   ` Mojca Miklavec
  0 siblings, 0 replies; 8+ messages in thread
From: Mojca Miklavec @ 2009-11-01 13:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Nov 1, 2009 at 14:11, Vyatcheslav Yatskovsky wrote:
> On 01.11.2009 13:00, ntg-context-request@ntg.nl wrote:
>>
>> If there is no suitable letter in Unicode you may:
>> - try to use Unicode accent combining characters and complain if it
>> doesn't work
>> - this used to work not so long ago (well, during BachoTeX Hans has
>> fixed it), but the second example behaves weird again:
>>     \buildtextaccent\textcircumflex{y}
>>     \buildtextaccent\textcircumflex{\schwa}
>> so try with your letters and report if you stumble into problems problems.
>>
>
> Thanks. But before i try something weird, i want to explain. I need an
> accent to indicate where pronunciation stress is. Is happens on Cyrillic "а"
> letter:
>
> Апроксимація (approximation)
>
> So my goal is not to form a special letter, but to show a linguistic feature
> of the word.
> Maybe we have better way to do this?

1. you can do
    \def\myacute#1{\buildtextaccent\textacute{#1}}
    Апроксим{\myacute а}ція

2. of course you can also define an ugly shortcut:
    \catcode`'=\active
    \let\'=\myacute
    Апроксим\'ація

3. though in reality I would be most grateful if
    \'а
would work out of the box (at least it mkiv) and generate accent over
whatever letter comes next. If glyph doesn't exist, it could just
place one over a.

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
___________________________________________________________________________________

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

* Re: How to make an accent
       [not found] <mailman.1.1257073202.19114.ntg-context@ntg.nl>
@ 2009-11-01 13:11 ` Vyatcheslav Yatskovsky
  2009-11-01 13:42   ` Mojca Miklavec
  2009-11-01 14:31 ` Vyatcheslav Yatskovsky
  1 sibling, 1 reply; 8+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-11-01 13:11 UTC (permalink / raw)
  To: ntg-context

On 01.11.2009 13:00, ntg-context-request@ntg.nl wrote:
> If there is no suitable letter in Unicode you may:
> - try to use Unicode accent combining characters and complain if it doesn't work
> - this used to work not so long ago (well, during BachoTeX Hans has
> fixed it), but the second example behaves weird again:
>      \buildtextaccent\textcircumflex{y}
>      \buildtextaccent\textcircumflex{\schwa}
> so try with your letters and report if you stumble into problems problems.
>    
Thanks. But before i try something weird, i want to explain. I need an 
accent to indicate where pronunciation stress is. Is happens on Cyrillic 
"а" letter:

Апроксимація (approximation)

So my goal is not to form a special letter, but to show a linguistic 
feature of the word.
Maybe we have better way to do this?

Regards,
Vyatcheslav
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2009-11-02 22:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1256986802.11443.ntg-context@ntg.nl>
2009-11-01  0:29 ` How to make an accent Vyatcheslav Yatskovsky
2009-11-01  7:52   ` Mojca Miklavec
     [not found] <mailman.1.1257073202.19114.ntg-context@ntg.nl>
2009-11-01 13:11 ` Vyatcheslav Yatskovsky
2009-11-01 13:42   ` Mojca Miklavec
2009-11-01 14:31 ` Vyatcheslav Yatskovsky
2009-11-01 15:33   ` Mojca Miklavec
2009-11-02 20:27     ` Arthur Reutenauer
     [not found] <mailman.228.1257195428.22155.ntg-context@ntg.nl>
2009-11-02 22:45 ` Vyatcheslav Yatskovsky

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).