On 2017-01-25, Enrico Forestieri wrote: > On Wed, Jan 25, 2017 at 08:50:21PM +0000, Guenter Milde wrote: >> On 2017-01-25, Enrico Forestieri wrote: >> > On Tue, Jan 24, 2017 at 09:11:12PM +0100, Enrico Forestieri wrote: >> >> On Tue, Jan 24, 2017 at 12:00:02PM +0000, Guenter Milde wrote: >> >> > On 2017-01-24, Enrico Forestieri wrote:
... >> >> > > 1) start a new document and input "--" and you get \textendash >> >> > > 2) now enter another "-" and you get \textemdash >> >> > > 3) now enter another "-" and everything gets replaced by "-" ... >> > The attached patch corrects this glitch and I am going to commit it >> > because I really don't see any rationale behind this behavior. >> With your patch, would pressing the [-]-Key 4 times become >> EM DASH + HYPHEN or ----? > ---- becomes EM DASH + HYPHEN > ----- becomes EM DASH + EN DASH > ------ becomes EM DASH + EM DASH > and so on. So this is reproducing the behaviour you get with LaTeX ligatures. +1 for this patch. =================================================================== > With the other patch I posted, these become again a series > of dashes on output. In the LaTeX source, yes. In PDF output, it will be the same characters as in the LyX file. > Perfect compatibility with earlier versions Not "perfect" (but maybe "satisfactory"): There may be issues with documents containing literal Unicode dashes: these may now have different line breaks. The problem is that not even power users have a way to bypass the forced conversion of EM/EN DASH characters to hyphens on LaTeX export. ================================================ > and visually satisfactory for those who want to see em-dashes instead > of those horrible looking three dashes. It is not about "horrible look", but about WYSIWYM: Treat hyphens similar to other TeX ligatures (e.g. << and >>) and special characters: * show on screen what you will get in the output * escape in LaTeX export. If the LyX GUI shows "get the LyX version with `lyx --version`", I don't want a suprise `lyx –version` in the output. Günter