Export label with unicode create duplicate labels

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
shuminbd
Posts: 6
Joined: Mon Jun 03, 2013 9:05 pm
Operating System: Please select

Export label with unicode create duplicate labels

Post by shuminbd » Mon Jun 03, 2013 9:13 pm

Hi

I'm using Audacity 2.0.3 in my MacbookPro. I'm trying to add some label which is in English as well as Bangla (in unicode format). It looks ok in editor but when I export to text file I can see Bangla text is replaced by English text. Is it known bug or I'm can fix it by config change?

Screenshot:
https://docs.google.com/file/d/0B2c7-s6 ... sp=sharing

Exported labels:
------------------
0.000000 14.941428 segment-Bangi News
0.000000 14.941428 segment-Bangi News

Thanks

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Exoprt label with unicode create duplicate labels

Post by Gale Andrews » Tue Jun 04, 2013 6:39 am

Thanks for the report.

There does not seem to be a problem on Windows using a similar track layout to you and Bengali (Bangladesh) keyboard input language.
  • Exactly what language is top of the list in Mac System Preferences?
  • Exactly how are you inputting Bangladeshi characters into the label?



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

shuminbd
Posts: 6
Joined: Mon Jun 03, 2013 9:05 pm
Operating System: Please select

Re: Exoprt label with unicode create duplicate labels

Post by shuminbd » Tue Jun 04, 2013 8:17 pm

Gale Andrews wrote:Thanks for the report.

There does not seem to be a problem on Windows using a similar track layout to you and Bengali (Bangladesh) keyboard input language.
  • Exactly what language is top of the list in Mac System Preferences?
  • Exactly how are you inputting Bangladeshi characters into the label?



Gale

Thanks Gale for your reply. In my macbook English is the top language (although I swap with Bangla but same result). And I'm using google online input tool for bangla typing (http://www.google.com/intl/bn/inputtools/cloud/try/), I also tried with just copy/paste some text from Bangla newspaper but same result.

Please let me know if you need more details that will help to pin point exact problem.

Thanks
Mohammad Haque

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Exoprt label with unicode create duplicate labels

Post by Gale Andrews » Mon Jun 10, 2013 12:08 pm

I confirm it's a problem on Mac copy-pasting from http://www.google.com/intl/bn/inputtools/cloud/try/ or using Bangla-QWERTY input language. If the only language used in the labels is Bangla then labels.txt has no contents.

However the labels seem to reopen correctly if you save as an Audacity project (AUP) - does that help?

Has this ever worked in label export in previous 1.3.x or 2.0.x Audacity, or have you not used other versions before?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

shuminbd
Posts: 6
Joined: Mon Jun 03, 2013 9:05 pm
Operating System: Please select

Re: Exoprt label with unicode create duplicate labels

Post by shuminbd » Fri Jun 14, 2013 1:51 pm

Gale Andrews wrote:I confirm it's a problem on Mac copy-pasting from http://www.google.com/intl/bn/inputtools/cloud/try/ or using Bangla-QWERTY input language. If the only language used in the labels is Bangla then labels.txt has no contents.

However the labels seem to reopen correctly if you save as an Audacity project (AUP) - does that help?

Has this ever worked in label export in previous 1.3.x or 2.0.x Audacity, or have you not used other versions before?


Gale

Hi Gale,

Thanks for your reply. Yes, it reopens correctly as a project. But I need to export to a text file which I use to render data in a different application. I did not use other previous versions.

Do you think it is fixable any time sooner in the future?

Cheers
Mohammad

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Exoprt label with unicode create duplicate labels

Post by Gale Andrews » Fri Jun 14, 2013 9:57 pm

shuminbd wrote:
Gale Andrews wrote:I confirm it's a problem on Mac copy-pasting from http://www.google.com/intl/bn/inputtools/cloud/try/ or using Bangla-QWERTY input language. If the only language used in the labels is Bangla then labels.txt has no contents.

However the labels seem to reopen correctly if you save as an Audacity project (AUP) - does that help?

Has this ever worked in label export in previous 1.3.x or 2.0.x Audacity, or have you not used other versions before?
Yes, it reopens correctly as a project. But I need to export to a text file which I use to render data in a different application. I did not use other previous versions.

Do you think it is fixable any time sooner in the future?
You could open the AUP file in Textedit then copy the label tags that look something like this:

Code: Select all

<label t="3.97058800" t1="4.97058800" title="্গহ্যযয"/>
<label t="9.06862700" t1="11.06862700" title="পপিীূ"/>
then in the label.txt file, paste in what you copied, then delete everything except the "t", "t1" and "title" values that are inside the quotes:

Code: Select all

3.970588004.97058800গহ্যযয
9.0686270011.06862700পপিীূ


then press TAB on your keyboard between the values in each line:

Code: Select all

3.97058800	4.97058800	গহ্যযয
9.06862700	11.06862700	পপিীূ


This should then in theory re-import correctly in Audacity as a label file.

But at the moment I can do what I could not do before in Audacity - copy-paste from http://www.google.com/intl/bn/inputtools/cloud/try/ in labels, or change to a Bangla input language and type in a label, then export the labels correctly. :?

And at the moment the crashes importing files I told you about by e-mail when Bangla is top of the list in System "Language & Text" Preferences have stopped.

So perhaps this Unicode label export problem is random, like the import crashes that are triggered on Mac by some kind of action involving Unicode are random.

If you have the patience to test, you could try making sure Bangla is top of the list in System Language & Text Preferences. Also make sure in the System Keyboard Preferences > Input Sources... button that a Bangla choice is checked. Then reboot.

If you still have the same problem after reboot (or the problem comes back after a time), try 1.3.7 as a second Audacity version http://audacity.googlecode.com/files/au ... -1.3.7.zip . Another Mac user I have been communicating with (who I think uses English language) does not have the Audacity audio import crashes in that version.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply