On 01/13/2010 06:34 AM, Jean-Marc Lasgouttes wrote:

Of course, a better UI could be to
transform a - into a -- (I do not have the unicode codepoint handy,
sorry) when typing - after it (like spaces in math).

A better UI *might* (and I do mean *might*) be to display it as a unicode em-dash. But you do not want that character, since LaTeX does not know it can break after, but not before, it.

I offer the attached LyX file as proof.

rh

#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 376
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_xetex false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_use_mathml true
\html_be_strict true
\end_header

\begin_body

\begin_layout Standard
this—is—a—line.—this—is—a—line.—this—is—a—line.—this—is—a—line.—this—is—a—line.—this—
is—a—line.—
\end_layout

\begin_layout Standard
this---is---a---line.---this---is---a---line.---this---is---a---line.---this---is--
-a---line.---this---is---a---line.---this---is---a---line.---
\end_layout

\end_body
\end_document

Reply via email to