Hi!

Sebastian Moors wrote:
>> I see this, too.  Actually, any song you load will have the sounds 
>> loaded wrong.  Looks like an off-by-one thing.
>>
>> I also had some other minor issues:
>>
>> * File -> Open Recent... does not persist.  When I close Hydrogen and
>>   reload, it does not show me anything.
>>     
>
>   
Both issues are fixed now!
>> * What do we do if we run in to a file that has TinyXML's pseudo-UTF-8?
>>   (See attached.)  For more on this, see below.
>>
>> While Hydrogen usually ASCII-ized non-ASCII strings to "?????," there 
>> may be some verson out there that passed on UTF-8 to TiXml.  I believe 
>> this is the case because Alexandre said that someone did it (or 
>> something like it).  However, when I loaded 0.9.3 from Ubuntu, I 
>> couldn't get it to save anything non-ascii.
>>
>> For the psudo-UTF-8 thing, I have a proposal for handling this:
>>
>>   (a) Configure QtXml to *always* write an XML prolog with the
>>       text encoding.  This usually looks something like this:
>>
>>       <?xml version="1.0" encoding="UTF-8"?>
>>
>>   (b) When loading the file, detect whether or not it has the
>>       prolog.  If it has an XML prolog, treat it like an XML
>>       file.
>>
>>   (c) If the XML prolog is missing, treat it in "TiXml
>>       Compatibility mode."  This means that we need to transcode
>>       TiXml's encoding to real Unicode.
>>
>> There's a couple ways to handle TiXml's encoding.  We can either 
>> create a QTextCodec for this case, or we can try to handle it 
>> manually.  Either way, if you handle the detection and set the stage 
>> for fixing the strings -- I can write the code to fix the encoding.  
>> (But, if you're looking for some phun -- feel free to tackle it and I 
>> can help out if you get in a jam.  :-))
(a) is done
(b) I wrote a function which checks if the file was written with QtXml 
or TinyXml:

if (LocalFileMng::checkTinyXMLCompatMode( filename )){
        ERRORLOG( "old xml file!!!!" );
    }

(c) I'm asking for help here :) What can i do to support you? Is it 
sufficient when i pass the TinyXmlMode to the reading methods like 
LocalFileMng::readXmlString ?
     There are some parts which are reading the value of nodes directly, 
they could be wrapped in a new function which handles the encoding stuff..

Thanks,
Sebastian

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to