Umlaut in file name
-
I am having a problem process a file which has an Umlaut in the file name.
If I replace the 'ä'in the file name with 'ae' then it works, but, of course, I cannot expect clients to change their path names.
(I indented the Ruby Console responses to make this easier to read.)
(The first file name is not recognized as a legitimate file.)sfile1 = UI.openpanel C;\Klär\test1 File.exists?(sfile1) false sfile2 = UI.openpanel C;\Klaer\test2 File.exists?(sfile2) true
This has nothing to do with the use of UI.openpanel. It fails if I just include the path name directly:
File.exists?("c;\\Klär\\test1") false File.exists?("c;\\Klaer\\test2") true
Any ideas?
Have German users had problems locating other files with SketchUp in paths with Umlauts?
-
Sketchup has issues with ASCII char codes coming in from Ruby that are > X'7F'. I reported this bug when I wrote the 3D Text tool - same issue - German users wanted to use their alphabet and SketchUp hosed the string. Other diactitics failed too.
In this latest maintenance release, M3, a lot of work was done for internationalization. Perhaps they fixed it. I've downloaded the Mac version, but have not installed it yet.
Todd
-
Thanks Todd.
Is "M3" Version 6.0.1099 (for Windows). If so, then it still has the problem I reported.
-
Yes.
Bummer.
Raise a stink.
Todd
-
Yeah, we really do have problems with our Umlauts and the "ß" ("s z", for things like "Straße" (street), because it isn't a "Strasse" or a "Strasze" - differen pronunciation; German writing Swiss do not use the "ß"). But that's not only a problem of Germans. French (and others) have problems with accents, people from northern European countries have problems with Eth, O with slash, A with - hm - ring?bubble?don'tknow ... Best solution would be a full unicode support for Sketchup. Ruby also has unicode support, but that also means, that you have to program with a unicode editor. For the Ruby interpreter you have the option "-K" - so it's "ruby -Ku ascript.rb" or you put on top of your main script:
$KCODE = 'u' require 'jcode'
azuby
-
Yeah,
I also have problems with our öüóőúíéáű characters (with Kerkythea, for instance that does not accept them even in the paróths) so I needed to change my folder names to fit this.
Soon I will end up with using an English verion of Windows if it is going on like this (fortunately neither my "username" in my system nor the Hungarian equvivalent for "desktop" contains these characters).
But this is not ruby scripting so sorry for hijacking the thread...
-
gai, that was not hijacking, since al asked, if we have problems...
as soon as i have an umlaut in my filepath or filename, i can't export a dwg-file out of SU. no problem in exporting it on the desktop, which is "schreibtisch" in german, but imagine, in finish it is "työpöytä". a real tongue-breaker
as a workaround i use only ae instead of ä, ss instead of ß, an so on... an if necessary, i can rename it before i send a thing to the client.
-
Thanks for all the information.
Umlauts and other accents are more of a problem then I expected.
I am going to look into some things and I will report back. It looks like they are supported in Ruby and SketchUp for some things, but then lost for some other things.
Advertisement