Re: [Rosegarden-user] Choose Text Encoding

2011-10-19 Thread Johan Vromans
"D. Michael McIntyre"  writes:

> Rosegarden has to ask, because there's nothing in the standard that
> can tell us what encoding to use, and we don't trust ourselves to
> guess.

I'd suggest a config setting, e.g. in [General_Options]:
midi_encoding=utf-8 

When set, it will always use utf-8 encoding for the texts in midi files.

> If we did have some option to "always use this encoding from now on"
> then how would the user deal with it when they encountered a MIDI file
> that wasn't encoded in UTF-8?

I can remove the abovementioned option from Rosegarden.conf.

Also, utf-8 is quite strict. When decoding a file with utf-8 gives
errors, you can always fallback to asking the user.

But it's a minor nuisance.

-- Johan

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Choose Text Encoding

2011-10-19 Thread Chris Cannam
On 19 October 2011 22:48, Johan Vromans  wrote:
> Yes. That's the surprising part. Apparently Rosegarder *does* have a
> clue. (Unless it always presents UTF-8 as default choice.)

No, I think it tries to guess from the content.  The problem is that
the guess isn't terribly reliable; it goes for UTF-8 if it isn't very
sure.


Chris

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Choose Text Encoding

2011-10-19 Thread Johan Vromans
Chris Cannam  writes:

>> Rosegarden has to ask, because there's nothing in the standard that can tell
>> us what encoding to use, and we don't trust ourselves to guess.
>
> Does the dialog at least give you the right default?

Yes. That's the surprising part. Apparently Rosegarder *does* have a
clue. (Unless it always presents UTF-8 as default choice.)

-- Johan

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Choose Text Encoding

2011-10-19 Thread Chris Cannam
On 19 October 2011 18:42, D. Michael McIntyre
 wrote:
> On Wednesday, October 19, 2011, Johan Vromans wrote:
>
>> Is there a way I can instruct RoseGarden to *always* use UTF-8 and not
>> bother me with encoding selection?
>
> Rosegarden has to ask, because there's nothing in the standard that can tell
> us what encoding to use, and we don't trust ourselves to guess.

Does the dialog at least give you the right default?  There's quite a
big difference in annoyance between just clicking OK and having to
select from the menu first.


Chris

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] Choose Text Encoding

2011-10-19 Thread D. Michael McIntyre
On Wednesday, October 19, 2011, Johan Vromans wrote:

> When I open a MIDI file, I always get a dialog "Choose Text Encoding".
> My MIDI files contain text (vocals) that is UTF-8 encoded Unicode.
> 
> Is there a way I can instruct RoseGarden to *always* use UTF-8 and not
> bother me with encoding selection?

Rosegarden has to ask, because there's nothing in the standard that can tell 
us what encoding to use, and we don't trust ourselves to guess.

Off the top of my head, I can't think of a clean alternative to that 
necessity.  If we did have some option to "always use this encoding from now 
on" then how would the user deal with it when they encountered a MIDI file 
that wasn't encoded in UTF-8?

It's hard to tell from a glance how successful a "change text encoding" 
function might be.  I suppose that would be the way to do it though.  Default 
to UTF-8 in this day and age, and provide a facility for changing the encoding 
if the strings are coming out wonky.

Unfortunately, all I have time for this morning is a quick glance, and all I 
can tell from that glance is that this is more than I have time to think about 
just now.
-- 
D. Michael McIntyre

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


[Rosegarden-user] Choose Text Encoding

2011-10-19 Thread Johan Vromans
When I open a MIDI file, I always get a dialog "Choose Text Encoding".
My MIDI files contain text (vocals) that is UTF-8 encoded Unicode.

Is there a way I can instruct RoseGarden to *always* use UTF-8 and not
bother me with encoding selection?

-- Johan

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user