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

notebook -- make it unicode aware #1477

Closed
williamstein opened this issue Dec 12, 2007 · 6 comments
Closed

notebook -- make it unicode aware #1477

williamstein opened this issue Dec 12, 2007 · 6 comments

Comments

@williamstein
Copy link
Contributor



On Dec 12, 2007 7:48 AM,  wrote:
> 
> Hi all,
> 
> I need to use non-english characters (in comments) in Notebook
> worksheet.
> While working, they're shown w/o problem, but if I save ("download to
> file") worksheet, then close
> SAGE, then open again and load .sws file, sometimes (!) I see just
> unicode codes (like %u4041)
> instead of my chars.
> Strange, but sometimes they're loaded correctly...
> I'm using Sage v 2.8.13 (VMware) under winXP Pro.
> 
> Am I missing something?

No, more likely I'm missing something in how that functionality
was implemened.  You're probably one of the first ever Russian uses of 
Sage, and we have had very little testing of Unicode in Sage. 
Hopefully fixing the above is for developers just a 
matter of changing a few lines in 

  SAGE_ROOT/devel/sage/sage/server/noteboook

that relate to loading and saving the file worksheet.txt. 
   

Component: notebook

Issue created by migration from https://trac.sagemath.org/ticket/1477

@williamstein

This comment has been minimized.

@williamstein williamstein added this to the sage-2.10 milestone Dec 12, 2007
@williamstein
Copy link
Contributor Author

comment:2
> Could you summarize the situation with rendering problems?  Is it as follows:
> (1) When you try to put them in input cells, they get corrupted on load/save.

To be correct, they're replaced by "non-browser"  unicode codes (like
%u0440 instead of р )

> (2) Using edit mode, unicode not in {{{}}}'s gets saved just fine.

Yes, as they are NOT processed (as I understand) and get saved "as
is".


> Oh, by the way, when you're entering html in edit mode, you can just do,
> e.g., consider $y^2 = x^3 + \sqrt{x}$ and the formula will get typeset
> using jsmath.

Thanks, can be helpful when writing my materials.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 29, 2008

comment:3

Hmm, didn't we fix this by adding UTF-8 support?

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title notebook -- make it unicode aware [probably fixed?] notebook -- make it unicode aware Mar 29, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 20, 2008

comment:4

This sounds very much like #2896. It is not fixed.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title [probably fixed?] notebook -- make it unicode aware notebook -- make it unicode aware Apr 20, 2008
@mwhansen
Copy link
Contributor

comment:5

Sage's support for Unicode and UTF-8 in the notebook is awful. It will take a bit of work to fix this. For starters, we should be using encodeURIComponent in the Javascript instead of escape since escape fails miserably for non-ASCII characters.

I'll look into this more once the templating is done. There's too many strings floating as it is.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 23, 2009

comment:7

Fixed via #4547 and #5211.

Cheers,

Michael

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

No branches or pull requests

4 participants