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

toBiblatex utf8 problems #105

Open
cdriveraus opened this issue Feb 8, 2024 · 1 comment · May be fixed by #108
Open

toBiblatex utf8 problems #105

cdriveraus opened this issue Feb 8, 2024 · 1 comment · May be fixed by #108

Comments

@cdriveraus
Copy link

the toBiblatex function uses the tools::encoded_text_to_latex function, which as far as I can see makes unnecessary changes to certain letters, but I don't fully understand encoding issues by any means! In the original bib file 'é' is simply stored as 'é', while after importing and exporting with RefManageR it looks like "{\\a'e}". Is there any way to avoid this behaviour?

> tools::encoded_text_to_latex('é',encoding = 'utf8')
[1] "{\\a'e}"
mwmclean added a commit that referenced this issue Sep 23, 2024
* Add argument encoded.names.to.latex to toBibTeX and toBibLaTeX to
toggle whether tools::encoded_text_to_latex is called on name list fields
* Closes #105
@mwmclean
Copy link
Collaborator

@cdriveraus @kbvernon I added a logical argument encoded.names.to.latex to turn off this behaviour in #108. Would be grateful if you could test and or review the PR 🙏

mwmclean added a commit that referenced this issue Oct 7, 2024
* Add latexify() from dplR instead of tools::encoded_text_to_latex
to improve conversion of non-ASCII characters to valid latex
* Fixes #102, #105, #106

Signed-off-by: Mathew W. McLean <[email protected]>
mwmclean added a commit that referenced this issue Oct 7, 2024
* Add latexify() from dplR instead of tools::encoded_text_to_latex
to improve conversion of non-ASCII characters to valid latex
* Fixes #102, #105, #106

Signed-off-by: Mathew W. McLean <[email protected]>
mwmclean added a commit that referenced this issue Oct 15, 2024
* Add latexify() from dplR instead of tools::encoded_text_to_latex
to improve conversion of non-ASCII characters to valid latex
* Fixes #102, #105, #106

Signed-off-by: Mathew W. McLean <[email protected]>
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

Successfully merging a pull request may close this issue.

2 participants