My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 1: added workaround for lg_grcz-2.trd
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by julian.s...@reflex.at, Apr 19, 2009
What steps will reproduce the problem?
lingea-trd-decoder.py -d lg_grcz-2.trd > debug.txt

I attached the debug file

What is the expected output? What do you see instead?
it can only be build until the entry machen.

What version of the product are you using? On what operating system?

ubuntu 8.04
latest 0.7

Please provide any additional information below.

Husan added the workaround for a bunch of dictionaries
and I just added "and (len(stream) != 30696)" and the dictionary in the
commentary "lg_grcz-2.trd"


    if (len(stream) != 13752) and (len(stream) != 21988) and (len(stream)
!= 16204) and (len(stream) != 12656) and (len(stream) != 30696) : #hack to
workaround bug in some dicts (lg_czen-eco, lg_encz-ind, lg_czgr-eco,
lg_grsk-2, lg_grcz-2.trd)
       while pos < len(stream):
           ok = (outInt() == 0x00) and ok

I don't know any python at all and barely knew what I was doing, but it did
work in the end.
I attached the patched version.

regards 
julian


debug.txt
748 KB   View   Download
lingea-trd-decoder.py
39.2 KB   View   Download

Powered by Google Project Hosting