Re: [NTG-context] How to make an accent

2009-11-02 Thread Arthur Reutenauer
 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
___


Re: [NTG-context] How to make an accent

2009-11-02 Thread Vyatcheslav Yatskovsky

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
___


Re: [NTG-context] How to make an accent

2009-11-01 Thread Mojca Miklavec
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
___


Re: [NTG-context] How to make an accent

2009-11-01 Thread Vyatcheslav Yatskovsky

On 01.11.2009 13:00, ntg-context-requ...@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
___


Re: [NTG-context] How to make an accent

2009-11-01 Thread Mojca Miklavec
On Sun, Nov 1, 2009 at 14:11, Vyatcheslav Yatskovsky wrote:
 On 01.11.2009 13:00, ntg-context-requ...@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
___


Re: [NTG-context] How to make an accent

2009-11-01 Thread Vyatcheslav Yatskovsky

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
___


Re: [NTG-context] How to make an accent

2009-11-01 Thread Mojca Miklavec
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
___


[NTG-context] How to make an accent

2009-10-31 Thread Vyatcheslav Yatskovsky

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
___