19 Commits

Author SHA1 Message Date
Fabien C. Y. Benureau
d9c8af7c9a
rename bibtex_field_excludes into exclude_bibtex_fields 2022-01-05 13:52:05 +01:00
Mitsuhiro Nakamura
80867675b3 feat: add config spec to exclude bibtex fields 2021-12-10 16:17:46 +09:00
Fabien C. Y. Benureau
c9aa8ddd41
fix side-effects of merge, and deprecation warnings 2020-05-10 10:01:15 +09:00
ksunden
7ba016e54c TST: Test contents of import, not that the command fails 2019-05-09 17:37:42 -05:00
Olivier Mangin
fbc9b94f8d
Fix 177: convert latex to unicode before printing one-liner.
This commit actually introduces a new method on the paper object to
return a copy of the bibdata which entries' latex have been converted to
unicode.
2019-01-14 22:03:53 -08:00
Olivier Mangin
5a47150aad
Adds option to ignore malformed bibtex files or entry during import. 2018-07-30 18:24:56 +02:00
Fabien C. Y. Benureau
82aad31e5d test for common_string parsing 2018-02-21 13:59:26 +09:00
Olivier Mangin
328f2a6d5e Adds more checks and better error message against empty citekeys. 2018-01-25 22:37:11 -05:00
Fabien C. Y. Benureau
0942df3b50 Fix pubs conf command 2017-08-01 23:43:06 -04:00
Fabien Benureau
cce9406670 new print ui, more robust colors 2015-12-02 16:36:27 +01: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
9b6f6db297 Fixes editor formatting. 2014-04-18 17:51:20 +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
Fabien Benureau
dfd16c029d first working paper test + bugfix 2013-11-18 14:53:43 +01:00
Fabien Benureau
9243859294 updated test_usecase + fixed bug in import_cmd 2013-11-17 19:44:55 +01:00
Fabien Benureau
23cf48661b added bibstruct text, cleaned fixtures and test_paper 2013-11-17 19:19:31 +01:00
Fabien Benureau
10fd0f86d6 only one usecase failing 2013-11-11 00:52:09 +01:00
Fabien Benureau
8c54b19207 updated import and added rename command 2013-11-10 19:35:21 +01:00
Fabien Benureau
856cfa2a4f moved test string fixtures to str_fixtures.py 2013-11-08 01:18:04 +01:00