Dear Edward,

thanks for your unconditional support. I downloaded the last git version 
(Leo 5.0-final, build 20141208163902, Mon Dec 8 16:39:02 CST 2014) and it 
worked better. You mentioned however a modification yesterday Dec. the 
09th. One can read an existing bib file. On the contrary, writing is still 
an issue. In this last git build, the first change mentioned by you 
(changed "file" to "open") existed already, however not the second (Changed 
"str" to "g.toUnicode"), so I made it by myself in bibtex.py. Trying to 
write the file produces the error 

 
hook failed: headdclick1, <function onIconDoubleClick at 0x7fec25087c80>, 
leo.plugins.bibtex

Traceback (most recent call last):

  File "/dn/home2/Leo/leoGit/leo-editor5.0_20141210/leo/core/leoPlugins.py", 
line 357, in callTagHandler
    result = handler(tag,keywords)

  File "/dn/home2/Leo/leoGit/leo-editor5.0_20141210/leo/plugins/bibtex.py", 
line 162, in onIconDoubleClick
    writeTreeAsBibTex(bibFile, v, c)

  File "/dn/home2/Leo/leoGit/leo-editor5.0_20141210/leo/plugins/bibtex.py", 
line 221, in writeTreeAsBibTex
    typestring = h[:h.find(' ')].lower()

TypeError: Type str doesn't support the buffer API

The assigning funtion for typestring is possible also to be updated to 
Python 3. I will try to understand a little more about. 

Best regards,   Juaco

Am Dienstag, 9. Dezember 2014 22:26:49 UTC+1 schrieb Edward K. Ream:
>
> On Tue, Dec 9, 2014 at 2:32 PM, Juaco <joaqui...@gmx.de <javascript:>> 
> wrote:
>
>>
>> I tried today again with Python2.7, indeed it worked! Finally I can see 
>> the chaos (!) in my *.bib files. 
>>
>> It would be nice to have it also under Python 3. 
>>
>
> ​Rev 7719f4f fixes several Python 3 compatibility issues:
>
> - Changed "file" to "open"
> - Changed "str" to "g.toUnicode"
>
> I haven't tested the new code.  Please let me know how it works for you.
>
> Edward
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to