]> git.donarmstrong.com Git - lilypond.git/blob - TODO
release: 1.2.11
[lilypond.git] / TODO
1 -*-outline-layout:(2 (-1 -1 0 :) 0);outline-stylish-prefixes:nil -*-
2
3
4 * GNU LilyPond TODO
5 Features you cannot find in the documentation as working, should be
6 mentioned here.  This is an assorted collection of stuff that will be
7 done, might be done, or is an idea that we want to think about.
8 m
9 Most of the items are marked in the code as well
10 Grep -i for TODO, FIXME and ugh/ugr/urg.  
11
12 .* TODO
13 . * use Rhythmic_head::position_i () for all Staff_referenced 
14 . * setting indent to 0 with \shape fails
15 . * junk -M ?
16 . * mudela-book doco
17 . * Depracate Wordwrap
18 . * rerun profile
19 . * Break_req handling is silly (break_forbid () + \break fucks up.)
20 . * script engraver
21 . * HaraKiriStaffContext removes bar lines and doesn't remove
22     staff margin text on removed staff lines.
23 . * Chords:
24 .  * Bass/inversion pitch when not part of Chord
25 Sometimes a series of changing chords will be blocked out over a static tone
26 in the bass, usually this was referred to as a pedal tone (and it's been
27 continued to be used, even in contemporary music).  Another less frequently
28 used practice is putting a non-chordal tone in the bass (that is not acting
29 as a pedal tone) in order to create tension or make a more colorful sound.
30 There are examples of this in the classsical literature, but its use is much
31 more prevalent today.  For example, the chord sequence Dm7 - Dm7/G is such a
32 sequence, and the Dm7/G defies easy classification.  Is it a G7(no 3rd)add
33 9/11?  Or is it a G7(no 3rd)add2/4?  Or perhaps Dm7 add11?  It's a heck of a
34 lot easier to read to just leave it as Dm7/G!
35 .  * Diminished does not mean 5-
36 When speaking of a chord, dimished can mean one of two things:  A diminished
37 triad or a dimished seventh chord (which is distinctly different from what's
38 known as the 'half-diminished' chord).  The triad is a root with a flat
39 third and flat fifth, and is notated (at least in America, someone else will
40 have to fill me in on other countries) as (using C as the root) Cdim, or Co.
41 The diminished seventh has a root with a flat third, flat fifth, and a
42 doubly flatted seventh (which is enharmonically equivalent to a sixth, and
43 from which comes tons of confusion).  It is usually notated as (again, using
44 C as the root) Cdim7 or Co7.
45
46 . * Mondrup:
47
48 - I would like the possibility of forcing clef- and key- changes to be
49 printed _after_ the new bar line
50
51 - I would like an option to define the number of systems on which the
52 score must be distributed. As it is now it seems that I may only
53 influence that indirectly through the gourlay_maxmeasures property.
54
55 - if I change the property minVerticalAlign in a multi staff score with
56 lyrics the change affects the lyrics too. I would like the change to
57 _only_ affect staves.
58
59 - I would like to be able to influence the sloping of xtuplet brackets
60
61 - for one of my test scores containing a modern edition of an early
62 17'th century composition I have a leading measure containing the
63 orginal clefs and note values of the original composition. I use the
64 "harmonic" and "diamond" note head styles for that measure and would
65 like to have the stems of these notes _centered_ on the notehead as in
66 the mensural music notation.
67
68 - after the leading measure in the above mentioned score I want a double
69 bar line fully drawn across the staves and after that keep to the
70 ChoirStaff bar line types in the rest of the scores
71
72 - autoBeamMelisma: if I explicitly beam notes in a staff with auto
73 beaming disabled I would like to have these beams also to be
74 melismatic.
75
76 . * make all Feta (including dynamics) available to the user in
77     textual scripts. Examples: "D.S. al \coda", "\mf espress.".
78  
79 . * ?  -Q, --find-old-relative show all changes in relative syntax
80 What's old about absolute to relative conversion?  Could maybe use for
81 abc2ly, midi2ly?
82
83 .* Cleanups needed
84 . * \$ and $ identifier syntax in examples.
85 . * Junk ghost positioning objects eg, Script leans on  Staffside
86     leans on Staff.
87 . * bracket ps code.
88 . * mudela-book
89 .  * center option (??)
90 .  * make mudela-book understand usepackage{geometry}
91 . * Key_engraver, Local_key_item
92 . * Think of comprehensive solution for "if (grace_b == self_grace_b_)"
93 . * String[String.length] doesn't trap.
94 . * Beam
95 . * Stem
96 . * Rhythmic_column and interaction stem/rhythmic_column/note_head/dots.
97 . * Duration
98 . * clef engraver 
99 . * parser
100 . * Lookup::text -> needs  to be TeX independent.
101 . * junk Music_iterator::first_b_
102 . * Bezier
103
104 .* BUGS
105 . * [c8. c16 c16 c16] in 6/8 timesig. 
106 . * staffside spanner (crescendo!) along with staffswitch.
107 . * --- 2, margin notes don't work correctly for the pianostaff (in the
108 following example, i expect the "piano" string to be centered
109 vertically between the two staves):
110
111 \score {
112   \notes \context PianoStaff <
113     \property PianoStaff.instrument = "Piano"
114     \context Staff = treble {
115         a b c
116     }
117     \context Staff = bass {
118         \clef bass;
119         a, b, c,
120     }
121   >
122   \paper {
123     \translator { \StaffContext \consists "Staff_margin_engraver"; }
124     \translator { \PianoStaffContext \consists "Staff_margin_engraver"; }
125   }
126 }
127 . * 
128 > \context Staff <
129 >   {\voiceone''4. r8}
130 >  \voicetwo c,4 r4}
131 > >
132 . * sort out breve shapes.
133 . * \time forces keysig?
134
135 .* STUFF
136 . * We need feta-din*.mf files for more sizes than 10.
137 . *
138 - The syntax for chords looks clumsy with two different meanings of 
139   '-' and different syntax for separating modifiers from the tonic
140   and from other modifiers. Why not use for example ':' between
141   tonic and modifier and between the different modifiers?
142
143 - Rests and beams don't work too well together. Example:
144    [ r8 g''16 des'] [r8 c16 a] 
145
146 - The stemLength property should affect also beamed stems.
147
148 . * align left edge of broken tuplet-spanner (have a test case?)
149 . * fix dynamics decently, ie. use kerning & ligatures.
150 . * key restorations & repeats
151 . * paperXX.ly \quartwidth, font setting not up to date. (Should read from AFM?)
152 . * * auto melismaBusy for beams.
153 . *In Caro Mio Ben, bar 8, there's a syllable that starts on a note, and
154 ends on a pair of grace notes.  Standard practice is to mark this with
155 a slur starting on the main note and ending on the grace note, so a
156 singer knows where to break the words.
157
158 In bar 27, there's a crescendo that's supposed to start at the start
159 of the grace notes and extend to the note after the grace notes.
160 . * 5. Sometimes lyrics extend past the right end of the staff. I guess that
161 this is a similar problem (if not another symptom of the same problem) as
162 one of the spacing bugs mentioned in the TODO.
163 . * 4.  Lyrics and grace sections don't go too well together.
164         The words are aligned with the main note, not the start of the
165         grace note.  This is usually wrong, but is sometimes right.
166 . * decimal point in \paper {}
167 . * tie-direction
168 . * repeats and partial measures.
169 . * rhythmic staff & accidentals.
170 . * use melismaBusy in Lyric context to typeset melismata correctly.  
171 . * ly2dvi/lilypond logfile.
172 . * hang Item on Spanner
173 . * do --safe for PS output?
174 . * msgfmt -o check?
175 . * collision of lyrics with span_bars. See star-spangled.
176 . * Auto_beam debugging output (waarom/wanneer heb jij die weggehaald?)
177 . * It is impossible to typeset two textual scripts that are stacked
178   on top of eachother and avoids note collisions and at the same
179   time are typeset with different textStyle. I tried to move around
180   the text_engraver and other engravers between Voice and Thread 
181   but the granularity is not fine enough, the scripts have to 
182   share the same engraver in order to be get correct vertical 
183   position but than they cannot have different style.
184   In my opinion, all scripts that share the same staff, should
185   be stacked vertically, avoiding collisions with the notes
186   in all voices.
187
188 . * break priority setting from SCM.
189 . * Matanya's tips: 
190 .  * don't  shorten stems/staffs closer to each other.
191 .  * accidentals closer to note head
192 .  * to space the staffs/staffgroups contained in the score.  
193 .  * heavier beams?
194
195 . * tuplets that are written as "number : note", for example
196    "3 : [image of a half note here]".  possible?
197 . * a note with a circle after it, meaning:
198
199    note + circle = note + 1/4 of its length
200
201    the circle is like a dot that's not filled in.  for example, on
202    page three, the c-sharp on the second line should be a quarter with 
203    a circle, not a quarter tied to a sixteenth.  is this at all
204    possible with lily?
205 . * scm-ify \property values.
206 . * make dependencies () a virtual function.
207 . * deprecate hangOnClef.
208 . * Abstraction for engravers:
209 .  * make "in-between" engraver (Tie)
210 .  * make wide_spanner_engraver (line_group_spanner, staff_symbol)
211 . * store req -> element, element -> element causes for warnings
212 . * compulsory hshift
213 . *  My wish list for lyrics. I dream of a time when I will have enough time to
214 become familiar enough with the source code to be able to implement some of
215 these myself, but I don't know when that will be, so I thought I'd "publish"
216 my suggestions in case someone else is in a position to give them some
217 priority. Otherwise, perhaps they could go on the todo list?
218
219 If any of these are already implemented, please let me what the syntax is to
220 use them!
221
222 1. Stanza numbering. Numbering at the beginning of a song with the number
223 set to the left of the first note. It would also be nice (but not as
224 important) to be able to have some form of automatic numbering at the
225 beginning of each new line. This would make it easier to follow songs with a
226 large number of stanzas.
227
228 3. Notes centred above/below lyrics rather than left-aligned.
229
230 4. It would be very nice to be able to build some kind of phrasing into the
231 lyrics of hymns, etc, so that the first words of a phrase are left aligned
232 with each other, the last words are right aligned, and the words in between
233 are centred.
234
235 5. In a song, with (say) four stanzas and a chorus, it would be nice to be
236 able to vertically align the chorus midway between the staves.
237
238 6. It would be nice to be able to put vertical brackets either side of a
239 repeated section with different words for each repeat.
240 . * Give # lines in linebreaking.  
241 . * arrows on slurs.
242 . * rewrite context defs using Scheme
243 . * junk TeX specifics from internal code.
244 . * \selectmusic to cut pieces from music. 
245 . * formatting of input stuff. 
246 .  * deps for ly2dvi
247 . * TODO: merge atom & molecule; make  tree from molecule.
248 . * Align_element::padding  ?
249 . * typo checks on property names?
250 . * use streambufs and iostream
251 to provide IO handling for TeX stream, mudela stream, data-file.
252 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
253 . * strip EXEs before installing
254 . * zip target for binary windows dist (JBR)
255 . * fix partial measures in meaningful way.
256 . * uniformise recent feta contributions.
257 .  * bigger and fatter 4/4 C
258 . * relative mode for midi2ly
259 . * junking \skip req in lyrics
260 . * midi2ly empty staffs.
261 . * use Fourier transformation for rhythmic quantisation.
262 . * horizontal centering of dynamics 
263 . * $DEPENDENCIES_OUTPUT support
264 . * turn slope-damping on/off
265 . * sort out directory stuff.
266 .  * --prefix option?
267 .  * -I option per filetype?
268 .  * kpathsea?
269 . * fix vertical alignment and stafflines
270 . * declaring Performers
271 . * text-items clash with stems/beams
272 . * --include, -I option for ly2dvi (pass on to lily)
273 . * fix placement of beam-less abbrev
274 . * \meter 3/4;
275         <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
276          {\voicetwo cis,4 r r | r2. | r1 }> |
277         }
278 . * Musical_pitch (analogous to Duration and Rhythmic_req)
279           think about, analogous to pitch: 
280            * { a4 a16 } c <-- duration of c?
281            * < a4 b8 > c <-- duration of c?
282 . * \tempo 4. = 90;
283 . * make sure all ex's have a mudela-version
284 . * do rest-collisions for Multi_measure_rests as well.
285 . * split error/warning in error/warning/non_fatal_error
286 . * add a Duration_convert member to Duration_iter to set parameters.
287         Junk global duration settings. 
288 . * en-,discouraged linebreaking: 
289 .  * handle DISALLOW < penalty > FORCE
290 .  * discourage breaking of slurs
291 . * fix variable define/lookup parser global<->paper
292 . * fix title/instrument placements; see input/test/title.ly
293 . * <\voiceone c4. \voicetwo c4>
294 . *  I'd like to change the \repetitions command to Jan's suggested
295   syntax: \repeat "repeatsymbol" 2 {...}, but I'm not sure that
296   I understand the implementation of repeats well enough.
297 . * add full cello suites to web site (kom op, Maarten!)
298 . * rename 'staff_line_leading' (who is being lead where?) to
299 staff_space, interline; (or other meaningful name) and use throughout
300 lily
301
302 [-> leading are the lead strips between the sticks (lines) of
303 typeface. ie. leading is vertical space  --hwn]
304 . * add mudela-book-doc source to webstie.
305 . * Rethink Time_description
306 \cadenza , \meter,  should all be \properties
307 . * fix singleStaffBracket
308 . * rename
309 .  * partial -> anacrouse
310 . * move paper vars into engraver properties
311 . * add new glyphs to font.ly
312 . * check for groff / troff/ nroff et
313 . * more intelligent file searching
314 . * disable spaces in TeX stuff
315 . * handle ^C for tmp/file creation.
316 . * make LilyPond RPM fully relocatable
317 . * better hshift (dots, distance, head dependent)
318 . * didot / big point.
319 . * clefs (AG): The "8" should appear closer to the actual clef,
320 touching it.
321 . * put errorlevel in Input class
322 . * junk nesting slurs
323 . * distinguish between unset and empty properties. 
324
325 .* FONT
326 . * the bracket is ugly (wings are too parabolic, should be more circular)
327 . * versioning for Feta
328 . * rewrite dynamic signs.  They're kind of spaghetti now. 
329 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
330         in the middle:
331 . * design macro for penstroke with rounded endings
332 . * timesig C: fat yet less curved.  Check out relations. 
333 . * design decent macro for bulbed endings
334 . * printer dependencies.
335 . * versioning  
336 . * lo-res fixes.
337 . * work out sizes of character fonts.
338 . * more symbols
339 .  * piano pedals: Ped/*
340 .  * maxima notehead
341 .  * coda signs: Segno, O+
342 .  * glissando, arpeggio
343 .  * lengthened trill
344 . * include important spacing dims in fetalog 
345 . * scalability: use blot_diameter everywhere, make font chubbier for
346     small sizes.
347
348 .* 3RD PARTY BUGS
349 . * UMR: Uninitialized memory read
350       This is occurring while in:
351             qst            [qsort.c]
352             qsort          [libc.so.1]
353             Keyword_table::Keyword_table(Keyword_ent*) [keyword.cc:28]
354             My_lily_lexer::My_lily_lexer() [my-lily-lexer.cc:78]
355             My_lily_parser::parse_file(String,String) [my-lily-parser.cc:54]
356             do_one_file(String,String) [scores.cc:124]
357       Reading 4 bytes from 0xefffeca8 on the stack.
358       Address 0xefffeca8 is 728 bytes below frame pointer in function 
359 . *  Array<Axis [2] > axeses;
360
361   for (int i=0; i < loose_elems.size (); i++)
362     {
363       Score_element* elt = loose_elems[i];
364       /*
365             with which axes do we have to meddle?
366       */
367       int j =0;
368       Axis as [2];
369       for (int a = X_AXIS; a < NO_AXES; ++a)
370         if (elt->parent_l (Axis (a)) == this)
371           as[j++] = Axis (a);
372       if (j == 1)
373         as[j++] = as[0];
374
375       axeses.push (as);
376     }
377 . * GNU diff 2.7: diff -rN does not see a new directory with empty file
378 . * patch: don't touch timestamp if all patches fail.
379 . * MetaPost: should not generate setgray for unfill
380 . * mfplain.ini not in tetex 0.9
381 . * mf-to-table -> add space 'before ; in AFM output.  (-> check AFM
382 spec. Is this a bug in afm2tfm?)
383 . * check out GCC signatures?
384 . * glibc 2.0:
385           f = fopen ("/dev/null", "r")
386           assert (feof (f))
387 . * tetex: mfplain.mem
388
389 .* PROJECTS
390 . * Scripts:
391 .  * stack scripts in chords:
392           % fingering:        footing:
393             < a-4 c-2 g-1 >   < c-\ltoe e-\lheel >
394 .  * script-spacing
395 .  * slur parts as a script
396 .  * stack parameterised scripts for fingering and footing:
397
398 . * convert-mudela:
399 .  * automatically add  a \version if not present.
400 .  * better parsing
401 .  * make smarter
402 .  * convert-mudela -e empty.ly
403
404 . * emacs mudela-mode
405 .  *  should handle block comments too.
406 .  *  handle lexer modes (\header, \melodic, \lyric) etc.
407 .  *  indentation
408 .  *  notenames?
409 .  *  fontlock: \melodic \melodic
410
411 . * use properties for:
412 .  * default tempo.
413 .  * cadenza mode? 
414
415 . * page handling:
416 .  * PS output
417 .  * optimal pagebreaking.
418
419 . * internationalisation for input.
420 .  * Unicode support? -> man 7 unicode
421 .  * (The explanation below is mostly intended for Han-Wen and Jan)
422 > Before, the font was changed with macros declared separately for 
423 > pure TeX and LaTeX, but now all the fonts are declared directly in
424 > the generated code using the low-level TeX commands. This circumvents
425 > the fontencoding mechanism of LaTeX and is a potential source of
426 > problems also for us users of the Latin-1 character set. 
427 > I think it still works since the inputencoding latin1 is 
428 > declared by ly2dvi, but it still means that e.g. an o with
429 > umlaut is typeset as a combination of the two symbols 'o' and
430 > 'umlaut' instead of as a single character, as would be the case
431 > if fontencoding OT1 had been used. This shouldn't give any 
432 > difference in layout, though. One of the main argument for using
433 > fontencoding OT1 is for the hyphenation mechanism to work, an 
434 > argument that's clearly irrelevant in our application. Yet we
435 > see the problem for August.
436
437 . * \header
438 .  * output header info to MIDI too.
439
440 . * a musical dictionary. See Documentation/vocabulary-*, other
441 languages:
442 .  * explanations
443 .  * italian
444 .  * german
445 .  * dutch
446 .  * swedish
447          .. ?
448
449 . * chords
450 .  * guitar chords (fret diagrams)
451 .  * other chord name styles (american(?) style)
452 .  * basso continuo
453 .  * MIDI output?
454
455 . * Debug logs:
456 .  * derive lily_stream, Dstream, texstream from ostream?
457 .  * indentable stream as baseclass for TeX stream, lily stream, Dstream.
458 .  * use dstream feature in midi2ly
459 .  * integrate IO checking into stream class
460
461 . * input converters
462 .  * NIFF?
463 .  * ABC? 
464 .  * SMDL?
465
466 . * add to MIDI output:
467 .  * sharp / flat on trills (in MIDI ??)
468 .  * ornaments (and trills?)
469 .  * slurs
470 .  * accents
471 .  * dynamics
472 > Would it be hard to add support for proper dynamics in MIDI output?  I
473 > would really like to have this feature...
474
475 Concretely spoken, for dynamics you have to write a performer
476 (Dynamics_performer), that will take the input requests. If I
477 understand correctly, every MIDI note played must have its dynamic
478 strength set separately.  That means the the Dynamics_performer must
479 set the strength of every Audio_note it finds.  This means that one
480 has to modify existing Audio items.  The best way of doing this is
481 with a broadcast/acknowledge process.
482
483 So the best way of handling this, is
484
485   1 supporting dynamic settings in Audio_note
486
487   2 Write a Dynamics_performer that will modify
488   any notes it finds to set appropriate strengths.
489
490 I'd say that the work involved is not hard, but you have to be fluent
491 with C++ and need some insight into the working of Notation Contexts
492 and friends.  I guess I could do it in a day or so, but if you are not
493 so fluent with the inner workings of LilyPond, it could take you some
494 more time (A few more days?).
495
496 Please note, that I am *not* going to code this myself: my days are
497 valuable, and I think I have more interesting things to do than fixing
498 the MIDI output (I don't even have a soundcard).  But I *do* want to help
499 you or other people with implementing this, so if you need help, don't
500 hesitate to ask.
501 .  * account for rhythmic position in measure
502 .  * etc.
503
504
505 . * Output class, handles : (smallish)
506 .  * help text /(c) notice?
507 .  * version line
508 .  * warning /errors/progress
509 .  * abort on error/warning; exit status
510 .  * quiet/ignore-version options
511 .  * logfile output
512
513 . * PS 
514 .  * speed up PS code.
515 .  * PS lines to .eps files
516 .  * write custom prolog
517
518 . * SGML input
519
520 . * Documentation
521 .  * remove links to non-free SW.
522 .  * internal documentation
523 .  * a general paper. 
524 .  * \properties
525 .   * left/rightbeamcount
526 .   * various other new properties.
527 .  * introduction?
528 .  * info?
529 .  * LaTeX?
530 .  * more manpages?
531 .  * Doc (C) stuff of sheet music
532 .  * a better format?  SGML?  TeX?  Info?
533 .  * a better tutorial
534
535 . * more spanners (smallish)
536 .  * Glissando
537 .  * trill
538
539 . * Rewrite Stem, Beam (hairy)
540 .  * general shaving on Beam and Stem
541 .  * use plet grouping
542 .  * beams over bars
543
544 . * lines:
545 .  * Ledger lines, should be separate item: Ledger_lines
546 .  * set different line sizes / thicknesses
547 .  * beam stem showthrough, inter beam sizes (french vs german style)
548
549 . * Collisions
550 .  * left/right note balls should be handled by Collision:
551         < \multi 2; { \stem 1; <b c> } { <f as b> } >
552
553 . * Keys:
554 .  * merge key{item} & localkey{item}?
555 .  * spacing, national styles?
556
557 . * Support for TAB
558 .  * redo Notehead to allow digits as heads
559 .  * add a \tablature {} lexer mode for easy entering
560
561 . * should adjust stemlength for flag number.
562
563 . * breaking:
564 .  * caching breakpoints
565 .  * saving them
566 .  * specify number of lines
567
568 .* INPUTLANGUAGE
569 . * convention for slurs vs. phrasing marks.
570 . * Language:
571 .  * \translator -> ?
572 .  * fix \partial 
573 .  * \bla {} vs \bla ; 
574 .  * mix engraver hacking with music ?
575 .  * \once\property  KEY = VAL
576 .  * input property
577 .  * abstract grammar.
578 . * Figure out semicolons.
579 . * <c f a>4 ?
580 . * Viola mode?
581
582                 @c c g e g 
583         for
584                 c g es g, 
585
586                 @A c g e g
587         for
588                 cis gis e gis
589 . * configure pitch_byte
590 . * rest name configurable
591
592
593 .* SMALLISH PROJECTS
594
595 . * fix confusing naming in Engraver vs Engraver_group_engraver (context)
596
597 . * A range for context errors (eg. mark both { and }. )
598
599 . * lyric in staff  (sharpsharp in staff, text below)
600
601 . * write Dynamic_line (to group dynamics horizontally)
602
603 . * use Real for all y positions.
604
605 . * half-sharps, half-flats
606
607 . * adaptive accidental spacing.
608
609 . * handle EOF graciously in error messages.
610
611 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
612
613 . * lily \tempo
614
615 . *   % toe to bheel   four to five
616             %   ^_u            4_5  
617             %     -                           
618             %  --|x--         --|x--
619             %  --|---         --|---
620             %  --|---         --|---
621           (where "to" is a tiny bow)
622
623 . * auxilliary file for caching info.
624 . * Text_crescendo
625
626 .* IDEAS
627 . * Output data structures of Mudela in XML/SGML.
628 . * create libmudela, or liblily_frontend
629 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
630 . * Spacing_request for manually adjusting spacing
631 . * caching breakpoints
632 . * used fixedpoint arithmetic for min. energy.
633
634 * OUTLINE SETUP
635 .* .EMACS
636 ;;; from outline.el
637 (defvar outline-font-lock-keywords
638   '(;; Highlight headings according to the level.
639     ;; must change this to allout node layout
640     ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
641     ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
642      (1 font-lock-string-face)
643      (2 (let ((len (- (match-end 1) (match-beginning 1))))
644           (or (cdr (assq len '((1 . font-lock-function-name-face)
645                                (2 . font-lock-keyword-face)
646                                (3 . font-lock-comment-face))))
647               font-lock-variable-name-face))
648         nil t))
649     ;; Highlight citations of the form [1] and [Mar94].
650     ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
651   "Additional expressions to highlight in Outline mode.")
652
653 (add-hook 'outline-mode-hook
654           '(lambda ()
655             (setq font-lock-maximum-decoration t)
656             (setq font-lock-maximum-decoration t)
657             (make-local-variable 'font-lock-defaults)
658             (setq font-lock-defaults '(outline-font-lock-keywords t))
659             (font-lock-mode global-font-lock-mode)
660         ))
661  
662 (require 'allout)
663 (outline-init 't)
664
665