]> git.donarmstrong.com Git - lilypond.git/commitdiff
* Documentation/user/tutorial.itely (Running LilyPond): Mention
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 10 Aug 2002 12:49:52 +0000 (12:49 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 10 Aug 2002 12:49:52 +0000 (12:49 +0000)
xdvi and XFree86 option for Windows users.

* Documentation/user/invoking.itexi: Add ly2dvi's -p alias.

* scripts/ly2dvi.py: Bugfix for `ly2dvi -I ./foo foo.ly'.  Also
append directory of first file to search path, allowing
`ly2dvi foo/foo.ly' when foo.ly includes other files from
directory foo.  Add short option alias '-p' for --pdf.

ChangeLog
Documentation/user/invoking.itexi
Documentation/user/tutorial.itely
scripts/ly2dvi.py

index c1c132641cd726a2a8229d877117a009e6bd2ce3..18e762e67561ea36f34c3a73b2c4a7ffe5bdd28c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2002-08-10  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * Documentation/user/tutorial.itely (Running LilyPond): Mention
+       xdvi and XFree86 option for Windows users.
+
+       * Documentation/user/invoking.itexi: Add ly2dvi's -p alias.
+
+       * scripts/ly2dvi.py: Bugfix for `ly2dvi -I ./foo foo.ly'.  Also
+       append directory of first file to search path, allowing
+       `ly2dvi foo/foo.ly' when foo.ly includes other files from
+       directory foo.  Add short option alias '-p' for --pdf.
+
        * input/test/trills.ly: 
        * input/test/preset-extent.ly: 
        * scm/grob-property-description.scm: more extent renaming.
index e8b7699644a1b8fdc1e390e50d6f13b5cb7cda55..0907ed4a2f256fe17dadc9d4e880fb60686f2e07 100644 (file)
@@ -261,8 +261,8 @@ files. The temporary directory is created in the current directory as @code{ly2d
 @item -P,--postscript
     Also generate PostScript output, using dvips.  The postscript uses
 the standard @TeX{} bitmap fonts for your printer.
-@item --pdf
-    Also generate Portable Document Format (PDF). This option will
+@item -p,--pdf
+    Also generate Portable Document Format (PDF).  This option will
 generate a PS file using scalable fonts, and will run the PS file
 through @code{ps2pdf} producing a PDF file.
 
index c5ee4959b7e5b7810fad32aad68510bdd6f9f9c6..56174518a8fa6067f8fe7064776f0fe96f461c25 100644 (file)
@@ -357,8 +357,13 @@ you use anything other than @code{dvips}.
 
 @unnumberedsubsec Windows users
 Windows users can start the terminal by clicking on the LilyPond or
-Cygwin icons.  You can use any text editor (such as Notepad) to edit
-the LilyPond file.  Viewing the PS file can be done with:
+Cygwin icon.  You can use any text editor (such as NotePad, Emacs or
+Vim) to edit the LilyPond file.  If you install the Cygwin's XFree86
+X11 window system, tetex-x11 and ghostscript-x11 packages too, you can
+view the @code{dvi} output doing @code{xdvi test.dvi} as described
+above.  If you have installed a PostScript/PDF viewer, such as
+@code{GSView} from @uref{http://www.cs.wisc.edu/~ghost}, viewing the
+PS file can be done with:
 @quotation
 @example
 @code{gsview32 test.ps}
index d15fd4452a889c57266d3ba43d0bb036f81c59d5..8b38de76072c23af26ec6b9c702c5e55b73391a6 100644 (file)
@@ -338,7 +338,7 @@ option_definitions = [
        ('', '', 'preview', _("Make a picture of the first system.")),
        (_ ('RES'), '', 'preview-resolution', _("Set the resolution of the preview to RES.")),
        ('', 'P', 'postscript', _ ("generate PostScript output")),
-       ('', '', 'pdf', _ ("generate PDF output")),     
+       ('', 'p', 'pdf', _ ("generate PDF output")),    
        (_ ("KEY=VAL"), 's', 'set', _ ("change global setting KEY to VAL")),
        ('', 'V', 'verbose', _ ("verbose")),
        ('', 'v', 'version', _ ("print version number")),
@@ -454,6 +454,7 @@ def quiet_system (cmd, name, ignore_error = 0):
 
 
 def run_lilypond (files, outbase, dep_prefix):
+
        opts = ''
 #      opts = opts + '--output=%s.tex' % outbase
        opts = opts + ' ' + string.join (map (lambda x : '-I ' + x,
@@ -869,7 +870,7 @@ for opt in options:
                include_path.append (a)
        elif o == '--postscript' or o == '-P':
                targets.append ('PS')
-       elif o == '--pdf':
+       elif o == '--pdf' or o == '-p':
                targets.append ('PDF')
                targets.append ('PS')
        elif o == '--keep' or o == '-k':
@@ -903,11 +904,23 @@ for opt in options:
 
                sys.exit (0)
 
+# Don't convert input files to abspath, rather prepend '.' to include
+# path.
+include_path.insert (0, '.')
+
+# As a neat trick, add directory part of first input file
+# to include path.  That way you can do without the clumsy -I in:
+
+#    ly2dvi -I foe/bar/baz foo/bar/baz/baz.ly
+if files and files[0] != '-' and os.path.dirname (files[0]) != '.':
+       include_path.append (os.path.dirname (files[0]))
+       
 include_path = map (abspath, include_path)
 
-original_output = output_name
 
 
+original_output = output_name
+
 if files and files[0] != '-':
        
        # Ugh, maybe make a setup () function
@@ -929,7 +942,6 @@ if files and files[0] != '-':
        for i in ('.dvi', '.latex', '.ly', '.ps', '.tex'):
                output_name = strip_extension (output_name, i)
                outbase = strip_extension (outbase, i)
-       files = map (abspath, files)
 
        for i in files[:] + [output_name]:
                if string.find (i, ' ') >= 0: