Re: [NTG-context] Russian/Cyrillic - no woes, happy now!
On Thu, Feb 5, 2009 at 11:34 AM, Mari Voipio wrote: Mojca Miklavec wrote: Caveat: This is advisable if you use Scite only with UTF-8 encoded files. If you use SciTe for files with other encoding, it is not a good idea. Why, you ask? Because in the Encoding menu under File there's no way of switching a tab back to for example Windows Iso-Latin1 or whatever else your files are. I know SciTe menus are adjustable so if somebody knows of a way to adding 'switch tab to code.page 0' or 'windows default encoding' or something similar to the Encoding menu, that'd be very much appreciated. Until then, I probably have to give up using SciTe as my html editor or some other people will be veerryyy annoyed... Unless web pages are in ASCII, I never even dare to use anything but UTF-8. In the long run you will probably want to or have to switch ... the sooner you do that the better. I don't know what you use your web pages for, but if you allow user input (for example asking visitors for name), you discriminate users for not being able to enter their name properly. Lots of people that use ISO Latin 1 don't bother to specify encoding since the web pages seem to just work. If you try to open those files (or see the web page) on some machine where Latin 2 in the default, you'll run into problems anyway. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Russian/Cyrillic - no woes, happy now!
Mari (...who's next job is to convert a pile of files into UTF-8...) Maybe you can consider (under linux,I dont'know about windows) recode iconv sometimes they are useful . -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Russian/Cyrillic - no woes, happy now!
Mojca Miklavec wrote: On Wed, Feb 4, 2009 at 4:18 PM, Mari Voipio wrote: Wolfgang Schuster wrote: 3. Select UTF-8 in menu File/Encoding This solved problem number 1: how to do UTF in SciTe. The problem is that you need to do that every time. There is some file with user settings that you can access through menu. Do not ask me where it is since I cannot try it now, but it's very handy since you only do it once and then UTF-8 will always work out-of-the-box. Agreed. However, once I knew I should be looking for this, I found one solution to this problem at http://www.nabble.com/default-encoding-to-utf-8-cookie-td5946114.html The thing to do is to open the SciTe global properties (Options | Open Global Properties) and to find the spot that says # Internationalisation # Japanese input code page 932 and ShiftJIS character set 128 #code.page=932 #character.set=128 # Unicode #code.page=65001 code.page=0 #character.set=204 # Required for Unicode to work on GTK+: #LC_CTYPE=en_US.UTF-8 #output.code.page=65001 Then uncomment the line code.page=65001 and comment the line code.page=0 (for us Windows dummies: move the hash mark # down by one line). After this change everything opened in Scite in Windows is handled as UTF-8 (GTK+ users will take note of the second comment). Remember to save the properties file before closing it. Caveat: This is advisable if you use Scite only with UTF-8 encoded files. If you use SciTe for files with other encoding, it is not a good idea. Why, you ask? Because in the Encoding menu under File there's no way of switching a tab back to for example Windows Iso-Latin1 or whatever else your files are. I know SciTe menus are adjustable so if somebody knows of a way to adding 'switch tab to code.page 0' or 'windows default encoding' or something similar to the Encoding menu, that'd be very much appreciated. Until then, I probably have to give up using SciTe as my html editor or some other people will be veerryyy annoyed... Mari (...who's next job is to convert a pile of files into UTF-8...) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Russian/Cyrillic - no woes, happy now!
Am 04.02.2009 um 16:18 schrieb Mari Voipio: 5. Added % engine=luatex at the begin of the file This solved problem number 2: how to force SciTe to always use MkIV. To use XeTeX add % engine=xetex at the top of your file, for most languages it's unimportant which engine you use as long as you don't use on of the MkIV only features. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Russian/Cyrillic - no woes, happy now!
On Wed, Feb 4, 2009 at 4:18 PM, Mari Voipio wrote: Wolfgang Schuster wrote: 3. Select UTF-8 in menu File/Encoding This solved problem number 1: how to do UTF in SciTe. The problem is that you need to do that every time. There is some file with user settings that you can access through menu. Do not ask me where it is since I cannot try it now, but it's very handy since you only do it once and then UTF-8 will always work out-of-the-box. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___