]> git.lyx.org Git - features.git/commitdiff
Some corrections wrt dashes and line breaks
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 10 Dec 2017 11:01:17 +0000 (12:01 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 11 Dec 2017 17:25:34 +0000 (18:25 +0100)
(cherry picked from commit 480c8a52f2f78bd876aa6fa3cd67c1b59fa364e5)

lib/doc/UserGuide.lyx
lib/doc/de/UserGuide.lyx

index e1765c39e3dfe52caa106689cac2e72cb3815cde..ffcd5272fb67b1f78503bc7558ca6f068b2e9428 100644 (file)
@@ -140,11 +140,12 @@ enumitem
 \papercolumns 1
 \papersides 2
 \paperpagestyle default
-\tracking_changes false
+\tracking_changes true
 \output_changes false
 \html_math_output 0
 \html_css_as_file 0
 \html_be_strict true
+\author -712698321 "Jürgen Spitzmüller"
 \end_header
 
 \begin_body
@@ -16584,7 +16585,32 @@ Whether line breaks around dashes are allowed depends on the use case and
 \end_layout
 
 \begin_layout Itemize
-No line breaks are allowed in ranges of values like A–Z or 1975–1982.
+
+\change_inserted -712698321 1512901448
+In English, 
+\change_deleted -712698321 1512901449
+No 
+\change_unchanged
+line breaks are 
+\change_inserted -712698321 1512901455
+generally 
+\change_unchanged
+allowed 
+\change_inserted -712698321 1512901463
+after the dash 
+\change_unchanged
+in ranges of values 
+\change_deleted -712698321 1512901468
+like A–Z or
+\change_inserted -712698321 1512901469
+such as
+\change_unchanged
+ 1975–1982
+\change_inserted -712698321 1512901504
+, but no line break should occur if only a single character follows the
+ dash (as in A–Z)
+\change_unchanged
+.
 \end_layout
 
 \begin_layout Itemize
@@ -16598,6 +16624,301 @@ In French and Spanish, dashes around parenthetical statements are treated
 \end_layout
 
 \begin_layout Standard
+
+\change_inserted -712698321 1512901782
+In \SpecialChar LyX
+, line breaks after en-dashes and em-dashes are only allowed (without
+ manual intervention), if the option 
+\family sans
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
+Fonts\SpecialChar menuseparator
+Output en- and em-dashes as ligatures
+\family default
+ is selected (this is the default in \SpecialChar LyX
+ 2.3).
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1512901760
+In this case, the dashes are output as 
+\begin_inset Quotes eld
+\end_inset
+
+--
+\begin_inset Quotes erd
+\end_inset
+
+ and 
+\begin_inset Quotes eld
+\end_inset
+
+---
+\begin_inset Quotes erd
+\end_inset
+
+, respectively, when exporting to \SpecialChar LaTeX
+.
+ The \SpecialChar TeX
+ font ligature mechanism converts them to dash characters followed
+ by an optional line break.
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1512901787
+Please note:
+\end_layout
+
+\begin_layout Enumerate
+
+\change_inserted -712698321 1512901943
+This results in optional line breaks after 
+\emph on
+all
+\emph default
+ en- and em-dashes.
+ Unwanted line breaks must be prevented by wrapping in a makebox
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1512901782
+See section 
+\emph on
+Prevent Hyphenation
+\emph default
+ of the 
+\emph on
+Embedded
+\begin_inset space ~
+\end_inset
+
+Objects
+\emph default
+ manual.
+\end_layout
+
+\end_inset
+
+, using protected spaces or preceding with 
+\series bold
+
+\backslash
+nobreakdash
+\series default
+ in \SpecialChar TeX
+ code.
+ Examples:
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+
+\change_inserted -712698321 1512901862
+Pages
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "t"
+use_parbox 0
+use_makebox 1
+width ""
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1512902334
+368–9
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Itemize
+
+\change_inserted -712698321 1512901928
+With spaced en dashes
+\begin_inset space ~
+\end_inset
+
+– common e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+ in British English and generally recommended by 
+\emph on
+The Elements of Typographic Style
+\emph default
+
+\begin_inset space ~
+\end_inset
+
+– line breaks should not occur before the dash.
+\end_layout
+
+\begin_layout Itemize
+
+\change_inserted -712698321 1512901831
+
+\lang french
+Les incises –
+\begin_inset space ~
+\end_inset
+
+même si tout le monde ne les aime pas
+\begin_inset space ~
+\end_inset
+
+– sont très utiles.
+\end_layout
+
+\begin_layout Itemize
+
+\change_inserted -712698321 1512901782
+
+\lang spanish
+En una frase 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1512901782
+
+
+\backslash
+nobreakdash
+\end_layout
+
+\end_inset
+
+—un inciso con rayas— se escribe así.
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1512901782
+An incorrect line break is easily overlooked because
+\begin_inset space ~
+\end_inset
+
+– in contrast to an overfull line
+\begin_inset space ~
+\end_inset
+
+– it does not trigger a warning in the \SpecialChar LaTeX
+ log.
+\end_layout
+
+\end_deeper
+\begin_layout Enumerate
+
+\change_inserted -712698321 1512901782
+The setting is ignored for documents using non-\SpecialChar TeX
+ fonts.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1512901782
+Xe\SpecialChar TeX
+ provides the 
+\series bold
+
+\backslash
+XeTeXdashbreakstate
+\series default
+ setting.
+ The default causes dashes to behave like ligature dashes.
+ The usual behaviour of literal dashes can be achieved by inserting 
+\family typewriter
+\series bold
+
+\backslash
+XeTeXdashbreakstate=0
+\family default
+\series default
+ into the \SpecialChar LaTeX
+ preamble.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Enumerate
+
+\change_inserted -712698321 1512901782
+Em dashes in 
+\family typewriter
+typewriter
+\family default
+ fonts become 
+\family typewriter
+–-
+\family default
+ or 
+\family typewriter
+---
+\family default
+ in the output.
+\end_layout
+
+\begin_layout Enumerate
+
+\change_inserted -712698321 1512901782
+Hyphenation is suppressed in words adjacent to hyphens and ligature dashes.
+\change_unchanged
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1512902074
+If the option 
+\family sans
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
+Fonts\SpecialChar menuseparator
+Output en- and em-dashes as ligatures
+\family default
+ has not been selected, you can 
+\change_deleted -712698321 1512902388
+
+\end_layout
+
+\begin_layout Standard
+
+\change_deleted -712698321 1512902090
 When using spaced en dashes
 \begin_inset space ~
 \end_inset
@@ -16610,19 +16931,47 @@ When using spaced en dashes
 \end_layout
 
 \begin_layout Standard
+
+\change_deleted -712698321 1512902090
 When using em dashes without spaces—\SpecialChar allowbreak
 common in American English—\SpecialChar allowbreak
-one can insert
- optional line breaks with the menu 
+one can
+\change_unchanged
+ insert optional line breaks 
+\change_deleted -712698321 1512902097
+with
+\change_inserted -712698321 1512902097
+via
+\change_unchanged
+ the menu 
 \family sans
 Insert\SpecialChar menuseparator
 Formatting\SpecialChar menuseparator
 Optional line break
+\change_inserted -712698321 1512902402
+
 \family default
+:
+\change_deleted -712698321 1512902402
 .
+\change_inserted -712698321 1512902107
+
+\end_layout
+
+\begin_layout Itemize
+
+\change_inserted -712698321 1512902150
+Em-dashes without spaces—\SpecialChar allowbreak
+as common in American English—\SpecialChar allowbreak
+should be broken
+ after the dash.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Standard
+
+\change_deleted -712698321 1512902167
 For documents containing many em dashes, you may consider to select the
  option 
 \family sans
@@ -16653,13 +17002,19 @@ This forces the output of dashes as
  The \SpecialChar TeX
  font ligature mechanism converts them to dash characters followed
  by an optional line break.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Standard
+
+\change_deleted -712698321 1512901780
 Caution:
 \end_layout
 
 \begin_layout Enumerate
+
+\change_deleted -712698321 1512901780
 This results in optional line breaks after 
 \series bold
 all
@@ -16700,6 +17055,8 @@ nobreakdash
 
 \begin_deeper
 \begin_layout Itemize
+
+\change_deleted -712698321 1512901780
 Pages
 \begin_inset space ~
 \end_inset
@@ -16734,6 +17091,8 @@ status open
 
 \begin_layout Itemize
 
+\change_deleted -712698321 1512901780
+
 \lang french
 Les incises 
 \begin_inset Box Frameless
@@ -16775,6 +17134,8 @@ même
 
 \begin_layout Itemize
 
+\change_deleted -712698321 1512901780
+
 \lang spanish
 En una frase 
 \begin_inset ERT
@@ -16793,6 +17154,8 @@ nobreakdash
 \end_layout
 
 \begin_layout Standard
+
+\change_deleted -712698321 1512901780
 An incorrect line break is easily overlooked because
 \begin_inset space ~
 \end_inset
@@ -16807,6 +17170,8 @@ An incorrect line break is easily overlooked because
 
 \end_deeper
 \begin_layout Enumerate
+
+\change_deleted -712698321 1512901780
 The setting is ignored for documents using non-\SpecialChar TeX
  fonts.
 \begin_inset Foot
@@ -16840,6 +17205,8 @@ XeTeXdashbreakstate=0
 \end_layout
 
 \begin_layout Enumerate
+
+\change_deleted -712698321 1512901780
 Em dashes in 
 \family typewriter
 typewriter
@@ -16856,11 +17223,21 @@ typewriter
 \end_layout
 
 \begin_layout Enumerate
+
+\change_deleted -712698321 1512901780
 Hyphenation is suppressed in words adjacent to hyphens and ligature dashes.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Standard
-Since \SpecialChar LyX
+
+\change_deleted -712698321 1512902180
+Since
+\change_inserted -712698321 1512902181
+As of
+\change_unchanged
+ \SpecialChar LyX
 
 \begin_inset space ~
 \end_inset
@@ -16890,7 +17267,11 @@ Up to \SpecialChar LyX
 \begin_inset space ~
 \end_inset
 
-2.3 provides the option 
+2.3 provides the 
+\change_inserted -712698321 1512902196
+aforementioned 
+\change_unchanged
+option 
 \family sans
 Output en- and em-dashes as ligatures
 \family default
index 41d816c52bb2670863287af77ecb4333faa09ff0..7e2982e01ccbaebc50861af973685e7845a18353 100644 (file)
@@ -16717,33 +16717,37 @@ Ergänzungsstrich
 \end_layout
 
 \begin_layout Enumerate
-Von A
-\begin_inset space \thinspace{}
-\end_inset
-
-–
-\begin_inset space \thinspace{}
-\end_inset
-
-Z; Seiten
+Von A–Z; Seiten
 \begin_inset space ~
 \end_inset
 
 369–378 (
 \emph on
-Bis-strich
+Bis-Strich
 \emph default
 )
 \begin_inset Newline newline
 \end_inset
 
-Autobahn München
-\begin_inset space ~
+Autobahn München–Salzburg (
+\emph on
+Streckenstrich
+\emph default
+)
+\begin_inset Newline newline
+\end_inset
+
+Das Spiel München
+\begin_inset space \thinspace{}
+\end_inset
+
+–
+\begin_inset space \thinspace{}
 \end_inset
 
-– Salzburg (
+Dortmund (
 \emph on
-Streckenstrich
+Gegen-Strich
 \emph default
 )
 \begin_inset Newline newline
@@ -16846,14 +16850,79 @@ Ob Zeilenumbrüche vor oder nach Gedankenstrichen erlaubt sind, hängt vom
 \end_layout
 
 \begin_layout Itemize
-Zeilenumbrüche sind nicht erlaubt bei Intervallangaben wie 1975–1982.
+Zeilenumbrüche nach dem 
+\begin_inset Quotes gld
+\end_inset
+
+Bis-Strich
+\begin_inset Quotes grd
+\end_inset
+
+ (bei Intervallangaben wie 
+\begin_inset Quotes gld
+\end_inset
+
+1975–1982
+\begin_inset Quotes grd
+\end_inset
+
+), dem Streckenstrich (
+\begin_inset Quotes gld
+\end_inset
+
+die Strecke München–Berlin
+\begin_inset Quotes grd
+\end_inset
+
+) und dem 
+\begin_inset Quotes gld
+\end_inset
+
+Gegen-Strich
+\begin_inset Quotes grd
+\end_inset
+
+ (
+\begin_inset Quotes gld
+\end_inset
+
+das Spiel München
+\begin_inset space \thinspace{}
+\end_inset
+
+–
+\begin_inset space \thinspace{}
+\end_inset
+
+Berlin
+\begin_inset Quotes grd
+\end_inset
+
+) sind erlaubt.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+Nach DIN 5008 steht auch vor und nach dem Bis- und Streckenstrich jeweils
+ ein halbes Leerzeichen, laut Rechtschreibduden nicht.
+\end_layout
+
+\end_inset
+
+ Die Zeilentrennung muss nach dem Strich erfolgen.
 \end_layout
 
 \begin_layout Itemize
 Prinzipiell ist ein Zeilenumbruch sowohl vor als auch nach einem Gedankenstrich
  zulässig.
- Ein einzelner Gedankenstrich sowie der Abschließende eines Gedankenstrichpaares
- stehen jedoch aus Gründen der Lesbarkeit normalerweise nicht am Zeilenanfang.
+ Ein einzelner Gedankenstrich sowie der abschließende eines Gedankenstrichpaares
+ stehen jedoch aus Gründen der Lesbarkeit normalerweise nicht am Zeilenanfang
+ (der Rechtschreibduden empfiehlt grundsätzlich, einen Gedankenstrich nach
+ Möglichkeit 
+\emph on
+nicht
+\emph default
+ an den Zeilenanfang zu setzen).
 \end_layout
 
 \begin_layout Itemize
@@ -16863,35 +16932,23 @@ Im Französischen und Spanischen werden Gedankenstriche um eingeschobene
 \end_layout
 
 \begin_layout Standard
-Zeilenumbrüche vor abgesetzten Gedankenstrichen können mit einem geschütztem
- Leerzeichen unterbunden werden.
-\end_layout
-
-\begin_layout Standard
-Bei langen Gedankenstrichen ohne Abstand zum umgebenden Text—\SpecialChar allowbreak
-üblich im amerikani
-schen Englisch—\SpecialChar allowbreak
-kann man optionale Zeilenumbrüche mit dem Menü 
-\family sans
-Einfügen\SpecialChar menuseparator
-Formatierung\SpecialChar menuseparator
-Optionaler Zeilenumbruch
-\family default
- einfügen.
-\end_layout
-
-\begin_layout Standard
-In englischsprachigen Dokumenten mit langen Gedankenstrichen kann man alternativ
- die Option 
+In \SpecialChar LyX
+ sind Zeilenumbrüche nach Halbgeviert- und Geviertstrichen nur dann ohne
+ manuellen Eingriff erlaubt, wenn die Option 
 \family sans
 Dokument\SpecialChar menuseparator
 Einstellungen\SpecialChar menuseparator
 Schriften\SpecialChar menuseparator
-Halbgeviert und Geviertstriche als Ligaturen
- ausgeben 
+Halbgeviert- und Geviertstriche als Ligaturen
+ ausgeben
 \family default
-verwenden.
- Die Striche werden dann als 
+ gewählt wurde (bei \SpecialChar LyX
+ 2.3 ist das die Voreinstellung).
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+Die Striche werden in diesem Fall als 
 \begin_inset Quotes gld
 \end_inset
 
@@ -16910,10 +16967,15 @@ verwenden.
  in die \SpecialChar LaTeX
  Quelldatei geschrieben.
  Der \SpecialChar TeX
--Ligaturmechanismus konvertiert sie zu (Halb-) Geviertstrichen, auf
+-Ligaturmechanismus konvertiert sie zu (Halb-)Geviertstrichen, auf
  die ein optionaler Zeilenumbruch folgt.
 \end_layout
 
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 Vorsicht:
 \end_layout
@@ -16924,8 +16986,8 @@ Die Einstellung erlaubt Zeilenumbrüche nach
 allen
 \emph default
  Halbgeviert- und Geviertstrichen.
- Inkorrekte Zeilenumbrüche müssen verhindert werden, indem man sie in eine
- Makebox packt
+ Unerwünschte Zeilenumbrüche können verhindert werden, indem man sie in
eine Makebox packt
 \begin_inset Foot
 status collapsed
 
@@ -16947,7 +17009,7 @@ Objekte
 
 \end_inset
 
- oder 
+, ein geschütztes Leerzeichen verwendet oder 
 \series bold
 
 \backslash
@@ -16993,40 +17055,26 @@ status open
 \end_layout
 
 \begin_layout Itemize
+Beim folgenden Einschub
+\begin_inset space ~
+\end_inset
 
-\lang french
-Les incises 
-\begin_inset Box Frameless
-position "t"
-hor_pos "c"
-has_inner_box 1
-inner_pos "t"
-use_parbox 0
-use_makebox 1
-width ""
-special "none"
-height "1in"
-height_special "totalheight"
-thickness "0.4pt"
-separation "3pt"
-shadowsize "4pt"
-framecolor "black"
-backgroundcolor "none"
-status open
-
-\begin_layout Plain Layout
-
-\lang french
-–
+– diesem hier
 \begin_inset space ~
 \end_inset
 
-même
+– kommen keine Gedankenstriche an den Zeilenanfang.
 \end_layout
 
+\begin_layout Itemize
+
+\lang french
+Les incises –
+\begin_inset space ~
 \end_inset
 
- si tout le monde ne les aime pas
+même si tout le monde ne les aime pas
 \begin_inset space ~
 \end_inset
 
@@ -17135,6 +17183,32 @@ noprefix "false"
 ).
 \end_layout
 
+\begin_layout Standard
+Wurde die Option 
+\family sans
+Dokument\SpecialChar menuseparator
+Einstellungen\SpecialChar menuseparator
+Schriften\SpecialChar menuseparator
+Halbgeviert- und Geviertstriche als Ligaturen
+ ausgeben
+\family default
+ nicht gewählt, kann man umgekehrt optionale Zeilenumbrüche mit dem Menü
+\family sans
+Einfügen\SpecialChar menuseparator
+Formatierung\SpecialChar menuseparator
+Optionaler Zeilenumbruch
+\family default
+ einfügen:
+\end_layout
+
+\begin_layout Itemize
+Lange Gedankenstrichen ohne Abstand zum umgebenden Text—\SpecialChar allowbreak
+üblich im amerikanischen
+ Englisch—\SpecialChar allowbreak
+sollten an der Zeile umbrochen werden
+\end_layout
+
 \begin_layout Standard
 Seit \SpecialChar LyX
 
@@ -17169,7 +17243,7 @@ Export führte.
 \begin_inset space ~
 \end_inset
 
-2.3 gibt es die Option 
+2.3 gibt es die oben erwähnte Option 
 \family sans
 Halbgeviert- und Geviertstriche als Ligaturen ausgeben
 \family default