]> git.donarmstrong.com Git - lilypond.git/commitdiff
use glyph indexing for glyph name .notdef
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Nov 2006 12:12:03 +0000 (12:12 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Nov 2006 12:12:03 +0000 (12:12 +0000)
make \caps markup default to smallCaps
document utf-8 meaning of phrases.
strip -Werror.
trim warning messages.

ChangeLog
buildscripts/git-update-changelog.py
configure.in
input/regression/utf-8.ly
lily/pango-font.cc
lily/tie-configuration.cc
lily/tie.cc
lily/ttf.cc
python/midi.c
scm/define-markup-commands.scm

index 54775341f5673b3ae6646edd9aef8572327fd983..c405a2399d0c4ef52d39ec1c8344cd2ff3ca0db3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2006-11-01  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * python/midi.c: 
+       trim warning messages.
+
+       * configure.in: 
+       strip -Werror.
+
+       * input/regression/utf-8.ly: 
+       document utf-8 meaning of phrases.
+
+       * scm/define-markup-commands.scm: 
+       make \caps markup default to smallCaps
+
+       * lily/pango-font.cc: 
+       * lily/ttf.cc: 
+       use glyph indexing for glyph name .notdef
+
 2006-11-02  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * input/regression/utf-8.ly: Fix doc to match order of language
index a1cb3cf2f961bead4f16c83311ce72141808826e..44a7aa09b849aa45406a50ab7e51bc8b1422f7f6 100644 (file)
@@ -150,6 +150,12 @@ Run this file from the CVS directory, with --git-dir
         log = log[len (first):]
 
     file_adddel = []
+<<<<<<< HEAD/buildscripts/git-update-changelog.py
+=======
+    
+    collated_log = ''
+    collated_message = ''
+>>>>>>> b1b4484cce6e2fe9d312b7617e801efa00dea57b/buildscripts/git-update-changelog.py
     
     collated_log = ''
     collated_message = ''
index 7170cf9caabf21f8f8049ef14dd06ffb9999fdc0..16cb3c3f211afbae5d9021ca509a2fc2bb33343c 100644 (file)
@@ -165,8 +165,6 @@ STEPMAKE_PROGS(MAKEINFO, makeinfo, REQUIRED, 4.8)
 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
 
 
-CXXFLAGS="$CXXFLAGS -Werror"
-
 # Gather requirements and generate output.
 STEPMAKE_END
 
index ac309fba78984b699519c0b1728ef0b4e184df0a..a9b4179face3c36905992cf53e9ac152888b56c8 100644 (file)
@@ -45,6 +45,7 @@ japanese = \lyricmode {
   あさきゆめみじ ゑひもせず 
  }
 
+% "a legal song to you"
 portuguese = \lyricmode { 
   à vo cê uma can ção legal
 }
index 7d50025c388197c9629e84a48fa55d3ecaea791c..e075029154b68ed7cb7638f8ddced5106957a11b 100644 (file)
@@ -178,12 +178,10 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, string str,
          if (errorcode)
            programming_error ("FT_Get_Glyph_Name returns error");
        }
-      
+
       SCM char_id = SCM_EOL;
       if (glyph_name[0] == '\0'
          && cmap
-
-         /* Ugh should ask FreeType about font type. */
          && is_ttf
          && cmap->find (pg) != cmap->end ())
        {
@@ -200,6 +198,10 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, string str,
          continue;
        }
 
+      
+      if (glyph_name == string (".notdef") && is_ttf)
+       glyph_name[0] = '\0';
+         
       if (glyph_name[0] == '\0' && is_ttf)
        {
          // access by glyph index directly.
index 2e15eb72ebe6d21fbfa9fd3459c5cb7a53f02ee9..27f44691dd1ba3a27ffbff8f8726c5963936b71e 100644 (file)
@@ -80,6 +80,12 @@ Tie_configuration::column_span_length () const
   return column_ranks_[RIGHT] - column_ranks_[LEFT];
 }
 
