Re: [NTG-context] ... and emoticons

2011-03-21 Thread Cecil Westerhof
2011/3/20 Philipp A. flying-sh...@web.de

 On modern Linux distributions, there is support for the ellipsis (…) on the
 keyboard layout; The combination is [AltGr+.]


Not all. In openSUSE that is not the case. I made it for myself. I have a
file
/SharedFunctions/Xmodmap.extra
which I use with:
xmodmap /SharedFunctions/Xmodmap.extra

In this I have now:
keysym period= period   greater ellipsis

That does the trick.

If you are interested in the complete file: I have it attached.

-- 
Cecil Westerhof


Xmodmap.extra
Description: Binary data
___
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] ... and emoticons

2011-03-21 Thread Philipp A.
2011/3/21 Cecil Westerhof cldwester...@gmail.com

 2011/3/20 Philipp A. flying-sh...@web.de

 On modern Linux distributions, there is support for the ellipsis (…) on
 the keyboard layout; The combination is [AltGr+.]


 Not all. In openSUSE that is not the case. I made it for myself. I have a
 file
 /SharedFunctions/Xmodmap.extra
 which I use with:
 xmodmap /SharedFunctions/Xmodmap.extra

 In this I have now:
 keysym period= period   greater ellipsis

 That does the trick.

 If you are interested in the complete file: I have it attached.

 --
 Cecil Westerhof


oh, i guess you’d like to file a bug request for this. it’s quite useful and
has no drawbacks at all.
i think one of the greatest reasons why linux isn’t adapted as desktop os is
that you can’t just say sth. like i did and assume it it right for everyone.
(missing OEM installs are the biggest reason, though)

but i don’t want to discuss this here ;)
it’s great to have both a reasonable keyboard layout and a text processor
which can understand the symbols. i hope one day i’ll get to print my own
keyboard with math symbols all over. it would greatly improve the
readability of context files when they contain unicode math stuff like
\startformula
∫₀³ xⁿφ₁₂(x) \, ⅆx \stopformula
___
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] ... and emoticons

2011-03-21 Thread Pontus Lurcock
On Mon 21 Mar 2011, Philipp A. wrote:

 oh, i guess you’d like to file a bug request for this. it’s quite
 useful and has no drawbacks at all.

Well, the drawback is that it takes up a key combination :-). For
example, in the US-international dead-key layout, AltGr+. applies an
overdot diacritic to the next character, so remapping it to an
ellipsis would remove that capability. You don't mention which
keyboard layout you are using.

 i think one of the greatest reasons why linux isn’t adapted as
 desktop os is that you can’t just say sth. like i did and assume it
 it right for everyone.

Both Linux and Windows offer a choice of hundreds of keyboard layouts,
since different languages have different character sets (a US keymap
would not gain much success in Greece).

 i hope one day i’ll get to print my own keyboard with math symbols
 all over.

I did once turn a UK keyboard into a Swedish keyboard using white
enamel paint, black marker pen, clear varnish, and a steady hand.
The main problem was that the varnish started degrading after a 
couple of years' daily use.

As an Emacs user, I've found that the easiest way to get rarely used
Unicode symbols is to hit ctrl-x, 8, enter and type the name of the
symbol (I believe the numbers also work but I have trouble remembering
them).

Also note that it's possible to switch between different keyboard
layouts using a hotkey combination, which is handy e.g. for quickly
entering Greek characters in a scientific document.

Pont
___
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] ... and emoticons

2011-03-20 Thread Philipp A.
On modern Linux distributions, there is support for the ellipsis (…) on the
keyboard layout; The combination is [AltGr+.]

On Windows, there is at least Microsoft
KLChttp://www.microsoft.com/downloads/details.aspx?familyid=fb7b3dcd-d4c1-4943-9c74-d8df57ef19d7.
While the possibilities are inferior, simple key combinations like the one
above are easily achieved.

Is someone interested in a german standard layout with some additional
symbols? (×÷…·—–„“”‚‘’ẞ‽‰)
___
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] ... and emoticons

2011-03-20 Thread Wolfgang Schuster

Am 20.03.2011 um 14:51 schrieb Philipp A.:

 On modern Linux distributions, there is support for the ellipsis (…) on the 
 keyboard layout; The combination is [AltGr+.]
 
 On Windows, there is at least Microsoft KLC. While the possibilities are 
 inferior, simple key combinations like the one above are easily achieved.


The is a difference in spacing between … and \unknown.

\starttext

Once uppon a time …

Once uppon a time \unknown

\stoptext

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


Re: [NTG-context] ... and emoticons

2011-03-19 Thread Mojca Miklavec
On Sat, Mar 19, 2011 at 04:15, Aditya Mahajan wrote:
 On Sat, 19 Mar 2011, Cecil Westerhof wrote:

 Are there codes for ... and emoticons in ConTeXt?

 \setupbodyfont[libertine]
 \starttext
 \unknown\ or \ldots
 ☺☹
 \stoptext

If font supports the emoticons in the first place, one could also
define ligatures to create them automatically with
:-)
etc. But personally I would prefer to use \externalfigure and find
some really nice images out there as opposed to using whatever limited
set of black-and-white images a font provides.

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] ... and emoticons

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 09:21 schrieb Mojca Miklavec:If font supports the emoticons in the first place, one could alsodefine ligatures to create them automatically with :-)etc. But personally I would prefer to use \externalfigure and findsome really nice images out there as opposed to using whatever limitedset of black-and-white images a font provides.You can also do a lot with symbol fonts [1]:\startTEXpage[offset=5mm]\definedfont[file:Dingbats2SamplerOT at 80pt]%\dontleavehmode\hsmash{\yellow\fontchar{d.alt001}}\hsmash{\orange\fontchar{d.alt002}}\fontchar{d}\stopTEXpage[1]http://www.ffdingbatsfont.com/Wolfgang

test.pdf
Description: Adobe PDF document
___
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] ... and emoticons

2011-03-18 Thread Cecil Westerhof
Are there codes for ... and emoticons in ConTeXt?

-- 
Cecil Westerhof
___
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] ... and emoticons

2011-03-18 Thread Aditya Mahajan

On Sat, 19 Mar 2011, Cecil Westerhof wrote:


Are there codes for ... and emoticons in ConTeXt?


\setupbodyfont[libertine]
\starttext
\unknown\ or \ldots
☺☹
\stoptext

Aditya___
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] ... and emoticons

2011-03-18 Thread Cecil Westerhof
2011/3/19 Aditya Mahajan adit...@umich.edu

 On Sat, 19 Mar 2011, Cecil Westerhof wrote:

  Are there codes for ... and emoticons in ConTeXt?


 \setupbodyfont[libertine]
 \starttext
 \unknown\ or \ldots


Works. What is the difference between \unknown\ and \ldots?


 ☺☹


Does not work at the moment. I'll examine it.

-- 
Cecil Westerhof
___
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] ... and emoticons

2011-03-18 Thread Aditya Mahajan

On Sat, 19 Mar 2011, Cecil Westerhof wrote:


2011/3/19 Aditya Mahajan adit...@umich.edu


On Sat, 19 Mar 2011, Cecil Westerhof wrote:

 Are there codes for ... and emoticons in ConTeXt?




\setupbodyfont[libertine]
\starttext
\unknown\ or \ldots



Works. What is the difference between \unknown\ and \ldots?


\ldots uses the math character (0x2026), while \unknown 
fakes the dots. You can change the spacing between the dots using 
\periods[1mm]



☺☹



Does not work at the moment. I'll examine it.


You need a font that has these characters (lm does not, that is why I used 
libertine).


Aditya___
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] ... and emoticons

2011-03-18 Thread Cecil Westerhof
2011/3/19 Aditya Mahajan adit...@umich.edu

 On Sat, 19 Mar 2011, Cecil Westerhof wrote:

  2011/3/19 Aditya Mahajan adit...@umich.edu

  On Sat, 19 Mar 2011, Cecil Westerhof wrote:

  Are there codes for ... and emoticons in ConTeXt?



 \setupbodyfont[libertine]
 \starttext
 \unknown\ or \ldots


 Works. What is the difference between \unknown\ and \ldots?


 \ldots uses the math character (0x2026), while \unknown fakes the dots. You
 can change the spacing between the dots using \periods[1mm]


Okay, I'll play with it.


☺☹



 Does not work at the moment. I'll examine it.


 You need a font that has these characters (lm does not, that is why I used
 libertine).


I used libertine, but maybe it is not installed on mys system.

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