Re: [NTG-context] Inverted exclamation / question marks
On Thu, Feb 19, 2009 at 00:42, Pau wrote: Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext It works perfectly here, but there's a difference between sending some file and copy-pasting its contents. Are you using latin1 ecoding by any chance? Try \enableregime[latin1] to see if it fixes the problem, but I would try to fix the editor instead and configure it to use utf-8. You'll have much less problems later. Of course, I can use {!`} and {?`}, but I was wondering why I don't get these right using \language No, you cannot/you shouldn't. As soon as you'll try to use those symbols in XeTeX, LuaTeX or with any other non-cmr font, you'll run into troubles. Btw: \language doesn't change anything in this respect. If you are using the right symbols, you should get them no matter what language you use. 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] Inverted exclamation / question marks
Am 19.02.2009 um 00:42 schrieb Pau: Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext Works for me, I think you save you file with the wrong encoding. 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] Inverted exclamation / question marks
Pau wrote: Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext Works fine here: ConTeXt ver: 2009.02.06 19:27, pdftex 1.49.9 as well as luatex trunk Best wishes, Taco ___ 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] Inverted exclamation / question marks
On Thu, Feb 19, 2009 at 12:42 AM, Pau vim.u...@googlemail.com wrote: Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext Works fine over here Pau context.cmd spanish ( on Windows XP SP3 Home) This is luaTeX, Version snapshot-0.31.3-2008122922 (spanish.tex ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.2.2 int: english/english Alan --- Surprise, surprise --- Banker Logic: The More You Screw Up, The More You Get Paid... CEOs Caught Scheming On Tape http://www.youtube.com/watch?v=zwbE-y2Rx6I or http://www.liveleak.com/view?i=f95_1234826309 --- spanish.pdf Description: Adobe PDF document ___ 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] Inverted exclamation / question marks
Hello, thanks to all of you for your answers. Yes, it seems to be an encoding problem. After using \enableregime[latin1] in the preamble, the characters are fixed, but I would like to understand the problem of the encoding. If I open the file with nvi or vim, I can see the characters displayed correctly in the terminal with the default encodings. Now, if I add this to my vimrc: set encoding=utf-8 set termencoding=utf-8 then I get strange symbols when writing, instead of the accents like á instead of á (now the question is what you see!) I will do a bit more of research, because I see a potential source of problems here... Thanks to all, Pau 2009/2/19 Taco Hoekwater t...@elvenkind.com: Pau wrote: Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext Works fine here: ConTeXt ver: 2009.02.06 19:27, pdftex 1.49.9 as well as luatex trunk Best wishes, Taco -- Let there be peace on earth. And let it begin with misc ___ 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] Inverted exclamation / question marks
This seems to be doing it for vim: set fileencodings=ucs-bom,utf-8,latin1 The already recorded characters are displayed correctly and I can also use accents etc in vim. But, still, I seem to still need \enableregime[latin1] in the preamble. When I comment it out: ! Improper alphabetic constant. to be read again \blank \utffouruniglph @b *(`#2-\...@g )+\...@a *(`#3 -\...@g )+`#4-\...@g \relax } l.68 \blank[ 5cm] ... Pau 2009/2/19 Pau vim.u...@googlemail.com: Hello, thanks to all of you for your answers. Yes, it seems to be an encoding problem. After using \enableregime[latin1] in the preamble, the characters are fixed, but I would like to understand the problem of the encoding. If I open the file with nvi or vim, I can see the characters displayed correctly in the terminal with the default encodings. Now, if I add this to my vimrc: set encoding=utf-8 set termencoding=utf-8 then I get strange symbols when writing, instead of the accents like á instead of á (now the question is what you see!) I will do a bit more of research, because I see a potential source of problems here... Thanks to all, Pau 2009/2/19 Taco Hoekwater t...@elvenkind.com: Pau wrote: Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext Works fine here: ConTeXt ver: 2009.02.06 19:27, pdftex 1.49.9 as well as luatex trunk Best wishes, Taco -- Let there be peace on earth. And let it begin with misc -- Let there be peace on earth. And let it begin with misc ___ 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] Inverted exclamation / question marks
But, still, I seem to still need \enableregime[latin1] in the preamble. When I comment it out: You need set fileencoding=utf-8 while editing the file (without an 's'). fileencodings in the plural tells vim which encodings to try when opening a file. Here it tries all the encodings successively, finds that latin-1 is appropriate, and opens the file as latin-1. If you don't do anything, it will also save the file in latin-1. fileencoding in the singular tells vim to save the file in that particular encoding. Arthur ___ 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 ___
[NTG-context] Inverted exclamation / question marks
Hello, I am trying to write a text in Castillian and I don't get the inverted exclamation symbol right. I am using \language[es] \mainlanguage[es] in the preamble and I also tried playing with utf without success. Instead of ¡ and ¿ I get an a with a cedilla and a pound symbol, respectively Of course, I can use {!`} and {?`}, but I was wondering why I don't get these right using \language I have done my homework and have googled, yahoo'ed and even clustied hint? thanks, Pau ___ 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] Inverted exclamation / question marks
On Wed, 18 Feb 2009, Pau wrote: Hello, I am trying to write a text in Castillian and I don't get the inverted exclamation symbol right. I am using Add \enableregime[utf-8] \language[es] \mainlanguage[es] in the preamble and I also tried playing with utf without success. Instead of ¡ and ¿ I get an a with a cedilla and a pound symbol, respectively Of course, I can use {!`} and {?`}, but I was wondering why I don't get these right using \language I have done my homework and have googled, yahoo'ed and even clustied Aditya___ 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] Inverted exclamation / question marks
Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext thanks ___ 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 ___