#42 — Import fails for EndNote text format
| State | Unconfirmed |
|---|---|
| Version: | 0.9.0 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | (anonymous) |
| Submitted on | Dec 07, 2007 |
| Responsible |
—
|
| Target release: |
—
|
Last modified on
Jan 27, 2009
by
Cris Ewing
I am using CMFBibiliographyAT 0.9.0b1 and had considerable trouble trying to get it to import files in EndNote text format. The tool seemed to always select the CitationManager parser in stead.
I finally chased the problem down, the EndNoteParser in (tools/parsers.endnote.py) makes one mistake and an undocumented (and it turns out incorrect) assumption. First, the checkFormat method converts the input stream to lower case and then tries to find %T, %A and %D, since it will NEVER find upper case characters in a lower case string, it always fails (i.e., returns 0). Second, the extension of the import file is assumed to be .end, problem is that EndNoteX never creates a text file with the extension .end. Even if you are smart enough to know this assumption and specify .end as the extension, EndNoteX adds the .txt for you anyway and you get whatever.end.txt.
I finally chased the problem down, the EndNoteParser in (tools/parsers.endnote.py) makes one mistake and an undocumented (and it turns out incorrect) assumption. First, the checkFormat method converts the input stream to lower case and then tries to find %T, %A and %D, since it will NEVER find upper case characters in a lower case string, it always fails (i.e., returns 0). Second, the extension of the import file is assumed to be .end, problem is that EndNoteX never creates a text file with the extension .end. Even if you are smart enough to know this assumption and specify .end as the extension, EndNoteX adds the .txt for you anyway and you get whatever.end.txt.
- Steps to reproduce:
- import any EndNote text file that was not renamed to have a .end suffix
Added by(anonymous)onJan 27, 2009 03:43 PM
%A Altunyurt, Levent
%A Orhan, Zihni
%A Gungor, Tunga
%D 2007
%T Towards Combining Rule-Based and Statistical Part of Speech Tagging in Agglutinative Languages
%J Computer Engineering
%V 1
%N 1
%P 66-69
%! Towards Combining Rule-Based and Statistical Part of Speech Tagging in Agglutinative Languages
%> internal-pdf://Towards Combining Rule-Based and Statistical Part of Speech Tagging in Agglutinative Languages-3127036418/Towards Combining Rule-Based and Statistical Part of Speech Tagging in Agglutinative Languages.pdf
Added byCris EwingonJan 27, 2009 05:21 PM
This problem was fixed when the parsers were refactored into a separate package. The checkFormat method was repaired and parsing of endnote files works well. I do not rember the version number of cmfbib that uses these changes, but it is eggified.
No responses can be added.