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

Support Chinese characters by default. #61

Open
yuanj82 opened this issue May 4, 2024 · 6 comments
Open

Support Chinese characters by default. #61

yuanj82 opened this issue May 4, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@yuanj82
Copy link

yuanj82 commented May 4, 2024

Describe the bug
As long as there is Chinese in the yaml file, it cannot run successfully

To Reproduce

    experience:
      - company: 猫四叔
        position: blogger
        location: China
        start_date: 2004-06
        end_date: 2004-08
        highlights:

Screenshots

MINGW64 /d/Home/test $ rendercv render resume_CV.yaml 

Welcome to RenderCV! Some useful links:
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Title            ┃                                                Link ┃
┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Documentation    │              https://sinaatalay.github.io/rendercv/ │
│ Source code      │             https://github.com/sinaatalay/rendercv/ │
│ Bug reports      │      https://github.com/sinaatalay/rendercv/issues/ │
│ Feature requests │      https://github.com/sinaatalay/rendercv/issues/ │
│ Discussions      │ https://github.com/sinaatalay/rendercv/discussions/ │
└──────────────────┴─────────────────────────────────────────────────────┘
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ 2.2 s Reading and validating the input file has finished.                                                                                                                                                                                 ││ 0.0 s Generating the LaTeX file has finished.                                                                                                                                                                                             ││ 0.0 s Generating the Markdown file has finished.                                                                                                                                                                                          ││ 0.4 s Rendering the LaTeX file to a PDF has started.                                                                                                                                                                                      │╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯2.7 s ━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━ (3 out of 5 steps finished)

An error occurred:

Running TinyTeX has failed! For debugging, we suggest running the LaTeX file manually in https://overleaf.com.

If you want to run it locally, run the command below in the terminal:

C:\Scoop\apps\mambaforge\current\lib\site-packages\rendercv\tinytex-release\TinyTeX\bin\windows\pdflatex.exe D:\Home\test\rendercv_output\JiaoYuan_CV.tex

If you can't solve the problem, please open an issue on GitHub.
@yuanj82 yuanj82 added the bug Something isn't working label May 4, 2024
@sinaatalay
Copy link
Owner

Hello, thank you for reporting this issue. Unfortunately, RenderCV's built-in TinyTeX distribution cannot compile Chinese.

However, a clean workaround will be available in version 1.9. I will update this issue and provide instructions when the new version is released.

@yuanj82
Copy link
Author

yuanj82 commented May 5, 2024

Thank you for your help!RenderCN will provide me a beautiful resume!

@n1cogrv
Copy link

n1cogrv commented May 7, 2024

@sinaatalay It will be a huge deal if rendercv can support CJK character natively. Since I am not quite familiar with TeX, otherwise I would really want to help PR this.

I found this link on Overleaf, hope it helps.

https://www.overleaf.com/learn/latex/Chinese

@sinaatalay sinaatalay changed the title Doesn't it support Chinese? Support Chinese characters by default. May 18, 2024
@sinaatalay sinaatalay added enhancement New feature or request and removed bug Something isn't working labels May 22, 2024
@yuanj82
Copy link
Author

yuanj82 commented May 28, 2024

Thank you for your help.

But I think it is my mistake,I still can't input Chinese using version 1.10:

cv:
  name: Licheng
  location: China
...
locale_catalog:
  name: "李成"

There is still an error here:

There are some errors in the data model!

┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Location            ┃ Input Value ┃ Error Message                                            ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ locale_catalog.name │ 李成        │ This field is unknown for this object! Please remove it. │
└─────────────────────┴─────────────┴──────────────────────────────────────────────────────────┘

The document only mentions the translation of dates。

@n1cogrv
Copy link

n1cogrv commented May 28, 2024

I do figure out a way to finish my Chinese version resume. But it is a complete "workaround".

First I new and render my English resume via rendercv using the documented method. And then grab the your-name.tex file to start a new project at overleaf.com.

Rewrite the tex file to use \usepackage{CJKutf8} and wrap Chinese translation resume with \begin{CJK*}{UTF8}{gbsn} and \end{CJK*}.

My Tex file and PDF generated therefrom can be found here https://github.com/n1cogrv/n1cogrv/tree/master/assets.

@sinaatalay
Copy link
Owner

Thank you for the updates! Chinese characters are still on my TODO list; it will be supported eventually.

For now, you can use the workaround @n1cogrv mentioned. You can also achieve the same thing without Overleaf by updating the templates (the theme folder created with the rendercv new command) and running RenderCV with your local LaTeX distribution with --use-local-latex-command pdflatex option, as described in the user guide.

@yuanj82 locale_cataloge is not for the contents but only for some date-related strings. Content is not language-dependent. Please use JSON Schema while working on your RenderCV input file. It is described here.

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

No branches or pull requests

3 participants