[Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Jean-Marc Lasgouttes

Hello,

Can somebody help Eric? Please keep him in cc:

JMarc


---BeginMessage---
Hello:

  I have the same problem:

1) Need to write in Spanish
2) Need to use Lyx-Code
3) Minus sign is not being recognized 

I tried adding:  

\noshorthandsspanish

to the preamble or to the first line of the document (i.e. before title in 
article style) in an ERT box. None worked.
I had to do Ctrl-M on each minus sign.  This is not a good way of doing this.

Please help on getting 

\noshorthandsspanish

to work.

eric,


  
---End Message---


Re: [Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Paul A. Rubin

Jean-Marc Lasgouttes wrote:

Hello,

Can somebody help Eric? Please keep him in cc:

JMarc






Subject:
Re: LyX-Code env, bash source code, and Bad character code (-1)
From:
Eric Fuchs [EMAIL PROTECTED]
Date:
Tue, 2 Sep 2008 11:20:56 -0700 (PDT)
To:
[EMAIL PROTECTED]

To:
[EMAIL PROTECTED]

Return-Path:
[EMAIL PROTECTED]
Received:
from spooler10-g27.priv.proxad.net (LHLO spooler10-g27.priv.proxad.net) 
(172.20.243.231) by spooler10-g27.priv.proxad.net with LMTP; Tue, 2 Sep 
2008 20:21:17 +0200 (CEST)

Received:
from mrelay5-g25.free.fr (mrelay3-1.priv.proxad.net [172.20.243.16]) by 
spooler10-g27.priv.proxad.net (Postfix) with SMTP id 8C1037A3E14 for 
[EMAIL PROTECTED]; 
Tue, 2 Sep 2008 20:21:17 +0200 (CEST)

Received:
(qmail 15810 invoked by uid 8865147); 2 Sep 2008 18:21:17 -
Delivered-To:
[EMAIL PROTECTED]
Received:
(qmail 15794 invoked from network); 2 Sep 2008 18:21:17 -
Received:
from 62.70.27.115 (HELO aussie.lyx.org) (62.70.27.115) by 
mrelay3-1.free.fr with SMTP; 2 Sep 2008 18:21:17 -

Received:
from web50604.mail.re2.yahoo.com (web50604.mail.re2.yahoo.com 
[206.190.38.91]) by aussie.lyx.org (8.13.7/8.13.4) with SMTP id 
m82IKuWd008620 for [EMAIL PROTECTED]; Tue, 2 Sep 
2008 20:20:57 +0200

Received:
(qmail 672 invoked by uid 60001); 2 Sep 2008 18:20:56 -
DomainKey-Signature:
a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; 
h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; 
b=KGZKCiySot3kC0SQraTUxzFZWlgQgVMCt8qcHagmMklast+2ad3fsxTMAgZ6kM8bjYuRmLM60QqKA3KjpblFDDzHNyhqAga4VOLr9MgNXY+17aAo83R1W40fOPmuI1Z6sE4LdY0FdjwPk6eFyk5Q3n2v3moCJCJ0Qomhnc4vrTw=;

X-YMail-OSG:
SEV4j_MVM1lfrmLNiExop5L3AVch3Z7DnYSbNEBm2nNeUxfuOlfRl5_YlT6Jo5qsKqDTsmUWuAqyveEs6EoJgC8LAPcnjs5s00JE925NSQGzV1KgafmddUZQ_.Z1ZtdT6A--
Received:
from [201.192.67.138] by web50604.mail.re2.yahoo.com via HTTP; Tue, 02 
Sep 2008 11:20:56 PDT

X-Mailer:
YahooMailRC/1096.28 YahooMailWebService/0.7.218.2
Message-ID:
[EMAIL PROTECTED]
X-Spam-Status:
No, score=-0.7 required=5.0 tests=BAYES_00,DNS_FROM_RFC_POST, 
DNS_FROM_RFC_WHOIS autolearn=no version=3.0.6

X-Spam-Checker-Version:
SpamAssassin 3.0.6 (2005-12-07) on aussie.lyx.org
MIME-Version:
1.0


Hello:

  I have the same problem:

1) Need to write in Spanish
2) Need to use Lyx-Code
3) Minus sign is not being recognized 

I tried adding:  


\noshorthandsspanish

to the preamble or to the first line of the document (i.e. before title in 
article style) in an ERT box. None worked.
I had to do Ctrl-M on each minus sign.  This is not a good way of doing this.

Please help on getting 


\noshorthandsspanish

to work.

eric,


  


Sounds like it might be bug #2632 again 
(http://bugzilla.lyx.org/show_bug.cgi?id=2632).  Eric, can you try adding


[EMAIL PROTECTED]

to your document preamble and see if that solves the problem (without 
breaking something else)?


/Paul



[Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Jean-Marc Lasgouttes

Hello,

Can somebody help Eric? Please keep him in cc:

JMarc


---BeginMessage---
Hello:

  I have the same problem:

1) Need to write in Spanish
2) Need to use Lyx-Code
3) Minus sign is not being recognized 

I tried adding:  

\noshorthandsspanish

to the preamble or to the first line of the document (i.e. before title in 
article style) in an ERT box. None worked.
I had to do Ctrl-M on each minus sign.  This is not a good way of doing this.

Please help on getting 

\noshorthandsspanish

to work.

eric,


  
---End Message---


Re: [Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Paul A. Rubin

Jean-Marc Lasgouttes wrote:

Hello,

Can somebody help Eric? Please keep him in cc:

JMarc






Subject:
Re: LyX-Code env, bash source code, and Bad character code (-1)
From:
Eric Fuchs [EMAIL PROTECTED]
Date:
Tue, 2 Sep 2008 11:20:56 -0700 (PDT)
To:
[EMAIL PROTECTED]

To:
[EMAIL PROTECTED]

Return-Path:
[EMAIL PROTECTED]
Received:
from spooler10-g27.priv.proxad.net (LHLO spooler10-g27.priv.proxad.net) 
(172.20.243.231) by spooler10-g27.priv.proxad.net with LMTP; Tue, 2 Sep 
2008 20:21:17 +0200 (CEST)

Received:
from mrelay5-g25.free.fr (mrelay3-1.priv.proxad.net [172.20.243.16]) by 
spooler10-g27.priv.proxad.net (Postfix) with SMTP id 8C1037A3E14 for 
[EMAIL PROTECTED]; 
Tue, 2 Sep 2008 20:21:17 +0200 (CEST)

Received:
(qmail 15810 invoked by uid 8865147); 2 Sep 2008 18:21:17 -
Delivered-To:
[EMAIL PROTECTED]
Received:
(qmail 15794 invoked from network); 2 Sep 2008 18:21:17 -
Received:
from 62.70.27.115 (HELO aussie.lyx.org) (62.70.27.115) by 
mrelay3-1.free.fr with SMTP; 2 Sep 2008 18:21:17 -

Received:
from web50604.mail.re2.yahoo.com (web50604.mail.re2.yahoo.com 
[206.190.38.91]) by aussie.lyx.org (8.13.7/8.13.4) with SMTP id 
m82IKuWd008620 for [EMAIL PROTECTED]; Tue, 2 Sep 
2008 20:20:57 +0200

Received:
(qmail 672 invoked by uid 60001); 2 Sep 2008 18:20:56 -
DomainKey-Signature:
a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; 
h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; 
b=KGZKCiySot3kC0SQraTUxzFZWlgQgVMCt8qcHagmMklast+2ad3fsxTMAgZ6kM8bjYuRmLM60QqKA3KjpblFDDzHNyhqAga4VOLr9MgNXY+17aAo83R1W40fOPmuI1Z6sE4LdY0FdjwPk6eFyk5Q3n2v3moCJCJ0Qomhnc4vrTw=;

X-YMail-OSG:
SEV4j_MVM1lfrmLNiExop5L3AVch3Z7DnYSbNEBm2nNeUxfuOlfRl5_YlT6Jo5qsKqDTsmUWuAqyveEs6EoJgC8LAPcnjs5s00JE925NSQGzV1KgafmddUZQ_.Z1ZtdT6A--
Received:
from [201.192.67.138] by web50604.mail.re2.yahoo.com via HTTP; Tue, 02 
Sep 2008 11:20:56 PDT

X-Mailer:
YahooMailRC/1096.28 YahooMailWebService/0.7.218.2
Message-ID:
[EMAIL PROTECTED]
X-Spam-Status:
No, score=-0.7 required=5.0 tests=BAYES_00,DNS_FROM_RFC_POST, 
DNS_FROM_RFC_WHOIS autolearn=no version=3.0.6

X-Spam-Checker-Version:
SpamAssassin 3.0.6 (2005-12-07) on aussie.lyx.org
MIME-Version:
1.0


Hello:

  I have the same problem:

1) Need to write in Spanish
2) Need to use Lyx-Code
3) Minus sign is not being recognized 

I tried adding:  


\noshorthandsspanish

to the preamble or to the first line of the document (i.e. before title in 
article style) in an ERT box. None worked.
I had to do Ctrl-M on each minus sign.  This is not a good way of doing this.

Please help on getting 


\noshorthandsspanish

to work.

eric,


  


Sounds like it might be bug #2632 again 
(http://bugzilla.lyx.org/show_bug.cgi?id=2632).  Eric, can you try adding


[EMAIL PROTECTED]

to your document preamble and see if that solves the problem (without 
breaking something else)?


/Paul



[Eric Fuchs] Re: LyX-Code env, bash source code, and "Bad character code (-1)

2008-09-03 Thread Jean-Marc Lasgouttes

Hello,

Can somebody help Eric? Please keep him in cc:

JMarc


--- Begin Message ---
Hello:

  I have the same problem:

1) Need to write in Spanish
2) Need to use Lyx-Code
3) Minus sign is not being recognized 

I tried adding:  

\noshorthandsspanish

to the preamble or to the first line of the document (i.e. before title in 
article style) in an ERT box. None worked.
I had to do Ctrl-M on each minus sign.  This is not a good way of doing this.

Please help on getting 

\noshorthandsspanish

to work.

eric,


  
--- End Message ---


Re: [Eric Fuchs] Re: LyX-Code env, bash source code, and "Bad character code (-1)

2008-09-03 Thread Paul A. Rubin

Jean-Marc Lasgouttes wrote:

Hello,

Can somebody help Eric? Please keep him in cc:

JMarc






Subject:
Re: LyX-Code env, bash source code, and "Bad character code (-1)
From:
Eric Fuchs <[EMAIL PROTECTED]>
Date:
Tue, 2 Sep 2008 11:20:56 -0700 (PDT)
To:
[EMAIL PROTECTED]

To:
[EMAIL PROTECTED]

Return-Path:
[EMAIL PROTECTED]
Received:
from spooler10-g27.priv.proxad.net (LHLO spooler10-g27.priv.proxad.net) 
(172.20.243.231) by spooler10-g27.priv.proxad.net with LMTP; Tue, 2 Sep 
2008 20:21:17 +0200 (CEST)

Received:
from mrelay5-g25.free.fr (mrelay3-1.priv.proxad.net [172.20.243.16]) by 
spooler10-g27.priv.proxad.net (Postfix) with SMTP id 8C1037A3E14 for 
<[EMAIL PROTECTED]>; 
Tue, 2 Sep 2008 20:21:17 +0200 (CEST)

Received:
(qmail 15810 invoked by uid 8865147); 2 Sep 2008 18:21:17 -
Delivered-To:
[EMAIL PROTECTED]
Received:
(qmail 15794 invoked from network); 2 Sep 2008 18:21:17 -
Received:
from 62.70.27.115 (HELO aussie.lyx.org) (62.70.27.115) by 
mrelay3-1.free.fr with SMTP; 2 Sep 2008 18:21:17 -

Received:
from web50604.mail.re2.yahoo.com (web50604.mail.re2.yahoo.com 
[206.190.38.91]) by aussie.lyx.org (8.13.7/8.13.4) with SMTP id 
m82IKuWd008620 for <[EMAIL PROTECTED]>; Tue, 2 Sep 
2008 20:20:57 +0200

