text-input page: what about using SVG and switch element?

2012-02-27 Thread Federico Bruni

Hi,

how would you feel about using SVG images and the switch element in 
the text-input page?

http://lilypond.org/text-input.html

Pro:
- we could get rid of many .png files for all the translated languages
- maintaining translations would be much easier

Con:
- browser support?
http://www.codedread.com/svg-support.php

In 2007 Graham was against using SVG, because of limmited browser support:
http://lists.gnu.org/archive/html/lilypond-devel/2007-04/msg00087.html

5 years later, something has changed?

Find attached a small draft. Translated languages are it, es, hu, de, 
nl, fr. If your system language is one of these languages, you should 
see the translated text; otherwise the text will fall back to english.


I've tested it on Chromium 16 and Firefox 10 and it's working fine.
Can anyone test it on IE9?

Of course, if we care about people using IE8, probably we'll have to 
wait for IE9 to replace it.


Cheers,
Federico
Title: LilyPond – Music notation for everyone: Text input






It’s as simple as A B C

Notes are encoded with letters and numbers. Special commands are entered with backslashes.




Alterations are made with different names: add -is for sharp, and -es for flat (these are Dutch note names, other languages are available). LilyPond figures out where to put accidentals.

Pop music

Put chords and lyrics together to get a lead sheet:

Orchestral parts

The input file contains the notes of piece of music. Score and parts can be made from a single input file, so that changing a note always affects the score and parts. To be able to include the same music in multiple places, the music is assigned to a “variable” (a name).

This variable is then used in a single part (here transposed, with condensed rests spanning several measures):

The same variable is used in the full score (here in concert pitch):



attachment: text-input-1-annotate.manual.svgattachment: text-input-1-output.png___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: text-input page: what about using SVG and switch element?

2012-02-27 Thread Graham Percival
On Mon, Feb 27, 2012 at 09:47:46AM +0100, Federico Bruni wrote:
 - browser support?
 http://www.codedread.com/svg-support.php
 
 In 2007 Graham was against using SVG, because of limmited browser support:
 http://lists.gnu.org/archive/html/lilypond-devel/2007-04/msg00087.html
 
 5 years later, something has changed?

In the past month, we had 2,482 visits from people using ie 8, 332
visits from ie7, 145 from ie 6, and 1 from ie 5.23.  IE 9.0
comprised 43% of all ie-using visits.

I don't think we should change yet.

- Graham

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


Re: text-input page: what about using SVG and switch element?

2012-02-27 Thread Francisco Vila
2012/2/27 Federico Bruni fedel...@gmail.com:
 Pro:
 - we could get rid of many .png files for all the translated languages
 - maintaining translations would be much easier

 Con:
 - browser support?
 http://www.codedread.com/svg-support.php

Interesting.

A Con: to view it in another language you must change the system setting, right?

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: text-input page: what about using SVG and switch element?

2012-02-27 Thread Federico Bruni
2012/2/27 Francisco Vila paconet@gmail.com:
 Interesting.

 A Con: to view it in another language you must change the system setting, 
 right?

Yes, in a browser it's probably the only way.
I've tried using the LANG variable, but it doesn't work.

Another way is using Squiggle.
Install the package libbatik-java

Then launch squiggle from a terminal and open the SVG file.
In the preferences you can set the language.

NOTE: You have to delete any other language and put just the one you
want to see.
Having the desired language on top of a list of languages doesn't work.

Then reload the file.

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