+int
+Tie_configuration::column_span_length () const
+{
+  return column_ranks_[RIGHT] - column_ranks_[LEFT];
+}
+
 Real
 Tie_configuration::distance (Tie_configuration const &a,
                             Tie_configuration const &b)
index 264bc9172a2b6f60d018c92863195787520e4581..1263237688630d9d862a5978acff1a85856c60b7 100644 (file)
@@ -213,7 +213,8 @@ Tie::calc_control_points (SCM smob)
   (void)  get_grob_direction (me);
 
   Grob *yparent = me->get_parent (Y_AXIS);
-  if (Tie_column::has_interface (yparent)
+  if ((Tie_column::has_interface (yparent)
+       || Semi_tie_column::has_interface (yparent)) 
       && unsmob_grob_array (yparent->get_object ("ties"))
       && unsmob_grob_array (yparent->get_object ("ties"))->size () > 1)
     {
index 3c6370fd25317b488a48dd28e1075ab79a03dc21..0e5526f8e1727a7b5d3bbc79f2f562652fe2fe86 100644 (file)
@@ -180,6 +180,10 @@ print_trailer (void *out,
          get_unicode_name (glyph_name, ucode);
        }
 
+      if (glyph_name == string (".notdef"))
+       glyph_name[0] = '\0';
+
+      
       if (!glyph_name[0])
        {
          get_glyph_index_name (glyph_name, i);
index ef6c7af810455d315e2e059c552e37f0c05a7b12..f80a469380e87748ffcbfe0a4b92c4947dbe5816 100644 (file)
@@ -332,8 +332,6 @@ pymidi_parse_track (PyObject *self, PyObject *args)
   unsigned char *track, *track_end;
   unsigned long track_size;
 
-  PyObject * sobj = PyTuple_GetItem (args, 0);
-
   debug_print ("%s", "\n");
   if (!PyArg_ParseTuple (args, "s#", &track, &track_size))
     return 0;
@@ -394,8 +392,6 @@ pymidi_parse (PyObject *self, PyObject *args)
   unsigned char *midi, *midi_end;
   unsigned long midi_size;
   
-  PyObject *sobj = PyTuple_GetItem (args, 0);
-
   debug_print ("%s", "\n");
   if (!PyArg_ParseTuple (args, "s#", &midi, &midi_size))
     return 0;
@@ -430,5 +426,10 @@ initmidi (void)
   add_constants (d);
   Midi_warning = PyString_FromString ("midi.warning");
   PyDict_SetItemString (d, "warning", Midi_warning);
+
+  /*
+    FIXME.
+   */
+  (void) midi_warning;
 }
  
index 4d87479283bfff0509b02dd0a7b5d819de6b7387..73e243a6a185d879e8f24238ff2f7828c969bae5 100644 (file)
@@ -896,7 +896,7 @@ some punctuation. It doesn't have any letters.  "
   "Set font size to -3."
   (interpret-markup layout (prepend-alist-chain 'font-size -3 props) arg))
 
-(define-markup-command (caps layout props arg) (markup?)
+(define-markup-command (fontCaps layout props arg) (markup?)
   "Set @code{font-shape} to @code{caps}."
   (interpret-markup layout (prepend-alist-chain 'font-shape 'caps props) arg))
 
@@ -966,6 +966,9 @@ some punctuation. It doesn't have any letters.  "
                                                 #f
                                                 #f)))
 
+(define-markup-command (caps layout props arg) (markup?)
+  (interpret-markup layout props (make-smallCaps-markup arg)))
+
 (define-markup-command (dynamic layout props arg) (markup?)
   "Use the dynamic font.  This font only contains @b{s}, @b{f}, @b{m},
 @b{z}, @b{p}, and @b{r}.  When producing phrases, like ``pi@`{u} @b{f}'', the