Received:
(qmail 672 invoked by uid 60001); 2 Sep 2008 18:20:56 -
DomainKey-Signature:
a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; 
h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; 
b=KGZKCiySot3kC0SQraTUxzFZWlgQgVMCt8qcHagmMklast+2ad3fsxTMAgZ6kM8bjYuRmLM60QqKA3KjpblFDDzHNyhqAga4VOLr9MgNXY+17aAo83R1W40fOPmuI1Z6sE4LdY0FdjwPk6eFyk5Q3n2v3moCJCJ0Qomhnc4vrTw=;

X-YMail-OSG:
SEV4j_MVM1lfrmLNiExop5L3AVch3Z7DnYSbNEBm2nNeUxfuOlfRl5_YlT6Jo5qsKqDTsmUWuAqyveEs6EoJgC8LAPcnjs5s00JE925NSQGzV1KgafmddUZQ_.Z1ZtdT6A--
Received:
from [201.192.67.138] by web50604.mail.re2.yahoo.com via HTTP; Tue, 02 
Sep 2008 11:20:56 PDT

X-Mailer:
YahooMailRC/1096.28 YahooMailWebService/0.7.218.2
Message-ID:
<[EMAIL PROTECTED]>
X-Spam-Status:
No, score=-0.7 required=5.0 tests=BAYES_00,DNS_FROM_RFC_POST, 
DNS_FROM_RFC_WHOIS autolearn=no version=3.0.6

X-Spam-Checker-Version:
SpamAssassin 3.0.6 (2005-12-07) on aussie.lyx.org
MIME-Version:
1.0


Hello:

  I have the same problem:

1) Need to write in Spanish
2) Need to use Lyx-Code
3) Minus sign is not being recognized 

I tried adding:  


\noshorthandsspanish

to the preamble or to the first line of the document (i.e. before title in 
article style) in an ERT box. None worked.
I had to do Ctrl-M on each minus sign.  This is not a good way of doing this.

Please help on getting 


\noshorthandsspanish

to work.

eric,


  


Sounds like it might be bug #2632 again 
(http://bugzilla.lyx.org/show_bug.cgi?id=2632).  Eric, can you try adding


[EMAIL PROTECTED]

to your document preamble and see if that solves the problem (without 
breaking something else)?


/Paul



Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-18 Thread Santiago Romero

Jean-Marc Lasgouttes wrote:

Santiago == Santiago Romero [EMAIL PROTECTED] writes:


Santiago  I've tried to add \noshorthandsspanish in the Document
Santiago Preamble (Document - Configuration - LaTeX Preamble), and
Santiago I get an error:

Santiago Undefined control sequence

Santiago  \noshorthandsspanish

Try to put it as ERT at the beginning of your document.

JMarc


 Sorry, I don't know what do you mean or how to do that :?


--
Santiago Romero



Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-18 Thread Jean-Marc Lasgouttes
 Santiago == Santiago Romero [EMAIL PROTECTED] writes:

Santiago Jean-Marc Lasgouttes wrote:
 Santiago == Santiago Romero [EMAIL PROTECTED]
 writes:

Santiago I've tried to add \noshorthandsspanish in the Document
Santiago Preamble (Document - Configuration - LaTeX Preamble), and
Santiago I get an error:

Santiago Undefined control sequence

Santiago \noshorthandsspanish
  Try to put it as ERT at the beginning of your document.

Santiago  Sorry, I don't know what do you mean or how to do that :?

Fair enough :)

- go to the top of the document

- click on the TeX icon (ERT means evil red text)

- enter \noshorthandsspanish in the box.

Now this \noshorthandsspanish command will be added explicitly to your
document.

Better?

JMarc


Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-18 Thread Santiago Romero

Jean-Marc Lasgouttes wrote:

Santiago == Santiago Romero [EMAIL PROTECTED] writes:


Santiago  I've tried to add \noshorthandsspanish in the Document
Santiago Preamble (Document - Configuration - LaTeX Preamble), and
Santiago I get an error:

Santiago Undefined control sequence

