Re: Importing Cyrillic Text + UTF8 and the XML-library
Hi Richmond, fine that your import works! Another question concerning UTF8: I use runrev 2.2.1 and got the experience that the runrev XML-library of runrev was not able to handle UTF8 encoded XML files with foreign texts in hebrew and greek. Did anyone check this in newer versions? Regards, Franz Original Message Subject: Importing Cyrillic Text (10-Dez-2006 13:47) From:Richmond Mathewson [EMAIL PROTECTED] To: use-revolution@lists.runrev.com Well, I owe apologies to both Devin Asay and Franz Böhmisch as their methods work very well. ;-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Importing Cyrillic Text + UTF8 and the XML-library
UTF8 seems to work perfectly well with DreamCard 2.6.1 and RevMedia 2.7.2 (not that I recommend that you buy it). sincerely, Richmond Mathewson Its time to do Philosophy and stop worrying about what dead men said. Mathewson 2006 ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Importing Cyrillic Text
One of my old chestnuts crops up again:- on mouseDown set the useUnicode to true answer file CHOOSE A FILE TO IMPORT if the result = cancel then exit mouseDown put it into NAMESTR open file NAMESTR for read read from file NAMESTR until EOF put it into the field fENTER end mouseDown open a Bulgarian .txt or .rtf file . . . and I get something (on Mac OS X and Win XP) that looks rather like ancient Egyptian heiroglyphs . . . so, obviously, I am going badly wrong help gratefully recieved, sincerely, Richmond Mathewson Its time to do Philosophy and stop worrying about what dead men said. Mathewson 2006 ___ All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Importing Cyrillic Text
On Dec 6, 2006, at 1:20 PM, Richmond Mathewson wrote: One of my old chestnuts crops up again:- The useUnicode property is a common trap, because scripters tend to think that it is more powerful than it actually is. It should really be called the useTwoByteCharsWithCharToNumAndNumToChar property, because it only affects the charToNum and numToChar functions, by having them look at two byte characters instead of single byte characters. on mouseDown set the useUnicode to true answer file CHOOSE A FILE TO IMPORT if the result = cancel then exit mouseDown put it into NAMESTR open file NAMESTR for read read from file NAMESTR until EOF put it into the field fENTER end mouseDown open a Bulgarian .txt or .rtf file . . . Here's what you want to do. First, you have to know how the text file is encoded. If it's an RTF file you can try using the rtfText property: answer file Choose a RTF file. if it is empty then exit mouseUp set the RTFText of field Stuff to URL (file: it) Let's assume it's in UTF-16, the most common unicode format, you would do something like this: answer file Choose a unicode file to read in. if it is empty then exit mouseUp put binfile: it into urlName set the unicodeText of fld display to url urlName If the text is UTF-8, a common format on the Web, you would have to encode it to utf-16 upon reading it, like this: answer file Choose a UTF-8 file to read in. if it is empty then exit mouseUp put url (binfile: it) into tRaw set the unicodetext of fld display to \ uniencode(tRaw,UTF8) If it's in another encoding it get's dicier, but these techniques are reliable for unicode files. HTH Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re-2: Importing Cyrillic Text
Hi Save any language text in UTF8: put uniDecode(unicodetext of field bibeltext,UTF8) into URL file:C:/test.txt Load any language text from a file encoded in UTF8 to a runrev field: set the unicodetext of field bibeltext to uniEncode(URL file:C:/test.txt,UTF8) Save any language text from a field to a html-page for viewing in a browser works even with hebrew and arabic texts runrev cannot display correct but encodes internally correctly. put htmltext of field bibeltext into URL file:C:/test.html This should function in most cases Regards, Mit freundlichen Grüßen Franz Böhmisch [EMAIL PROTECTED] http://www.animabit.de GF Animabit Multimedia Software GmbH Am Sonnenhang 22 D-94136 Thyrnau Tel +49 (0)8501-8538 Fax +49 (0)8501-8537___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution