From: Jan Nieuwenhuizen Date: Wed, 12 Aug 2009 20:08:34 +0000 (+0200) Subject: WEB: Found more hardcoded names, yay! Fix linking to essay, images in essay. X-Git-Tag: release/2.13.4-1~179^2~90 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ca0f6d68d6e123a6a278aad88167004b2adda969;p=lilypond.git WEB: Found more hardcoded names, yay! Fix linking to essay, images in essay. --- diff --git a/Documentation/general.texi b/Documentation/general.texi index a7a9dc3dc7..297faffabb 100644 --- a/Documentation/general.texi +++ b/Documentation/general.texi @@ -82,6 +82,13 @@ LilyPond is Free Software and part of the @divClass{align-right} Read more in our @ref{Introduction}! + +@c For this to work, essay needs to be split like we are +@c --split=node --node-files +@c This and more in our @ressaynamed{Engraving, essay}. +@c Possibly, node Top always works? +This and more in our @ressaynamed{Top, essay}. + @divEnd @divEnd diff --git a/Documentation/macros.itexi b/Documentation/macros.itexi index 38609b25ef..6f3029243e 100644 --- a/Documentation/macros.itexi +++ b/Documentation/macros.itexi @@ -99,13 +99,13 @@ @c Definitions for references: @c +@c @ressay @c @rglos +@c @rinternals @c @rlearning -@c @ruser -@c @ressay -@c @rprogram @c @rlsr -@c @rinternals +@c @rprogram +@c @ruser @c @c All these also have a @...named version which allows to specify the @c displayed text for the reference as second argument. diff --git a/Documentation/nl/general.texi b/Documentation/nl/general.texi index 8ca41c3998..b1cc9142fc 100644 --- a/Documentation/nl/general.texi +++ b/Documentation/nl/general.texi @@ -59,6 +59,13 @@ LilyPond is Vrije Software, is gratis en is onderdeel van het @divClass{align-right} Lees de @ref{Inleiding}! + +@c For this to work, essay needs to be split like we are +@c --split=node --node-files +@c Dat en meer in ons @ressaynamed{Engraving, essay}. +@c Possibly, node Top always works? +Dat en meer in ons @ressaynamed{Top, essay}. + @divEnd @divEnd @divId{news} diff --git a/python/auxiliar/postprocess_html.py b/python/auxiliar/postprocess_html.py index 9e624e2de2..68b0536a77 100644 --- a/python/auxiliar/postprocess_html.py +++ b/python/auxiliar/postprocess_html.py @@ -99,8 +99,8 @@ def build_pages_dict (filelist): def source_links_replace (m, source_val): return 'href="' + os.path.join (source_val, m.group (1)) + '"' -splitted_docs_re = re.compile ('(Documentation/out-www/(notation|\ -music-glossary|application|general|learning|snippets))/') +# More hardcoding, yay! +splitted_docs_re = re.compile ('(Documentation/out-www/(essay|notation|music-glossary|application|general|learning|snippets))/') lily_snippets_re = re.compile ('(href|src)="(../lily-.*?|.*?[.]png)"') pictures_re = re.compile ('src="(pictures/.*?)"') diff --git a/scripts/auxiliar/check_texi_refs.py b/scripts/auxiliar/check_texi_refs.py index dff7e334f1..cf046dddf6 100755 --- a/scripts/auxiliar/check_texi_refs.py +++ b/scripts/auxiliar/check_texi_refs.py @@ -144,7 +144,7 @@ else: ref_re = re.compile \ - ('@(ref|ruser|rlearning|rprogram|rglos)(?:\\{(?P[^,\\\\\\}]+?)|\ + ('@((?:ressay|rgloss|rinternals|rlearning|rslr|rprogram|ruser|ref)|named)(?:\\{(?P[^,\\\\\\}]+?)|\ named\\{(?P[^,\\\\]+?),(?P[^,\\\\\\}]+?))\\}(?P.)', re.DOTALL) node_include_re = re.compile (r'(?m)^@(node|include)\s+(.+?)$') diff --git a/scripts/auxiliar/tely-gettext.py b/scripts/auxiliar/tely-gettext.py index b2729489bb..870a10e97f 100755 --- a/scripts/auxiliar/tely-gettext.py +++ b/scripts/auxiliar/tely-gettext.py @@ -22,7 +22,7 @@ _doc = langdefs.translation[lang] include_re = re.compile (r'@include (.*?)$', re.M) whitespaces = re.compile (r'\s+') -ref_re = re.compile (r'(?ms)@(ruser|rprogram|ref|rlearning)\{(.*?)\}') +ref_re = re.compile (r'(?ms)@((?:ressay|rgloss|rinternals|rlearning|rslr|rprogram|ruser|ref)|named)\{(.*?)\}') node_section_re = re.compile (r'@node (.*?)\n@((?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading) (.*?)\n') section_only_re = re.compile (r'@((?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading) (.*?)\n') menu_entry_re = re.compile (r'\* (.*?)::')