I'm currently writing my bachelors thesis about on-line handwriting recognition of mathematical formulae (see http://write-math.com). I'm currently only recognizing symbols with the same technique as detexify uses (I know that it's the same technique, because I read the diploma thesis of detexify).
One thing that I always thought could be better in detexify is "similarity groups". So some symbols seem to be rendered the same and only have semantic difference or a difference when you have context (that means other symbols). One example is \Sigma
and \sum
. I think those symbols should be treated the same when it comes to pure symbol recognition. Only when you have context, you can distinguish them.
After drawing tons of symbols and looking at their classification, I've just found those four
\|
(math mode)\textdoublepipe
(text mode)\textdoublevertline
(text mode)\parallel
(and, obviously different but not that much:\shortparallel
)
Is there any difference between \|
and \parallel
in terms of context-dependant rendering?
Is there any difference between \textdoublepipe
and \textdoublevertline
in terms of context dependant rendering or semantics?
\|
is used for matching left and right delimiters;\parallel
is always between two other symbols. in computer modern fonts, they are actually the same glyph. it's the class that's different, and thus the spacing. (this is a comment, not an answer, since i'm in a location where i can't easily check the specifics.)