Tab delimited text import doesn't work with audio files tags

46 views
Skip to first unread message

charles.mo...@gmail.com

unread,
Mar 27, 2014, 6:41:42 AM3/27/14
to mnemosyne-...@googlegroups.com
Hello,

I am using Mnemosyne 2.2.1 on OS X

I am trying to import cards in the format Question<tab>Pronunciation<tab>Answer<tab>Note.
The import is successful, but, as I try to put an audio tag on the Pronunciation field, it is not processed as such by the software. To be precise, the tag appears when I try to edit the card, but is not effective when I preview the card (the reader for audio file doesn't appear.
If I try to link "manually" to the audio file, it works (which means it is not a problem of audio file format), but as my deck is 5000 cards long, I don't want to do it manually !
Additionally, If I export a card with manually tagged audio file into a text file, I have exactly the same file than the one I used for input…

I tried :
- putting the full path in the description of the file,
- copying the audi file into ~/Library/Mnemosyne/default.db-media before the import (it is in that file that the audio file is copied when I link it manually through the mnemosyne GUI)

but it didn't help.

Can someone help me ?

Charles

Peter Bienstman

unread,
Mar 28, 2014, 5:13:32 AM3/28/14
to mnemosyne-...@googlegroups.com
> - copying the audi file into ~/Library/Mnemosyne/default.db-media before
> the import (it is in that file that the audio file is copied when I link it manually
> through the mnemosyne GUI)

Normally, that should work, I just tried it again to make sure with an image file

foreign word pronunciation translation<img src="a.png">

If you don't copy a.png beforehand to ~/Library/Mnemosyne/default.db-media it will complain about missing media.

Cheers,

Peter

charles.mo...@gmail.com

unread,
Mar 30, 2014, 3:47:30 AM3/30/14
to mnemosyne-...@googlegroups.com

Thank you for your attention.

I tested with an image file as per above and I had the behavior you described in case of absent file (I.e. prompt for missing file and "MISSING MEDIA" tag on the card.

Unfortunately, it doesn't work the same for sound files (wav type)
When the file is not present, I don't have any prompt during the import notifying me that the file is absent and not "MISSING MEDIA" tag. However, when the file is present and I do "insert audio file" through the GUI, Mnemosyne identifies that there is an existing file and will create a duplicate with a numeric suffix.

Can you be kind enough to test with a sound file to check if you have the same problem ?

Best Regards

charles

Peter Bienstman

unread,
Mar 31, 2014, 4:57:19 AM3/31/14
to mnemosyne-...@googlegroups.com
> Thank you for your attention.>
> I tested with an image file as per above and I had the behavior you described
> in case of absent file (I.e. prompt for missing file and "MISSING MEDIA" tag
> on the card.

Do you have the same behaviour I had when you copied the image file first?

> Unfortunately, it doesn't work the same for sound files (wav type) When the
> file is not present, I don't have any prompt during the import notifying me
> that the file is absent and not "MISSING MEDIA" tag. However, when the file
> is present and I do "insert audio file" through the GUI, Mnemosyne identifies
> that there is an existing file and will create a duplicate with a numeric suffix.
>
> Can you be kind enough to test with a sound file to check if you have the
> same problem ?

I tried with a wav file, and it also works as expected.

It might be some OSX specific bug in the libraries we use (like the checking for existing files that returns a wrong result). In that case, I'm not sure how much there is I can do about it, as I don't have access to an OSX machine myself.

You are not storing your data on a network drive or on a Parallel mounted drive, BTW?

Cheers,

Peter

charles.mo...@gmail.com

unread,
Mar 31, 2014, 9:44:57 AM3/31/14
to mnemosyne-...@googlegroups.com
On Monday, March 31, 2014 4:57:19 PM UTC+8, Peter Bienstman wrote:
> > Thank you for your attention.>
>
> > I tested with an image file as per above and I had the behavior you described
>
> > in case of absent file (I.e. prompt for missing file and "MISSING MEDIA" tag
>
> > on the card.
>
>
>
> Do you have the same behaviour I had when you copied the image file first?
>
>

Yes I had. The image was inserted correctly.
>
> > Unfortunately, it doesn't work the same for sound files (wav type) When the
>
> > file is not present, I don't have any prompt during the import notifying me
>
> > that the file is absent and not "MISSING MEDIA" tag. However, when the file
>
> > is present and I do "insert audio file" through the GUI, Mnemosyne identifies
>
> > that there is an existing file and will create a duplicate with a numeric suffix.
>
> >
>
> > Can you be kind enough to test with a sound file to check if you have the
>
> > same problem ?
>
>
>
> I tried with a wav file, and it also works as expected.
>
>
>
> It might be some OSX specific bug in the libraries we use (like the checking for existing files that returns a wrong result). In that case, I'm not sure how much there is I can do about it, as I don't have access to an OSX machine myself.
>
>

This is a bad piece of news…

Is it possible to refer this to the OS X developer in the project ? I am surprised to be the first one coming into this bug.


>
> You are not storing your data on a network drive or on a Parallel mounted drive, BTW?
>
>


No, it is on the main drive.


>
> Cheers,
>
>
>
> Peter

Peter Bienstman

unread,
Mar 31, 2014, 10:01:41 AM3/31/14
to mnemosyne-...@googlegroups.com, Patrick Kenny
Hi,

If it works for images, there is no obvious reason why it should not work for sound files, as they all share the same code.

I put Patrick in CC, but so far, he only took care of packaging on OSX, and I'm not sure if this is something he wants to tackle.

Cheers,

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/d5ae1881-
> 657c-461e-bc30-ba7aa05728ef%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages