Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Helge Hafting

Marcelo Acuña wrote:


I inteded this with a little file and ~ in an ERT
no work. I put ~, or \~, ~---, and several others
variants and I can´t get that one work.
What I make bad?
 


Didn't you read my post? It won't work in LyX
because the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document
language.

According to the cvs log, this has been done in
order to fix a bug with ñ.

Jürgen

   


Escuse me Jürgen. Yes, I read your post, but I read
too the Helge post and I understanded that in this
mode tilde work. 
Marcelo



What  I tested was this:
1. The search and replace using an editor actually results in a file
   that lyx can read back in.
2. Lyx was ablt to produce a .dvi from the new file.  I assumed the ~---
   would work, because that was what you wanted.  My searchreplace
   recipe was just a way to do a mass change - I got the impression that
   you had lots of em-dashes.

Now, if lyx adds a problematic line to the preamble, this won't work
too well.  But you can work around that:
1. Instead of printing/making pdf directly, export-latex in lyx.
2. Remove the offending line from the .tex file
3. Run latex or pdflatex manually to get output.

This deavtivation of ~ can be fixed in lyx, but expact that to take
some time.  In the meantime, this can probably be fixed by
defining a converter.  You can then have the converter removing
the line (using grep perhaps) and then run the usual latex/pdflatex
commands.  Basically the same workaround as above, but automated.

Helge Hafting


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Juergen Spitzmueller
Helge Hafting wrote:
 This deavtivation of ~ can be fixed in lyx, but expact that to take
 some time. 

I doubt it will be fixed, because it is a fix itself.

 In the meantime, this can probably be fixed by 
 defining a converter.

An easier solution is to remove the extra line in the file languages, where 
it is defined. I.e., place the attached file in your HOME/.lyx directory.

But note that this will trigger the bug which has been fixed by this line, 
i.e. ~ in ERT is not a protected space, but an active character.

HTH,
Jürgen
# name  babel name  GUI nameRTL?   encoding   code  latex options
afrikaans   afrikaans   Afrikaans false  iso8859-1  af_ZA  
americanamericanAmerican  false  iso8859-1  en_US  
arabic  arabic  Arabictrue   iso8859-6  ar 
austrianaustrianAustrian  false  iso8859-1  de_AU  
bahasa  bahasa  Bahasafalse  iso8859-1  in_ID  
belarusian  belarusian  Belarusianfalse  cp1251 be 
basque  basque  Basquefalse  iso8859-1  eu_ES  
brazil  brazil  Portuguese (Brazil)   false  iso8859-1  pt_BR  
breton  breton  Bretonfalse  iso8859-1  br_FR  
british british British   false  iso8859-1  en_GB  
bulgarian   bulgarian   Bulgarian false  cp1251 bg 
canadiancanadianCanadian  false  iso8859-1  en_CA  
canadienfrenchb   French Canadian false  iso8859-1  fr_CA  
catalan catalan Catalan   false  iso8859-1  ca_ES  
croatiancroatianCroatian  false  iso8859-2  hr 
czech   czech   Czech false  iso8859-2  cs_CZ  
danish  danish  Danishfalse  iso8859-1  da_DK  
dutch   dutch   Dutch false  iso8859-1  nl 
english english English   false  iso8859-1  en 
esperanto   esperanto   Esperanto false  iso8859-3  eo 
#and what country code should esperanto have?? (Garst)
estonianestonianEstonian  false  iso8859-1  et_EE  
finnish finnish Finnish   false  iso8859-1  fi 
frenchb frenchb Frenchfalse  iso8859-1  fr 
french  french French (GUTenberg) false  iso8859-1  fr 
galiciangalicianGalician  false  iso8859-1  gl_ES  
# There are two Galicia's one in Spain one in E.Europe. Because of
# the font encoding I am assuming this is the one in Spain. (Garst)
german  german  Germanfalse  iso8859-15  de
ngerman ngerman German (new spelling) false  iso8859-15  de
greek   greek   Greek false  iso8859-7  el_GR  
hebrew  hebrew  Hebrewtrue   cp1255 he_IL  
#hungarian   hungarian  Hungarian false  iso8859-2   
icelandic   icelandic   Icelandic false  iso8859-1  is_IS  
irish   irish   Irish false  iso8859-1  ga_IE  
italian italian Italian   false  iso8859-1  it 
kazakh  kazakh  Kazakhfalse  pt154  kk 
latvian latvian Latvian   false  iso8859-13 lv_LV  
lithuanian  lithuanian  Lithuanianfalse  iso8859-13 lt_LT  
lsorbianlsorbianLsorbian  false  iso8859-2   
# no ISO listing for lsorbian (Garst)
magyar  magyar  Magyarfalse  iso8859-2  hu 
norsk   norsk   Norsk false  iso8859-1  no_NO  
nynorsk nynorsk Nynorsk   false  iso8859-1  nn_NO  
polish  polish  Polishfalse  iso8859-2  pl 
portugesportugesPortugese false  iso8859-1  pt 
romanianromanianRomanian  false  iso8859-2  ro 
russian russian Russian   false  koi8   ru 
scottishscottishScottish  false  iso8859-1  gd_GB  
serbian croatian Serbian  false  iso8859-5  sr 
serbocroatian croatian Serbo-Croatian false iso8859-2 sh 
spanish spanish Spanish   false  iso8859-1  es 
slovak  slovak  Slovakfalse  iso8859-2  sk_SK  
slovene slovene Slovene   false  iso8859-2  sl_SI  
swedish swedish Swedish   false  iso8859-1  sv_SE  
thaithaiThai  false  tis620-0   th_TH  
\usepackage{thswitch}
turkish turkish Turkish   false  iso8859-9  tr 
ukrainian   ukrainian   Ukrainian false  koi8-u uk 
usorbianusorbianUsorbian  false  iso8859-2   
# no ISO listing for usorbian (Garst)
welsh   welsh   Welsh false  iso8859-1 cy_GB   


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote:
 But note that this will trigger the bug which has been fixed by this line,
 i.e. ~ in ERT is not a protected space, but an active character.

protected space will be broken in general, to be precise. I.e., foo_na (where 
_ is a protected space) will result in fooña.

So be careful.

Jürgen


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Jean-Marc Lasgouttes
 Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes:

Juergen Juergen Spitzmueller wrote:
 But note that this will trigger the bug which has been fixed by
 this line, i.e. ~ in ERT is not a protected space, but an active
 character.

Juergen protected space will be broken in general, to be precise.
Juergen I.e., foo_na (where _ is a protected space) will result in
Juergen fooña.

I see now that spanish.ldf provides a \deactivatetilden macro that
deactivates only ~n and ~N.

Anyway, instead of making people rely on these shortcuts, we should
probably have support for a special character that disables line
breaks (is that \nobreak?)

JMarc


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Helge Hafting

Marcelo Acuña wrote:


I inteded this with a little file and ~ in an ERT
no work. I put ~, or \~, ~---, and several others
variants and I can´t get that one work.
What I make bad?
 


Didn't you read my post? It won't work in LyX
because the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document
language.

According to the cvs log, this has been done in
order to fix a bug with ñ.

Jürgen

   


Escuse me Jürgen. Yes, I read your post, but I read
too the Helge post and I understanded that in this
mode tilde work. 
Marcelo



What  I tested was this:
1. The search and replace using an editor actually results in a file
   that lyx can read back in.
2. Lyx was ablt to produce a .dvi from the new file.  I assumed the ~---
   would work, because that was what you wanted.  My searchreplace
   recipe was just a way to do a mass change - I got the impression that
   you had lots of em-dashes.

Now, if lyx adds a problematic line to the preamble, this won't work
too well.  But you can work around that:
1. Instead of printing/making pdf directly, export-latex in lyx.
2. Remove the offending line from the .tex file
3. Run latex or pdflatex manually to get output.

This deavtivation of ~ can be fixed in lyx, but expact that to take
some time.  In the meantime, this can probably be fixed by
defining a converter.  You can then have the converter removing
the line (using grep perhaps) and then run the usual latex/pdflatex
commands.  Basically the same workaround as above, but automated.

Helge Hafting


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Juergen Spitzmueller
Helge Hafting wrote:
 This deavtivation of ~ can be fixed in lyx, but expact that to take
 some time. 

I doubt it will be fixed, because it is a fix itself.

 In the meantime, this can probably be fixed by 
 defining a converter.

An easier solution is to remove the extra line in the file languages, where 
it is defined. I.e., place the attached file in your HOME/.lyx directory.

But note that this will trigger the bug which has been fixed by this line, 
i.e. ~ in ERT is not a protected space, but an active character.

HTH,
Jürgen
# name  babel name  GUI nameRTL?   encoding   code  latex options
afrikaans   afrikaans   Afrikaans false  iso8859-1  af_ZA  
americanamericanAmerican  false  iso8859-1  en_US  
arabic  arabic  Arabictrue   iso8859-6  ar 
austrianaustrianAustrian  false  iso8859-1  de_AU  
bahasa  bahasa  Bahasafalse  iso8859-1  in_ID  
belarusian  belarusian  Belarusianfalse  cp1251 be 
basque  basque  Basquefalse  iso8859-1  eu_ES  
brazil  brazil  Portuguese (Brazil)   false  iso8859-1  pt_BR  
breton  breton  Bretonfalse  iso8859-1  br_FR  
british british British   false  iso8859-1  en_GB  
bulgarian   bulgarian   Bulgarian false  cp1251 bg 
canadiancanadianCanadian  false  iso8859-1  en_CA  
canadienfrenchb   French Canadian false  iso8859-1  fr_CA  
catalan catalan Catalan   false  iso8859-1  ca_ES  
croatiancroatianCroatian  false  iso8859-2  hr 
czech   czech   Czech false  iso8859-2  cs_CZ  
danish  danish  Danishfalse  iso8859-1  da_DK  
dutch   dutch   Dutch false  iso8859-1  nl 
english english English   false  iso8859-1  en 
esperanto   esperanto   Esperanto false  iso8859-3  eo 
#and what country code should esperanto have?? (Garst)
estonianestonianEstonian  false  iso8859-1  et_EE  
finnish finnish Finnish   false  iso8859-1  fi 
frenchb frenchb Frenchfalse  iso8859-1  fr 
french  french French (GUTenberg) false  iso8859-1  fr 
galiciangalicianGalician  false  iso8859-1  gl_ES  
# There are two Galicia's one in Spain one in E.Europe. Because of
# the font encoding I am assuming this is the one in Spain. (Garst)
german  german  Germanfalse  iso8859-15  de
ngerman ngerman German (new spelling) false  iso8859-15  de
greek   greek   Greek false  iso8859-7  el_GR  
hebrew  hebrew  Hebrewtrue   cp1255 he_IL  
#hungarian   hungarian  Hungarian false  iso8859-2   
icelandic   icelandic   Icelandic false  iso8859-1  is_IS  
irish   irish   Irish false  iso8859-1  ga_IE  
italian italian Italian   false  iso8859-1  it 
kazakh  kazakh  Kazakhfalse  pt154  kk 
latvian latvian Latvian   false  iso8859-13 lv_LV  
lithuanian  lithuanian  Lithuanianfalse  iso8859-13 lt_LT  
lsorbianlsorbianLsorbian  false  iso8859-2   
# no ISO listing for lsorbian (Garst)
magyar  magyar  Magyarfalse  iso8859-2  hu 
norsk   norsk   Norsk false  iso8859-1  no_NO  
nynorsk nynorsk Nynorsk   false  iso8859-1  nn_NO  
polish  polish  Polishfalse  iso8859-2  pl 
portugesportugesPortugese false  iso8859-1  pt 
romanianromanianRomanian  false  iso8859-2  ro 
russian russian Russian   false  koi8   ru 
scottishscottishScottish  false  iso8859-1  gd_GB  
serbian croatian Serbian  false  iso8859-5  sr 
serbocroatian croatian Serbo-Croatian false iso8859-2 sh 
spanish spanish Spanish   false  iso8859-1  es 
slovak  slovak  Slovakfalse  iso8859-2  sk_SK  
slovene slovene Slovene   false  iso8859-2  sl_SI  
swedish swedish Swedish   false  iso8859-1  sv_SE  
thaithaiThai  false  tis620-0   th_TH  
\usepackage{thswitch}
turkish turkish Turkish   false  iso8859-9  tr 
ukrainian   ukrainian   Ukrainian false  koi8-u uk 
usorbianusorbianUsorbian  false  iso8859-2   
# no ISO listing for usorbian (Garst)
welsh   welsh   Welsh false  iso8859-1 cy_GB   


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote:
 But note that this will trigger the bug which has been fixed by this line,
 i.e. ~ in ERT is not a protected space, but an active character.

protected space will be broken in general, to be precise. I.e., foo_na (where 
_ is a protected space) will result in fooña.

So be careful.

Jürgen


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Jean-Marc Lasgouttes
 Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes:

Juergen Juergen Spitzmueller wrote:
 But note that this will trigger the bug which has been fixed by
 this line, i.e. ~ in ERT is not a protected space, but an active
 character.

Juergen protected space will be broken in general, to be precise.
Juergen I.e., foo_na (where _ is a protected space) will result in
Juergen fooña.

I see now that spanish.ldf provides a \deactivatetilden macro that
deactivates only ~n and ~N.

Anyway, instead of making people rely on these shortcuts, we should
probably have support for a special character that disables line
breaks (is that \nobreak?)

JMarc


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Helge Hafting

Marcelo Acuña wrote:


I inteded this with a little file and ~ in an ERT
no work. I put ~, or \~, ~---, and several others
variants and I can´t get that one work.
What I make bad?
 


Didn't you read my post? It won't work in LyX
because the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document
language.

According to the cvs log, this has been done in
order to fix a bug with ñ.

Jürgen

   


Escuse me Jürgen. Yes, I read your post, but I read
too the Helge post and I understanded that in this
mode tilde work. 
Marcelo



What  I tested was this:
1. The search and replace using an editor actually results in a file
   that lyx can read back in.
2. Lyx was ablt to produce a .dvi from the new file.  I assumed the ~---
   would work, because that was what you wanted.  My search
   recipe was just a way to do a mass change - I got the impression that
   you had lots of em-dashes.

Now, if lyx adds a problematic line to the preamble, this won't work
too well.  But you can work around that:
1. Instead of printing/making pdf directly, export->latex in lyx.
2. Remove the offending line from the .tex file
3. Run latex or pdflatex manually to get output.

This deavtivation of "~" can be fixed in lyx, but expact that to take
some time.  In the meantime, this can probably be fixed by
defining a converter.  You can then have the converter removing
the line (using grep perhaps) and then run the usual latex/pdflatex
commands.  Basically the same workaround as above, but automated.

Helge Hafting


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Juergen Spitzmueller
Helge Hafting wrote:
> This deavtivation of "~" can be fixed in lyx, but expact that to take
> some time. 

I doubt it will be fixed, because it is a fix itself.

> In the meantime, this can probably be fixed by 
> defining a converter.

An easier solution is to remove the extra line in the file "languages", where 
it is defined. I.e., place the attached file in your /.lyx directory.

But note that this will trigger the bug which has been fixed by this line, 
i.e. ~ in ERT is not a protected space, but an active character.

HTH,
Jürgen
# name  babel name  GUI nameRTL?   encoding   code  latex options
afrikaans   afrikaans   "Afrikaans" false  iso8859-1  af_ZA  ""
americanamerican"American"  false  iso8859-1  en_US  ""
arabic  arabic  "Arabic"true   iso8859-6  ar ""
austrianaustrian"Austrian"  false  iso8859-1  de_AU  ""
bahasa  bahasa  "Bahasa"false  iso8859-1  in_ID  ""
belarusian  belarusian  "Belarusian"false  cp1251 be ""
basque  basque  "Basque"false  iso8859-1  eu_ES  ""
brazil  brazil  "Portuguese (Brazil)"   false  iso8859-1  pt_BR  ""
breton  breton  "Breton"false  iso8859-1  br_FR  ""
british british "British"   false  iso8859-1  en_GB  ""
bulgarian   bulgarian   "Bulgarian" false  cp1251 bg ""
canadiancanadian"Canadian"  false  iso8859-1  en_CA  ""
canadienfrenchb   "French Canadian" false  iso8859-1  fr_CA  ""
catalan catalan "Catalan"   false  iso8859-1  ca_ES  ""
croatiancroatian"Croatian"  false  iso8859-2  hr ""
czech   czech   "Czech" false  iso8859-2  cs_CZ  ""
danish  danish  "Danish"false  iso8859-1  da_DK  ""
dutch   dutch   "Dutch" false  iso8859-1  nl ""
english english "English"   false  iso8859-1  en ""
esperanto   esperanto   "Esperanto" false  iso8859-3  eo ""
#and what country code should esperanto have?? (Garst)
estonianestonian"Estonian"  false  iso8859-1  et_EE  ""
finnish finnish "Finnish"   false  iso8859-1  fi ""
frenchb frenchb "French"false  iso8859-1  fr ""
french  french "French (GUTenberg)" false  iso8859-1  fr ""
galiciangalician"Galician"  false  iso8859-1  gl_ES  ""
# There are two Galicia's one in Spain one in E.Europe. Because of
# the font encoding I am assuming this is the one in Spain. (Garst)
german  german  "German"false  iso8859-15  de""
ngerman ngerman "German (new spelling)" false  iso8859-15  de""
greek   greek   "Greek" false  iso8859-7  el_GR  ""
hebrew  hebrew  "Hebrew"true   cp1255 he_IL  ""
#hungarian   hungarian  "Hungarian" false  iso8859-2  "" ""
icelandic   icelandic   "Icelandic" false  iso8859-1  is_IS  ""
irish   irish   "Irish" false  iso8859-1  ga_IE  ""
italian italian "Italian"   false  iso8859-1  it ""
kazakh  kazakh  "Kazakh"false  pt154  kk ""
latvian latvian "Latvian"   false  iso8859-13 lv_LV  ""
lithuanian  lithuanian  "Lithuanian"false  iso8859-13 lt_LT  ""
lsorbianlsorbian"Lsorbian"  false  iso8859-2  "" ""
# no ISO listing for lsorbian (Garst)
magyar  magyar  "Magyar"false  iso8859-2  hu ""
norsk   norsk   "Norsk" false  iso8859-1  no_NO  ""
nynorsk nynorsk "Nynorsk"   false  iso8859-1  nn_NO  ""
polish  polish  "Polish"false  iso8859-2  pl ""
portugesportuges"Portugese" false  iso8859-1  pt ""
romanianromanian"Romanian"  false  iso8859-2  ro ""
russian russian "Russian"   false  koi8   ru ""
scottishscottish"Scottish"  false  iso8859-1  gd_GB  ""
serbian croatian "Serbian"  false  iso8859-5  sr ""
serbocroatian croatian "Serbo-Croatian" false iso8859-2 sh ""
spanish spanish "Spanish"   false  iso8859-1  es ""
slovak  slovak  "Slovak"false  iso8859-2  sk_SK  ""
slovene slovene "Slovene"   false  iso8859-2  sl_SI  ""
swedish swedish "Swedish"   false  iso8859-1  sv_SE  ""
thaithai"Thai"  false  tis620-0   th_TH  
"\usepackage{thswitch}"
turkish turkish "Turkish"   false  iso8859-9  tr ""
ukrainian   ukrainian   "Ukrainian" false  koi8-u uk ""
usorbianusorbian"Usorbian"  false  iso8859-2  "" ""
# no ISO listing for usorbian (Garst)
welsh   welsh   "Welsh" false  iso8859-1 cy_GB   ""


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote:
> But note that this will trigger the bug which has been fixed by this line,
> i.e. ~ in ERT is not a protected space, but an active character.

protected space will be broken in general, to be precise. I.e., foo_na (where 
_ is a protected space) will result in fooña.

So be careful.

Jürgen


Re: --- em dash without hyphenation, global setting

2006-03-06 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

Juergen> Juergen Spitzmueller wrote:
>> But note that this will trigger the bug which has been fixed by
>> this line, i.e. ~ in ERT is not a protected space, but an active
>> character.

Juergen> protected space will be broken in general, to be precise.
Juergen> I.e., foo_na (where _ is a protected space) will result in
Juergen> fooña.

I see now that spanish.ldf provides a \deactivatetilden macro that
deactivates only ~n and ~N.

Anyway, instead of making people rely on these shortcuts, we should
probably have support for a special character that disables line
breaks (is that \nobreak?)

JMarc


Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Juergen Spitzmueller
Marcelo Acuña wrote:
 I inteded this with a little file and ~ in an ERT
 no work. I put ~, or \~, ~---, and several others
 variants and I can´t get that one work.
 What I make bad?

Didn't you read my post? It won't work in LyX because the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

According to the cvs log, this has been done in order to fix a bug with ñ.

Jürgen


Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Jean-Marc Lasgouttes
 Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes:

Juergen Didn't you read my post? It won't work in LyX because the
Juergen line [EMAIL PROTECTED] to the preamble
Juergen if Spanish is selected as document language.

Juergen According to the cvs log, this has been done in order to fix
Juergen a bug with ñ.

This was because otherwise ~n in LyX-Code would give ñ.

In general, I think we should avoid to use these shortcuts in LyX,
since most of them are designed as convenient shortcuts for things
that can be done in another way.

We could also define for each language the list of shortcuts defined
by babel and be careful about the code we output when we know these
shortcuts could interfere.

JMarc


Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Marcelo Acuña
  I inteded this with a little file and ~ in an ERT
  no work. I put ~, or \~, ~---, and several others
  variants and I can´t get that one work.
  What I make bad?
 
 Didn't you read my post? It won't work in LyX
 because the line
 [EMAIL PROTECTED]
 to the preamble if Spanish is selected as document
 language.
 
 According to the cvs log, this has been done in
 order to fix a bug with ñ.
 
 Jürgen
 
Escuse me Jürgen. Yes, I read your post, but I read
too the Helge post and I understanded that in this
mode tilde work. 
Marcelo






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Juergen Spitzmueller
Marcelo Acuña wrote:
 I inteded this with a little file and ~ in an ERT
 no work. I put ~, or \~, ~---, and several others
 variants and I can´t get that one work.
 What I make bad?

Didn't you read my post? It won't work in LyX because the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

According to the cvs log, this has been done in order to fix a bug with ñ.

Jürgen


Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Jean-Marc Lasgouttes
 Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes:

Juergen Didn't you read my post? It won't work in LyX because the
Juergen line [EMAIL PROTECTED] to the preamble
Juergen if Spanish is selected as document language.

Juergen According to the cvs log, this has been done in order to fix
Juergen a bug with ñ.

This was because otherwise ~n in LyX-Code would give ñ.

In general, I think we should avoid to use these shortcuts in LyX,
since most of them are designed as convenient shortcuts for things
that can be done in another way.

We could also define for each language the list of shortcuts defined
by babel and be careful about the code we output when we know these
shortcuts could interfere.

JMarc


Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Marcelo Acuña
  I inteded this with a little file and ~ in an ERT
  no work. I put ~, or \~, ~---, and several others
  variants and I can´t get that one work.
  What I make bad?
 
 Didn't you read my post? It won't work in LyX
 because the line
 [EMAIL PROTECTED]
 to the preamble if Spanish is selected as document
 language.
 
 According to the cvs log, this has been done in
 order to fix a bug with ñ.
 
 Jürgen
 
Escuse me Jürgen. Yes, I read your post, but I read
too the Helge post and I understanded that in this
mode tilde work. 
Marcelo






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Juergen Spitzmueller
Marcelo Acuña wrote:
> I inteded this with a little file and ~ in an ERT
> no work. I put ~, or \~, ~---, and several others
> variants and I can´t get that one work.
> What I make bad?

Didn't you read my post? It won't work in LyX because the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

According to the cvs log, this has been done in order to fix a bug with ñ.

Jürgen


Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

Juergen> Didn't you read my post? It won't work in LyX because the
Juergen> line [EMAIL PROTECTED] to the preamble
Juergen> if Spanish is selected as document language.

Juergen> According to the cvs log, this has been done in order to fix
Juergen> a bug with ñ.

This was because otherwise ~n in LyX-Code would give ñ.

In general, I think we should avoid to use these shortcuts in LyX,
since most of them are designed as convenient shortcuts for things
that can be done in another way.

We could also define for each language the list of shortcuts defined
by babel and be careful about the code we output when we know these
shortcuts could interfere.

JMarc


Re: --- em dash without hyphenation, global setting

2006-03-03 Thread Marcelo Acuña
> > I inteded this with a little file and ~ in an ERT
> > no work. I put ~, or \~, ~---, and several others
> > variants and I can´t get that one work.
> > What I make bad?
> 
> Didn't you read my post? It won't work in LyX
> because the line
> [EMAIL PROTECTED]
> to the preamble if Spanish is selected as document
> language.
> 
> According to the cvs log, this has been done in
> order to fix a bug with ñ.
> 
> Jürgen
> 
Escuse me Jürgen. Yes, I read your post, but I read
too the Helge post and I understanded that in this
mode tilde work. 
Marcelo






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-02 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and
 


I
   


need a global setting.


 


I think it is not possible to redefine --- without
changing the font metrics.
   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?


 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes

wrong.
1. Look at the lyx file, check what an ERT
containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view-dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up babel right should be as
simple
as setting the document language to spanish.

Helge Hafting

   


Helge, what good text editor ---in Linux--- can I to
use for this?
 


Many will do this, I just tested it with vim.

(If you haven't used vi-like editors such as vim,
be aware that they have two modes, and start up
in a modus where you can't actually type in text.
This is not really a problem, but confuses newbies.)

vim does searchreplace when you type the command
:%s/text to search for/replacement text/g

In your case, you need linebreaks in the replacement
text.  A linebreak is written as \r
i.e.

:%s/searchstring/two\rlines/g
will replace
searchstring
with
two
lines


The backslash is special, it is used to encode
things like linebreaks and other specials. In order to
use an actual backslash (for \begin) you type two
backslashes.

So make a backup copy of your lyx file, then do a
vim myfile.lyx
on the command line, to open the file.
Then type
:%s/---/\\begin_inset ERT\rstatus collapsed\r\r\\begin_layout 
Standard\r\~---\r\\end_layout\r\r\\end_inset\r\r/g

Now that is an incredibly long line,
but don't worry about that.  Just type it,
and press enter. (If your mailer broke the line,
take care to reconstruct it properly without missing
a possible space characters at the break.)
vim will hopefulle tell you that it did a lot of
replacements.  Then save (write) and quit vim with the
command
:wq

Then try opening your file in lyx again, and try view-dvi.

This works for me (lyx 1.4.0).  I get fewer breaks between
text and emdash, but those bad breaks aren't completely
eliminated.  But then, I tried with 4 columns to get lots of
breaks.  It was probably too narrow sometimes.

If it don't work - check that you entered the replace command
correctly.  If this fails with some earlier version of lyx, just
make a test document containing ~--- in ERT and see how
your LyX stores that in the .lyx file.
Then modify the replacement command and try again.

Helge Hafting


Re: --- em dash without hyphenation, global setting

2006-03-02 Thread Marcelo Acuña
 You can get this in lyx by writing your em-dashes
 as ERT.  I.e. write the ~--- in ERT, and leave
 the rest of the text normal. 
 
I inteded this with a little file and ~ in an ERT
no work. I put ~, or \~, ~---, and several others
variants and I can´t get that one work.
What I make bad?
Marcelo






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-02 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and
 


I
   


need a global setting.


 


I think it is not possible to redefine --- without
changing the font metrics.
   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?


 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes

wrong.
1. Look at the lyx file, check what an ERT
containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view-dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up babel right should be as
simple
as setting the document language to spanish.

Helge Hafting

   


Helge, what good text editor ---in Linux--- can I to
use for this?
 


Many will do this, I just tested it with vim.

(If you haven't used vi-like editors such as vim,
be aware that they have two modes, and start up
in a modus where you can't actually type in text.
This is not really a problem, but confuses newbies.)

vim does searchreplace when you type the command
:%s/text to search for/replacement text/g

In your case, you need linebreaks in the replacement
text.  A linebreak is written as \r
i.e.

:%s/searchstring/two\rlines/g
will replace
searchstring
with
two
lines


The backslash is special, it is used to encode
things like linebreaks and other specials. In order to
use an actual backslash (for \begin) you type two
backslashes.

So make a backup copy of your lyx file, then do a
vim myfile.lyx
on the command line, to open the file.
Then type
:%s/---/\\begin_inset ERT\rstatus collapsed\r\r\\begin_layout 
Standard\r\~---\r\\end_layout\r\r\\end_inset\r\r/g

Now that is an incredibly long line,
but don't worry about that.  Just type it,
and press enter. (If your mailer broke the line,
take care to reconstruct it properly without missing
a possible space characters at the break.)
vim will hopefulle tell you that it did a lot of
replacements.  Then save (write) and quit vim with the
command
:wq

Then try opening your file in lyx again, and try view-dvi.

This works for me (lyx 1.4.0).  I get fewer breaks between
text and emdash, but those bad breaks aren't completely
eliminated.  But then, I tried with 4 columns to get lots of
breaks.  It was probably too narrow sometimes.

If it don't work - check that you entered the replace command
correctly.  If this fails with some earlier version of lyx, just
make a test document containing ~--- in ERT and see how
your LyX stores that in the .lyx file.
Then modify the replacement command and try again.

Helge Hafting


Re: --- em dash without hyphenation, global setting

2006-03-02 Thread Marcelo Acuña
 You can get this in lyx by writing your em-dashes
 as ERT.  I.e. write the ~--- in ERT, and leave
 the rest of the text normal. 
 
I inteded this with a little file and ~ in an ERT
no work. I put ~, or \~, ~---, and several others
variants and I can´t get that one work.
What I make bad?
Marcelo






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-02 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and
 


I
   


need a global setting.


 


I think it is not possible to redefine --- without
changing the font metrics.
   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?


 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes

wrong.
1. Look at the lyx file, check what an ERT
containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view->dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up "babel" right should be as
simple
as setting the document language to spanish.

Helge Hafting

   


Helge, what good text editor ---in Linux--- can I to
use for this?
 


Many will do this, I just tested it with vim.

(If you haven't used vi-like editors such as vim,
be aware that they have two modes, and start up
in a modus where you can't actually type in text.
This is not really a problem, but confuses newbies.)

vim does search when you type the command
:%s/text to search for/replacement text/g

In your case, you need linebreaks in the replacement
text.  A linebreak is written as \r
i.e.

:%s/searchstring/two\rlines/g
will replace
searchstring
with
two
lines


The backslash is special, it is used to encode
things like linebreaks and other specials. In order to
use an actual backslash (for \begin) you type two
backslashes.

So make a backup copy of your lyx file, then do a
vim myfile.lyx
on the command line, to open the file.
Then type
:%s/---/\\begin_inset ERT\rstatus collapsed\r\r\\begin_layout 
Standard\r\~---\r\\end_layout\r\r\\end_inset\r\r/g

Now that is an incredibly long line,
but don't worry about that.  Just type it,
and press enter. (If your mailer broke the line,
take care to reconstruct it properly without missing
a possible space characters at the break.)
vim will hopefulle tell you that it did a lot of
replacements.  Then save (write) and quit vim with the
command
:wq

Then try opening your file in lyx again, and try view->dvi.

This works for me (lyx 1.4.0).  I get fewer breaks between
text and emdash, but those bad breaks aren't completely
eliminated.  But then, I tried with 4 columns to get lots of
breaks.  It was probably too narrow sometimes.

If it don't work - check that you entered the replace command
correctly.  If this fails with some earlier version of lyx, just
make a test document containing ~--- in ERT and see how
your LyX stores that in the .lyx file.
Then modify the replacement command and try again.

Helge Hafting


Re: --- em dash without hyphenation, global setting

2006-03-02 Thread Marcelo Acuña
> >>You can get this in lyx by writing your em-dashes
> >>as ERT.  I.e. write the ~--- in ERT, and leave
> >>the rest of the text normal. 
> >>
I inteded this with a little file and ~ in an ERT
no work. I put ~, or \~, ~---, and several others
variants and I can´t get that one work.
What I make bad?
Marcelo






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and I
need a global setting.
 


I think it is not possible to redefine --- without
changing the font metrics.
Instead, you will have to define your own emdash
character that does not allow 
a linebreak. Something like



   


\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 


Then you could do

\newcommand\mycomment[1]{\myem#1\myem}

and wrap all you comments in \mycomment{this is a
comment}

If you do not need, say, underline, in your
document, you could furthermore 
redefine underline as 


\renewcommand\underbar{\mycomment}

and just underline all you comments in LyX.

Or do it with colors as described here:

   


http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 


However, if this is really such a common task in
Spanish documents, posting a 
question to the Spanish TeX newsgroup
(es.comp.lenguajes.tex) might help 
further.


HTH,
Jürgen

   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes wrong.

1. Look at the lyx file, check what an ERT containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view-dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up babel right should be as simple
as setting the document language to spanish.

Helge Hafting




Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Juergen Spitzmueller
Marcelo Acuña wrote:

 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~)
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?

The problem is that LyX inserts the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

This deactivates the tilde as active character and thus makes shorthands
like ~--- unusable.

This is certainly done intentionally, but I don't know why exactly (maybe it
breaks protected space or the ~ accent). Maybe someone else can comment.

Jürgen






Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Marcelo Acuña
 No, I have about 1000 of this ---comment---, and
 I
 need a global setting.
   
 
 I think it is not possible to redefine --- without
 changing the font metrics.
 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~) 
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?
   
 
 You can get this in lyx by writing your em-dashes
 as ERT.  I.e. write the ~--- in ERT, and leave
 the rest of the text normal. 
 
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file. 
 0. Backup the .lyx file, in case the process goes
 wrong.
 1. Look at the lyx file, check what an ERT
 containing
 ~--- looks like.  My example is for lyx 1.4
 2. Use a powerful text editor on the .lyx file, tell
  it to replace every occurence of --- with:
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 
 I.e. 
 aaa---bbb
 should become
 
 aaa
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 bbb
 
 Then all your em-dashes are hyphenation-free.
 Open the latered file with lyx and verify that it is
 ok, then view-dvi
 
 To save work when writing:
 Create one ~--- ERT, mark it and copy.
 Whenever you need this construct, use paste.
 
 Finally, setting up babel right should be as
 simple
 as setting the document language to spanish.
 
 Helge Hafting
 
Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo
 






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Stephen Harris


- Original Message - 
From: Marcelo Acuña [EMAIL PROTECTED]

To: Helge Hafting [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Sent: Wednesday, March 01, 2006 2:30 PM
Subject: Re: --- em dash without hyphenation, global setting





Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo



Emacs and Vi are a bit hard to learn.

Nedit 5.5 is smaller and simpler with advanced search and replace.
http://sourceforge.net/project/showfiles.php?group_id=11005package_id=109051release_id=274756 





Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Marcelo Acuña writes:
[ Helga writes:]
  0. Backup the .lyx file, in case the process goes
  wrong.
  1. Look at the lyx file, check what an ERT
  containing
  ~--- looks like.  My example is for lyx 1.4
  2. Use a powerful text editor on the .lyx file, tell
   it to replace every occurence of --- with:
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
 
  I.e.
  aaa---bbb
  should become
 
  aaa
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
  bbb

 Helge, what good text editor ---in Linux--- can I to
 use for this?

Here is the regex that should work with vim (not tested). You would open 
a copy of the file, type : and then enter this (one line):

%s/---/\r\\begin_inset ERT\rstatus Collapsed\r\r\\begin_layout 
Standard\r~---\r\\end_layout\r\r\\end_inset\r\r/g

Then : and sq to save and quit.

(BTW, this cut-and-paste solution had been suggested already for this 
specific problem -- about two weeks ago.)  :-)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Helge Hafting writes:
[...]
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file.

It would be so loverly if in LyX one could select an ERT object, paste 
it into the replace with field of LyX's own search-and-replace 
function and do this from within LyX. 

I'm guessing that the only reason this hasn't been built in, yet, is 
that it must not be so easy to do.

-Kevin


-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and I
need a global setting.
 


I think it is not possible to redefine --- without
changing the font metrics.
Instead, you will have to define your own emdash
character that does not allow 
a linebreak. Something like



   


\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 


Then you could do

\newcommand\mycomment[1]{\myem#1\myem}

and wrap all you comments in \mycomment{this is a
comment}

If you do not need, say, underline, in your
document, you could furthermore 
redefine underline as 


\renewcommand\underbar{\mycomment}

and just underline all you comments in LyX.

Or do it with colors as described here:

   


http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 


However, if this is really such a common task in
Spanish documents, posting a 
question to the Spanish TeX newsgroup
(es.comp.lenguajes.tex) might help 
further.


HTH,
Jürgen

   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes wrong.

1. Look at the lyx file, check what an ERT containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view-dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up babel right should be as simple
as setting the document language to spanish.

Helge Hafting




Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Juergen Spitzmueller
Marcelo Acuña wrote:

 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~)
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?

The problem is that LyX inserts the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

This deactivates the tilde as active character and thus makes shorthands
like ~--- unusable.

This is certainly done intentionally, but I don't know why exactly (maybe it
breaks protected space or the ~ accent). Maybe someone else can comment.

Jürgen






Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Marcelo Acuña
 No, I have about 1000 of this ---comment---, and
 I
 need a global setting.
   
 
 I think it is not possible to redefine --- without
 changing the font metrics.
 Thanks Jürgen, I posted the problem to
 es.comp.lenguajes.tex and I get a solution
 but this work in Kile and not work in Lyx.
 Is not global but simple.
 A person in that list say that
 after put \usepackage[spanish]{babel}
 in preamble  I must put a tilde (~) 
 prev to em dash ~---like this---
 In lyx this not work. Tilde is print without
 any change but, before I re-quest to this
 person I check it with Kile and this work very
 well, tilde is not print and hyphenation is
 made correctly.
 How I can get it in Lyx?
   
 
 You can get this in lyx by writing your em-dashes
 as ERT.  I.e. write the ~--- in ERT, and leave
 the rest of the text normal. 
 
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file. 
 0. Backup the .lyx file, in case the process goes
 wrong.
 1. Look at the lyx file, check what an ERT
 containing
 ~--- looks like.  My example is for lyx 1.4
 2. Use a powerful text editor on the .lyx file, tell
  it to replace every occurence of --- with:
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 
 I.e. 
 aaa---bbb
 should become
 
 aaa
 \begin_inset ERT
 status collapsed
 
 \begin_layout Standard
 ~---
 \end_layout
 
 \end_inset
 
 bbb
 
 Then all your em-dashes are hyphenation-free.
 Open the latered file with lyx and verify that it is
 ok, then view-dvi
 
 To save work when writing:
 Create one ~--- ERT, mark it and copy.
 Whenever you need this construct, use paste.
 
 Finally, setting up babel right should be as
 simple
 as setting the document language to spanish.
 
 Helge Hafting
 
Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo
 






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Stephen Harris


- Original Message - 
From: Marcelo Acuña [EMAIL PROTECTED]

To: Helge Hafting [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Sent: Wednesday, March 01, 2006 2:30 PM
Subject: Re: --- em dash without hyphenation, global setting





Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo



Emacs and Vi are a bit hard to learn.

Nedit 5.5 is smaller and simpler with advanced search and replace.
http://sourceforge.net/project/showfiles.php?group_id=11005package_id=109051release_id=274756 





Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Marcelo Acuña writes:
[ Helga writes:]
  0. Backup the .lyx file, in case the process goes
  wrong.
  1. Look at the lyx file, check what an ERT
  containing
  ~--- looks like.  My example is for lyx 1.4
  2. Use a powerful text editor on the .lyx file, tell
   it to replace every occurence of --- with:
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
 
  I.e.
  aaa---bbb
  should become
 
  aaa
  \begin_inset ERT
  status collapsed
 
  \begin_layout Standard
  ~---
  \end_layout
 
  \end_inset
 
  bbb

 Helge, what good text editor ---in Linux--- can I to
 use for this?

Here is the regex that should work with vim (not tested). You would open 
a copy of the file, type : and then enter this (one line):

%s/---/\r\\begin_inset ERT\rstatus Collapsed\r\r\\begin_layout 
Standard\r~---\r\\end_layout\r\r\\end_inset\r\r/g

Then : and sq to save and quit.

(BTW, this cut-and-paste solution had been suggested already for this 
specific problem -- about two weeks ago.)  :-)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Helge Hafting writes:
[...]
 I seem to remember you had lots of these?
 You can fix them all this way:
 Lyx can't do this with search and replace, but
 a text editor capable of replacing several lines can
 do it by working on the .lyx file.

It would be so loverly if in LyX one could select an ERT object, paste 
it into the replace with field of LyX's own search-and-replace 
function and do this from within LyX. 

I'm guessing that the only reason this hasn't been built in, yet, is 
that it must not be so easy to do.

-Kevin


-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Helge Hafting

Marcelo Acuña wrote:


No, I have about 1000 of this ---comment---, and I
need a global setting.
 


I think it is not possible to redefine --- without
changing the font metrics.
Instead, you will have to define your own emdash
character that does not allow 
a linebreak. Something like



   


\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 


Then you could do

\newcommand\mycomment[1]{\myem#1\myem}

and wrap all you comments in \mycomment{this is a
comment}

If you do not need, say, underline, in your
document, you could furthermore 
redefine underline as 


\renewcommand\underbar{\mycomment}

and just underline all you comments in LyX.

Or do it with colors as described here:

   


http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 


However, if this is really such a common task in
Spanish documents, posting a 
question to the Spanish TeX newsgroup
(es.comp.lenguajes.tex) might help 
further.


HTH,
Jürgen

   


Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---

In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
 


You can get this in lyx by writing your em-dashes
as ERT.  I.e. write the ~--- in ERT, and leave
the rest of the text normal. 


I seem to remember you had lots of these?
You can fix them all this way:
Lyx can't do this with search and replace, but
a text editor capable of replacing several lines can
do it by working on the .lyx file. 
0. Backup the .lyx file, in case the process goes wrong.

1. Look at the lyx file, check what an ERT containing
   ~--- looks like.  My example is for lyx 1.4
2. Use a powerful text editor on the .lyx file, tell
it to replace every occurence of --- with:
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset


I.e. 
aaa---bbb

should become

aaa
\begin_inset ERT
status collapsed

\begin_layout Standard
~---
\end_layout

\end_inset

bbb

Then all your em-dashes are hyphenation-free.
Open the latered file with lyx and verify that it is
ok, then view->dvi

To save work when writing:
Create one ~--- ERT, mark it and copy.
Whenever you need this construct, use paste.

Finally, setting up "babel" right should be as simple
as setting the document language to spanish.

Helge Hafting




Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Juergen Spitzmueller
Marcelo Acuña wrote:

> Thanks Jürgen, I posted the problem to
> es.comp.lenguajes.tex and I get a solution
> but this work in Kile and not work in Lyx.
> Is not global but simple.
> A person in that list say that
> after put \usepackage[spanish]{babel}
> in preamble  I must put a tilde (~)
> prev to em dash ~---like this---
> In lyx this not work. Tilde is print without
> any change but, before I re-quest to this
> person I check it with Kile and this work very
> well, tilde is not print and hyphenation is
> made correctly.
> How I can get it in Lyx?

The problem is that LyX inserts the line
[EMAIL PROTECTED]
to the preamble if Spanish is selected as document language.

This deactivates the tilde as active character and thus makes shorthands
like ~--- unusable.

This is certainly done intentionally, but I don't know why exactly (maybe it
breaks protected space or the ~ accent). Maybe someone else can comment.

Jürgen






Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Marcelo Acuña
> >>>No, I have about 1000 of this ---comment---, and
> I
> >>>need a global setting.
> >>>  
> >>>
> >>I think it is not possible to redefine --- without
> >>changing the font metrics.
> >Thanks Jürgen, I posted the problem to
> >es.comp.lenguajes.tex and I get a solution
> >but this work in Kile and not work in Lyx.
> >Is not global but simple.
> >A person in that list say that
> >after put \usepackage[spanish]{babel}
> >in preamble  I must put a tilde (~) 
> >prev to em dash ~---like this---
> >In lyx this not work. Tilde is print without
> >any change but, before I re-quest to this
> >person I check it with Kile and this work very
> >well, tilde is not print and hyphenation is
> >made correctly.
> >How I can get it in Lyx?
> >  
> >
> You can get this in lyx by writing your em-dashes
> as ERT.  I.e. write the ~--- in ERT, and leave
> the rest of the text normal. 
> 
> I seem to remember you had lots of these?
> You can fix them all this way:
> Lyx can't do this with search and replace, but
> a text editor capable of replacing several lines can
> do it by working on the .lyx file. 
> 0. Backup the .lyx file, in case the process goes
> wrong.
> 1. Look at the lyx file, check what an ERT
> containing
> ~--- looks like.  My example is for lyx 1.4
> 2. Use a powerful text editor on the .lyx file, tell
>  it to replace every occurence of --- with:
> \begin_inset ERT
> status collapsed
> 
> \begin_layout Standard
> ~---
> \end_layout
> 
> \end_inset
> 
> 
> I.e. 
> aaa---bbb
> should become
> 
> aaa
> \begin_inset ERT
> status collapsed
> 
> \begin_layout Standard
> ~---
> \end_layout
> 
> \end_inset
> 
> bbb
> 
> Then all your em-dashes are hyphenation-free.
> Open the latered file with lyx and verify that it is
> ok, then view->dvi
> 
> To save work when writing:
> Create one ~--- ERT, mark it and copy.
> Whenever you need this construct, use paste.
> 
> Finally, setting up "babel" right should be as
> simple
> as setting the document language to spanish.
> 
> Helge Hafting
> 
Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo
 






___ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Stephen Harris


- Original Message - 
From: "Marcelo Acuña" <[EMAIL PROTECTED]>

To: "Helge Hafting" <[EMAIL PROTECTED]>
Cc: <lyx-users@lists.lyx.org>
Sent: Wednesday, March 01, 2006 2:30 PM
Subject: Re: --- em dash without hyphenation, global setting





Helge, what good text editor ---in Linux--- can I to
use for this?
Thanks
Marcelo



Emacs and Vi are a bit hard to learn.

Nedit 5.5 is smaller and simpler with advanced search and replace.
http://sourceforge.net/project/showfiles.php?group_id=11005_id=109051_id=274756 





Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Marcelo Acuña writes:
[> Helga writes:]
> > 0. Backup the .lyx file, in case the process goes
> > wrong.
> > 1. Look at the lyx file, check what an ERT
> > containing
> > ~--- looks like.  My example is for lyx 1.4
> > 2. Use a powerful text editor on the .lyx file, tell
> >  it to replace every occurence of --- with:
> > \begin_inset ERT
> > status collapsed
> >
> > \begin_layout Standard
> > ~---
> > \end_layout
> >
> > \end_inset
> >
> >
> > I.e.
> > aaa---bbb
> > should become
> >
> > aaa
> > \begin_inset ERT
> > status collapsed
> >
> > \begin_layout Standard
> > ~---
> > \end_layout
> >
> > \end_inset
> >
> > bbb

> Helge, what good text editor ---in Linux--- can I to
> use for this?

Here is the regex that should work with vim (not tested). You would open 
a copy of the file, type ":" and then enter this (one line):

%s/---/\r\\begin_inset ERT\rstatus Collapsed\r\r\\begin_layout 
Standard\r~---\r\\end_layout\r\r\\end_inset\r\r/g

Then ":" and "sq" to save and quit.

(BTW, this cut-and-paste solution had been suggested already for this 
specific problem -- about two weeks ago.)  :-)

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-03-01 Thread Kevin Pfeiffer
Helge Hafting writes:
[...]
> I seem to remember you had lots of these?
> You can fix them all this way:
> Lyx can't do this with search and replace, but
> a text editor capable of replacing several lines can
> do it by working on the .lyx file.

It would be so "loverly" if in LyX one could select an ERT object, paste 
it into the "replace with" field of LyX's own search-and-replace 
function and do this from within LyX. 

I'm guessing that the only reason this hasn't been built in, yet, is 
that it must not be so easy to do.

-Kevin


-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: --- em dash without hyphenation, global setting

2006-02-28 Thread Marcelo Acuña
  No, I have about 1000 of this ---comment---, and I
  need a global setting.
 
 I think it is not possible to redefine --- without
 changing the font metrics.
 Instead, you will have to define your own emdash
 character that does not allow 
 a linebreak. Something like
 

\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 
 Then you could do
 
 \newcommand\mycomment[1]{\myem#1\myem}
 
 and wrap all you comments in \mycomment{this is a
 comment}
 
 If you do not need, say, underline, in your
 document, you could furthermore 
 redefine underline as 
 
 \renewcommand\underbar{\mycomment}
 
 and just underline all you comments in LyX.
 
 Or do it with colors as described here:

http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 
 However, if this is really such a common task in
 Spanish documents, posting a 
 question to the Spanish TeX newsgroup
 (es.comp.lenguajes.tex) might help 
 further.
 
 HTH,
 Jürgen
 
Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---
In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
But I think that a global setting must be
exist. (I never see a broken line like this
).
Or like this (
this is a comment).
I think that same behavior of latex with )
and --- must be exist.
How I can get it?
Remember that I not want avoid hyphenation
in entire comments. I only need that hyphenation
not cut em dash from joint word.
Thanks
Marcelo




___ 
A tu celular ¿no le falta algo? 
Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. 
Más información en http://movil.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-02-28 Thread Marcelo Acuña
  No, I have about 1000 of this ---comment---, and I
  need a global setting.
 
 I think it is not possible to redefine --- without
 changing the font metrics.
 Instead, you will have to define your own emdash
 character that does not allow 
 a linebreak. Something like
 

\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
 
 Then you could do
 
 \newcommand\mycomment[1]{\myem#1\myem}
 
 and wrap all you comments in \mycomment{this is a
 comment}
 
 If you do not need, say, underline, in your
 document, you could furthermore 
 redefine underline as 
 
 \renewcommand\underbar{\mycomment}
 
 and just underline all you comments in LyX.
 
 Or do it with colors as described here:

http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
 
 However, if this is really such a common task in
 Spanish documents, posting a 
 question to the Spanish TeX newsgroup
 (es.comp.lenguajes.tex) might help 
 further.
 
 HTH,
 Jürgen
 
Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---
In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
But I think that a global setting must be
exist. (I never see a broken line like this
).
Or like this (
this is a comment).
I think that same behavior of latex with )
and --- must be exist.
How I can get it?
Remember that I not want avoid hyphenation
in entire comments. I only need that hyphenation
not cut em dash from joint word.
Thanks
Marcelo




___ 
A tu celular ¿no le falta algo? 
Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. 
Más información en http://movil.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-02-28 Thread Marcelo Acuña
> > No, I have about 1000 of this ---comment---, and I
> > need a global setting.
> 
> I think it is not possible to redefine --- without
> changing the font metrics.
> Instead, you will have to define your own emdash
> character that does not allow 
> a linebreak. Something like
> 
>
\newcommand\myem{\textormath{\leavevmode\hbox{---}}{---}}
> 
> Then you could do
> 
> \newcommand\mycomment[1]{\myem#1\myem}
> 
> and wrap all you comments in \mycomment{this is a
> comment}
> 
> If you do not need, say, underline, in your
> document, you could furthermore 
> redefine underline as 
> 
> \renewcommand\underbar{\mycomment}
> 
> and just underline all you comments in LyX.
> 
> Or do it with colors as described here:
>
http://www.troubleshooters.com/linux/lyx/index.htm#BuiltinCharacterStyles
> 
> However, if this is really such a common task in
> Spanish documents, posting a 
> question to the Spanish TeX newsgroup
> (es.comp.lenguajes.tex) might help 
> further.
> 
> HTH,
> Jürgen
> 
Thanks Jürgen, I posted the problem to
es.comp.lenguajes.tex and I get a solution
but this work in Kile and not work in Lyx.
Is not global but simple.
A person in that list say that
after put \usepackage[spanish]{babel}
in preamble  I must put a tilde (~) 
prev to em dash ~---like this---
In lyx this not work. Tilde is print without
any change but, before I re-quest to this
person I check it with Kile and this work very
well, tilde is not print and hyphenation is
made correctly.
How I can get it in Lyx?
But I think that a global setting must be
exist. (I never see a broken line like this
).
Or like this (
this is a comment).
I think that same behavior of latex with <)>
and <---> must be exist.
How I can get it?
Remember that I not want avoid hyphenation
in entire comments. I only need that hyphenation
not cut em dash from joint word.
Thanks
Marcelo




___ 
A tu celular ¿no le falta algo? 
Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. 
Más información en http://movil.yahoo.com.ar


--- em dash without hyphenation, global setting

2006-02-20 Thread Marcelo Acuña
 Jürgen, Kevin, Bruce, excuse
me  for my  english, I need a 
global setting for avoid that
latex  hyphenat a comment ---
in this manner---. In spanish
we can include  comments with
em  dash  sticked to the word,
but is not wanted that the hy-
phen broke dash and word like
above.
Is wanted that em dash and a
word remains sticked ---like
this---, ---or like this o-
ther---. And I need global 
setting because I have several
hundred of this comments.
Thanks
Marcelo



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-02-20 Thread Kevin Pfeiffer
Marcelo Acuña writes:
  Jürgen, Kevin, Bruce, excuse
 me  for my  english, I need a
 global setting for avoid that
 latex  hyphenat a comment ---
 in this manner---. In spanish
 we can include  comments with
 em  dash  sticked to the word,
 but is not wanted that the hy-
 phen broke dash and word like
 above.
 Is wanted that em dash and a
 word remains sticked ---like
 this---, ---or like this o-
 ther---. And I need global
 setting because I have several
 hundred of this comments.

Did you try any of the three solutions we already offered? In particular 
\mbox{here is something long that should not be broken} or the 
\nobreakdash (I think) command that you get when using the amsmath 
package? 

Whether there is a global setting for this, I don't know. If there is 
(?), maybe it should be tied to the language setting.

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


--- em dash without hyphenation, global setting

2006-02-20 Thread Marcelo Acuña
 Jürgen, Kevin, Bruce, excuse
me  for my  english, I need a 
global setting for avoid that
latex  hyphenat a comment ---
in this manner---. In spanish
we can include  comments with
em  dash  sticked to the word,
but is not wanted that the hy-
phen broke dash and word like
above.
Is wanted that em dash and a
word remains sticked ---like
this---, ---or like this o-
ther---. And I need global 
setting because I have several
hundred of this comments.
Thanks
Marcelo



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-02-20 Thread Kevin Pfeiffer
Marcelo Acuña writes:
  Jürgen, Kevin, Bruce, excuse
 me  for my  english, I need a
 global setting for avoid that
 latex  hyphenat a comment ---
 in this manner---. In spanish
 we can include  comments with
 em  dash  sticked to the word,
 but is not wanted that the hy-
 phen broke dash and word like
 above.
 Is wanted that em dash and a
 word remains sticked ---like
 this---, ---or like this o-
 ther---. And I need global
 setting because I have several
 hundred of this comments.

Did you try any of the three solutions we already offered? In particular 
\mbox{here is something long that should not be broken} or the 
\nobreakdash (I think) command that you get when using the amsmath 
package? 

Whether there is a global setting for this, I don't know. If there is 
(?), maybe it should be tied to the language setting.

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


--- em dash without hyphenation, global setting

2006-02-20 Thread Marcelo Acuña
 Jürgen, Kevin, Bruce, excuse
me  for my  english, I need a 
global setting for avoid that
latex  hyphenat a comment ---
in this manner---. In spanish
we can include  comments with
em  dash  sticked to the word,
but is not wanted that the hy-
phen broke dash and word like
above.
Is wanted that em dash and a
word remains sticked ---like
this---, ---or like this o-
ther---. And I need global 
setting because I have several
hundred of this comments.
Thanks
Marcelo



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar


Re: --- em dash without hyphenation, global setting

2006-02-20 Thread Kevin Pfeiffer
Marcelo Acuña writes:
>  Jürgen, Kevin, Bruce, excuse
> me  for my  english, I need a
> global setting for avoid that
> latex  hyphenat a comment ---
> in this manner---. In spanish
> we can include  comments with
> em  dash  sticked to the word,
> but is not wanted that the hy-
> phen broke dash and word like
> above.
> Is wanted that em dash and a
> word remains sticked ---like
> this---, ---or like this o-
> ther---. And I need global
> setting because I have several
> hundred of this comments.

Did you try any of the three solutions we already offered? In particular 
\mbox{here is something long that should not be broken} or the 
\nobreakdash (I think) command that you get when using the amsmath 
package? 

Whether there is a global setting for this, I don't know. If there is 
(?), maybe it should be tied to the language setting.

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations