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

Russian characters support #1

Closed
wikiselev opened this issue Dec 16, 2016 · 4 comments
Closed

Russian characters support #1

wikiselev opened this issue Dec 16, 2016 · 4 comments

Comments

@wikiselev
Copy link

Hi, thanks so much for this piece of software. I have just run it and it looks like with all other chord generators, Russian characters are not displayed correctly in the output pdf. Is the utf-8 support not implemented yet? Are you planning on doing that? Thanks again!

@sciurius
Copy link
Collaborator

sciurius commented Dec 17, 2016

ChordPro fully supports UTF-8 input data, but of course it needs adequate fonts to show the characters. The default fonts are the rather limited 'PDF standard' fonts.
You can change the fonts using the config files.
First dump the current config:
$ chordpro --print-default-config > mycfg.json
In mycfg.json, replace "name" : "Times-Roman" with "file" : "/path/to/font.ttf". Also for other fonts.
Run chordpro with:
$ chordpro --cfg mycfg.json ...

@wikiselev
Copy link
Author

Great, it worked! Many thanks!

@wikiselev
Copy link
Author

If anyone is interested, here is my GitHub repo integrated with Travis CI for automated building of my chords: https://github.com/wikiselev/chords

@sciurius
Copy link
Collaborator

sciurius commented Jan 7, 2017

Archived for those who may be interested. Thanks.

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

2 participants