Re: LC_PAPER and default paper size

2012-08-30 Thread Martin Tarenskeen



On Thu, 30 Aug 2012, David Kastrup wrote:


What is wrong with specifying the paper size you want in the \paper
block?

More often than not, the global staff size and manual tweaks are set to
achieve a certain page layout.  If LilyPond changed its behavior on
different computers, stuff would stop working without the user having a
clue that this was not intended output.


Yes, this is a good reason why Lilypond does not respect LC_PAPER

If - for whatever strange reason - you always want US-letter papersize: On 
Linux you can put an alias in your .bashrc file


alias lilypond='lilypond -dpapersize=letter'

After that, if you run lilypond from the commandline, you don't have to type 
that option manually everytime.


But: Not recommended.

--

MT

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-30 Thread Martin Tarenskeen


On Thu, 30 Aug 2012, Pavel Roskin wrote:


Quoting David Kastrup d...@gnu.org:


What is wrong with specifying the paper size you want in the \paper
block?


I want to make the scores available to everybody.  I want users across the 
world to be able to find the music, create the PDF and print it with no 
problems on the paper they have.


I live in a a4 country.
I always try to set the borders in my scores wide enough so that at least 
everything will be readable on both A4 and Letter pages, even though the score 
has been created and tested for a4 paper.


QUESTION:

This reminds of a question I have had for some time: I would like - for testing 
purposes - draw/print a box exactly around the page borders of my score. This 
way I want to be able to preview what a page would look like for example on a5 
paper, or on iPad or Postcard dimensions, even if I print it on a4 paper. Can 
this be achieved with some lilypond/scheme magick ?



--

MT

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-30 Thread David Kastrup
Pavel Roskin pro...@gnu.org writes:

 Quoting David Kastrup d...@gnu.org:

 What is wrong with specifying the paper size you want in the \paper
 block?

 I want to make the scores available to everybody.  I want users across
 the world to be able to find the music, create the PDF and print it
 with no problems on the paper they have.

But they will have problems when their paper size is one you have not
tested.

 Specifying \paper would make the choice for the users.  Printers might
 ask for paper that is not readily available.  Actually, Mutopia
 doesn't want \paper to be specified.

Probably because they want scores to work (or not) consistently out of
the box (which in this case means that the default favors the majority
of the world rather than the U.S.A., as opposed to what LaTeX does).

 More often than not, the global staff size and manual tweaks are set
 to achieve a certain page layout.  If LilyPond changed its behavior
 on different computers, stuff would stop working without the user
 having a clue that this was not intended output.

 Now that's a strong argument against LC_PAPER.  I'm guilty of making
 such tweaks too.

Of course it happens to some degree with major version changes as well.
But it is rare that something _stops_ fitting due to spacing changes.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-30 Thread David Kastrup
Felipe Castro fef...@gmail.com writes:

 I want to make the scores available to everybody.  I want users across
 the world to be able to find the music, create the PDF and print it
 with no problems on the paper they have.

 Specifying \paper would make the choice for the users.  Printers might
 ask for paper that is not readily available.  Actually, Mutopia
 doesn't want \paper to be specified.

 If the printer has just letter size paper to print an A4 PDF-file,
 will not the PDF-reader be able to stretch it a little bit, so that
 the content will fit to the new size and aspect ratio?

Usually the most annoying misfeature ever.

 More often than not, the global staff size and manual tweaks are set
 to achieve a certain page layout.  If LilyPond changed its behavior
 on different computers, stuff would stop working without the user
 having a clue that this was not intended output.

 Now that's a strong argument against LC_PAPER.  I'm guilty of making
 such tweaks too.

 And also, the good thing with those environment variables is that most
 users should be used to them. The bad thing is that most users don't
 know them.

Personally, I think it would be reasonable if LilyPond editors like
Frescobaldi or Emacs, when asked to insert a basic document template,
would do so with a paper setting corresponding to the current
locale/environment/whatever.  But LilyPond itself should behave the same
with the same input.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-30 Thread Hans Aberg
On 30 Aug 2012, at 08:55, Martin Tarenskeen wrote:

 I always try to set the borders in my scores wide enough so that at least 
 everything will be readable on both A4 and Letter pages, even though the 
 score has been created and tested for a4 paper.
 
 QUESTION:
 
 This reminds of a question I have had for some time: I would like - for 
 testing purposes - draw/print a box exactly around the page borders of my 
 score. This way I want to be able to preview what a page would look like for 
 example on a5 paper, or on iPad or Postcard dimensions, even if I print it on 
 a4 paper. Can this be achieved with some lilypond/scheme magick ?

Perhaps an option where you specify both paper sizes, and music is drawn within 
the smallest rectangle of them.

Hans



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-29 Thread Pavel Roskin
On Wed, 29 Aug 2012 01:19:48 +0200
David Kastrup d...@gnu.org wrote:

 Pavel Roskin pro...@gnu.org writes:
 
  Hello!
 
  I have noticed that Lilypond 2.16.0 uses A4 paper size even if the
  locale is set to en_US.utf8.  I can force the letter output by using
 
  -dpaper-size=\letter\
 
  but that seems inelegant.  Is there any way to make Lilypond
  default to letter pages without adding anything to the command line?
 
  I used strace and didn't see Lilypond open any file in the home
  directory, such as ~/.lilypondrc or something.
 
  Should not Lilypond respect the LC_PAPER setting from the locale?
 
 I don't think that LilyPond should produce different output on
 different systems for whatever reason.

Doesn't TeX respect LC_PAPER?

I can understand that Lilypond should not look at any local settings to
interpret the input, as the input is Lilypond-specific.  But I don't
see why Lilypond should ignore local setting for the output.  Paper is
paper, whether it's used for text or music.

-- 
Regards,
Pavel Roskin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-29 Thread David Kastrup
Pavel Roskin pro...@gnu.org writes:

 On Wed, 29 Aug 2012 01:19:48 +0200
 David Kastrup d...@gnu.org wrote:

 Pavel Roskin pro...@gnu.org writes:
 
  Hello!
 
  I have noticed that Lilypond 2.16.0 uses A4 paper size even if the
  locale is set to en_US.utf8.  I can force the letter output by using
 
  -dpaper-size=\letter\
 
  but that seems inelegant.  Is there any way to make Lilypond
  default to letter pages without adding anything to the command line?
 
  I used strace and didn't see Lilypond open any file in the home
  directory, such as ~/.lilypondrc or something.
 
  Should not Lilypond respect the LC_PAPER setting from the locale?
 
 I don't think that LilyPond should produce different output on
 different systems for whatever reason.

 Doesn't TeX respect LC_PAPER?

No.  TeX/LaTeX is letterpaper by default.  You have to ask for a4paper
in the LaTeX source (or, in plain TeX, meddle with \hsize, \vsize and
stuff) explicitly to change the layout.  While dvips has a default paper
size setting, that does not concern the dvi file (and consequently the
text layout), but merely the offsets for placing the page content on a
particular printer.

 I can understand that Lilypond should not look at any local settings
 to interpret the input, as the input is Lilypond-specific.  But I
 don't see why Lilypond should ignore local setting for the output.
 Paper is paper, whether it's used for text or music.

If you are asking for LilyPond to behave like TeX/LaTeX, the result is
exactly _not_ catering to LC_PAPER.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-29 Thread Pavel Roskin

Quoting David Kastrup d...@gnu.org:


Pavel Roskin pro...@gnu.org writes:



Doesn't TeX respect LC_PAPER?


No.  TeX/LaTeX is letterpaper by default.  You have to ask for a4paper
in the LaTeX source (or, in plain TeX, meddle with \hsize, \vsize and
stuff) explicitly to change the layout.  While dvips has a default paper
size setting, that does not concern the dvi file (and consequently the
text layout), but merely the offsets for placing the page content on a
particular printer.


I can understand that Lilypond should not look at any local settings
to interpret the input, as the input is Lilypond-specific.  But I
don't see why Lilypond should ignore local setting for the output.
Paper is paper, whether it's used for text or music.


If you are asking for LilyPond to behave like TeX/LaTeX, the result is
exactly _not_ catering to LC_PAPER.


Oh well, it looks like LC_PAPER is not getting as much respect from  
typesetting software as I thought.  I guess I'll have to readjust my  
taste and write a wrapper around Lilypond.


--
Regards,
Pavel Roskin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-29 Thread David Kastrup
Pavel Roskin pro...@gnu.org writes:

 Quoting David Kastrup d...@gnu.org:

 Pavel Roskin pro...@gnu.org writes:

 Doesn't TeX respect LC_PAPER?

 No.  TeX/LaTeX is letterpaper by default.  You have to ask for a4paper
 in the LaTeX source (or, in plain TeX, meddle with \hsize, \vsize and
 stuff) explicitly to change the layout.  While dvips has a default paper
 size setting, that does not concern the dvi file (and consequently the
 text layout), but merely the offsets for placing the page content on a
 particular printer.

 I can understand that Lilypond should not look at any local settings
 to interpret the input, as the input is Lilypond-specific.  But I
 don't see why Lilypond should ignore local setting for the output.
 Paper is paper, whether it's used for text or music.

 If you are asking for LilyPond to behave like TeX/LaTeX, the result is
 exactly _not_ catering to LC_PAPER.

 Oh well, it looks like LC_PAPER is not getting as much respect from
 typesetting software as I thought.  I guess I'll have to readjust my
 taste and write a wrapper around Lilypond.

What is wrong with specifying the paper size you want in the \paper
block?

More often than not, the global staff size and manual tweaks are set to
achieve a certain page layout.  If LilyPond changed its behavior on
different computers, stuff would stop working without the user having a
clue that this was not intended output.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-29 Thread Pavel Roskin

Quoting David Kastrup d...@gnu.org:


What is wrong with specifying the paper size you want in the \paper
block?


I want to make the scores available to everybody.  I want users across  
the world to be able to find the music, create the PDF and print it  
with no problems on the paper they have.


Specifying \paper would make the choice for the users.  Printers might  
ask for paper that is not readily available.  Actually, Mutopia  
doesn't want \paper to be specified.



More often than not, the global staff size and manual tweaks are set to
achieve a certain page layout.  If LilyPond changed its behavior on
different computers, stuff would stop working without the user having a
clue that this was not intended output.


Now that's a strong argument against LC_PAPER.  I'm guilty of making  
such tweaks too.


--
Regards,
Pavel Roskin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


LC_PAPER and default paper size

2012-08-28 Thread Pavel Roskin
Hello!

I have noticed that Lilypond 2.16.0 uses A4 paper size even if the
locale is set to en_US.utf8.  I can force the letter output by using

-dpaper-size=\letter\

but that seems inelegant.  Is there any way to make Lilypond default to
letter pages without adding anything to the command line?

I used strace and didn't see Lilypond open any file in the home
directory, such as ~/.lilypondrc or something.

Should not Lilypond respect the LC_PAPER setting from the locale?

-- 
Regards,
Pavel Roskin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LC_PAPER and default paper size

2012-08-28 Thread David Kastrup
Pavel Roskin pro...@gnu.org writes:

 Hello!

 I have noticed that Lilypond 2.16.0 uses A4 paper size even if the
 locale is set to en_US.utf8.  I can force the letter output by using

 -dpaper-size=\letter\

 but that seems inelegant.  Is there any way to make Lilypond default to
 letter pages without adding anything to the command line?

 I used strace and didn't see Lilypond open any file in the home
 directory, such as ~/.lilypondrc or something.

 Should not Lilypond respect the LC_PAPER setting from the locale?

I don't think that LilyPond should produce different output on different
systems for whatever reason.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user