• Miguel de Icaza's avatar
    New: · f4929ca6
    Miguel de Icaza authored
    	- Excel-like magic on strings works.  This means that everytime
    	  a string appears in an expression, it will be tried to match
    	  against all of the stock formating codes in Gnumeric to see
    	  if there is a match (basically, the inverse to format.c).
    	  If there is one, then the input is converted to a float using
    	  the format rules and the format for the cell is set to the
    	  matching format.
    	  This basically means, you can do stuff like:
    		="1/1/1997"+200 and get "7/20/1997"
    	  It also works for hours and also lets you input in your own
    	  language (if the locale provides proper translation), ie,
    	  you can input:
    		="15 pesos" + 10
    	  And get the result.
    	- Made another autogen.sh hack to shutup the noisy libtool during
    	  final link stage.
    	- Abbreviated months and days now include an asterisk at the
    	  beginning to let translators provide unambiguated strings
    	  (like, may->may).
    Full ChangeLogs:
    1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
    	* src/fn-date.c (gnumeric_now, gnumeric_date, gnumeric_today):
    	Note that jannuary 1st is day 1, not day zero.
    	* src/format.c (append_month): Fixed handling: tm_mon is zero based.
    	(split_time): Fixed silly mistake I did last time I looked at this code
    	* src/cell.c (cell_set_formula): Try to set the cell style if the
    	style is General.
    	* src/parser.y (return_symbol): Try to match the input with the
    	format matching engine.
    	* autogen.sh (PKG_NAME): Another hack to get rid of the annoying
    	extracing symbols list, which, slows down my link time :-)
    1998-09-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
    	* src/number-match.c (compute_value): New file:  Implements a
    	smart way of parsing numbers:  From all of the registered formats,
    	it creates regexps for matching at the time the user inputs data.
    	If that data matches any of the regexps, then the input is
    	converted into a float, and a display format is assigned to it.
    	* src/format.c (append_day, append_month): Skip the -now included-
    	start at the begining for internationalization purposes.
    	(split_time): Fixed the hour and second renddering.
    	(format_number): Fix:  hour_seen was not being set.
    	* src/sheet-autofill.c (matches_list): Allow the lists to include
    	an asterisk to be able to distinguish between abbreviations and
    	full descriptions.
expr.c 19.8 KB