Santiago  \noshorthandsspanish

Try to put it as ERT at the beginning of your document.

JMarc


 Sorry, I don't know what do you mean or how to do that :?


--
Santiago Romero



Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-18 Thread Jean-Marc Lasgouttes
 Santiago == Santiago Romero [EMAIL PROTECTED] writes:

Santiago Jean-Marc Lasgouttes wrote:
 Santiago == Santiago Romero [EMAIL PROTECTED]
 writes:

Santiago I've tried to add \noshorthandsspanish in the Document
Santiago Preamble (Document - Configuration - LaTeX Preamble), and
Santiago I get an error:

Santiago Undefined control sequence

Santiago \noshorthandsspanish
  Try to put it as ERT at the beginning of your document.

Santiago  Sorry, I don't know what do you mean or how to do that :?

Fair enough :)

- go to the top of the document

- click on the TeX icon (ERT means evil red text)

- enter \noshorthandsspanish in the box.

Now this \noshorthandsspanish command will be added explicitly to your
document.

Better?

JMarc


Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-18 Thread Santiago Romero

Jean-Marc Lasgouttes wrote:

"Santiago" == Santiago Romero <[EMAIL PROTECTED]> writes:


Santiago>  I've tried to add \noshorthandsspanish in the Document
Santiago> Preamble (Document -> Configuration -> LaTeX Preamble), and
Santiago> I get an error:

Santiago> "Undefined control sequence

Santiago>  \noshorthandsspanish

Try to put it as ERT at the beginning of your document.

JMarc


 Sorry, I don't know what do you mean or how to do that :?


--
Santiago Romero



Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-18 Thread Jean-Marc Lasgouttes
> "Santiago" == Santiago Romero <[EMAIL PROTECTED]> writes:

Santiago> Jean-Marc Lasgouttes wrote:
>>> "Santiago" == Santiago Romero <[EMAIL PROTECTED]>
>>> writes:
>>
Santiago> I've tried to add \noshorthandsspanish in the Document
Santiago> Preamble (Document -> Configuration -> LaTeX Preamble), and
Santiago> I get an error:
>>
Santiago> "Undefined control sequence
>>
Santiago> \noshorthandsspanish
>>  Try to put it as ERT at the beginning of your document.

Santiago>  Sorry, I don't know what do you mean or how to do that :?

Fair enough :)

- go to the top of the document

- click on the TeX icon (ERT means "evil red text")

- enter \noshorthandsspanish in the box.

Now this \noshorthandsspanish command will be added explicitly to your
document.

Better?

JMarc


LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Santiago Romero


 Hi,

 I'm running LyX 1.4.3-2~edgy1 under kubuntu, and I have an strange
error that I don't remember to suffer in previous LyX versions (it's
been 1 year since last time I used LyX).

 I'm writing a document (book) and I need to include shell (bash)
source code embebed. I'm using the LyX-Code environment and pasting
the source code as lines.

 The problem is that I can't paste - characters. I mean, I paste
under LyX-Code the following source code:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec softlimit -m 300 \
(...)

 Then I select View - DVI and I get the following error in each
of the - (minus) signs of the above code:


Bad character code (-1)

QMAILDUID=`id~-u
 ~qmaild`
A character number must be between 0 and 255.
I changed this one to zero.


 (The same error for each of the - signs in my code).

 If I remember correctly, I've used - signs in my source code
into the Lyx-Code environment for years and I never got this
message ...

 Any idea of what I'm doing wrong? :?

 Thanks
--
Santiago Romero



Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Ingar Pareliussen
on. 17. januar 2007 12:47 skreiv Santiago Romero:
   Hi,
snip
   Then I select View - DVI and I get the following error in each
 of the - (minus) signs of the above code:

 
 Bad character code (-1)

 QMAILDUID=`id~-u
   ~qmaild`
 A character number must be between 0 and 255.
 I changed this one to zero.
 

   (The same error for each of the - signs in my code).

   If I remember correctly, I've used - signs in my source code
 into the Lyx-Code environment for years and I never got this
 message ...

   Any idea of what I'm doing wrong? :?

Well, I do not know why, but I think it might be a language issue. Try to set 
the LyX-Code as english. 

Ingar 


Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Jean-Marc Lasgouttes
 Santiago == Santiago Romero [EMAIL PROTECTED] writes:

Santiago  The problem is that I can't paste - characters. I mean, I
Santiago paste under LyX-Code the following source code:

Santiago #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild`
Santiago exec softlimit -m 300 \ (...)

Santiago  Then I select View - DVI and I get the following error in
Santiago each of the - (minus) signs of the above code:

Santiago  Bad character code (-1)

Santiago QMAILDUID=`id~-u ~qmaild` A character number must be between
Santiago 0 and 255. I changed this one to zero. 

Santiago  (The same error for each of the - signs in my code).

Santiago  If I remember correctly, I've used - signs in my source
Santiago code into the Lyx-Code environment for years and I never
Santiago got this message ...

Santiago  Any idea of what I'm doing wrong? :?

What you are doing wrong is write in Spanish :)

The Spanish mode makes the ~ character active so that people can type
~n for ñ and stuff like that. This is unfortunately not compatible
with LyX-Code where hard spaces are output as ~.

Try to add \noshorthandsspanish in the preamble.

JMarc




Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Santiago Romero



Santiago  Any idea of what I'm doing wrong? :?

What you are doing wrong is write in Spanish :)

The Spanish mode makes the ~ character active so that people can type
~n for ñ and stuff like that. This is unfortunately not compatible
with LyX-Code where hard spaces are output as ~.

Try to add \noshorthandsspanish in the preamble.


 You're right. If I change Document Language from Spanish to English,
then it works perfectly, although I read Chapter 1 instead of
Capitulo 1 in the resulting DVI file.

 I've tried to add \noshorthandsspanish in the Document Preamble
(Document - Configuration - LaTeX Preamble), and I get an error:

Undefined control sequence

 \noshorthandsspanish

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


 Any idea? :?

--
Santiago Romero



Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread killermike

Santiago Romero wrote:


 Hi,

 I'm running LyX 1.4.3-2~edgy1 under kubuntu, and I have an strange
error that I don't remember to suffer in previous LyX versions (it's
been 1 year since last time I used LyX).


I have a completely UK setup of Kubuntu and I have similar problems. If
I cut and paste some text from a website (firefox), any '-' characters
are pasted as '?'.

--
http://www.unmusic.co.uk - about me, music, geek sitcom etc.
http://www.unmusic.co.uk/amhs/ - alt.music.home-studio





Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Jean-Marc Lasgouttes
 Santiago == Santiago Romero [EMAIL PROTECTED] writes:

Santiago  I've tried to add \noshorthandsspanish in the Document
Santiago Preamble (Document - Configuration - LaTeX Preamble), and
Santiago I get an error:

Santiago Undefined control sequence

Santiago  \noshorthandsspanish

Try to put it as ERT at the beginning of your document.

JMarc


LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Santiago Romero


 Hi,

 I'm running LyX 1.4.3-2~edgy1 under kubuntu, and I have an strange
error that I don't remember to suffer in previous LyX versions (it's
been 1 year since last time I used LyX).

 I'm writing a document (book) and I need to include shell (bash)
source code embebed. I'm using the LyX-Code environment and pasting
the source code as lines.

 The problem is that I can't paste - characters. I mean, I paste
under LyX-Code the following source code:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec softlimit -m 300 \
(...)

 Then I select View - DVI and I get the following error in each
of the - (minus) signs of the above code:


Bad character code (-1)

QMAILDUID=`id~-u
 ~qmaild`
A character number must be between 0 and 255.
I changed this one to zero.


 (The same error for each of the - signs in my code).

 If I remember correctly, I've used - signs in my source code
into the Lyx-Code environment for years and I never got this
message ...

 Any idea of what I'm doing wrong? :?

 Thanks
--
Santiago Romero



Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Ingar Pareliussen
on. 17. januar 2007 12:47 skreiv Santiago Romero:
   Hi,
snip
   Then I select View - DVI and I get the following error in each
 of the - (minus) signs of the above code:

 
 Bad character code (-1)

 QMAILDUID=`id~-u
   ~qmaild`
 A character number must be between 0 and 255.
 I changed this one to zero.
 

   (The same error for each of the - signs in my code).

   If I remember correctly, I've used - signs in my source code
 into the Lyx-Code environment for years and I never got this
 message ...

   Any idea of what I'm doing wrong? :?

Well, I do not know why, but I think it might be a language issue. Try to set 
the LyX-Code as english. 

Ingar 


Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Jean-Marc Lasgouttes
 Santiago == Santiago Romero [EMAIL PROTECTED] writes:

Santiago  The problem is that I can't paste - characters. I mean, I
Santiago paste under LyX-Code the following source code:

Santiago #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild`
Santiago exec softlimit -m 300 \ (...)

Santiago  Then I select View - DVI and I get the following error in
Santiago each of the - (minus) signs of the above code:

Santiago  Bad character code (-1)

Santiago QMAILDUID=`id~-u ~qmaild` A character number must be between
Santiago 0 and 255. I changed this one to zero. 

Santiago  (The same error for each of the - signs in my code).

Santiago  If I remember correctly, I've used - signs in my source
Santiago code into the Lyx-Code environment for years and I never
Santiago got this message ...

Santiago  Any idea of what I'm doing wrong? :?

What you are doing wrong is write in Spanish :)

The Spanish mode makes the ~ character active so that people can type
~n for ñ and stuff like that. This is unfortunately not compatible
with LyX-Code where hard spaces are output as ~.

Try to add \noshorthandsspanish in the preamble.

JMarc




Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Santiago Romero



Santiago  Any idea of what I'm doing wrong? :?

What you are doing wrong is write in Spanish :)

The Spanish mode makes the ~ character active so that people can type
~n for ñ and stuff like that. This is unfortunately not compatible
with LyX-Code where hard spaces are output as ~.

Try to add \noshorthandsspanish in the preamble.


 You're right. If I change Document Language from Spanish to English,
then it works perfectly, although I read Chapter 1 instead of
Capitulo 1 in the resulting DVI file.

 I've tried to add \noshorthandsspanish in the Document Preamble
(Document - Configuration - LaTeX Preamble), and I get an error:

Undefined control sequence

 \noshorthandsspanish

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


 Any idea? :?

--
Santiago Romero



Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread killermike

Santiago Romero wrote:


 Hi,

 I'm running LyX 1.4.3-2~edgy1 under kubuntu, and I have an strange
error that I don't remember to suffer in previous LyX versions (it's
been 1 year since last time I used LyX).


I have a completely UK setup of Kubuntu and I have similar problems. If
I cut and paste some text from a website (firefox), any '-' characters
are pasted as '?'.

--
http://www.unmusic.co.uk - about me, music, geek sitcom etc.
http://www.unmusic.co.uk/amhs/ - alt.music.home-studio





Re: LyX-Code env, bash source code, and Bad character code (-1)

2007-01-17 Thread Jean-Marc Lasgouttes
 Santiago == Santiago Romero [EMAIL PROTECTED] writes:

Santiago  I've tried to add \noshorthandsspanish in the Document
Santiago Preamble (Document - Configuration - LaTeX Preamble), and
Santiago I get an error:

Santiago Undefined control sequence

Santiago  \noshorthandsspanish

Try to put it as ERT at the beginning of your document.

JMarc


LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-17 Thread Santiago Romero


 Hi,

 I'm running LyX 1.4.3-2~edgy1 under kubuntu, and I have an strange
error that I don't remember to suffer in previous LyX versions (it's
been 1 year since last time I used LyX).

 I'm writing a document (book) and I need to include shell (bash)
source code embebed. I'm using the LyX-Code environment and pasting
the source code as lines.

 The problem is that I can't paste "-" characters. I mean, I paste
under LyX-Code the following source code:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec softlimit -m 300 \
(...)

 Then I select View -> DVI and I get the following error in each
of the - (minus) signs of the above code:

"
Bad character code (-1)

QMAILDUID=`id~-u
 ~qmaild`
