On 2017-01-17, Enrico Forestieri wrote:
> On Tue, Jan 17, 2017 at 06:05:57PM +0100, Enrico Forestieri wrote:
>> On Tue, Jan 17, 2017 at 09:41:03AM -0500, Richard Heck wrote:
>> > On 01/17/2017 02:55 AM, Jürgen Spitzmüller wrote:
>> > > Am Montag, den 16.01.2017, 22:17 +0000 schrieb Guenter Milde:
>> > >> Now we have 3 specs:
>> > >>
>> > >> 1. Unicode: Break Opportunity Before and After
>> > >>
>> > >> 2. --- ligature: Break opportunity after, no hyphenation of word
>> > >> before
>> > >>    (also with literal EM DASH and \textemdash macro with non-TeX
>> > >> fonts).
>> > >>    
>> > >> 3. \textemdash macro (and literal EM DASH with inputenc-utf8) and TeX
>> > >> fonts:
>> > >>    no break opportunity. Hyphenation of word before allowed.
>> > >>
>> > >> What should be the LyX behaviour?
>> > > 2.
>> > 
>> > I agree with Jürgen, mostly because this is the old and expected
>> > behavior.

>> That's also my opinion.

> Meaning that we should output "---".

This means full backwards compatibility and "good looking" 8-bit LaTeX
sources at the expense of reduced configurability.

I can live with this, if we use output "---" via lib/unicodesymbols

  0x2014 "­--"             "emdash" "notermination=text,force=armscii8" # EM 
DASH

with the "emdash" feature re-binding

   \DeclareUnicodeCharacter{2014}{---}

if inputenc == "utf8" || inputenc == "utf8x".

+1 consistent handling of en- and em-dashes independent of input method.

+1 power-users can configure the behaviour (if using utf8) in the user
   preamble.


For non-TeX fonts, the literal Unicode character wraps like the
"---"-ligature, so no change is required.


Günter

Reply via email to