* Bug in TeX input mode?
@ 2009-06-17 20:43 Deniz Dogan
2009-06-17 21:26 ` Chong Yidong
2009-06-24 8:43 ` Stefan Monnier
0 siblings, 2 replies; 6+ messages in thread
From: Deniz Dogan @ 2009-06-17 20:43 UTC (permalink / raw)
To: Emacs-Devel devel
Hi
After some random discussion on #haskell about having Unicode
characters as operators, I found that \circ in the TeX input mode
inserts the following character:
--------
character: ○ (9675, #o22713, #x25cb)
preferred charset: unicode (Unicode (ISO10646))
code point: 0x25CB
syntax: _ which means: symbol
category: .:Base, c:Chinese, h:Korean, j:Japanese
to input: type "\circ" with TeX
buffer code: #xE2 #x97 #x8B
file code: #xE2 #x97 #x8B (encoded by coding system utf-8-unix)
display: by this font (glyph code)
Character code properties: customize what to show
name: WHITE CIRCLE
general-category: So (Symbol, Other)
--------
However, we feel like what should have been inserted is this:
--------
character: ∘ (8728, #o21030, #x2218)
preferred charset: unicode (Unicode (ISO10646))
code point: 0x2218
syntax: . which means: punctuation
category: .:Base
buffer code: #xE2 #x88 #x98
file code: #xE2 #x88 #x98 (encoded by coding system utf-8-unix)
display: by this font (glyph code)
Character code properties: customize what to show
name: RING OPERATOR
general-category: Sm (Symbol, Math)
--------
I'm not sure whether this is a bug in TeX input mode or correct. Any ideas?
--
Deniz Dogan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in TeX input mode?
2009-06-17 20:43 Bug in TeX input mode? Deniz Dogan
@ 2009-06-17 21:26 ` Chong Yidong
2009-06-17 21:50 ` Teemu Likonen
` (2 more replies)
2009-06-24 8:43 ` Stefan Monnier
1 sibling, 3 replies; 6+ messages in thread
From: Chong Yidong @ 2009-06-17 21:26 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:
> \circ in the TeX input mode inserts the following character:
>
> character: ○ (9675, #o22713, #x25cb)
> name: WHITE CIRCLE
> general-category: So (Symbol, Other)
>
> However, we feel like what should have been inserted is this:
>
> character: ∘ (8728, #o21030, #x2218)
> name: RING OPERATOR
> general-category: Sm (Symbol, Math)
Maybe. But if you look at the TeX output of \circ, the size of the
circle looks a lot more like ○ than ∘ (at least, when using DejaVu Sans
Mono, I haven't checked with other fonts). And it seems more reasonable
for "\circ" to mean WHITE CIRCLE than RING OPERATOR.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in TeX input mode?
2009-06-17 21:26 ` Chong Yidong
@ 2009-06-17 21:50 ` Teemu Likonen
2009-06-17 22:09 ` Deniz Dogan
2009-06-18 13:12 ` Kenichi Handa
2 siblings, 0 replies; 6+ messages in thread
From: Teemu Likonen @ 2009-06-17 21:50 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel, Deniz Dogan
On 2009-06-17 17:26 (-0400), Chong Yidong wrote:
> Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:
>
>> \circ in the TeX input mode inserts the following character:
>>
>> character: ○ (9675, #o22713, #x25cb)
>> name: WHITE CIRCLE
>> general-category: So (Symbol, Other)
>>
>> However, we feel like what should have been inserted is this:
>>
>> character: ∘ (8728, #o21030, #x2218)
>> name: RING OPERATOR
>> general-category: Sm (Symbol, Math)
>
> Maybe. But if you look at the TeX output of \circ, the size of the
> circle looks a lot more like ○ than ∘ (at least, when using DejaVu Sans
> Mono, I haven't checked with other fonts). And it seems more reasonable
> for "\circ" to mean WHITE CIRCLE than RING OPERATOR.
I don't know if this experiment has any value but I just compiled a
LaTeX document with $\circ$ to PDF file and then copied the character
from KPDF reader to Emacs. The character looks like this:
character: ◦ (9702, #o22746, #x25e6)
name: WHITE BULLET
general-category: So (Symbol, Other)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in TeX input mode?
2009-06-17 21:26 ` Chong Yidong
2009-06-17 21:50 ` Teemu Likonen
@ 2009-06-17 22:09 ` Deniz Dogan
2009-06-18 13:12 ` Kenichi Handa
2 siblings, 0 replies; 6+ messages in thread
From: Deniz Dogan @ 2009-06-17 22:09 UTC (permalink / raw)
To: Chong Yidong; +Cc: Emacs-Devel devel
2009/6/17 Chong Yidong <cyd@stupidchicken.com>:
> Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:
>
>> \circ in the TeX input mode inserts the following character:
>>
>> character: ○ (9675, #o22713, #x25cb)
>> name: WHITE CIRCLE
>> general-category: So (Symbol, Other)
>>
>> However, we feel like what should have been inserted is this:
>>
>> character: ∘ (8728, #o21030, #x2218)
>> name: RING OPERATOR
>> general-category: Sm (Symbol, Math)
>
> Maybe. But if you look at the TeX output of \circ, the size of the
> circle looks a lot more like ○ than ∘ (at least, when using DejaVu Sans
> Mono, I haven't checked with other fonts). And it seems more reasonable
> for "\circ" to mean WHITE CIRCLE than RING OPERATOR.
>
That's weird, because I'm using the same font and I think it looks way
much more like ∘! :) The Haskellers I talked to said that \circ is the
standard way of writing the "function composition operator" in TeX and
IIRC, the function composition operator is sometimes called "ring
operator", due to its shape. Copy-pasting the composition operator
from Wikipedia reveals that they use the Unicode RING OPERATOR as
well, but of course, this needn't mean that TeX does...
--
Deniz Dogan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in TeX input mode?
2009-06-17 21:26 ` Chong Yidong
2009-06-17 21:50 ` Teemu Likonen
2009-06-17 22:09 ` Deniz Dogan
@ 2009-06-18 13:12 ` Kenichi Handa
2 siblings, 0 replies; 6+ messages in thread
From: Kenichi Handa @ 2009-06-18 13:12 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel, deniz.a.m.dogan
In article <87y6rqimc5.fsf@stupidchicken.com>, Chong Yidong <cyd@stupidchicken.com> writes:
> Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:
> > \circ in the TeX input mode inserts the following character:
> >
> > character: ○ (9675, #o22713, #x25cb)
> > name: WHITE CIRCLE
> > general-category: So (Symbol, Other)
> >
> > However, we feel like what should have been inserted is this:
> >
> > character: ∘ (8728, #o21030, #x2218)
> > name: RING OPERATOR
> > general-category: Sm (Symbol, Math)
> Maybe. But if you look at the TeX output of \circ, the size of the
> circle looks a lot more like ○ than ∘ (at least, when using DejaVu Sans
> Mono, I haven't checked with other fonts). And it seems more reasonable
> for "\circ" to mean WHITE CIRCLE than RING OPERATOR.
But, Knuth categorizes \circ in "binary operator" in his
"The TeX book".
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in TeX input mode?
2009-06-17 20:43 Bug in TeX input mode? Deniz Dogan
2009-06-17 21:26 ` Chong Yidong
@ 2009-06-24 8:43 ` Stefan Monnier
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-06-24 8:43 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
> I'm not sure whether this is a bug in TeX input mode or correct. Any ideas?
I agree it's a bug in the TeX input method, probably due to the fonts
available back when it was written.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-06-24 8:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17 20:43 Bug in TeX input mode? Deniz Dogan
2009-06-17 21:26 ` Chong Yidong
2009-06-17 21:50 ` Teemu Likonen
2009-06-17 22:09 ` Deniz Dogan
2009-06-18 13:12 ` Kenichi Handa
2009-06-24 8:43 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).