]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix Issue 2146 "Illegal entry in bfrange block in ToUnicode CMap"
authorJohn Mandereau <john.mandereau@gmail.com>
Fri, 27 Jul 2012 22:14:47 +0000 (00:14 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Fri, 27 Jul 2012 22:16:30 +0000 (00:16 +0200)
Documentation/common-macros.itexi
config.make.in
configure.in
make/lilypond-vars.make
make/substitute.make
scripts/build/lys-to-tely.py
tex/GNUmakefile
tex/lilypond.map.in [new file with mode: 0644]

index baff739e3cfce1bde7ccf04a13d4708ae16d9ce8..1fda210772dca9152ba331fb1457d3bc1bbafa61 100644 (file)
 @set txicodequoteundirected
 @set txicodequotebacktick
 
+@c Trick to use with proper font mappings the same NCSB fonts as
+@c LilyPond instead of those provided by TeX distribution
+@tex
+\ifpdf
+  \pdfmapfile{=lilypond.map}
+\fi
+@end tex
+
 
 @c   ***** Displaying text *****
 
index 3ed8e53b05b5dde9123bec6be15e7debf7ed5511..aa674379e3dcaa8679195c722f377c6b3ce84922 100644 (file)
@@ -90,6 +90,7 @@ vimdir = $(lilypond_datadir)/vim
 
 
 NCSB_SOURCE_FILES = @NCSB_SOURCE_FILES@
+NCSB_DIR = @NCSB_DIR@
 
 ################################################################
 ## PROGRAMS
index 2050b87336c5e885654e1756d4b94f9dd56dd10e..66799abd3b43e994ea58eb32f29c440228e87f44 100644 (file)
@@ -62,13 +62,14 @@ STEPMAKE_COMPILE
 AC_CHECK_PROG(FCLIST, fc-list, fc-list)
 AC_MSG_CHECKING([New Century Schoolbook PFB files])
 AC_SUBST(NCSB_SOURCE_FILES)
+AC_SUBST(NCSB_DIR)
+UNCHECKED_NCSB_SOURCE_FILES=""
 if test "$NCSB_DIR" != "" ;  then
-  NCSB_SOURCE_FILES=""
   for f in c059013l c059016l c059033l c059036l; do
     if test ! -f "$NCSB_DIR/$f.pfb"; then
       STEPMAKE_WARN($NCSB_DIR does not contain $f.pfb.)
     else
-      NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $NCSB_SOURCE_FILES"
+      UNCHECKED_NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $UNCHECKED_NCSB_SOURCE_FILES"
     fi
   done
 else
@@ -78,14 +79,23 @@ else
                 | head -n 1`
       NCSB_FILE=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
-      NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"
+      UNCHECKED_NCSB_SOURCE_FILES="$NCSB_FILE $UNCHECKED_NCSB_SOURCE_FILES"
     done
+    NCSB_DIR=`AS_DIRNAME($NCSB_FILE)`
   else
     AC_MSG_RESULT(not found)
     echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
     echo "or use --with-ncsb-dir"
   fi
 fi
+NCSB_SOURCE_FILES=""
+for f in $UNCHECKED_NCSB_SOURCE_FILES; do
+  if test "`grep Cyrillic "$f"`" = ""; then
+    STEPMAKE_WARN($f does not have Cyrillic characters.)
+  else
+    NCSB_SOURCE_FILES="$f $NCSB_SOURCE_FILES"
+  fi
+done
 AC_MSG_RESULT($NCSB_SOURCE_FILES)
 
 AC_LANG([C++])
index 69a863bdc89a6902482a0286e3220d4e6de1d696..5c5e1efe3e0a171d74607787988e0a3e289c96b1 100644 (file)
@@ -75,6 +75,8 @@ endif
 
 TEXINPUTS=$(top-src-dir)/tex/::
 export TEXINPUTS
+TEXFONTMAPS=$(top-build-dir)/tex/$(outdir)::
+export TEXFONTMAPS
 
 export LYDOC_LOCALEDIR:= $(top-build-dir)/Documentation/po/out-www
 
index 74ba9f67d9455afba614e8652d7f4e00f36cb62d..2da2f150918b37ff18ce1de15ee85f5d2628fe78 100644 (file)
@@ -13,6 +13,7 @@ ATVARIABLES = \
   MICRO_VERSION\
   MAJOR_VERSION\
   MINOR_VERSION\
+  NCSB_DIR\
   PACKAGE\
   PATCH_LEVEL\
   PATHSEP\
index 7a8684f1949b9cf50849ea65dcc2436d030319f7..329b412a47f921c0bbeac011d40f56393cb14fa6 100644 (file)
@@ -63,6 +63,14 @@ template = '''\input texinfo
 
 @finalout @c we do not want black boxes.
 
+@c Trick to use with proper font mappings the same NCSB fonts as
+@c LilyPond instead of those provided by TeX distribution
+@tex
+\\ifpdf
+  \\pdfmapfile{=lilypond.map}
+\\fi
+@end tex
+
 @c fool ls-latex
 @ignore
 @author %%(author)s
index 51a54a43aa8f9a4b67e00f2cc862097aabb44f32..5fa66c910f3f1f752e8ddf2c5fe8177766736db8 100644 (file)
@@ -14,3 +14,5 @@ local-uninstall:
        -rmdir $(DESTDIR)$(local_lilypond_datadir)/tex
 
 all: $(INSTALLATION_FILES)
+
+local-WWW-1: $(outdir)/lilypond.map
diff --git a/tex/lilypond.map.in b/tex/lilypond.map.in
new file mode 100644 (file)
index 0000000..1e6e178
--- /dev/null
@@ -0,0 +1,4 @@
+pncr8r CenturySchL-Roma <@NCSB_DIR@/c059013l.pfb
+pncb8r CenturySchL-Bold <@NCSB_DIR@/c059016l.pfb
+pncri8r CenturySchL-Ital <@NCSB_DIR@/c059033l.pfb
+pncbi8r CenturySchL-BoldItal <@NCSB_DIR@/c059036l.pfb