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 of special characters #62

Open
alrik-durand opened this issue Nov 17, 2021 · 3 comments
Open

Support of special characters #62

alrik-durand opened this issue Nov 17, 2021 · 3 comments

Comments

@alrik-durand
Copy link

Hi,

I have been using figurefirst extensively for my PhD manuscript and I'm a lot thankful for its existence !
There is one special case which I have not been able to find a solution : special characters !
When I have some special characters (such as "é") in the layout svg, which is fine with inkscape, I have no problem making a render svg with figurefirst but this resulting svg is all corrupted :'(

Am I doing something wrong or is it a feature which has not been implemented yet ?

Thanks
Alrik

@florisvb
Copy link
Collaborator

florisvb commented Nov 17, 2021 via email

@alrik-durand
Copy link
Author

alrik-durand commented Nov 18, 2021

Hi,
It is simply the former, which is why I'm surprised.

To reproduce the issue I just have to create a text box with inkscape in the layout and type "é".
Then I use this simple code :

layout = fifi.FigureLayout('layout_oral.svg')
layout.make_mplfigures()
# do stuff
layout.set_layer_visibility('Layer 1' , False)
layout.write_svg('figure_oral.svg')

where I removed the actual plotting and the issue is still here.
Do you have a similar problem if you do the same ?

I could indeed convert the text to svg or image, or do many other hacks, but this looks like a simple task which should have a proper solution.
Maybe there is already one and I have an encoding problem, this is why I'm interested in knowing if it just me or if it is a bug !

  • Alrik

@florisvb
Copy link
Collaborator

florisvb commented Nov 18, 2021 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

2 participants