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
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
Hello,
thanks, I had already tried that. This yields another problem. All
accents etc are giving this:
! Improper alphabetic constant.
<to be read again>
\blank
\utffouruniglph ...f@b *(`#2-\utf@g )+\utf@a *(`#3
-\utf@g )+`#4-\utf@g \relax }
l.66 \blank[
5cm] ...
Using \enableregime[utf-16] gets rid of it but the inverted marks
problem remains the same.
???
Pau
2009/2/18 Aditya Mahajan
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
Can you please try this? ---------------------------------------- \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext ---------------------------------------- thanks
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
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
On Thu, Feb 19, 2009 at 12:42 AM, Pau
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 -----------------------------------------------------------------------------------------------
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
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
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
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 ...f@b *(`#2-\utf@g )+\utf@a *(`#3
-\utf@g )+`#4-\utf@g \relax }
l.68 \blank[
5cm] ...
Pau
2009/2/19 Pau
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
: 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
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
participants (7)
-
Aditya Mahajan
-
Alan Stone
-
Arthur Reutenauer
-
Mojca Miklavec
-
Pau
-
Taco Hoekwater
-
Wolfgang Schuster