Menu

#37 Apparently valid dkf file not accepted

v1.2.x
closed
5
2012-08-25
2006-01-25
No

I wrote a little quick script to pull the private pilot
questions off the FAA website and turn them into
Granule XML. However, Granule will not accept the DKF
file. Rather than submit the whole XML file, I
included the script that generate it, since it's a lot
shorter.

You should be able to run it yourself and produce a CDF
and a DKF files. It does depend on "wget" and
"pdftotext", but most Linux boxes have those.

Anyway, I know I'm close, but what am I doing wrong here?

Sorry to submit this as a bug in Granule when it's
likely something I'm doing wrong, but I didn't know how
else to get in touch w/ you.

Discussion

  • Frederick A Niles

    Script to generate FAA Private Pilot Test

     
  • Vladislav Grinchenko

    Logged In: YES
    user_id=616697

    I attached modified deck file with first 4 cards generated
    by your script.
    A few points:

    1) You were getting a parse error because <back></back> tag
    CANNOT be empty. That should have been reported by the error
    dialog - I'll fix it in the next release.

    2) I suggest putting an answer A, B, or C in the <back> tag
    so that you can test yourself. If you don't have a cheat
    sheet with the right answers for your questions, you might
    put A as initial entry and then put the full answer in
    <example> field.</example></back>

    3) Granule was not designed for multiple choice answers. The
    implication is that the front side of the card is optimized
    to hold a single word or a phrase - text is centered in the
    middle of the field. In your case, it is a block of text
    that you attempt to fit in.

    As a temprary measure, you can either reduce the font size
    of the front text, or split that first long sentence in lets
    say 20-30 characters on a
    word boundary.

    It seems reasonable to have an option of selecting the
    layout of the front text and make it deck-specific. I'll try
    to add this functionality into either 1.2.1 or 1.2.2 release.

    4) Card ID better be a timestamp (with prefix underscore).
    It is not a requirement, but I'm afraid somewhere in the
    code it attempts to convert the ID into the creation time.
    UNIX command 'date +%s' would give you the time reference.

    5) It seems that with the front not being a single word any
    more, the Front: field of the CardView should become
    adjustable to fit the text in its entirety. I will try to
    fix that too.

    6) I noticed that there are picture references in the text.
    Are these pictures available? It would be cool to have a
    capability to show the pics along with the cards where
    applicable.

    7) You don't generate *.cdf files - they are a by-product of
    your learning process. The manual explains it in details.

     
  • Vladislav Grinchenko

    A properly-formatted example

     
  • Frederick A Niles

    Logged In: YES
    user_id=985453

    (1) OK I really think that fact that the back can't be empty
    is a bug. Since I can create cards inside the program
    that have the back as blank and it will fail to load them
    after I save them and restart. This seems...not right. :)

    (2) Yeah, they don't supply the answers so I have to figure
    out all the answers first!

    (3) I'm not having an issue. The questions seems quite
    readable.

    (4) Card ID timestamp: Err. ok, but I think all my cards
    would have the same timestamp and that would not be good.
    right? You're saying just pick a time and then increament it?

    (6) Figures...yeah, the figures aren't available anywhere I
    can find online, but I have hardcopies. Since it's the
    Federal government it's not covered by copyright so I could
    scan the images in. However, some of them are very big and
    would never be readable on the size of the card.

    (7) CDF generation: Sorry, I'm a granule newbie. I did
    figure something like that after I posted last night.

    Warning! Feature creep: You might like to add a "quiz" mode
    where the user can pick from multiple choice answers.
    There's a few programs out there that do this, but I like
    yours, especially since it's runs on the Nokia 770!

     
  • Vladislav Grinchenko

    Logged In: YES
    user_id=616697

    I opened a new bug report to fix an empty <back></back>
    field tag problem. Closed this discussion.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.