Re: website issue

2020-03-25 Thread Kevin Barry
On Wed, 25 Mar 2020 at 20:06, David Nalesnik  wrote:
>
> I'm getting some spurious characters at
> http://lilypond.org/manuals.html.  Screenshot attached.

looks python2 vs python3 related: b'' is how python3 prints byte
strings (which were the default string type in python2, but not in
python3).



website issue

2020-03-25 Thread David Nalesnik
I'm getting some spurious characters at
http://lilypond.org/manuals.html.  Screenshot attached.

Here's some of the page source:
  bLearning:
a must-read gentle introduction to LilyPond.
(details of Learning)

Thanks,
David


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-05-01 Thread Jan Nieuwenhuizen
Graham Percival writes:

 On Fri, Apr 27, 2012 at 10:18:23AM -0300, Han-Wen Nienhuys wrote:
 On Fri, Apr 27, 2012 at 10:15 AM, Han-Wen Nienhuys hanw...@gmail.com wrote:
  Who is GNU_LilyPond anyway?  I thought it was, but I might be mistaken.
 
 I mean: I thought it was Jan.

 yeah, it's Jan.

yes, /currently/ it's me, but as you can see, it could do with some love

Jan

-- 
Jan Nieuwenhuizen jann...@gnu.org | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread mike

Hey all,

The new patchset puts the tweets in a separate xml file.  I use xml
instead of txt to avoid parsing annoyances.  The only problem is that,
because the xml is in a DOM structure, the individual tweets can't
contain sub-nodes, which means that if someone wants to use anchor tags
or whatever, they need to use lt; and gt; instead of  and .

http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread mike

I also just realized that git-cl does not know how to play nicely with
the .xml extension, so the patch can't be tested.  I'll investigate...

http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread mike

Hmm...it looks like the xml mime type is defined, so I'm short on ideas
for why it's not uploading to Rietveld correctly.
Below are the contents of tweets.xml:


tweets
tweet
The Ensemble 101 is going on a European tour where they'll sing music
typeset using LilyPond.  Click lt;a target=_blank
href=http://www.ensemble101.frgt;herelt;/agt; to learn more!
/tweet
/tweets


http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread graham

On 2012/04/27 07:49:30, mike7 wrote:

I also just realized that git-cl does not know how to play nicely with

the .xml

extension, so the patch can't be tested.  I'll investigate...


Have you tried adding it to line 26 of git-cl ?

http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread graham

LGTM, one minor question but it's ok with me.


http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi
File Documentation/web.texi (right):

http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi#newcode172
Documentation/web.texi:172: xhttp=new
ActiveXObject(Microsoft.XMLHTTP);
My initial intuition is that there should be a simpler way to get the
contents of a file on the same server, but I happily know almost nothing
about javascript.

If somebody else knows javascript, it would be great if they glanced at
this.

http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread mike

On 2012/04/27 07:53:06, Graham Percival wrote:

On 2012/04/27 07:49:30, mike7 wrote:
 I also just realized that git-cl does not know how to play nicely

with the

.xml
 extension, so the patch can't be tested.  I'll investigate...



Have you tried adding it to line 26 of git-cl ?


I added:

mimetypes.add_type(application/xml, .xml)

But to no avail :(

http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread mike

On 2012/04/27 07:55:54, Graham Percival wrote:

LGTM, one minor question but it's ok with me.



http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi

File Documentation/web.texi (right):



http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi#newcode172

Documentation/web.texi:172: xhttp=new

ActiveXObject(Microsoft.XMLHTTP);

My initial intuition is that there should be a simpler way to get the

contents

of a file on the same server, but I happily know almost nothing about
javascript.



If somebody else knows javascript, it would be great if they glanced

at this.

Check out http://www.w3schools.com/xml/xml_parser.asp.

http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread graham

On 2012/04/27 07:58:50, mike7 wrote:

 Have you tried adding it to line 26 of git-cl ?
mimetypes.add_type(application/xml, .xml)



But to no avail :(


ok, fair enough.  It's a small, new, file, and can see the entire thing
by following the download link next to the filename in rietveld.

http://codereview.appspot.com/6068045/

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread David Kastrup
gra...@percival-music.ca writes:

 LGTM, one minor question but it's ok with me.


 http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi
 File Documentation/web.texi (right):

 http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi#newcode172
 Documentation/web.texi:172: xhttp=new
 ActiveXObject(Microsoft.XMLHTTP);
 My initial intuition is that there should be a simpler way to get the
 contents of a file on the same server, but I happily know almost nothing
 about javascript.

 If somebody else knows javascript, it would be great if they glanced at
 this.

 http://codereview.appspot.com/6068045/

What's the relation to ActiveX?  Does this only work on browsers
enabling ActiveX?  That would be very strange for the project page of a
GNU project.

-- 
David Kastrup


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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread m...@apollinemike.com

On 27 avr. 2012, at 10:55, David Kastrup wrote:

 gra...@percival-music.ca writes:
 
 LGTM, one minor question but it's ok with me.
 
 
 http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi
 File Documentation/web.texi (right):
 
 http://codereview.appspot.com/6068045/diff/13001/Documentation/web.texi#newcode172
 Documentation/web.texi:172: xhttp=new
 ActiveXObject(Microsoft.XMLHTTP);
 My initial intuition is that there should be a simpler way to get the
 contents of a file on the same server, but I happily know almost nothing
 about javascript.
 
 If somebody else knows javascript, it would be great if they glanced at
 this.
 
 http://codereview.appspot.com/6068045/
 
 What's the relation to ActiveX?  Does this only work on browsers
 enabling ActiveX?  That would be very strange for the project page of a
 GNU project.
 

This bit is needed for IE 6 and 7.
Although I agree with what you're saying, I think that the webpage should 
display correctly for all people who try to access it (to the best of our 
abilities).

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread Han-Wen Nienhuys
Totally off the wall idea here:

Is it possilble to display the contents of the twitter #lilypond
hashtag and/or @lilypond twitter account in an iframe instead? If we
use actual twitter, we would get some publicity on twitter.com too.

On Fri, Apr 27, 2012 at 4:52 AM,  m...@mikesolomon.org wrote:
 Hmm...it looks like the xml mime type is defined, so I'm short on ideas
 for why it's not uploading to Rietveld correctly.
 Below are the contents of tweets.xml:


 tweets
 tweet
 The Ensemble 101 is going on a European tour where they'll sing music
 typeset using LilyPond.  Click lt;a target=_blank
 href=http://www.ensemble101.frgt;herelt;/agt; to learn more!
 /tweet
 /tweets



 http://codereview.appspot.com/6068045/

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



-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread Graham Percival
On Fri, Apr 27, 2012 at 09:19:55AM -0300, Han-Wen Nienhuys wrote:
 Is it possilble to display the contents of the twitter #lilypond
 hashtag and/or @lilypond twitter account in an iframe instead? If we
 use actual twitter, we would get some publicity on twitter.com too.

It's certainly possible, but nobody's shown much interest in
working on announcement methods:
http://code.google.com/p/lilypond/issues/detail?id=940
I mean, even plain old RSS isn't working.

I view this twits.txt as a possible first step towards such
announcements.

- Graham

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread Han-Wen Nienhuys
Who is GNU_LilyPond anyway?  I thought it was, but I might be mistaken.

On Fri, Apr 27, 2012 at 9:39 AM, Graham Percival
gra...@percival-music.ca wrote:
 On Fri, Apr 27, 2012 at 09:19:55AM -0300, Han-Wen Nienhuys wrote:
 Is it possilble to display the contents of the twitter #lilypond
 hashtag and/or @lilypond twitter account in an iframe instead? If we
 use actual twitter, we would get some publicity on twitter.com too.

 It's certainly possible, but nobody's shown much interest in
 working on announcement methods:
 http://code.google.com/p/lilypond/issues/detail?id=940
 I mean, even plain old RSS isn't working.

 I view this twits.txt as a possible first step towards such
 announcements.

 - Graham



-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread Han-Wen Nienhuys
On Fri, Apr 27, 2012 at 10:15 AM, Han-Wen Nienhuys hanw...@gmail.com wrote:
 Who is GNU_LilyPond anyway?  I thought it was, but I might be mistaken.

I mean: I thought it was Jan.

-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen

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


Re: Add announcements to the upper right corner of the website (issue 6068045)

2012-04-27 Thread Graham Percival
On Fri, Apr 27, 2012 at 10:18:23AM -0300, Han-Wen Nienhuys wrote:
 On Fri, Apr 27, 2012 at 10:15 AM, Han-Wen Nienhuys hanw...@gmail.com wrote:
  Who is GNU_LilyPond anyway?  I thought it was, but I might be mistaken.
 
 I mean: I thought it was Jan.

yeah, it's Jan.

- Graham

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


Re: Build: Dependencies for make website (issue 2027). (issue 5493074)

2011-12-20 Thread graham

LGTM


http://codereview.appspot.com/5493074/diff/1/make/website.make
File make/website.make (right):

http://codereview.appspot.com/5493074/diff/1/make/website.make#newcode189
make/website.make:189: website-xrefs: website-version website-bibs
$(OUT) $(xref-files)
Do the xrefs really depend on website-bibs?  I thought the generated
.itexi files for bibs only had an @itemize.  Or is this a precautionary
measure in case we ever add @nodes to those?

Anyway, I'm just curious here; I don't mind having website-bibs here
regardless of whether they're strictly necessary or not.

http://codereview.appspot.com/5493074/

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


Re: Build: Dependencies for make website (issue 2027). (issue 5493074)

2011-12-20 Thread julien . rioux

Documentation writers: Is it correct to say as a general rule that if a
file has a .itexi extension, it does not contain @nodes?


http://codereview.appspot.com/5493074/diff/1/make/website.make
File make/website.make (right):

http://codereview.appspot.com/5493074/diff/1/make/website.make#newcode189
make/website.make:189: website-xrefs: website-version website-bibs
$(OUT) $(xref-files)
On 2011/12/20 19:08:11, Graham Percival wrote:

Do the xrefs really depend on website-bibs?  I thought the generated

.itexi

files for bibs only had an @itemize.  Or is this a precautionary

measure in case

we ever add @nodes to those?


You are right, we don't need to track that dependency because there are
no @nodes in the texi files generated from the bib files.

http://codereview.appspot.com/5493074/

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


Re: Build: Dependencies for make website (issue 2027). (issue 5493074)

2011-12-20 Thread julien . rioux

On 2011/12/20 19:25:20, Julien Rioux wrote:

Documentation writers: Is it correct to say as a general rule that if

a file has

a .itexi extension, it does not contain @nodes?


OK, that's not a general rule, but it happens to be true for itexi files
generated from bib files.

http://codereview.appspot.com/5493074/

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


Build: Dependencies for make website (issue 2027). (issue 5493074)

2011-12-18 Thread julien . rioux

Reviewers: ,

Description:
Build: Dependencies for make website (issue 2027).

Please review this at http://codereview.appspot.com/5493074/

Affected files:
  M make/website.make


Index: make/website.make
diff --git a/make/website.make b/make/website.make
index  
d6d9ef7a12a09b921b922214370820e51edae311..fd92e52857cba63981b759c10291b92f664003e2  
100644

--- a/make/website.make
+++ b/make/website.make
@@ -98,6 +98,32 @@ MANUALS_WEB := web.texi $(WEB_LANGS:%=web.%.texi)
 MANUALS_BASE = $(basename $(MANUALS) $(MANUALS_WEB))


+###
+### Dependency tracking
+
+# Find the file $(1) within the texinfo include dirs and return its path.
+# If not found, i.e. it is a generated file, then the file is ignored.
+find-texi = \
+$(firstword \
+   $(wildcard $(dir $)$(1)) \
+   $(wildcard $(top-src-dir)/Documentation/$(1)) \
+)
+
+# Recursively scan the file $(1) for @include, search for included files
+# within the texinfo include dirs, and return all dependencies.
+scan-texi = \
+	$(foreach f, $(shell echo | sed -ne /^@include[[:space:]]/s/@include//p  
$(1)), \

+   $(call find-texi,$(f)) \
+   $(call scan-texi,$(call find-texi,$(f))) \
+)
+
+# Find dependencies for the target $@, based on the texinfo source file $,
+# and write the dependencies to a .dep file.
+DO_TEXI_DEP = ( mkdir -p $(dir $@)  echo ./$@: $(call scan-texi,$)   
$@.dep ) 

+
+-include dummy.dep $(wildcard $(OUT)/*.dep) $(wildcard $(OUT)/*/*.dep)
+
+
 ###
 ### Generated files

@@ -135,7 +161,7 @@ xref-files = $(MANUALS_BASE:%=$(OUT)/%.xref-map)

 check-setup:
 ifeq ($(LILYPOND_WEB_MEDIA_GIT),)
-   echo Need a $LILYPOND_WEB_MEDIA_GIT environment variable!
+   echo Need a LILYPOND_WEB_MEDIA_GIT environment variable!
exit 1
 endif

@@ -160,7 +186,7 @@ website-texinfo: website-version website-xrefs  
website-bibs $(texinfo-files)


 website-version: $(OUT) $(version-files)

-website-xrefs: website-version $(OUT) $(xref-files)
+website-xrefs: website-version website-bibs $(OUT) $(xref-files)


 #
@@ -174,10 +200,10 @@ $(OUT)/pictures: $(OUT)/website/pictures
ln -sf website/pictures $(OUT)/pictures

 # Generated itexi files
-$(OUT)/version.itexi: #FIXME: add dependencies
+$(OUT)/version.itexi: $(top-src-dir)/VERSION
$(CREATE_VERSION) $(top-src-dir)  $(OUT)/version.itexi

-$(OUT)/weblinks.itexi: #FIXME: add dependencies
+$(OUT)/weblinks.itexi: $(top-src-dir)/VERSION
$(CREATE_WEBLINKS) $(top-src-dir)  $(OUT)/weblinks.itexi

 $(bib-files): $(OUT)/%.itexi: $(top-src-dir)/Documentation/web/%.bib
@@ -211,12 +237,12 @@ $(OUT)/web.%.xref-map:  
$(top-src-dir)/Documentation/%/web.texi

$(DO_TEXI_DEP) $(EXTRACT_TEXI_FILENAMES) --split=node $

 # Build the English website
-$(OUT)/index.html: $(top-src-dir)/Documentation/web.texi
+$(OUT)/index.html: $(top-src-dir)/Documentation/web.texi $(xref-files)
$(DO_TEXI_DEP) $(TEXI2HTML) $

 # Build translated websites
 $(eval $(foreach l,$(WEB_LANGS),\
-$(eval $(OUT)/$(l)/index.html: $(top-src-dir)/Documentation/$(l)/web.texi;  
\
+$(eval $(OUT)/$(l)/index.html: $(top-src-dir)/Documentation/$(l)/web.texi  
$(xref-files); \

$$(DO_TEXI_DEP) $$(TEXI2HTML) --lang=$(l) $$; ) \
 ))




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