ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unicode characters
@ 2008-09-25 15:05 Alan Stone
  2008-09-25 15:24 ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Stone @ 2008-09-25 15:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 304 bytes --]

Hi,

\starttext
> \char"2217
\blank
> \char"278A
\stoptext

How to get the right output for the 2nd unicode character ? It's blank.

-- 
Best,
Alan

* ConTeXt  ver: 2008.09.16 19:49 MKIV  fmt: 2008.9.20  int: english/english
 (ConTeXt minimals installation)
* texexec --lua foo
* Ubuntu 8.04 Hardy Heron

[-- Attachment #1.2: Type: text/html, Size: 427 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 12+ messages in thread

* Re: Unicode characters
  2008-09-25 15:05 Unicode characters Alan Stone
@ 2008-09-25 15:24 ` Wolfgang Schuster
  2008-09-25 15:47   ` Hans Hagen
  2008-09-26 13:09   ` Alan Stone
  0 siblings, 2 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2008-09-25 15:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Unicode characters
  2008-09-25 15:24 ` Wolfgang Schuster
@ 2008-09-25 15:47   ` Hans Hagen
  2008-09-26 13:09   ` Alan Stone
  1 sibling, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2008-09-25 15:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Unicode characters
  2008-09-25 15:24 ` Wolfgang Schuster
  2008-09-25 15:47   ` Hans Hagen
@ 2008-09-26 13:09   ` Alan Stone
  2008-09-26 14:35     ` Idris Samawi Hamid
  1 sibling, 1 reply; 12+ messages in thread
From: Alan Stone @ 2008-09-26 13:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 599 bytes --]

On Thu, Sep 25, 2008 at 5:24 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> 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

[-- Attachment #1.2: Type: text/html, Size: 1105 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 12+ messages in thread

* Re: Unicode characters
  2008-09-26 13:09   ` Alan Stone
@ 2008-09-26 14:35     ` Idris Samawi Hamid
  2008-09-29  9:21       ` Alan Stone
  0 siblings, 1 reply; 12+ messages in thread
From: Idris Samawi Hamid @ 2008-09-26 14:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 26 Sep 2008 07:09:28 -0600, Alan Stone  
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________


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

* Re: Unicode characters
  2008-09-26 14:35     ` Idris Samawi Hamid
@ 2008-09-29  9:21       ` Alan Stone
  2008-09-29  9:53         ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Stone @ 2008-09-29  9:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 855 bytes --]

On Fri, Sep 26, 2008 at 4:35 PM, Idris Samawi Hamid
<ishamid@colostate.edu>wrote:

> On Fri, 26 Sep 2008 07:09:28 -0600, Alan Stone
> <software.list.1es9s@gmail.com> 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

[-- Attachment #1.2: Type: text/html, Size: 1486 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 12+ messages in thread

* Re: Unicode characters
  2008-09-29  9:21       ` Alan Stone
@ 2008-09-29  9:53         ` Wolfgang Schuster
  0 siblings, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2008-09-29  9:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.09.2008 um 11:21 schrieb Alan Stone:

> On Fri, Sep 26, 2008 at 4:35 PM, Idris Samawi Hamid <ishamid@colostate.edu 
> > wrote:
> On Fri, 26 Sep 2008 07:09:28 -0600, Alan Stone
> <software.list.1es9s@gmail.com> 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/U0000.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
___________________________________________________________________________________


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

* Re: Unicode Characters
  2008-11-20 14:16       ` Erich R Fickel
  2008-11-20 15:01         ` Arthur Reutenauer
@ 2008-11-20 23:53         ` Wolfgang Schuster
  1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2008-11-20 23:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Unicode Characters
  2008-11-20 14:16       ` Erich R Fickel
@ 2008-11-20 15:01         ` Arthur Reutenauer
  2008-11-20 23:53         ` Wolfgang Schuster
  1 sibling, 0 replies; 12+ messages in thread
From: Arthur Reutenauer @ 2008-11-20 15:01 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

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


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

* Re: Unicode Characters
  2008-11-19 18:52     ` Arthur Reutenauer
@ 2008-11-20 14:16       ` Erich R Fickel
  2008-11-20 15:01         ` Arthur Reutenauer
  2008-11-20 23:53         ` Wolfgang Schuster
  0 siblings, 2 replies; 12+ messages in thread
From: Erich R Fickel @ 2008-11-20 14:16 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

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


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

* Re: Unicode Characters
  2008-11-19 17:06   ` Unicode Characters Erich R Fickel
@ 2008-11-19 18:52     ` Arthur Reutenauer
  2008-11-20 14:16       ` Erich R Fickel
  0 siblings, 1 reply; 12+ messages in thread
From: Arthur Reutenauer @ 2008-11-19 18:52 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

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


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

* Unicode Characters
  2008-11-18 17:53 ` Wolfgang Schuster
@ 2008-11-19 17:06   ` Erich R Fickel
  2008-11-19 18:52     ` Arthur Reutenauer
  0 siblings, 1 reply; 12+ messages in thread
From: Erich R Fickel @ 2008-11-19 17:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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. I use mkii 
but could be convinced to move to mkiv if necessary.

-Erich Fickel
___________________________________________________________________________________
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] 12+ messages in thread

end of thread, other threads:[~2008-11-20 23:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-25 15:05 Unicode characters Alan Stone
2008-09-25 15:24 ` Wolfgang Schuster
2008-09-25 15:47   ` Hans Hagen
2008-09-26 13:09   ` Alan Stone
2008-09-26 14:35     ` Idris Samawi Hamid
2008-09-29  9:21       ` Alan Stone
2008-09-29  9:53         ` Wolfgang Schuster
2008-11-18 16:47 letter module: no linebreak in signature Michael Green
2008-11-18 17:53 ` Wolfgang Schuster
2008-11-19 17:06   ` Unicode Characters Erich R Fickel
2008-11-19 18:52     ` Arthur Reutenauer
2008-11-20 14:16       ` Erich R Fickel
2008-11-20 15:01         ` Arthur Reutenauer
2008-11-20 23:53         ` Wolfgang Schuster

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