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

Spurious spaces inserted with curly braces #5

Closed
simonbyrne opened this issue Oct 23, 2020 · 2 comments
Closed

Spurious spaces inserted with curly braces #5

simonbyrne opened this issue Oct 23, 2020 · 2 comments

Comments

@simonbyrne
Copy link
Contributor

julia> using BibParser

julia> bibtex = """@article{Heun1900,
          title = {Neue Methoden zur approximativen Integration der
          Differentialgleichungen einer unabh\\\"{a}ngigen Ver\\\"{a}nderlichen},
          author = {Heun, Karl},
          journal = {Z. Math. Phys},
          volume = {45},
          pages = {23--38},
          year = {1900},
       }"""
"@article{Heun1900,\n   title = {Neue Methoden zur approximativen Integration der\n   Differentialgleichungen einer unabh\\\"{a}ngigen Ver\\\"{a}nderlichen},\n   author = {Heun, Karl},\n   journal = {Z. Math. Phys},\n   volume = {45},\n   pages = {23--38},\n   year = {1900},\n}"

julia> _,bib = BibParser.parse_entry(bibtex)
("", OrderedCollections.OrderedDict("Heun1900" => Dict("volume" => "45","author" => "Heun , Karl","pages" => "23--38","journal" => "Z. Math. Phys","year" => "1900","title" => "Neue Methoden zur approximativen Integration der Differentialgleichungen einer unabh\\ \" { a } ngigen Ver\\ \" { a } nderlichen","type" => "article")))

julia> bib["Heun1900"]["title"]
"Neue Methoden zur approximativen Integration der Differentialgleichungen einer unabh\\ \" { a } ngigen Ver\\ \" { a } nderlichen"
@Azzaare
Copy link
Member

Azzaare commented Oct 28, 2020

I definitely need to make a new parser (instead of borrowing one from someone ><). As mentioned in ali-ramadhan/DocumenterCitations.jl#21, I will do it next month.

I plan to follow the model of Tokenize.jl, and integrate LaTeX special character and diacritical marks.

@Azzaare
Copy link
Member

Azzaare commented Apr 16, 2021

Spurious spaces troubles should be solved now (v0.2.7)
However, converting common TeX to Unicode is not possible yet. Hopefully, we can make something for the next version.

Closing this.

@Azzaare Azzaare closed this as completed Apr 16, 2021
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