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

Special characters #24

Open
FraGard opened this issue May 15, 2020 · 5 comments
Open

Special characters #24

FraGard opened this issue May 15, 2020 · 5 comments

Comments

@FraGard
Copy link
Contributor

FraGard commented May 15, 2020

When I try
Jekyll serve
An error appears, due to special characters detected during the conversion of the modules to .html files.

These are identified as special characters, as far as I saw with the first modules:
'''
'...'
'-'
ü (in references, like Müller et al.)

@lorenzo-sani
Copy link
Collaborator

lorenzo-sani commented May 18, 2020

Hi @FraGard I created a function to deal with this issue, it transforms the special characters as follows:
''' to '
... to .. .
'-' to _
ü to u
let me know if it works or if there are other problems with it

@FraGard
Copy link
Contributor Author

FraGard commented May 18, 2020

Thanks! I think ü is usually transformed to ue.

I found other characters the python code does not like:

  • greek letters (capital and not);
  • the signs 'less than or equal to' (unicode: ) and 'greater than or equal to' (unicode: )
  • one module also has a problem with a BYTE ORDER MARK (zero width no-break space). Its code is \ufeff. I cannot find it in the ppt.

There are many more characters I imagine, since the jekyll serve is still not working for most presentations now. I wonder whether there is a more efficient way to do this? Any way to turn all unknown characters into something, instead of blocking the conversion? Modules should in principle be uploaded by people all over the world, with all sorts of languages and strange signs in their presentations.

@willu47
Copy link
Contributor

willu47 commented May 19, 2020

There is a way to deal with this - https://docs.python.org/3/library/codecs.html

@lorenzo-sani
Copy link
Collaborator

Honestly, I think that here the problem it's still related to something that is not working correctly with @FraGard's configuration of Python/Jekyll/html because I tried to convert a module with any kind of strange character and it works just fine. However, I have no idea on where the problem could be there

@willu47
Copy link
Contributor

willu47 commented May 19, 2020

It could well be a Windows/Linux issue. Unless we can recreate the issue, we cannot fix it - best to understand first the conditions needed to recreate this unwanted behaviour. By doing that, you'll normally identify the problem. Still, not a priority for the moment.

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

3 participants