]> git.lyx.org Git - lyx.git/blob - lib/bind/sciword.bind
Re-remerge po files
[lyx.git] / lib / bind / sciword.bind
1 # -*- text -*-
2
3 # file sciword.bind
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author Serge Winitzki
8
9 # Full author contact details are available in file CREDITS.
10
11 # LyX keyboard definitions similar to those of Scientific Word.
12
13 #\bind "C-b"                    "font-bold"
14
15 # Copy, paste, etc.: more familiar keys
16 \bind "C-c"     "copy"
17
18 # Display equation toggle: type it in a displayed equation to convert it
19 # back to an inline equation
20 # Sciword mnemonic.
21 \bind "C-d"     "math-display"
22
23 #\bind "C-e"    "------"
24 # Sciword mnemonic.
25 \bind "C-f"     "math-insert \frac"
26
27 # Since the toggles don't work in 1.2.0, let's define all letters.
28 # lowercase math Greek
29 \bind "C-g a" "math-insert \alpha"
30 \bind "C-g b" "math-insert \beta"
31 \bind "C-g g" "math-insert \gamma"
32 \bind "C-g d" "math-insert \delta"
33 \bind "C-g e" "math-insert \varepsilon"
34 \bind "C-g C-e" "math-insert \epsilon"
35 \bind "C-g z" "math-insert \zeta"
36 \bind "C-g h" "math-insert \eta"
37 \bind "C-g q" "math-insert \theta"
38 \bind "C-g C-q" "math-insert \vartheta"
39 \bind "C-g i" "math-insert \iota"
40 \bind "C-g k" "math-insert \kappa"
41 \bind "C-g l" "math-insert \lambda"
42 \bind "C-g m" "math-insert \mu"
43 \bind "C-g n" "math-insert \nu"
44 \bind "C-g x" "math-insert \xi"
45 \bind "C-g p" "math-insert \pi"
46 \bind "C-g C-p" "math-insert \varpi"
47 \bind "C-g r" "math-insert \rho"
48 \bind "C-g s" "math-insert \sigma"
49 \bind "C-g C-s" "math-insert \varsigma"
50 \bind "C-g t" "math-insert \tau"
51 \bind "C-g v" "math-insert \upsilon"
52 \bind "C-g f" "math-insert \phi"
53 \bind "C-g c" "math-insert \chi"
54 \bind "C-g y" "math-insert \psi"
55 \bind "C-g w" "math-insert \omega"
56
57 # uppercase math Greek
58 \bind "C-g S-G" "math-insert \Gamma"
59 \bind "C-g S-D" "math-insert \Delta"
60 \bind "C-g S-Q" "math-insert \Theta"
61 \bind "C-g S-L" "math-insert \Lambda"
62 \bind "C-g S-X" "math-insert \Xi"
63 \bind "C-g S-P" "math-insert \Pi"
64 \bind "C-g S-S" "math-insert \Sigma"
65 \bind "C-g S-V" "math-insert \Upsilon"
66 \bind "C-g S-F" "math-insert \Phi"
67 \bind "C-g S-Y" "math-insert \Psi"
68 \bind "C-g S-W" "math-insert \Omega"
69
70
71 # Do we need this?
72 #\bind "C-h"    "specialchar-insert hyphenation"
73
74 # Sciword mnemonic.
75 \bind "C-i"     "math-insert \int"
76
77 #\bind "C-j"    "------"
78
79 \bind "C-k"     "line-delete-forward"
80 \bind "C-l"     "screen-recenter"
81 \bind "C-S-I"                   "info-insert"
82
83 # Toggle: in text mode, switch to math, and vice versa. Also C-t.
84 \bind "C-m"     "math-mode"
85 \bind "C-n"     "math-number-toggle"
86 \bind "S-C-N"   "math-number-line-toggle"
87
88 \bind "C-o"     "file-open"
89
90 # Insert a quote character. Do I need this?
91 # Probably, since we need a way to get a raw quote
92 \bind "C-q"     "self-insert \""
93
94 # Sciword mnemonic.
95 \bind "C-r"     "math-insert \sqrt"
96 \bind "S-C-R"   "math-insert \root"
97
98 # This combination is now a gateway to math symbols (C-s ...)
99 #\bind "C-s"    "------"
100
101 # Sciword mnemonic for going between text and math modes.
102 \bind "C-t"     "math-mode"
103
104 \bind "C-u"     "font-underline"
105 \bind "C-v"     "paste"
106 \bind "C-S-v"   "clipboard-paste"
107 \bind "C-M-v"   "primary-selection-paste"
108 \bind "C-w"     "buffer-close"
109 \bind "C-x"     "cut"
110 \bind "C-z"     "undo"
111 \bind "S-C-Z"   "redo"
112 \bind "C-a"     "command-sequence buffer-begin ; buffer-end-select"   # select all
113
114
115 # This combination makes an umlaut accent now.
116 #\bind "S-C-quotedbl"           "quote-insert"
117 \bind "S-M-quotedbl"           "quote-insert single"
118
119 # Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
120
121 \bind "C-9"     "math-delim ( )"
122 \bind "S-C-parenleft"   "math-delim ( )"
123 \bind "C-0"     "math-delim ( )"
124 \bind "S-C-parenright"  "math-delim ( )"
125
126 \bind "C-bracketleft"           "math-delim [ ]"
127 \bind "C-bracketright"  "math-delim [ ]"
128 \bind "C-S-less"                "math-delim langle rangle"
129 \bind "C-S-greater"             "math-delim langle rangle"
130
131 # The bar bracket: on some keyboards, e.g. British, the bar character is
132 # bound to an Alt-something and on some wayward Unices to "brokenbar".
133 \bind "C-S-bar"         "math-delim | |"
134 \bind "C-S-brokenbar"   "math-delim | |"
135 \bind "C-M-bar"         "math-delim | |"
136
137 \bind "S-C-braceleft"           "math-delim { }"
138 \bind "S-C-braceright"          "math-delim { }"
139
140 # Accents by Sciword mnemonics. Mostly press Ctrl-<accent key>
141 # e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilde etc.
142 # Some of them work only in math mode
143
144 \bind "C-period"        "accent-dot"
145 \bind "C-comma" "math-insert \dot"
146 \bind "S-C-colon"       "math-insert \ddot"
147 \bind "C-quoteleft"     "accent-grave"
148 \bind "S-C-asciitilde"  "accent-tilde"
149 \bind "S-C-quotedbl"    "accent-umlaut"
150 \bind "C-apostrophe"    "accent-acute"
151 \bind "S-C-asciicircum" "accent-circumflex"
152 # accent-vector has been changed?
153 #\bind "C-equal"                "accent-vector"
154 # Why is it not "accent-bar"?
155 \bind "C-minus" "math-insert \bar"
156 # What is "accent-underbar"?
157 #\bind "S-C-underscore" "accent-underbar"
158
159 # Function keys.
160
161 #\bind "F1"     "help"  # Not yet implemented!
162 #\bind "C-F1"                   "help-context"                  # Not yet implemented!
163 \bind "F2"                     "buffer-write"
164 \bind "S-F2"                     "buffer-export latex"
165 \bind "F3"                     "dialog-show findreplace"
166
167 \bind "C-F4"                   "buffer-close"
168 \bind "M-F4"                   "lyx-quit"
169 # F4 to F8 are used to switch fonts. Sciword mnemonic.
170 \bind "F4"                     "font-default"
171 \bind "F5"                     "font-bold"
172 \bind "F6"                     "font-emph"
173 \bind "F7"                     "font-typewriter"
174 \bind "F8"                     "font-noun"
175 # F9 bound below as meta-prefix (useful e.g. if the keyboard doesn't have a working ALT).
176 #\bind "F9"                     "------"
177 #\bind "F10"                    "------"
178
179
180 # Sciword mnemonics for math editing:
181
182 \bind "M-apostrophe"    "math-insert \prime"
183 \bind "C-Up"            "math-superscript"
184 \bind "C-Down"          "math-subscript"
185 \bind "C-s d"           "math-insert \partial"
186 \bind "C-s e"           "math-insert \sum"
187 \bind "C-s p"           "math-insert \prod"
188 \bind "C-s i"           "math-insert \infty"
189 \bind "C-s x"           "math-insert \times"
190 \bind "C-s m"           "math-matrix 3 3"
191 \bind "C-s v"           "math-matrix 1 2"
192
193 # My own embellishments for symbols I use often.
194
195 #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
196
197 \bind "C-s apostrophe"  "command-sequence math-superscript; math-insert \prime;"
198 \bind "C-s S-plus"      "math-insert \dagger"
199 \bind "C-s equal"       "math-insert \equiv"
200 \bind "M-equal"         "math-insert \approx"
201 \bind "M-minus"         "math-insert \sim"
202 \bind "C-minus"         "math-insert \rightarrow"
203 # here is how to make a vector accent:
204 \bind "C-equals"    "math-insert \overrightarrow"
205 \bind "S-M-less"        "math-insert \leq"
206 \bind "S-M-greater"     "math-insert \geq"
207 \bind "C-s S-less"      "math-insert \ll"
208 \bind "C-s S-greater"   "math-insert \gg"
209
210 # usual bindings
211 \bind_file math.bind
212 \bind_file menus.bind
213 \bind_file latinkeys.bind
214 \bind_file cyrkeys.bind
215 \bind_file greekkeys.bind
216
217
218 \bind "M-Up"                    "paragraph-move-up"
219 \bind "M-Down"                  "paragraph-move-down"
220 \bind "S-KP_Right"                      "char-right-select"
221 \bind "S-KP_Left"                               "char-left-select"
222 \bind "S-KP_Up"                                 "up-select"
223 \bind "S-KP_Down"                               "down-select"
224 \bind "S-C-KP_Right"                    "word-right-select"
225 \bind "S-C-KP_Left"                     "word-left-select"
226 \bind "S-C-KP_Up"                               "paragraph-up-select"
227 \bind "S-C-KP_Down"                     "paragraph-down-select"
228 \bind "S-KP_Home"                               "line-begin-select"
229 \bind "S-KP_End"                                "line-end-select"
230 \bind "S-KP_Prior"                      "screen-up-select"
231 \bind "S-KP_Next"                               "screen-down-select"
232 \bind "S-C-KP_Home"                     "buffer-begin-select"
233 \bind "S-C-KP_End"                      "buffer-end-select"
234 \bind "S-C-KP_Prior"                    "buffer-begin-select"
235 \bind "S-C-KP_Next"                     "buffer-end-select"
236 \bind "C-KP_Insert"                     "copy"
237 \bind "S-KP_Insert"                     "paste"
238 \bind "S-KP_Delete"                     "cut"
239
240
241 \bind "M-x" "command-execute"