div#tocframe {
height: 100%;
width: 27%;
-}
+}
@ref{\TEXT\,,\DISPLAY\,lilypond-learning,Learning Manual}
@end macro
-@macro rlearningnamed{TEXT,DISPLAY}
-learning manual, @ref{\TEXT\,,\DISPLAY\,lilypond-learning,Learning Manual}
-@end macro
-
@macro ruser{TEXT}
@ref{\TEXT\,,,lilypond,Notation Reference}
@end macro
-@macro rusernamed{TEXT,DISPLAY,DISPLAY}
+@macro rusernamed{TEXT,DISPLAY}
@ref{\TEXT\,,\DISPLAY\,lilypond,Notation Reference}
@end macro
-@macro rusernamed{TEXT,DISPLAY,DISPLAY}
-notation reference, @ref{\TEXT\,,\DISPLAY\,lilypond,Notation Reference}
-@end macro
-
@macro rprogram{TEXT}
@ref{\TEXT\,,,lilypond-program,Application Usage}
@end macro
@ref{\TEXT\,,\DISPLAY\,lilypond-program,Application Usage}
@end macro
-@macro rprogramnamed{TEXT,DISPLAY}
-program usage manual, @ref{\TEXT\,,\DISPLAY\,lilypond-program,Application Usage}
-@end macro
-
@macro rlsr{TEXT}
@ref{\TEXT\,,,lilypond-snippets,Snippets}
@end macro
# NODE\tFILENAME\tANCHOR
# LANG is the document language in case it's not 'en'
# Note: The filename does not have any extension appended!
-# This file can then be used by our texi2html init script to determine
+# This file can then be used by our texi2html init script to determine
# the correct file name and anchor for external refs
import sys
include_re = re.compile (r'@include ((?!../lily-).*?)\.texi$', re.M)
whitespaces = re.compile (r'\s+')
-section_translation_re = re.compile (r'^@(node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading|translationof) (.*?)\s*$', re.MULTILINE)
+section_translation_re = re.compile ('^@(node|(?:unnumbered|appendix)\
+(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|\
+(?:major|chap|(?:sub){0,2})heading|translationof) (.*?)\\s*$', re.MULTILINE)
def expand_includes (m, filename):
filepath = os.path.join (os.path.dirname (filename), m.group(1)) + '.texi'
def source_links_replace (m, source_val):
return 'href="' + os.path.join (source_val, m.group (1)) + '"'
-splitted_docs_re = re.compile ('(input/lsr/out-www/lilypond-snippets|Documentation/user/out-www/(lilypond|music-glossary|lilypond-program|lilypond-learning))/')
+splitted_docs_re = re.compile ('(input/lsr/out-www/lilypond-snippets|\
+Documentation/user/out-www/(lilypond|music-glossary|lilypond-program|\
+lilypond-learning))/')
snippets_ref_re = re.compile (r'href="(\.\./)?lilypond-snippets')
-user_ref_re = re.compile (r'href="(?:\.\./)?lilypond(-internals|-learning|-program|(?!-snippets))')
+user_ref_re = re.compile ('href="(?:[.][.])?lilypond\
+(-internals|-learning|-program|(?!-snippets))')
## Windows does not support symlinks.
# This function avoids creating symlinks for splitted HTML manuals
if lang_ext != e:
if e in pages_dict[prefix]:
available.append (l)
- elif lang_ext == '' and l.enabled and reduce (operator.and_, [not prefix.startswith (s) for s in non_copied_pages]):
+ elif lang_ext == '' and l.enabled and reduce (operator.and_,
+ [not prefix.startswith (s)
+ for s in non_copied_pages]):
# English version of missing translated pages will be written
missing.append (e)
return available, missing
-online_links_re = re.compile ('''(href|src)=['"]([^/][.]*[^.:'"]*)([.]html|[.]png)(#[^"']*|)['"]''')
+online_links_re = re.compile ('''(href|src)=['"]([^/][.]*[^.:'"]*)\
+([.]html|[.]png)(#[^"']*|)['"]''')
offline_links_re = re.compile ('''href=['"]([^/][.]*[^.:'"]*)([.]html)(#[^"']*|)['"]''')
big_page_name_re = re.compile ('''(.+?)-big-page''')
### add footer
if footer_tag_re.search (s) == None:
s = add_footer (s, footer_tag + footer)
-
+
available, missing = find_translations (prefix, lang_ext)
page_flavors = process_links (s, prefix, lang_ext, file_name, missing, target)
# Add menu after stripping: must not have autoselection for language menu.
CPPFLAGS="$save_CPPFLAGS"
-# We check for makeinfo below, too. Really duplicate that check?
-## STEPMAKE_MAKEINFO(REQUIRED, 4.11)
STEPMAKE_PYTHON_DEVEL(REQUIRED)
STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, OPTIONAL, 8.15)
}
# If we have an entry in the section<=>filename map, use that one, otherwise
- # generate the anchor here.
+ # generate the anchor here.
if (exists ($node_to_filename_map->{$node_name})) {
(my $filename, $target) = @{$node_to_filename_map->{$node_name}};
} else {
# before the fn text.
-# The following code is copied from texi2html's examples/makeinfo.init and
+# The following code is copied from texi2html's examples/makeinfo.init and
# should be updated when texi2html makes some changes there!
my $makekinfo_like_footnote_absolute_number = 0;
my $footnote_file = shift;
my $lines = shift;
my $state = shift;
-
+
$makekinfo_like_footnote_absolute_number++;
# this is a bit obscure, this allows to add an anchor only if formatted
$docid = '' if ($state->{'outside_document'} or $state->{'multiple_pass'});
if ($from_file eq $footnote_file)
- {
+ {
$from_file = $footnote_file = '';
}
my $docid = $state->{'footnote_place_id'};
my $doc_state = $state->{'footnote_document_state'};
$docid = '' if ($doc_state->{'outside_document'} or $doc_state->{'multiple_pass'});
- my $foot_label = &$anchor($state->{'footnote_footnote_id'},
- $document_file . "#$state->{'footnote_place_id'}",
+ my $foot_label = &$anchor($state->{'footnote_footnote_id'},
+ $document_file . "#$state->{'footnote_place_id'}",
"$state->{'footnote_number_in_page'}");
$footnote_text = "<small>[${foot_label}]</small> ";
}
ifeq (,$(findstring texi2html,$(MISSING_OPTIONAL)))
$(outdir)/%-big-page.html: $(outdir)/%.texi $(XREF_MAPS_DIR)/%.xref-map $(outdir)/version.itexi
- $(TEXI2HTML) --I=$(outdir) -D bigpage --output=$@ $(TEXI2HTML_INIT) $<
+ $(TEXI2HTML) --I=$(outdir) -D bigpage --output=$@ $(TEXI2HTML_INIT) $<
cp $(top-src-dir)/Documentation/lilypond*.css $(dir $@)
$(outdir)/%.html: $(outdir)/%.texi $(XREF_MAPS_DIR)/%.xref-map $(outdir)/version.itexi
XREF_MAPS_FILES=$(INFO_DOCS:%=$(XREF_MAPS_DIR)/%.xref-map)
# texi2html flags
-ifneq ($(ISOLANG),)
+ifneq ($(ISOLANG),)
TEXI2HTML_LANG = --lang=$(ISOLANG)
endif
TEXI2HTML_FLAGS += --css-ref=lilypond.css $(DOCUMENTATION_INCLUDES) \