Re: [NTG-context] Unicode Characters

2008-11-20 Thread Wolfgang Schuster

Am 20.11.2008 um 15:16 schrieb Erich R Fickel:

>> This is one of the famous Zapf dingbats, available in dedicated  
>> fonts;
>> you don't really need Unicode fonts in order to typeset it.
>> Try the instructions by Adam Lindsay
>>
>> http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf)
>
> Thank you for the very quick answer. I read Mr. Lindsay's instruction.
> It worked, and quite easily. I also tried to just use the character in
> mkiv. That didn't work. However, in mkii, I tried the following:
>
> \usesymbols[uzd]
> \definecharacter crosssign{\uchar{39}{29}}
> \starttext
>
> Here is the \crosssign\ in a sentence.
>
> \stoptext
>
> That worked too, and seems easier.
>
> I would like to figure it out it mkiv as well. I type the character in
> VIM, but it showed up as a space in the PDF.

\def\crosssign{\utfchar{"271D}}

You need only a font the symbol, if you have one there are different
ways to use it.


The simple solution:

\definefont[unicode][name:unicodesymbols*default]

\def\crosssign{\utfchar{"271D}}

\starttext

text {\unicode\crosssign} text

\stoptext

You can also include the font in the defintion of \crosssign.


The advanced solution:

\def\crosssign{\utfchar{"271D}}

\definefontsynonym[UnicodeSymbols][name:unicodesymbols*default]

\definefontfallback[symbols][UnicodeSymbols][dingbats]

\starttypescript [serif] [mine]
   \definefontsynonym [Serif] [TeXGyrePagella-Regular]  
[fallbacks=symbols]
\stoptypescript

\definetypeface [mine] [rm] [serif] [mine] [default]

\setupbodyfont[mine]

\starttext

text \crosssign\ text

\stoptext

You need a few more lines for the setup because you need
a new typescript.

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


Re: [NTG-context] Unicode Characters

2008-11-20 Thread Arthur Reutenauer
> I would like to figure it out it mkiv as well.

  Can you send a precise example, specifying in particular the font you use?

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
___


Re: [NTG-context] Unicode Characters

2008-11-20 Thread Erich R Fickel
 > This is one of the famous Zapf dingbats, available in dedicated fonts;
 > you don't really need Unicode fonts in order to typeset it.
 > Try the instructions by Adam Lindsay
 >
 >http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf)

Thank you for the very quick answer. I read Mr. Lindsay's instruction. 
It worked, and quite easily. I also tried to just use the character in 
mkiv. That didn't work. However, in mkii, I tried the following:

\usesymbols[uzd]
\definecharacter crosssign{\uchar{39}{29}}
\starttext

Here is the \crosssign\ in a sentence.

\stoptext

That worked too, and seems easier.

I would like to figure it out it mkiv as well. I type the character in 
VIM, but it showed up as a space in the PDF.

-Erich

___
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] Unicode Characters

2008-11-19 Thread Arthur Reutenauer
> I am trying to insert unicode charater 217D (a cross) into a line of 
> text. I cannot figure out how to do it, or if it can be done.

  You probably mean U+217D, not U+271D.

  This is one of the famous Zapf dingbats, available in dedicated fonts;
you don't really need Unicode fonts in order to typeset it.  Try the
instructions by Adam Lindsay
(http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf)

  An alternative with Mark IV: just find a font that contains that
character.  You can look for it with BabelPad on Windows /
UnicodeChecker on Mac OS / gucharmap on Linux.  Then, just use the font
with the \definefont command.

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
___


Re: [NTG-context] Unicode characters

2008-09-29 Thread Wolfgang Schuster

Am 29.09.2008 um 11:21 schrieb Alan Stone:

> On Fri, Sep 26, 2008 at 4:35 PM, Idris Samawi Hamid <[EMAIL PROTECTED] 
> > wrote:
> On Fri, 26 Sep 2008 07:09:28 -0600, Alan Stone
> <[EMAIL PROTECTED]> wrote:
>
> > Please explain "use fallbacks".
>
> http://archive.contextgarden.net/message/20080611.094746.07de5882.en.html
>
> >>> \definefontfallback [whatever] [Slanted] [0x0060-0x007F]
> >>> \definefontfallback [whatever] [Bold] [0x0080-0x00FF, 
> 0x00A0-0x00AF]
> >>> \definefontfallback [whatever] [BoldSlanted] [0x00C0-0x00C7]
> >>
> >> What's the meaning of the third parameter? Unicode ranges?
> >>
> >takes chars 0x0060-0x007F from Slanted (whatever it resolves to)
>
> And what are these thingies: 0x0060-0x007F ?

Unicode values [1], in the example above all characters with a code  
between
0x0060 (grave accent) till 0x0070 (latin small letter p) are taken from
the current font for the slanted style.

[1] http://www.unicode.org/charts/PDF/U.pdf

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


Re: [NTG-context] Unicode characters

2008-09-29 Thread Alan Stone
On Fri, Sep 26, 2008 at 4:35 PM, Idris Samawi Hamid
<[EMAIL PROTECTED]>wrote:

> On Fri, 26 Sep 2008 07:09:28 -0600, Alan Stone
> <[EMAIL PROTECTED]> wrote:
>
> > Please explain "use fallbacks".
>
> http://archive.contextgarden.net/message/20080611.094746.07de5882.en.html


*>>> \definefontfallback [whatever] [Slanted] [0x0060-0x007F]
>>> \definefontfallback [whatever] [Bold] [0x0080-0x00FF,0x00A0-0x00AF]
>>> \definefontfallback [whatever] [BoldSlanted] [0x00C0-0x00C7]
>>
>> What's the meaning of the third parameter? Unicode ranges?*
>>
>takes chars 0x0060-0x007F from Slanted (whatever it resolves to)

And what are these thingies: 0x0060-0x007F ?

-- 
Best,
Alan

Ubuntu 8.04 Hardy Heron (Desktop)
  * ConTeXt  ver: 2008.09.16 19:49 MKIV  fmt: 2008.9.20  int:
english/english  (ConTeXt minimals installation)
  * texexec --lua foo
___
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] Unicode characters

2008-09-26 Thread Idris Samawi Hamid
On Fri, 26 Sep 2008 07:09:28 -0600, Alan Stone  
<[EMAIL PROTECTED]> wrote:

> Please explain "use fallbacks".

http://archive.contextgarden.net/message/20080611.094746.07de5882.en.html

Best wishes
-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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] Unicode characters

2008-09-26 Thread Alan Stone
On Thu, Sep 25, 2008 at 5:24 PM, Wolfgang Schuster <
[EMAIL PROTECTED]> wrote:

>
> Am 25.09.2008 um 17:05 schrieb Alan Stone:
>
> > Hi,
> >
> > \starttext
> > > \char"2217
> > \blank
> > > \char"278A
> > \stoptext
> >
> > How to get the right output for the 2nd unicode character ? It's
> > blank.
>
> You need a font with the character or use fallbacks.



Please explain "use fallbacks".

Thanks.

-- 
Best,
Alan

Ubuntu 8.04 Hardy Heron (Desktop)
  * ConTeXt  ver: 2008.09.16 19:49 MKIV  fmt: 2008.9.20  int:
english/english  (ConTeXt minimals installation)
  * texexec --lua foo
___
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] Unicode characters

2008-09-25 Thread Hans Hagen
Wolfgang Schuster wrote:
> Am 25.09.2008 um 17:05 schrieb Alan Stone:
> 
>> Hi,
>>
>> \starttext
>>> \char"2217
>> \blank
>>> \char"278A
>> \stoptext
>>
>> How to get the right output for the 2nd unicode character ? It's  
>> blank.
> 
> You need a font with the character or use fallbacks.
> 
> @Hans: Shouldn't the output contain a notdef char.

some day ...


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


Re: [NTG-context] Unicode characters

2008-09-25 Thread Wolfgang Schuster

Am 25.09.2008 um 17:05 schrieb Alan Stone:

> Hi,
>
> \starttext
> > \char"2217
> \blank
> > \char"278A
> \stoptext
>
> How to get the right output for the 2nd unicode character ? It's  
> blank.

You need a font with the character or use fallbacks.

@Hans: Shouldn't the output contain a notdef char.

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


Re: [NTG-context] Unicode characters by number

2007-12-07 Thread Hans Hagen
Maurí­cio wrote:
> Hi,
> 
> Is it possible to enter an Unicode
> character in a Context file using
> the character Unicode number? How
> can I do that?

in luatex/xetex ...

\char1234

\char"002D

in pdftex

\unicodecharacter{number}



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
___