ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Inverted exclamation / question marks
@ 2009-02-18 22:40 Pau
  2009-02-18 22:47 ` Aditya Mahajan
  0 siblings, 1 reply; 11+ messages in thread
From: Pau @ 2009-02-18 22:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-18 22:40 Inverted exclamation / question marks Pau
@ 2009-02-18 22:47 ` Aditya Mahajan
  2009-02-18 23:27   ` Pau
  0 siblings, 1 reply; 11+ messages in thread
From: Aditya Mahajan @ 2009-02-18 22:47 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 584 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-18 22:47 ` Aditya Mahajan
@ 2009-02-18 23:27   ` Pau
  2009-02-18 23:42     ` Pau
  0 siblings, 1 reply; 11+ messages in thread
From: Pau @ 2009-02-18 23:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <adityam@umich.edu>:
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-18 23:27   ` Pau
@ 2009-02-18 23:42     ` Pau
  2009-02-19  8:02       ` Mojca Miklavec
                         ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Pau @ 2009-02-18 23:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-18 23:42     ` Pau
@ 2009-02-19  8:02       ` Mojca Miklavec
  2009-02-19  8:03       ` Wolfgang Schuster
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Mojca Miklavec @ 2009-02-19  8:02 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-18 23:42     ` Pau
  2009-02-19  8:02       ` Mojca Miklavec
@ 2009-02-19  8:03       ` Wolfgang Schuster
  2009-02-19  8:07       ` Alan Stone
  2009-02-19  8:08       ` Taco Hoekwater
  3 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2009-02-19  8:03 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-18 23:42     ` Pau
  2009-02-19  8:02       ` Mojca Miklavec
  2009-02-19  8:03       ` Wolfgang Schuster
@ 2009-02-19  8:07       ` Alan Stone
  2009-02-19  8:08       ` Taco Hoekwater
  3 siblings, 0 replies; 11+ messages in thread
From: Alan Stone @ 2009-02-19  8:07 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1078 bytes --]

On Thu, Feb 19, 2009 at 12:42 AM, Pau <vim.unix@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

-----------------------------------------------------------------------------------------------

[-- Attachment #1.2: Type: text/html, Size: 1684 bytes --]

[-- Attachment #2: spanish.pdf --]
[-- Type: application/pdf, Size: 4539 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-18 23:42     ` Pau
                         ` (2 preceding siblings ...)
  2009-02-19  8:07       ` Alan Stone
@ 2009-02-19  8:08       ` Taco Hoekwater
  2009-02-19 12:54         ` Pau
  3 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2009-02-19  8:08 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-19  8:08       ` Taco Hoekwater
@ 2009-02-19 12:54         ` Pau
  2009-02-19 14:03           ` Pau
  0 siblings, 1 reply; 11+ messages in thread
From: Pau @ 2009-02-19 12:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <taco@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-19 12:54         ` Pau
@ 2009-02-19 14:03           ` Pau
  2009-02-19 15:02             ` Arthur Reutenauer
  0 siblings, 1 reply; 11+ messages in thread
From: Pau @ 2009-02-19 14:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <vim.unix@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 <taco@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Inverted exclamation / question marks
  2009-02-19 14:03           ` Pau
@ 2009-02-19 15:02             ` Arthur Reutenauer
  0 siblings, 0 replies; 11+ messages in thread
From: Arthur Reutenauer @ 2009-02-19 15:02 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users

> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-02-19 15:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-18 22:40 Inverted exclamation / question marks Pau
2009-02-18 22:47 ` Aditya Mahajan
2009-02-18 23:27   ` Pau
2009-02-18 23:42     ` Pau
2009-02-19  8:02       ` Mojca Miklavec
2009-02-19  8:03       ` Wolfgang Schuster
2009-02-19  8:07       ` Alan Stone
2009-02-19  8:08       ` Taco Hoekwater
2009-02-19 12:54         ` Pau
2009-02-19 14:03           ` Pau
2009-02-19 15:02             ` Arthur Reutenauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).