Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(97)

Issue 38530043: Metafont code cleanup

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by janek
Modified:
10 years, 4 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Metafont code cleanup Commits (in reverse chronological order): font: abstract stuff away, unify, format * move common elements to separate input files, * move brace-drawing procedure to separate file, * rename feta-alphabet to feta-alphabet-generic to conform to the convention, * rename feta-generic to feta-other-generic (because this file is not for the whole font, but just some glyphs that aren't in their own subfonts); similarly parmesan-generic, * remove feta-test-generic.mf and other testing files that were just polluting the code, * put testing code in one place, * remove spurious filename comments, * unify formatting and indentation. font: clean up staffline-display in testing mode Previous testing code was a mix of hideous copy&paste with non-obvious passing glyph outlines around, which attempted to produce additional glyphs in testing mode, so that there would be both on-staffline and on-staffspace variations. That code was completely unreadable and unmaintainable. Instead i've introduced a global variable that determines how the stafflines will be printed relative to the glyphs. To see alternative configuration, just change that value. font: rename draw_staff to draw_staff_if_debugging Previous name was confusing: the stafflines are actually not drawn unless 'test' is set to non-zero value. feta accidentals: split into several files

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1473 lines, -2501 lines) Patch
A mf/common-modules-and-initialization.mf View 1 chunk +7 lines, -0 lines 0 comments Download
A mf/debugging-settings.mf View 1 chunk +14 lines, -0 lines 0 comments Download
A mf/declare-autometric-parameters.mf View 1 chunk +9 lines, -0 lines 0 comments Download
M mf/feta-accidentals.mf View 2 chunks +5 lines, -1277 lines 0 comments Download
A mf/feta-accidentals/arrow.mf View 1 chunk +82 lines, -0 lines 0 comments Download
A mf/feta-accidentals/flats.mf View 1 chunk +535 lines, -0 lines 0 comments Download
A mf/feta-accidentals/naturals.mf View 1 chunk +150 lines, -0 lines 0 comments Download
A mf/feta-accidentals/parenthesis.mf View 1 chunk +44 lines, -0 lines 0 comments Download
A mf/feta-accidentals/sharps.mf View 1 chunk +354 lines, -0 lines 0 comments Download
D mf/feta-alphabet.mf View 1 chunk +0 lines, -19 lines 0 comments Download
A mf/feta-alphabet-generic.mf View 1 chunk +19 lines, -0 lines 0 comments Download
M mf/feta-alphabet11.mf View 1 chunk +2 lines, -2 lines 0 comments Download
M mf/feta-alphabet13.mf View 1 chunk +2 lines, -2 lines 0 comments Download
M mf/feta-alphabet14.mf View 1 chunk +2 lines, -2 lines 0 comments Download
M mf/feta-alphabet16.mf View 1 chunk +2 lines, -2 lines 0 comments Download
M mf/feta-alphabet18.mf View 1 chunk +2 lines, -2 lines 0 comments Download
M mf/feta-alphabet20.mf View 1 chunk +2 lines, -3 lines 0 comments Download
M mf/feta-alphabet23.mf View 1 chunk +2 lines, -3 lines 0 comments Download
M mf/feta-alphabet26.mf View 1 chunk +2 lines, -2 lines 0 comments Download
M mf/feta-braces.mf View 2 chunks +0 lines, -40 lines 0 comments Download
M mf/feta-braces-a.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-braces-b.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-braces-c.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-braces-d.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-braces-e.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-braces-f.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-braces-g.mf View 1 chunk +1 line, -18 lines 0 comments Download
A mf/feta-braces-generic.mf View 1 chunk +47 lines, -0 lines 0 comments Download
M mf/feta-braces-h.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-braces-i.mf View 1 chunk +1 line, -18 lines 0 comments Download
M mf/feta-clefs.mf View 5 chunks +5 lines, -5 lines 0 comments Download
M mf/feta-flags-generic.mf View 2 chunks +3 lines, -30 lines 0 comments Download
M mf/feta-flags11.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-flags13.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-flags14.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-flags16.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-flags18.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-flags20.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-flags23.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-flags26.mf View 1 chunk +1 line, -9 lines 0 comments Download
D mf/feta-generic.mf View 1 chunk +0 lines, -60 lines 0 comments Download
M mf/feta-macros.mf View 2 chunks +4 lines, -3 lines 0 comments Download
M mf/feta-noteheads.mf View 15 chunks +24 lines, -208 lines 0 comments Download
M mf/feta-noteheads-generic.mf View 2 chunks +3 lines, -30 lines 0 comments Download
M mf/feta-noteheads11.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-noteheads13.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-noteheads14.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-noteheads16.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-noteheads18.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-noteheads20.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-noteheads23.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/feta-noteheads26.mf View 1 chunk +1 line, -9 lines 0 comments Download
A mf/feta-other-generic.mf View 1 chunk +29 lines, -0 lines 0 comments Download
M mf/feta-rests.mf View 14 chunks +11 lines, -17 lines 0 comments Download
M mf/feta-scripts.mf View 2 chunks +1 line, -2 lines 0 comments Download
D mf/feta-test-generic.mf View 1 chunk +0 lines, -17 lines 0 comments Download
D mf/feta-test11.mf View 1 chunk +0 lines, -15 lines 0 comments Download
D mf/feta-test13.mf View 1 chunk +0 lines, -16 lines 0 comments Download
D mf/feta-test16.mf View 1 chunk +0 lines, -16 lines 0 comments Download
D mf/feta-test20.mf View 1 chunk +0 lines, -16 lines 0 comments Download
D mf/feta-test23.mf View 1 chunk +0 lines, -16 lines 0 comments Download
D mf/feta-test26.mf View 1 chunk +0 lines, -15 lines 0 comments Download
M mf/feta-timesignatures.mf View 1 chunk +1 line, -1 line 0 comments Download
M mf/feta11.mf View 1 chunk +2 lines, -10 lines 0 comments Download
M mf/feta13.mf View 1 chunk +2 lines, -10 lines 0 comments Download
M mf/feta14.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/feta16.mf View 1 chunk +2 lines, -10 lines 0 comments Download
M mf/feta18.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/feta20.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/feta23.mf View 1 chunk +2 lines, -12 lines 0 comments Download
M mf/feta26.mf View 1 chunk +2 lines, -12 lines 0 comments Download
M mf/parmesan-clefs.mf View 19 chunks +19 lines, -57 lines 0 comments Download
D mf/parmesan-generic.mf View 1 chunk +0 lines, -50 lines 0 comments Download
M mf/parmesan-noteheads-generic.mf View 2 chunks +1 line, -21 lines 0 comments Download
M mf/parmesan-noteheads11.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/parmesan-noteheads13.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/parmesan-noteheads14.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/parmesan-noteheads16.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/parmesan-noteheads18.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/parmesan-noteheads20.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/parmesan-noteheads23.mf View 1 chunk +1 line, -9 lines 0 comments Download
M mf/parmesan-noteheads26.mf View 1 chunk +1 line, -9 lines 0 comments Download
A mf/parmesan-other-generic.mf View 1 chunk +25 lines, -0 lines 0 comments Download
M mf/parmesan11.mf View 1 chunk +2 lines, -10 lines 0 comments Download
M mf/parmesan13.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/parmesan14.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/parmesan16.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/parmesan18.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/parmesan20.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/parmesan23.mf View 1 chunk +2 lines, -11 lines 0 comments Download
M mf/parmesan26.mf View 1 chunk +2 lines, -11 lines 0 comments Download

Messages

Total messages: 9
janek
Hi, I decided that it's a good time to clean the Metafont code a bit. ...
10 years, 5 months ago (2013-12-06 19:13:56 UTC) #1
hanwenn
i have not looked at the code, but small nit: I think you could leave ...
10 years, 5 months ago (2013-12-09 09:30:32 UTC) #2
hanwenn
also, for reviewing, you should do the file reorganization and the code reorganization in different ...
10 years, 5 months ago (2013-12-09 09:31:57 UTC) #3
dak
On 2013/12/09 09:31:57, hanwenn wrote: > also, for reviewing, you should do the file reorganization ...
10 years, 5 months ago (2013-12-09 10:03:43 UTC) #4
janek
2013/12/9 <hanwenn@gmail.com>: > i have not looked at the code, but small nit: I think ...
10 years, 5 months ago (2013-12-09 17:15:55 UTC) #5
benko.pal
> However, if you don't mind, i'd prefer to leave it as is - i ...
10 years, 5 months ago (2013-12-10 13:41:23 UTC) #6
janek
2013/12/10 <benko.pal@gmail.com>: >> However, if you don't mind, i'd prefer to leave it as is ...
10 years, 5 months ago (2013-12-11 11:45:20 UTC) #7
benko.pal
hi Janek, 2013/12/11 Janek Warchoł <janek.lilypond@gmail.com>: > 2013/12/10 <benko.pal@gmail.com>: >>> However, if you don't mind, ...
10 years, 5 months ago (2013-12-11 13:29:14 UTC) #8
benko.pal
10 years, 4 months ago (2013-12-14 17:01:41 UTC) #9
> >>> However, if you don't mind, i'd prefer to leave it as is - i have
> >>> _already_ spent about 4 hours cleaning up and rebasing commits to make
> >>> them somewhat ordered for review, and i'm quite tired.
> >>
> >>
> >> I do mind.  this is not the sort of thing that can be done in a
> >> follow up patch.  If you don't want to do that, I can do the
> >> only-move-files-in-the-first-commit part, but I can't promise
> >> I'll finish before the weekend.

continued in
https://codereview.appspot.com/42330044/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b