Skip to content
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

Latin and Greek symbols with circumflex #1933

Open
danielvolinski opened this issue Jul 25, 2024 · 14 comments
Open

Latin and Greek symbols with circumflex #1933

danielvolinski opened this issue Jul 25, 2024 · 14 comments

Comments

@danielvolinski
Copy link

Hi All,

Is there any way to issue a Latin or a Greek symbol with a circumflex (hat) accent on top of it, in a wxMaxima notebook?
Thanks!

@RoyalXXX
Copy link

RoyalXXX commented Jul 26, 2024

You can just copy the character you want from wherever and then paste into a wxMaxima notebook.
Or use View/Sidebars/Unicode chars

@danielvolinski
Copy link
Author

Please tell me where I can copy those character from.
Thanks!

@gunterkoenigsmann
Copy link
Member

wxMaxima's "View" menu offers to open a unicode sidebar with all unicode characters. The right-click menu of the symbols sidebar should do that, too. If you intent to use those symbols frequently you can even add them to the symbols sidebar.

@gunterkoenigsmann
Copy link
Member

In case that unicode doesn't offer the char you want you can use a "combining circumflex" together with that unicode character.

@daute
Copy link
Member

daute commented Jul 27, 2024

Unicode contains some letters with a circumflex, see: https://en.wikipedia.org/wiki/Circumflex#Unicode
(you can copy these chars from there).
Your selected font must also support these chars, it might be possible, that not all fonts contain all characters.

Best regards, Wolfgang

@danielvolinski
Copy link
Author

Hi RoyalXXX, Gunter and Wolfgang for your input.

When I paste a character with a theta hat from a PDF file into wxMaxima I get the hat first and then theta.

I see no Greek letters with circumflex (hat) on top in the View->Sidebars->Unicode chars.

I've been trying for years to know how exactly you combine two characters into one to no avail.
Could you please provide a detailed procedure how to combine a Unicode theta character with a Unicode hat combining character to get one theta hat character?

Thank again,

Daniel Volinski

@RoyalXXX
Copy link

It seems to me that this character is not in the Unicode. You need to use latex.

@daute
Copy link
Member

daute commented Jul 31, 2024

Apart from some chars with an own (unicode) code point, Unicode combines two (or more) characters, e.g. the circumflex accent and a character to one char (https://en.wikipedia.org/wiki/Combining_character).
It seems, that they can not easy entered in wxMaxima, one can select the 'combining' Unicode char in the Unicode side bar (search for "combining"), but the combining characters appear as two distinct chars.

However it seems, that one can 'cut-and-paste' these characters into wxMaxima - e.g. for greek characters with 'accents' from: https://en.wikipedia.org/wiki/Greek_diacritics

The PDF where you copied the char might not be using 'real Unicode', e.g. it might be typeset with Latex, which is an excellent typesetting system, but does probably "combine" the characters by itself (especially if it was compiled using pdflatex, which does not use/support Unicode).

Best regards, Wolfgang

@robert-dodier
Copy link
Collaborator

@danielvolinski You mentioned, "When I paste a character with a theta hat from a PDF file ..." Is there a URL for the file you are working with, or can you attach the file to this ticket? I am looking at this problem and it would be very helpful to have exactly the same file as you are working with.

@danielvolinski
Copy link
Author

danielvolinski commented Aug 26, 2024 via email

@robert-dodier
Copy link
Collaborator

@danielvolinski I have an idea for working with symbols which have names containing diacritical marks such as circumflex, arrow, etc. See: https://github.com/maxima-project-on-github/maxima-packages/tree/master/robert-dodier/combining_diacritics

The idea is that the user calls define_input_alias(alias_symbol, original_symbol, diacritic) and then when you type in alias_symbol, a symbol constructed from original_symbol + diacritic appears instead. The README there has some examples.

Give it a try if you are interested, I'll be interested to hear what you think. This business about working with diacritics can go in different directions; if this solution doesn't work for you, I have some other ideas.

@danielvolinski
Copy link
Author

danielvolinski commented Sep 3, 2024 via email

@robert-dodier
Copy link
Collaborator

Daniel, thanks for your reply. Can you give some additional information to help with debugging the problem. Specifically can you please paste the output of build_info() here, and can you export all the settings via: Edit menu >> Configure >> Revert all to defaults (last item in list on the let -- you might need to scroll down) >> Export all settings, and then attach the output file to this bug report. I will try the same settings and see if I can figure out what's going on.

@danielvolinski
Copy link
Author

danielvolinski commented Sep 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants