Dear Lyx developers,

working on the Docutils LaTeX writer, I came across a problem with babel
redefining the tilde (~) as an active character in the languages
basque, galicien, and estonian. When going to LyX to see how it is solved
there, I had to realize that LyX does not solve it:

  english no-break spaces
  
  galician no-break spaces
  
  estonian no-break spaces
  
  basque no-break spaces
  
become

  english no-break spaces

  galicianño-break spaces

  estonian no-break2paces

  basqueño-break spaces

A possible solution is to add code to the babel entries of the respective
languages, similar to what we do in Spanish:

  \deactivatetilden % restore ~ in Galician
  
  \makeatletter
    \addto\extrasestonian{\bbl@deactivate{~}}
  \makeatother
    
  \makeatletter
    \addto\extrasbasque{\bbl@deactivate{~}}
  \makeatother


Günter


#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding T1
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\pdf_quoted_options "linkcolor=blue,urlcolor=blue,citecolor=black"
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
The 
\begin_inset CommandInset href
LatexCommand href
name "babel"
target "http://www.ctan.org/packages/babel";

\end_inset

 package introduces the concept of "shorthands": additional characters that
 introduce a latex macro.
 Most common is the active double quote (").
 Problematic is the tilde character (~) which is regularely used for no-break
 spaces but redefined by some language definition files:
\end_layout

\begin_layout Standard
english
\begin_inset space ~
\end_inset

no-break
\begin_inset space ~
\end_inset

spaces
\end_layout

\begin_layout Standard

\lang galician
galician
\begin_inset space ~
\end_inset

no-break
\begin_inset space ~
\end_inset

spaces
\end_layout

\begin_layout Standard

\lang estonian
estonian
\begin_inset space ~
\end_inset

no-break
\begin_inset space ~
\end_inset

spaces
\end_layout

\begin_layout Standard

\lang basque
basque
\begin_inset space ~
\end_inset

no-break
\begin_inset space ~
\end_inset

spaces
\end_layout

\end_body
\end_document

Reply via email to