Skip to content

bibtex.py parser accents problems #250

Description

@vramiro

While displaying the json genrated by the bibtex.py parser I got all the accents wrong (shifted in one position). For instance: `Eric instead of Èric (which correspond to change \u0301Eric to E\u0301ric)

I did a simple patch, but not sure it will work for all the cases.

In the string_subst(self, val) function change:

                    if key+1 < len(parts) and len(parts[key+1]) > 0:
                        parts[key+1] = parts[key+1][0:]

for

                    if key+1 < len(parts) and len(parts[key+1]) > 0:
                        ### Change order to display accents
                        parts[key] = parts[key] + parts[key+1][0]
                        parts[key+1] = parts[key+1][1:]

am I missing something with my solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions