... and emoticons
Are there codes for ... and emoticons in ConTeXt? -- Cecil Westerhof
2011/3/19 Aditya Mahajan
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
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
2011/3/19 Aditya Mahajan
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
2011/3/19 Aditya Mahajan
On Sat, 19 Mar 2011, Cecil Westerhof wrote:
2011/3/19 Aditya Mahajan
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
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
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
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-.... 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? (×÷…·—–„“”‚‘’ẞ‽‰)
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
2011/3/20 Philipp A.
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
2011/3/21 Cecil Westerhof
2011/3/20 Philipp A.
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
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
participants (6)
-
Aditya Mahajan
-
Cecil Westerhof
-
Mojca Miklavec
-
Philipp A.
-
Pontus Lurcock
-
Wolfgang Schuster