A character number must be between 0 and 255.
I changed this one to zero.
"

 (The same error for each of the "-" signs in my code).

 If I remember correctly, I've used "-" signs in my source code
into the "Lyx-Code" environment for years and I never got this
message ...

 Any idea of what I'm doing wrong? :?

 Thanks
--
Santiago Romero



Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-17 Thread Ingar Pareliussen
on. 17. januar 2007 12:47 skreiv Santiago Romero:
>   Hi,

>   Then I select View -> DVI and I get the following error in each
> of the - (minus) signs of the above code:
>
> "
> Bad character code (-1)
>
> QMAILDUID=`id~-u
>   ~qmaild`
> A character number must be between 0 and 255.
> I changed this one to zero.
> "
>
>   (The same error for each of the "-" signs in my code).
>
>   If I remember correctly, I've used "-" signs in my source code
> into the "Lyx-Code" environment for years and I never got this
> message ...
>
>   Any idea of what I'm doing wrong? :?

Well, I do not know why, but I think it might be a language issue. Try to set 
the LyX-Code as english. 

Ingar 


Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-17 Thread Jean-Marc Lasgouttes
> "Santiago" == Santiago Romero <[EMAIL PROTECTED]> writes:

Santiago>  The problem is that I can't paste "-" characters. I mean, I
Santiago> paste under LyX-Code the following source code:

Santiago> #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild`
Santiago> exec softlimit -m 300 \ (...)

Santiago>  Then I select View -> DVI and I get the following error in
Santiago> each of the - (minus) signs of the above code:

Santiago> " Bad character code (-1)

Santiago> QMAILDUID=`id~-u ~qmaild` A character number must be between
Santiago> 0 and 255. I changed this one to zero. "

Santiago>  (The same error for each of the "-" signs in my code).

Santiago>  If I remember correctly, I've used "-" signs in my source
Santiago> code into the "Lyx-Code" environment for years and I never
Santiago> got this message ...

Santiago>  Any idea of what I'm doing wrong? :?

What you are doing wrong is write in Spanish :)

The Spanish mode makes the ~ character active so that people can type
~n for ñ and stuff like that. This is unfortunately not compatible
with LyX-Code where hard spaces are output as ~.

Try to add \noshorthandsspanish in the preamble.

JMarc




Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-17 Thread Santiago Romero



Santiago>  Any idea of what I'm doing wrong? :?

What you are doing wrong is write in Spanish :)

The Spanish mode makes the ~ character active so that people can type
~n for ñ and stuff like that. This is unfortunately not compatible
with LyX-Code where hard spaces are output as ~.

Try to add \noshorthandsspanish in the preamble.


 You're right. If I change Document Language from Spanish to English,
then it works perfectly, although I read "Chapter 1" instead of
"Capitulo 1" in the resulting DVI file.

 I've tried to add \noshorthandsspanish in the Document Preamble
(Document -> Configuration -> LaTeX Preamble), and I get an error:

"Undefined control sequence

 \noshorthandsspanish

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
"

 Any idea? :?

--
Santiago Romero



Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-17 Thread killermike

Santiago Romero wrote:


 Hi,

 I'm running LyX 1.4.3-2~edgy1 under kubuntu, and I have an strange
error that I don't remember to suffer in previous LyX versions (it's
been 1 year since last time I used LyX).


I have a completely UK setup of Kubuntu and I have similar problems. If
I cut and paste some text from a website (firefox), any '-' characters
are pasted as '?'.

--
http://www.unmusic.co.uk - about me, music, geek sitcom etc.
http://www.unmusic.co.uk/amhs/ - alt.music.home-studio





Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-17 Thread Jean-Marc Lasgouttes
> "Santiago" == Santiago Romero <[EMAIL PROTECTED]> writes:

Santiago>  I've tried to add \noshorthandsspanish in the Document
Santiago> Preamble (Document -> Configuration -> LaTeX Preamble), and
Santiago> I get an error:

Santiago> "Undefined control sequence

Santiago>  \noshorthandsspanish

Try to put it as ERT at the beginning of your document.

JMarc