-
Notifications
You must be signed in to change notification settings - Fork 126
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
Some printing code ignores is_unicode_allowed()
and prints unicode "wedge" characters
#3257
Comments
Unfortunately, that is not an easy solution, as the places you pointed out don't print anything. Instead, they just construct the symbol used for a variable/basis element. If I construct an object while allowing unicode and then later disallow it, the previous constructed object will still print using the wedge symbol. The simplest solution that comes to my mind is to save to vectors of symbols: one using unicode and one without; then the show function can choose with one to use based on |
@lgoettgens OK. Perhaps it could also use |
It does, but only for pretty-printing the sum of coefficients and basis elements. However, the wedge is part of the basis vector printing, so it would need to do some iterate expressify or something... |
@fingolfin Would you be fine to adapt the docstring of |
@lgoettgens fine by me. Going beyond that, I think we discussed at some point to also use Preferences.jl for this? That way a user could globally choose what they prefer once and for all. (We then just should make sure to ignore this in our test suite, e.g. by calling |
This already is the case since Nemocas/AbstractAlgebra.jl#1341 |
@lgoettgens great! However, I don't think our test suite does |
I independently had the same thought and just created #3271 for this. |
For the documentation, it would be great if we could enable unicode for some docstrings, but this would need something already wished for by @fingolfin about a year ago in JuliaDocs/Documenter.jl#2058 |
Concerning the general situation that one creates objects storing data whose printing depends on formats, encodings, etc., one solution would be to store one format that can be converted (easily) into the other supported formats on demand. For example, Jean Michel's Chevie.jl package takes the approach to store labels in LaTeX format (even in data files), and to define generic conversions that derive other formats from that: The function |
Specifically these places should be fixed
experimental/LieAlgebras/src/LieAlgebraModule.jl:1047
(by @lgoettgens ?) Adapt unicode printing of exterior powers of Lie algebra modules #3270experimental/LieAlgebras/src/LieAlgebraModule.jl:1049
Adapt unicode printing of exterior powers of Lie algebra modules #3270src/Modules/ExteriorPowers/FreeModules.jl:76
(by @HechtiDerLachs ?) Fix printing of exterior powers of modules #3263.src/Modules/ExteriorPowers/SubQuo.jl:59
Fix printing of exterior powers of modules #3263You can just print
^
instead of∧
if unicode is not allowed.The text was updated successfully, but these errors were encountered: