]> git.donarmstrong.com Git - lilypond.git/commit
Doc-it: translate @ref links to translated nodes
authorFederico Bruni <fede@inventati.org>
Sun, 16 Apr 2017 08:46:04 +0000 (10:46 +0200)
committerFederico Bruni <fede@inventati.org>
Tue, 25 Apr 2017 06:52:56 +0000 (08:52 +0200)
commit517dafc61b819863e77b6a2661170a832479cab1
tree393a1c61f77a8ceea11b36495a3a48eba5c95433
parentf42465c693a3ef35b06a350c60499acbeabcaeac
Doc-it: translate @ref links to translated nodes

Not translated @ref links work fine in HTML output, but create
broken (undefined) links in PDF output.
I found a list of all @ref in a manual, without repetitions,
with the following command:

  cd Documentation/it/MANUAL
  grep -oh -e @ref{.*} * | sort -u > list.txt

Then I found the translation used as @node with:

  git grep -B2 "@translationof ENGLISH LINK"

Finally I translated each instance with sed, e.g.:

  sed -i "s|@ref{Accidentals}|@ref{Alterazioni}|g" *.itely

The replacement is not complete. I must find a smarter way.
26 files changed:
Documentation/it/learning/common-notation.itely
Documentation/it/learning/fundamental.itely
Documentation/it/learning/templates.itely
Documentation/it/learning/tutorial.itely
Documentation/it/learning/tweaks.itely
Documentation/it/notation/changing-defaults.itely
Documentation/it/notation/editorial.itely
Documentation/it/notation/expressive.itely
Documentation/it/notation/input.itely
Documentation/it/notation/notation-appendices.itely
Documentation/it/notation/pitches.itely
Documentation/it/notation/repeats.itely
Documentation/it/notation/rhythms.itely
Documentation/it/notation/simultaneous.itely
Documentation/it/notation/spacing.itely
Documentation/it/notation/staff.itely
Documentation/it/notation/text.itely
Documentation/it/notation/vocal.itely
Documentation/it/notation/world.itely
Documentation/it/usage/external.itely
Documentation/it/usage/lilypond-book.itely
Documentation/it/usage/running.itely
Documentation/it/usage/suggestions.itely
Documentation/it/web/community.itexi
Documentation/it/web/download.itexi
Documentation/it/web/introduction.itexi