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

Don't loose the day of the date when editing the patent BibTeX obtained from Google #22

Closed
GerHobbelt opened this issue Aug 4, 2019 · 1 comment
Labels
🐛bug Something isn't working

Comments

@GerHobbelt
Copy link
Collaborator

GerHobbelt commented Aug 4, 2019

[EDIT]

Turns out Qiqqa cannot parse this (legal) BibTeX concatenation + string macro:

month=may # "~3"

and looses data due to the parse. (When you edit this BibTeX record in any way in Qiqqa, that month field will be damaged and only list month="may" afterwards!


Original issue text

An example (produced by enhanced DBExlorer code -- see commit 6dcc971):

BibTeX Formatted:
    @misc{graham1955audio
    ,	title	= {Audio frequency transformer}
    ,	author	= {Graham, Cecil R}
    ,	year	= {1955}
    ,	month	= {may}
    ,	publisher	= {Google Patents}
    ,	note	= {US Patent 2,707,773}
    }

BibTeX RAW FMT:
    misc(graham1955audio) - 6 fields

BibTeX Parse Diagnostics:
    
    Errors:
    
      Expecting a field name but nothing was acceptable, so moving onto next whitespace
    m, Cecil R},   year={1955},   month=may # "~3",   publisher={Google Patents},   
                                            ^
      Expecting a field name but nothing was acceptable, so moving onto next whitespace
     Cecil R},   year={1955},   month=may # "~3",   publisher={Google Patents},   no
                                            ^
    

BibTeX RAW INPUT:
    @misc{graham1955audio,
      title={Audio frequency transformer},
      author={Graham, Cecil R},
      year={1955},
      month=may # "~3",
      publisher={Google Patents},
      note={US Patent 2,707,773}
    }
@GerHobbelt
Copy link
Collaborator Author

That kind of BibTeX is NOT invalid; see the btparse manual pages here: https://metacpan.org/pod/distribution/Text-BibTeX/btparse/doc/btparse.pod

Of particular interest are the other pages referenced in the SEE ALSO section there.

GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Oct 2, 2019
…tion macros in order to (somewhat) correctly parse google scholar patents records: fixes jimmejardine#22 and a bit of work towards jimmejardine#68
GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Oct 2, 2019
…tion macros in order to (somewhat) correctly parse google scholar patents records: fixes jimmejardine#22 and a bit of work towards jimmejardine#68

# Conflicts:
#	Utilities/BibTex/Parsing/BibTexLexer.cs
GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Oct 3, 2019
…tion macros in order to (somewhat) correctly parse google scholar patents records: fixes jimmejardine#22 and a bit of work towards jimmejardine#68

# Conflicts:
#	Utilities/BibTex/Parsing/BibTexLexer.cs
@GerHobbelt GerHobbelt added the 🐛bug Something isn't working label Oct 4, 2019
@GerHobbelt GerHobbelt added this to the Our Glorious Future milestone Oct 4, 2019
@GerHobbelt GerHobbelt changed the title Don't loose the day of the date when editing the (invalid?) patent BibTeX obtained from Google Don't loose the day of the date when editing the patent BibTeX obtained from Google Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant