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

chinese translation of the tutorial #9577

Open
haraldschilly opened this issue Jul 22, 2010 · 40 comments
Open

chinese translation of the tutorial #9577

haraldschilly opened this issue Jul 22, 2010 · 40 comments

Comments

@haraldschilly
Copy link
Member

i found this on the internetz over here:
http://ai7.org/wp/html/682.html

i am unable to build the pdf, but html works.

CC: @sagetrac-mvngu amao@ai7.org @vbraun @dimpase

Component: translations

Keywords: tutorial, chinese

Author: Ziyang Mao

Branch/Commit: u/chapoton/9577 @ f03189b

Reviewer: Frédéric Chapoton, Karl-Dieter Crisman

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

@haraldschilly
Copy link
Member Author

Attachment: 9577-chinese-tutorial.patch.gz

chinese translation of the tutorial

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@fchapoton
Copy link
Contributor

Commit: 4287a89

@fchapoton
Copy link
Contributor

New commits:

4287a89#9577 chinese tutorial

@fchapoton
Copy link
Contributor

Changed keywords from none to tutorial, chinese

@fchapoton
Copy link
Contributor

Branch: u/chapoton/9577

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 19, 2014

Changed commit from 4287a89 to f541688

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 19, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

60e21a5Merge branch 'u/chapoton/9577' of ssh://trac.sagemath.org:22/sage into 9577
f541688trac #9577 correct all failing doctests

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 10, 2014

Changed commit from f541688 to b6c20e7

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 10, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

72f10c8Merge branch 'u/chapoton/9577' of ssh://trac.sagemath.org:22/sage into 9577
b6c20e7trac #9577 remove duplicate references

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 21, 2014

Changed commit from b6c20e7 to fe6d14c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 21, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

d68f1a2Merge branch 'u/chapoton/9577' of ssh://trac.sagemath.org:22/sage into 9577
fe6d14ctrac #9577 remove another duplicate of [Py] reference

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 21, 2014

Changed commit from fe6d14c to 723bfc0

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 21, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

723bfc0trac #9577 modern style doctest continuation using ....:

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 22, 2014

Changed commit from 723bfc0 to ff31f4e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 3, 2014

Changed commit from fb72c19 to c6d2804

@vbraun
Copy link
Member

vbraun commented Sep 23, 2014

comment:17

Is this traditional or simplified? The buildbot also builds the pdf doc. Since chinese is not TeX'ed using babel we'd have to disable pdf output.

@kcrisman
Copy link
Member

kcrisman commented Dec 4, 2014

comment:20

Since chinese is not TeX'ed using babel we'd have to disable pdf output.

Is that fairly easy to do with something analogous to the solution in #12559? It looks like it might "just work" if this ticket depends on that one (I have not tried this yet, though).

@kcrisman
Copy link
Member

kcrisman commented Dec 4, 2014

comment:21

This actually looks quite good (html). I think that the tour_advanced-zh file should replace the other one, since it is clearly a partial translation - or did I miss something there?

I'm going to move this to the zh_CN directory created by #12559, assuming that this is also mainland Mandarin. I have a colleague who has agreed to proofread some stuff and she can comment on that too, of course.

For pdf we'll at least need a config file change, not sure if the solution at #12559 will fix it once that's done.

@kcrisman
Copy link
Member

kcrisman commented Dec 4, 2014

comment:22

Okay, once I do that I get the same error as there,


Writing index file SageTutorial.idx
kpathsea: Invalid fontname `AR PL UMing CN', contains ' '

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "AR PL UMing CN" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

which is presumably my lack of fontitude. Good.

@kcrisman
Copy link
Member

kcrisman commented Dec 4, 2014

comment:23

In the hopes that the original author might see this and have any comments...

@kcrisman
Copy link
Member

kcrisman commented Dec 5, 2014

Author: Ziyang Mao

@kcrisman
Copy link
Member

kcrisman commented Dec 5, 2014

comment:24

The change in fonts in this comment seems to work as well, so whatever solution we get there should work here. Obviously we could just have two different conf things by messing with that file, but that is not particularly elegant. There are still a few bugs with the LaTeX macros but on the way to happiness.

Also, the author confirms this is simplified Chinese in private communication.

@kcrisman
Copy link
Member

kcrisman commented Dec 5, 2014

Reviewer: Frédéric Chapoton, Karl-Dieter Crisman

@kcrisman
Copy link
Member

kcrisman commented Dec 5, 2014

comment:25

Okay, the errors I am getting are the same ones as in this other comment, but for this document we really do need the macros that \DeclareUnicodeCharacter provides.

There is a hack, I think, to just provide the macros this document needs, but it will definitely be just a hack. If we really want to use more xelatex in the future for our documentation, we will have to find a way to work around this, such as this one. (Or Sphinx, or someone, will need to do this.)

@dimpase
Copy link
Member

dimpase commented Dec 5, 2014

comment:26

\DeclareUnicodeCharacter for each Chinese character would be fun :-)

@kcrisman
Copy link
Member

kcrisman commented Dec 5, 2014

comment:27

\DeclareUnicodeCharacter for each Chinese character would be fun :-)

Yikes! Luckily, I didn't need any of them, just

\newcommand{\Bold}[1]{\mathbf{#1}}
\newcommand{\ZZ}{\Bold{Z}}
\newcommand{\QQ}{\Bold{Q}}
\newcommand{\GF}[1]{\Bold{F}_{#1}}

As it turns out, the problem is that xelatex doesn't recognize \DeclareUnicodeCharacter, and so one never gets to this stuff in the first place. Of course, I didn't check whether some fairly important math characters for Sage such as

\DeclareUnicodeCharacter{0428}{cyrillic Sha}

appeared correctly, but from a little browsing I think most of those declarations are just to make things look "nice", e.g.

\DeclareUnicodeCharacter{221A}{\sqrt}

@fchapoton fchapoton modified the milestones: sage-6.4, sage-6.8 Jul 12, 2015
@fchapoton fchapoton modified the milestones: sage-6.8, sage-6.10 Nov 6, 2015
@fchapoton
Copy link
Contributor

comment:30

Maybe we can use use here what has worked for japanese in #19188 ?

@fchapoton fchapoton modified the milestones: sage-6.10, sage-7.0 Dec 30, 2015
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 1, 2016

Changed commit from c6d2804 to f03189b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 1, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

9e9a36cMerge branch 'u/chapoton/9577' into 7.0.b2
f03189btrac #9577 fixing doctests

@fchapoton fchapoton modified the milestones: sage-7.0, sage-8.0 Jun 8, 2017
@kcrisman
Copy link
Member

comment:34

Just as an fyi slight updates are pending in tutorial for sagenb becoming legacy - no need to fix this though. It would be nice to figure out how to get this to work, or maybe we just give up on pdf?

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

7 participants