New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode Art #18357
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
What would be your strategy here? A method |
comment:3
Yes, objects should use |
Branch: u/vbraun/unicode_art |
Commit: |
comment:5
Is it feasible to have generation of such art from New commits:
|
comment:6
The closest I know is http://asciitex.sourceforge.net, though really I don't think its feasible for complicated equations... |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:9
Analogous to ascii art, the following works now:
|
comment:10
Replying to @vbraun:
Nice! Though, on 6.7.rc0 I got
Vincent |
comment:12
Argh, the Dyck paths looks ugly. I am trying to do something but the BOX DIAGONALS do not match very well... Do you know why in the ipython notebook we got a failure
Vincent |
comment:13
A commit with unicode art for Dyck paths and Tableaux at |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
Fixed the IPython issue, it wants unicode instead of utf-8 encoded bytes. I merged your branch |
comment:17
Thanks for the inclusion. I got other troubles with the Ipython notebook:
Vincent |
comment:18
|
comment:19
Upstream bug for PDF export with unicode ipython/ipython#7150 (closed as wontfix) |
comment:20
Replying to @vbraun:
It is the author of the request who closes the issue... not sure it is a won't fix but he did not say how he fixed it for himself. Anyway, it looks like a Ipython notebook issue and not a Sage one. Would be nice to have this "export to pdf" feature using the latex output! |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:49
There are a number of doctest failures due to different baselines because of your changes, like:
IMHO the previous baseline was better. |
comment:50
Right. Sorry. With a one line modification I get the previous behavior. But do you really think that we should keep this behavior
Would be better with all commas at the same position, isn't it? Vincent |
comment:51
I think ideally the boxes are vertically aligned along their baseline (=bottom of the box in this case):
though we don't necessarily have to do it on this ticket. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:53
Replying to @vbraun:
I hope it implies "you can do it". I did a test all and it went smoothly. Vincent |
comment:54
The commas are now on the common base line, but the constituent object is still top-aligned instead of aligned on the baseline:
instead of
|
comment:55
I am not responsible for that (with current develop version)
You would like to change the semantic of That way, I could remove the current hack for the separator as it will naturally appear on the baseline. |
comment:56
I think that we should follow the usual glyph layout convention, which always aligns on the baseline as you said. Right now its pretty confusing to have such a huge space between the top-aligned object and the comma at the bottom. |
comment:57
Actually, this is the expected behavior. Baselines are computed from the bottom, not from the top (this is crazy to me). In particular, the baseline of a tree is at its root (which is comprehensible). |
comment:58
Ok, I wasn't aware that the trees have their baseline at the top. Thats a valid design choice for trees I guess. Then we should revert the last commit (but fix the doctests) to display as
|
comment:59
PS: In an ideal world we would have kerning to move the commas in:
|
Changed branch from u/vdelecroix/18357 to |
There should be a variant of ascii art using unicode. It should share code with ascii art as appropriate.
Also, there are various typesetting-related modules in
sage.misc
: ascii art, latex, mathjax, .... They should be moved into a common package. I proposesage.typeset
CC: @sagetrac-elixyre
Component: user interface
Author: Volker Braun, Vincent Delecroix
Branch/Commit:
a6cf84f
Reviewer: Vincent Delecroix, Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/18357
The text was updated successfully, but these errors were encountered: