baptiste / bibtex-js Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/bibtex-js
Automatically exported from code.google.com/p/bibtex-js
What steps will reproduce the problem?
1. Place <span class="if publisher"><span class="publisher"></span>,</span> or
<span class="if school"><span class="school"></span>,</span> in html
What is the expected output? What do you see instead? Only prints when a
publisher exists, but always produces the ",".
Interesting enough, if neither are true it produces only one ","
Original issue reported on code.google.com by [email protected]
on 23 Sep 2012 at 1:28
What steps will reproduce the problem?
1. Include a BibTeX entry with a '+' in the citation key
2. Attempt to generate page with citations
What is the expected output? What do you see instead?
Correctly formatted list of publications
What version of the product are you using? On what operating system?
Latest as of May 27, 2014
Please provide any additional information below.
Error happens at bibtex_js.js:57
Original issue reported on code.google.com by [email protected]
on 28 May 2014 at 1:23
The regular expression used to filter out. The preamble can contain ???? like
shown below:
@misc{publisher_hrsc_????,
title = {{HRSC} Data Browser},
author = {publisher}
}
This was my solution:
this.key = function() {
var start = this.pos;
while(true) {
if (this.pos == this.input.length) {
throw "Runaway key";
}
if (this.input[this.pos].match("[a-zA-Z0-9_:?\\./-]")) {
this.pos++
} else {
return this.input.substring(start, this.pos).toUpperCase();
}
}
}
Original issue reported on code.google.com by [email protected]
on 2 Jul 2011 at 7:53
Just an idea: Could you extend your demo in a way that it accepts URLs that
point to bib files?
Many people have bib files on github, like this one:
https://github.com/CoolProp/CoolProp/blob/master/CoolPropBibTeXLibrary.bib
Reading them would become so much more comfortable if they were rendered more
nicely.
Original issue reported on code.google.com by [email protected]
on 20 Jan 2015 at 12:44
What steps will reproduce the problem?
Copy This Bibtex entry in the online web converter
@article{D'Souza2010,
author = {D'Souza, Neil S and Lopes, Luiz A.C. and Liu, XueJun},
doi = {10.1016/j.epsr.2009.09.012},
file = {:C$\backslash$:/Users/z/Documents/Mendeley Desktop/D'Souza, Lopes, Liu
- 2010 - Comparative study of variable size perturbation and observation
maximum power point trackers for PV systems.pdf:pdf},
issn = {03787796},
journal = {Electric Power Systems Research},
keywords = {MPPT,Maximum Power Point Tracking,Photovoltaics},
mendeley-tags = {MPPT,Maximum Power Point Tracking,Photovoltaics},
month = mar,
number = {3},
pages = {296--305},
title = {{Comparative study of variable size perturbation and observation
maximum power point trackers for PV systems}},
url = {http://linkinghub.elsevier.com/retrieve/pii/S0378779609002235},
volume = {80},
year = {2010}
}
What is the expected output? What do you see instead?
The expected output is a rendered HTML code. Instead I see an error message,
mentioned below
Token mismatch, expected ,, found 'Souza2010, author = {D'Souza, Neil S and
Lopes, Luiz A.C. and Liu...
What version of the product are you using? On what operating system?
Windows 7, Firefox 18
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Jan 2013 at 2:54
It does not display special characters. Onta{\~n}{\'o}n should be displayed as
Ontañón. Here is a list of special characters:
https://github.com/okfn/bibserver/blob/master/parserscrapers_plugins/bibtex.py
p.s. will you move the project somewhere else now that Google is sunsetting
code?
Original issue reported on code.google.com by [email protected]
on 1 Jul 2015 at 9:26
First off... Awesome job!
Bibtex if this form does not work correctly because of the , between the curly
braces. Zotero exports in this format.
@article{thing,
...
},
@article{something,
...
},
@inproceedings{name,
...
}
This is the fix I came up with
this.bibtex = function() {
while(this.tryMatch("@")) {
var d = this.directive().toUpperCase();
this.match("{");
if (d == "@STRING") {
this.string();
} else if (d == "@PREAMBLE") {
this.preamble();
} else if (d == "@COMMENT") {
this.comment();
} else {
this.entry();
}
this.match("}");
if (this.tryMatch(",")){
this.match(",");
}
}
}
I added this line to the grammar
string_end -> ( '' | ',' )
// Grammar implemented here:
// bibtex -> (string | preamble | comment | entry)*;
// string -> '@STRING' '{' key_equals_value '}' string_end;
// string_end -> ( '' | ',' )
// preamble -> '@PREAMBLE' '{' value '}';
// comment -> '@COMMENT' '{' value '}';
// entry -> '@' key '{' key ',' key_value_list '}';
// key_value_list -> key_equals_value (',' key_equals_value)*;
// key_equals_value -> key '=' value;
// value -> value_quotes | value_braces | key;
// value_quotes -> '"' .*? '"'; // not quite
// value_braces -> '{' .*? '"'; // not quite
Original issue reported on code.google.com by [email protected]
on 2 Jul 2011 at 7:26
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.