Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Hans Åberg

> On 6 Dec 2018, at 15:23, Wolfgang Schuster 
>  wrote:
> 
> The force key is valid for the \definefallbackfamily command, e.g.
> 
>  \definefallbackfamily [...] [...] [range={...},force=yes]

I tried to test it with the code below, but then it selects the stixtwomath 
glyphs. So possibly the force override is used only if the font has the glyph, 
instead of giving an error.

\definefallbackfamily [mainface] [math] [stix] 
[range={00B2-00B3,00B9,02070-0208F},force=yes]
\definefontfamily [mainface] [math] [stixtwomath]


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

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Wolfgang Schuster

Hans Åberg schrieb am 06.12.18 um 15:18:



On 2 Dec 2018, at 19:01, Hans Hagen  wrote:

This super/supscript stuff is a bit more tricky because when a superscript 2 is 
in the font, and a superscript 3 isn't, using a fake ^3 alongside that ^2 quite 
certainly will look bad because the 2 is normally of a different design that a 
scaled down 2, so one then has to replace them all. Then there is the question 
of scale and move (up/down).


This issue shows up with the STIX and STIX2 fonts, as the former has the 
superscript digits ¹ ² ³, but not the other which came to Unicode later in a 
different range.


Although I have some experiemntal (font) magic on my computer it will probably 
take till next year before it will show up in a beta.


I use the code below, which seems fine, as the two fonts are close to each 
other. But it seems that one cannot add [force=yes] to ensure they all come 
from the same font as on the command \definefontfallback. This command would 
otherwise be good to pick replacements for certain glyphs.

\definefallbackfamily [mainface] [serif] [stixtwotext] 
[range={00B2-00B3,00B9,02070-0208F}]


The force key is valid for the \definefallbackfamily command, e.g.

  \definefallbackfamily [...] [...] [range={...},force=yes]

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
___

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Hans Åberg

> On 2 Dec 2018, at 19:01, Hans Hagen  wrote:
> 
> This super/supscript stuff is a bit more tricky because when a superscript 2 
> is in the font, and a superscript 3 isn't, using a fake ^3 alongside that ^2 
> quite certainly will look bad because the 2 is normally of a different design 
> that a scaled down 2, so one then has to replace them all. Then there is the 
> question of scale and move (up/down).

This issue shows up with the STIX and STIX2 fonts, as the former has the 
superscript digits ¹ ² ³, but not the other which came to Unicode later in a 
different range.

> Although I have some experiemntal (font) magic on my computer it will 
> probably take till next year before it will show up in a beta.

I use the code below, which seems fine, as the two fonts are close to each 
other. But it seems that one cannot add [force=yes] to ensure they all come 
from the same font as on the command \definefontfallback. This command would 
otherwise be good to pick replacements for certain glyphs.

\definefallbackfamily [mainface] [serif] [stixtwotext] 
[range={00B2-00B3,00B9,02070-0208F}]
\definefallbackfamily [mainface] [mono] [stixtwotext] 
[range={00B2-00B3,00B9,02070-0208F}]
\definefallbackfamily [mainface] [math] [stixtwomath] 
[range={00B2-00B3,00B9,02070-0208F}]
\definefontfamily [mainface] [serif] [stix]
\definefontfamily [mainface] [mono] [stix]
\definefontfamily [mainface] [math] [stix]


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

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Åberg

> On 2 Dec 2018, at 19:01, Hans Hagen  wrote:
> 
> On 12/2/2018 6:33 PM, Hans Åberg wrote:
>> Maybe as a part of general features: A font fallback that selects the 
>> character from a sequence of fonts if not available, which could involve 
>> ranges, too, but not necessarily. And being able to have untranslated 
>> throughput.
> Using the available fallback mechanism that already can be done.

I couldn't figure out how to do it, though.

> This super/supscript stuff is a bit more tricky because when a superscript 2 
> is in the font, and a superscript 3 isn't, using a fake ^3 alongside that ^2 
> quite certainly will look bad because the 2 is normally of a different design 
> that a scaled down 2, so one then has to replace them all. Then there is the 
> question of scale and move (up/down).

It will look worse not having it at all, when coping from the PDF to the plain 
text file, that is. :-)

> Although I have some experiemntal (font) magic on my computer it will 
> probably take till next year before it will show up in a beta.

Perhaps the stuff that the PDF displays may not need to be what one copies, 
that is, it displays something that looks good, but when coping as plain text, 
one gets something that is useful. That is possible for HTML URLs, even though 
it is a security hazard for such links.


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

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Hagen

On 12/2/2018 6:33 PM, Hans Åberg wrote:



On 2 Dec 2018, at 16:55, Hans Hagen  wrote:

On 12/2/2018 3:44 PM, Hans Åberg wrote:

On 2 Dec 2018, at 10:19, Henning Hraban Ramm  wrote:

STIX fonts don’t contain super and subscript numbers.

They are in STIX Two, so I can get them using:
   \definefontfamily[stix-two][mono][Stix Two Text]
   \definefontfamily[stix-two][math][Stix Two Math]
   \setupbodyfont[stix-two,10pt]
But it is an entirely different font design, so a font fallback to STIX would 
be desirable. Then the problem is that these super and subscript symbols are 
spread on a number of different ranges. —It seems one cannot have a general 
fallback in the case the glyph is missing.
In addition, they get translated in the typesetting, so when copied in the PDF 
and pasted into a text file, they loose being super and subscript.

in general these super and subscript are rather useless because (1) only a 
subset of characters is available and (2) it depends on selectively applying 
the subs and sups feature


They are usable in plain text files, though I think, originally added to 
Unicode as a font encoding compatibility. Right now, I just use it in generated 
output files to indicate variable relabeling, so from that point of view, a 
font fallback would suffice, as there is no need to copy and paste from the PDF 
them as part of computer code examples. One might want to copy and work them by 
hand, though.

However, after starting to use them, I thought they might be usable in input 
code, too. Then one would like to paste examples in the manual for copy and 
paste. The super and superscript parentheses could be used as replacement for 
TeX ^ and _, the latter which in turn comes from some pre-ASCII arrow symbols. 
Unicode does not have general super and superscript symbols, and for computer 
input, it would be better with a matching pair than a single symbol.

I have used the text substitutions on MacOS for some time now, and it works 
fine to write math styles and symbols directly in a plain text file. I have 
also seen these super and superscript numbers used for SI units for example, on 
the Internet. So it may become more common in the future.


anyway, i can provide a solution to automatically add these scripts to a font; 
just for fun i implemented something

% \definefontfeature[default][default][scripts=yes]
% \definefontfeature[default][default][scripts=.6]

\definefontfeature
  [default]
  [default]
  [scripts={factor=.6,up=.3,down=.2,extend=1.5}]

but as i use some new trickery it won't be in the beta for a while.


Maybe as a part of general features: A font fallback that selects the character 
from a sequence of fonts if not available, which could involve ranges, too, but 
not necessarily. And being able to have untranslated throughput.

Using the available fallback mechanism that already can be done.

This super/supscript stuff is a bit more tricky because when a 
superscript 2 is in the font, and a superscript 3 isn't, using a fake ^3 
alongside that ^2 quite certainly will look bad because the 2 is 
normally of a different design that a scaled down 2, so one then has to 
replace them all. Then there is the question of scale and move (up/down).


Although I have some experiemntal (font) magic on my computer it will 
probably take till next year before it will show up in a beta.


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
___

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Åberg

> On 2 Dec 2018, at 16:55, Hans Hagen  wrote:
> 
> On 12/2/2018 3:44 PM, Hans Åberg wrote:
>>> On 2 Dec 2018, at 10:19, Henning Hraban Ramm  wrote:
>>> 
>>> STIX fonts don’t contain super and subscript numbers.
>> They are in STIX Two, so I can get them using:
>>   \definefontfamily[stix-two][mono][Stix Two Text]
>>   \definefontfamily[stix-two][math][Stix Two Math]
>>   \setupbodyfont[stix-two,10pt]
>> But it is an entirely different font design, so a font fallback to STIX 
>> would be desirable. Then the problem is that these super and subscript 
>> symbols are spread on a number of different ranges. —It seems one cannot 
>> have a general fallback in the case the glyph is missing.
>> In addition, they get translated in the typesetting, so when copied in the 
>> PDF and pasted into a text file, they loose being super and subscript.
> in general these super and subscript are rather useless because (1) only a 
> subset of characters is available and (2) it depends on selectively applying 
> the subs and sups feature

They are usable in plain text files, though I think, originally added to 
Unicode as a font encoding compatibility. Right now, I just use it in generated 
output files to indicate variable relabeling, so from that point of view, a 
font fallback would suffice, as there is no need to copy and paste from the PDF 
them as part of computer code examples. One might want to copy and work them by 
hand, though.

However, after starting to use them, I thought they might be usable in input 
code, too. Then one would like to paste examples in the manual for copy and 
paste. The super and superscript parentheses could be used as replacement for 
TeX ^ and _, the latter which in turn comes from some pre-ASCII arrow symbols. 
Unicode does not have general super and superscript symbols, and for computer 
input, it would be better with a matching pair than a single symbol.

I have used the text substitutions on MacOS for some time now, and it works 
fine to write math styles and symbols directly in a plain text file. I have 
also seen these super and superscript numbers used for SI units for example, on 
the Internet. So it may become more common in the future.

> anyway, i can provide a solution to automatically add these scripts to a 
> font; just for fun i implemented something
> 
> % \definefontfeature[default][default][scripts=yes]
> % \definefontfeature[default][default][scripts=.6]
> 
> \definefontfeature
>  [default]
>  [default]
>  [scripts={factor=.6,up=.3,down=.2,extend=1.5}]
> 
> but as i use some new trickery it won't be in the beta for a while.

Maybe as a part of general features: A font fallback that selects the character 
from a sequence of fonts if not available, which could involve ranges, too, but 
not necessarily. And being able to have untranslated throughput.

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

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Hagen

On 12/2/2018 3:44 PM, Hans Åberg wrote:



On 2 Dec 2018, at 10:19, Henning Hraban Ramm  wrote:

STIX fonts don’t contain super and subscript numbers.


They are in STIX Two, so I can get them using:
   \definefontfamily[stix-two][mono][Stix Two Text]
   \definefontfamily[stix-two][math][Stix Two Math]

   \setupbodyfont[stix-two,10pt]

But it is an entirely different font design, so a font fallback to STIX would 
be desirable. Then the problem is that these super and subscript symbols are 
spread on a number of different ranges. —It seems one cannot have a general 
fallback in the case the glyph is missing.

In addition, they get translated in the typesetting, so when copied in the PDF 
and pasted into a text file, they loose being super and subscript.
in general these super and subscript are rather useless because (1) only 
a subset of characters is available and (2) it depends on selectively 
applying the subs and sups feature


anyway, i can provide a solution to automatically add these scripts to a 
font; just for fun i implemented something


% \definefontfeature[default][default][scripts=yes]
% \definefontfeature[default][default][scripts=.6]

\definefontfeature
  [default]
  [default]
  [scripts={factor=.6,up=.3,down=.2,extend=1.5}]

but as i use some new trickery it won't be in the beta for a while.

Han s



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

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Åberg

> On 2 Dec 2018, at 10:19, Henning Hraban Ramm  wrote:
> 
> STIX fonts don’t contain super and subscript numbers.

They are in STIX Two, so I can get them using:
  \definefontfamily[stix-two][mono][Stix Two Text]
  \definefontfamily[stix-two][math][Stix Two Math]

  \setupbodyfont[stix-two,10pt]

But it is an entirely different font design, so a font fallback to STIX would 
be desirable. Then the problem is that these super and subscript symbols are 
spread on a number of different ranges. —It seems one cannot have a general 
fallback in the case the glyph is missing.

In addition, they get translated in the typesetting, so when copied in the PDF 
and pasted into a text file, they loose being super and subscript.


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

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Henning Hraban Ramm
STIX fonts don’t contain super and subscript numbers.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-12-01 um 23:30 schrieb Hans Åberg :

> Only some of the Unicode subscript and superscript numbers and signs show up 
> in the example below in the typing and text environments, though all correct 
> in the formula environment.
> 
> 
> —
> \setupbodyfont[stix,10pt]
> 
> \starttext
> 
> \startformula
> \startalign
>  \NC 푨₀ 0  ₁ 1  ₂ 2  ₃ 3  ₄ 4  ₅ 5  ₆ 6  ₇ 7  ₈ 8  ₉ 9  ₊ +  ₋ -  ₌ =  ₍ (  ₎ 
> )\NR
>  \NC 푩⁰ 0  ¹ 1  ² 2  ³ 3  ⁴ 4  ⁵ 5  ⁶ 6  ⁷ 7  ⁸ 8  ⁹ 9  ⁺ +  ⁻ -  ⁼ =  ⁽ (  ⁾ 
> )\NR
> \stopalign
> \stopformula
> 
> \starttyping
>  푨₀ 0  ₁ 1  ₂ 2  ₃ 3  ₄ 4  ₅ 5  ₆ 6  ₇ 7  ₈ 8  ₉ 9  ₊ +  ₋ -  ₌ =  ₍ (  ₎ )
>  푩⁰ 0  ¹ 1  ² 2  ³ 3  ⁴ 4  ⁵ 5  ⁶ 6  ⁷ 7  ⁸ 8  ⁹ 9  ⁺ +  ⁻ -  ⁼ =  ⁽ (  ⁾ )
> \stoptyping
> 
>  푨₀ 0  ₁ 1  ₂ 2  ₃ 3  ₄ 4  ₅ 5  ₆ 6  ₇ 7  ₈ 8  ₉ 9  ₊ +  ₋ -  ₌ =  ₍ (  ₎ )
> 
>  푩⁰ 0  ¹ 1  ² 2  ³ 3  ⁴ 4  ⁵ 5  ⁶ 6  ⁷ 7  ⁸ 8  ⁹ 9  ⁺ +  ⁻ -  ⁼ =  ⁽ (  ⁾ )
> 
> \stoptext
> —
> 
> ___
> 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
___

[NTG-context] Typing Unicode subscript and superscript numbers

2018-12-01 Thread Hans Åberg
Only some of the Unicode subscript and superscript numbers and signs show up in 
the example below in the typing and text environments, though all correct in 
the formula environment.


—
\setupbodyfont[stix,10pt]

\starttext

\startformula
 \startalign
  \NC 푨₀ 0  ₁ 1  ₂ 2  ₃ 3  ₄ 4  ₅ 5  ₆ 6  ₇ 7  ₈ 8  ₉ 9  ₊ +  ₋ -  ₌ =  ₍ (  ₎ 
)\NR
  \NC 푩⁰ 0  ¹ 1  ² 2  ³ 3  ⁴ 4  ⁵ 5  ⁶ 6  ⁷ 7  ⁸ 8  ⁹ 9  ⁺ +  ⁻ -  ⁼ =  ⁽ (  ⁾ 
)\NR
 \stopalign
\stopformula

\starttyping
  푨₀ 0  ₁ 1  ₂ 2  ₃ 3  ₄ 4  ₅ 5  ₆ 6  ₇ 7  ₈ 8  ₉ 9  ₊ +  ₋ -  ₌ =  ₍ (  ₎ )
  푩⁰ 0  ¹ 1  ² 2  ³ 3  ⁴ 4  ⁵ 5  ⁶ 6  ⁷ 7  ⁸ 8  ⁹ 9  ⁺ +  ⁻ -  ⁼ =  ⁽ (  ⁾ )
\stoptyping

  푨₀ 0  ₁ 1  ₂ 2  ₃ 3  ₄ 4  ₅ 5  ₆ 6  ₇ 7  ₈ 8  ₉ 9  ₊ +  ₋ -  ₌ =  ₍ (  ₎ )

  푩⁰ 0  ¹ 1  ² 2  ³ 3  ⁴ 4  ⁵ 5  ⁶ 6  ⁷ 7  ⁸ 8  ⁹ 9  ⁺ +  ⁻ -  ⁼ =  ⁽ (  ⁾ )

\stoptext
—

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

Re: [NTG-context] Typing unicode

2009-02-22 Thread zs
Hi,


try this: \getglyph{name:TeXGyreHeros-Regular}{\char2013} % your font should 
have the glyph!

If you are in linux and your editor is UTF8 capable, try pressing keys 
shift+ctrl+u and then type 2013.


This should work when using luatex.



ZS





On Thu, 19 Feb 2009 21:48:50 -0300
Maurí­cio briqueabra...@yahoo.com wrote:

 Hi,
 
 This is probably a really basic question
 already asked many times, but I wasn't able
 to find an answer.
 
 How to type an unicode character using its
 number? Searching for messages, I found
 things like:
 
 2019
 \char2019
 \char{2019}
 \utfchar{2019}
 
 but I wasn't able to get any of them to
 work. (I don't know for sure they actually
 should do what I want.)
 
 'texexec --version' says:
 
 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
 
 Thanks,
 Maurício
 
 ___
 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
 ___
___
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
___


Re: [NTG-context] Typing unicode

2009-02-20 Thread Longmin Wang
You may try \uchar{20}{19}. 

On Thu, Feb 19, 2009 at 09:48:50PM -0300, Maur憝cio wrote:
 Hi,

 This is probably a really basic question
 already asked many times, but I wasn't able
 to find an answer.

 How to type an unicode character using its
 number? Searching for messages, I found
 things like:

 2019
 \char2019
 \char{2019}
 \utfchar{2019}

 but I wasn't able to get any of them to
 work. (I don't know for sure they actually
 should do what I want.)

 'texexec --version' says:

 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 Thanks,
 Maur韈io

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

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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
___


Re: [NTG-context] Typing unicode

2009-02-20 Thread Hans Hagen

Maurí­cio wrote:

Hi,

This is probably a really basic question
already asked many times, but I wasn't able
to find an answer.

How to type an unicode character using its
number? Searching for messages, I found
things like:

\char2019


that one is pretty safe in mkiv

make sure to end witha space or \relax


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


[NTG-context] Typing unicode

2009-02-19 Thread Maurí­cio

Hi,

This is probably a really basic question
already asked many times, but I wasn't able
to find an answer.

How to type an unicode character using its
number? Searching for messages, I found
things like:

2019
\char2019
\char{2019}
\utfchar{2019}

but I wasn't able to get any of them to
work. (I don't know for sure they actually
should do what I want.)

'texexec --version' says:

TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

Thanks,
Maurício

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