Summary: | Some labels are not properly escaped | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | netterfield |
Priority: | NOR | ||
Version: | 2.0.4 | ||
Target Milestone: | 2.0.5 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nicolas Brisset
2012-02-03 21:59:40 UTC
The file name in the above example should be escaped. The units should not, because you might have units in terms of some constant like k_b. If you want N_m to not be subscripted, then you should use N\_m. Superscripts are even more likely, such as m/s^2 OK for your comment, what I can do is pre-escape unit names when reading them from file in the ASCII data source. But a static public method KstString::escape() would be nice to avoid duplicating code... On Fri, Feb 24, 2012 at 6:09 PM, Nicolas Brisset <nicolas.brisset@eurocopter.com> wrote: > --- Comment #2 from Nicolas Brisset <nicolas brisset eurocopter com> 2012-02-24 23:09:20 --- > OK for your comment, what I can do is pre-escape unit names when reading them > from file in the ASCII data source. I don't understand: your should be able to have the ascii data source interpret m/s^2 as the 2 being a super script, shouldn't you? you could have an option to 'disable latex interpretation', but it would have to be optional. Being able to have properly formatted units with superscripts is pretty nice. SVN commit 1282831 by netterfield: Properly escape special characters in file names. Also, fix a bug in label positions coming out of 'maximize plot' mode. M +5 -0 libkst/labelinfo.cpp M +1 -0 libkst/labelinfo.h M +14 -0 libkstapp/labelitem.cpp M +1 -0 libkstapp/labelitem.h M +3 -2 libkstapp/legenditem.cpp M +3 -3 libkstapp/viewitem.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1282831 Thanks Barth! I guess you are right about units, it is nice to be able to have them being typeset. The only thing is that I doubt users who may run into the issue will know how to solve the issue. But then, they'll probably ask on the list and we can tell them, or decide what to do. For the rest, your fix seems to solve my issues. |