21 Commits

Author SHA1 Message Date
Fabien C. Y. Benureau
3e376e2d8b remove obsolete exception catching 2018-02-27 13:18:59 +09:00
Fabien C. Y. Benureau
adbeb7f2b3 activating common strings by default in parser; fixes #122 2018-02-21 14:06:30 +09:00
Olivier Mangin
078b2084ff Updates field orders to use 'url' and fixes broken test.
The field ordering test was broken on the latest bibtexparser since it
now replaces by default 'link' fields by 'url'.
2018-02-19 15:32:45 -05:00
Olivier Mangin
a8716e6482 Adds completion for the --ignore-fields tag. 2018-01-07 13:54:38 -05:00
Olivier Mangin
07be993d02 Moves to using bibtexparser's writer for bibdata. [Fixes #33] 2018-01-07 12:59:55 -05:00
Fabien Benureau
3e3a671837 Remove bibtexparser unicode conversion
It was transforming "\&" into "&", rendering the output of
pubs export unsuitable for latex rendering.
2016-01-10 23:00:44 +01:00
Fabien Benureau
a5a653becd Support old bibtexparser keywords
So previous commit 666941d471 broke the current pip version
of bibtexparser (0.6.2), which does not have a
homegeneize_fields keyword. My bad and fixed!
2016-01-10 22:15:24 +01:00
Fabien Benureau
2db80c66ae Add volume to field ordering
Fix #40, which was annoying.
Any implementation of #33 should watch out for this.
2016-01-10 22:08:23 +01:00
Fabien Benureau
666941d471 Set bibtexparser homogenize_fields to True
The default changed from True to False. It is not explicitly set.
2016-01-10 22:04:58 +01:00
Fabien Benureau
69dc3a1690 Parsing error displays bibdata 2015-12-20 18:55:23 +01:00
Olivier Mangin
45fc257575 Fixes #32.
Use key depending on bibtexparser version in endecoder.
2015-04-28 11:56:50 +02:00
Olivier Mangin
921c54f535 Closes issue #21.
0b64bf0 introduced a hack (http://git.io/1ZbMkg) related to an issue
in bibtexparser : sciunto/python-bibtexparser/issues/17.
This has been fixed by sciunto/python-bibtexparser@6beb646 and the hack
can be safely removed.

Pubs should be updated accordingly as soon as the bibtexparser FIX gets to a released version.
2014-09-11 19:05:59 +02:00
Olivier Mangin
0b64bf086e Update for latest bibtexparser (>= 0.5.3).
Breaks compatibility with previous versions. Also fixes the UnicodeWarning.
2014-04-28 20:53:49 +02:00
Olivier Mangin
506bb24e50 Many cleanup in unicode encoding.
Originally intended to fix a bug in edit openning fils with non-ascii
characters.

Now all data is assumed to be manipulated as unicode. Therefore all
values returned by functions from content are unicode. There are a few
exception in order to download non-unicode data without failing to
decode. These exception are marked by the 'byte_' prefix.
The io package is used instead of builtin open for all file
transactions.

The fake_env test helper has to be modified (hacked, to be honnest) since
fake_filesystem does not offer a mock of io.

This is still WIP. Two issues still have to be solved:
- first there is an UnicodeWarning raised by bibparser,
- also config is still directly using builtin open.
2014-04-23 21:28:20 +02:00
Olivier Mangin
7713e5d80e Fix encoding of keywords.
Also introduces ustr instead of unicode for python2 and str for python3.
2014-04-18 20:43:26 +02:00
Olivier Mangin
9b6f6db297 Fixes editor formatting. 2014-04-18 17:51:20 +02:00
Olivier Mangin
c9e4f9788c Moves removing of 'id' to endecoder where it belongs. 2014-04-16 16:21:40 +02:00
Olivier Mangin
c299874146 Fix use of color for import error while color module not yet imported. 2014-04-15 19:35:06 +02:00
Fabien Benureau
d3736e257b moving from pybtex to bibtextparser, fixed major regressions.
* only bibtex format is supported
* all tests except test_repo.py and edit test pass
* edit and update commands were not updated
* removed --format argument from export, only bibtex is supported.
2014-04-13 15:10:40 +02:00
humm
2078876168 default bibfile formant is bibtex + fixed a bug in get_content 2013-11-14 18:37:27 +01:00
Fabien Benureau
8d91545472 papers renamed 'pubs' 2013-11-14 04:40:29 +01:00