* ... and emoticons
@ 2011-03-19 2:46 Cecil Westerhof
2011-03-19 3:15 ` Aditya Mahajan
0 siblings, 1 reply; 12+ messages in thread
From: Cecil Westerhof @ 2011-03-19 2:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 71 bytes --]
Are there codes for ... and emoticons in ConTeXt?
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 96 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-19 2:46 ... and emoticons Cecil Westerhof
@ 2011-03-19 3:15 ` Aditya Mahajan
2011-03-19 4:12 ` Cecil Westerhof
2011-03-19 8:21 ` Mojca Miklavec
0 siblings, 2 replies; 12+ messages in thread
From: Aditya Mahajan @ 2011-03-19 3:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 189 bytes --]
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
> Are there codes for ... and emoticons in ConTeXt?
\setupbodyfont[libertine]
\starttext
\unknown\ or \ldots
☺☹
\stoptext
Aditya
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-19 3:15 ` Aditya Mahajan
@ 2011-03-19 4:12 ` Cecil Westerhof
2011-03-19 4:35 ` Aditya Mahajan
2011-03-19 8:21 ` Mojca Miklavec
1 sibling, 1 reply; 12+ messages in thread
From: Cecil Westerhof @ 2011-03-19 4:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 381 bytes --]
2011/3/19 Aditya Mahajan <adityam@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
[-- Attachment #1.2: Type: text/html, Size: 933 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-19 4:12 ` Cecil Westerhof
@ 2011-03-19 4:35 ` Aditya Mahajan
2011-03-19 4:48 ` Cecil Westerhof
0 siblings, 1 reply; 12+ messages in thread
From: Aditya Mahajan @ 2011-03-19 4:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 665 bytes --]
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
> 2011/3/19 Aditya Mahajan <adityam@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
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-19 4:35 ` Aditya Mahajan
@ 2011-03-19 4:48 ` Cecil Westerhof
0 siblings, 0 replies; 12+ messages in thread
From: Cecil Westerhof @ 2011-03-19 4:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 870 bytes --]
2011/3/19 Aditya Mahajan <adityam@umich.edu>
> On Sat, 19 Mar 2011, Cecil Westerhof wrote:
>
> 2011/3/19 Aditya Mahajan <adityam@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
[-- Attachment #1.2: Type: text/html, Size: 1979 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-19 3:15 ` Aditya Mahajan
2011-03-19 4:12 ` Cecil Westerhof
@ 2011-03-19 8:21 ` Mojca Miklavec
2011-03-19 11:40 ` Wolfgang Schuster
1 sibling, 1 reply; 12+ messages in thread
From: Mojca Miklavec @ 2011-03-19 8:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-19 8:21 ` Mojca Miklavec
@ 2011-03-19 11:40 ` Wolfgang Schuster
2011-03-20 13:51 ` Philipp A.
0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2011-03-19 11:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 667 bytes --]
Am 19.03.2011 um 09:21 schrieb Mojca Miklavec:
> 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.
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
[-- Attachment #1.2.1: Type: text/html, Size: 1101 bytes --]
[-- Attachment #1.2.2: test.pdf --]
[-- Type: application/pdf, Size: 4881 bytes --]
[-- Attachment #1.2.3: Type: text/html, Size: 147 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-19 11:40 ` Wolfgang Schuster
@ 2011-03-20 13:51 ` Philipp A.
2011-03-20 14:04 ` Wolfgang Schuster
2011-03-21 9:34 ` Cecil Westerhof
0 siblings, 2 replies; 12+ messages in thread
From: Philipp A. @ 2011-03-20 13:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 503 bytes --]
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<http://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? (×÷…·—–„“”‚‘’ẞ‽‰)
[-- Attachment #1.2: Type: text/html, Size: 556 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-20 13:51 ` Philipp A.
@ 2011-03-20 14:04 ` Wolfgang Schuster
2011-03-21 9:34 ` Cecil Westerhof
1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2011-03-20 14:04 UTC (permalink / raw)
To: Philipp A.; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 481 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 994 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-20 13:51 ` Philipp A.
2011-03-20 14:04 ` Wolfgang Schuster
@ 2011-03-21 9:34 ` Cecil Westerhof
2011-03-21 11:50 ` Philipp A.
1 sibling, 1 reply; 12+ messages in thread
From: Cecil Westerhof @ 2011-03-21 9:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 555 bytes --]
2011/3/20 Philipp A. <flying-sheep@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
[-- Attachment #1.2: Type: text/html, Size: 845 bytes --]
[-- Attachment #2: Xmodmap.extra --]
[-- Type: application/octet-stream, Size: 1685 bytes --]
!! The following four codes are system dependend and should be checked before using.
!! alt gr 108
!! menu 135
!! windows 133
!! r-ctrl 105
keycode 108 = Mode_switch
keycode 135 = Multi_key
keysym 1 = 1 exclam onesuperior onequarter
keysym 2 = 2 at twosuperior onehalf
keysym 3 = 3 numbersign threesuperior threequarters
keysym 4 = 4 dollar foursuperior sterling
keysym 5 = 5 percent fivesuperior endash
keysym 6 = 6 asciicircum sixsuperior
keysym 7 = 7 ampersand sevensuperior emdash
keysym 8 = 8 asterisk eightsuperior
keysym 9 = 9 parenleft ninesuperior
keysym 0 = 0 parenright degree
keysym minus = minus underscore yen
keysym equal = equal plus notequal plusminus
keysym w = w W aring Aring
keysym e = e E EuroSign
keysym r = r R registered
keysym t = t T thorn Thorn
keysym f = f F ordfeminine
keysym semicolon = semicolon colon trademark
keysym backslash = backslash bar notsign brokenbar
keysym z = z Z Greek_omega Greek_OMEGA
keysym c = c C cent copyright
keysym m = m M masculine mu
keysym period = period greater ellipsis
keysym slash = slash question questiondown
[-- Attachment #3: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-21 9:34 ` Cecil Westerhof
@ 2011-03-21 11:50 ` Philipp A.
2011-03-21 19:57 ` Pontus Lurcock
0 siblings, 1 reply; 12+ messages in thread
From: Philipp A. @ 2011-03-21 11:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1371 bytes --]
2011/3/21 Cecil Westerhof <cldwesterhof@gmail.com>
> 2011/3/20 Philipp A. <flying-sheep@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
[-- Attachment #1.2: Type: text/html, Size: 1972 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ... and emoticons
2011-03-21 11:50 ` Philipp A.
@ 2011-03-21 19:57 ` Pontus Lurcock
0 siblings, 0 replies; 12+ messages in thread
From: Pontus Lurcock @ 2011-03-21 19:57 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2011-03-21 19:57 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-19 2:46 ... and emoticons Cecil Westerhof
2011-03-19 3:15 ` Aditya Mahajan
2011-03-19 4:12 ` Cecil Westerhof
2011-03-19 4:35 ` Aditya Mahajan
2011-03-19 4:48 ` Cecil Westerhof
2011-03-19 8:21 ` Mojca Miklavec
2011-03-19 11:40 ` Wolfgang Schuster
2011-03-20 13:51 ` Philipp A.
2011-03-20 14:04 ` Wolfgang Schuster
2011-03-21 9:34 ` Cecil Westerhof
2011-03-21 11:50 ` Philipp A.
2011-03-21 19:57 ` Pontus Lurcock
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).