summaryrefslogtreecommitdiff
path: root/imageto
diff options
context:
space:
mode:
Diffstat (limited to 'imageto')
-rw-r--r--imageto/ChangeLog1114
-rw-r--r--imageto/GNUmakefile12
-rw-r--r--imageto/bitmap2.c38
-rw-r--r--imageto/bitmap2.h34
-rw-r--r--imageto/extract.c46
-rw-r--r--imageto/extract.h34
-rw-r--r--imageto/ifi.c37
-rw-r--r--imageto/ifi.h33
-rw-r--r--imageto/image-char.c33
-rw-r--r--imageto/image-header.h33
-rw-r--r--imageto/input-img.c40
-rw-r--r--imageto/input-img.h33
-rw-r--r--imageto/input-pbm.c40
-rw-r--r--imageto/input-pbm.h34
-rw-r--r--imageto/main.c44
-rw-r--r--imageto/main.h33
-rw-r--r--imageto/out-chars.c47
-rw-r--r--imageto/out-chars.h33
-rw-r--r--imageto/out-epsf.c40
-rw-r--r--imageto/out-epsf.h33
-rw-r--r--imageto/out-strips.c36
-rw-r--r--imageto/version.c34
22 files changed, 376 insertions, 1485 deletions
diff --git a/imageto/ChangeLog b/imageto/ChangeLog
index 7870509..7a5c861 100644
--- a/imageto/ChangeLog
+++ b/imageto/ChangeLog
@@ -1,1113 +1,3 @@
-Mon Apr 8 09:25:30 1996 Kathy Hargreaves <letters@cs.umb.edu>
-
- * out-chars.c: doc fix.
-
-Sat Dec 9 07:21:29 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (do_image_line): doc fix.
-
-Wed Dec 6 08:28:15 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (output_chars): doc fix.
-
-Tue Dec 5 09:40:23 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: doc fix.
-
-Mon Dec 4 07:40:24 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * main.c (USAGE): doc fix.
-
- * out-chars.c: doc fix. Changed image_bitmap to image_line_bitmap.
- (do_image_line): Changed original_box_count to previous_box_count.
-
-Sun Dec 3 09:05:05 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (do_image_line): doc fix.
-
-Thu Nov 30 09:03:47 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (output_chars): doc fix.
-
-Tue Nov 28 09:47:19 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (output_chars): reconsider the current bounding box
- if the current character is ignored.
-
-Thu Nov 23 08:36:07 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (bitmap_to_gf_char): call kpse_find_tfm instead of
- find_tfm_filename.
-
-Thu Nov 16 09:01:31 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (bitmap_to_gf_char): Remove output_name's suffix
- before calling find_tfm_filename with it.
-
- * main.c: (OUTPUT_NAME): Made on-static so could do below.
-
- * main.h: Added output_name extern declaration.
-
- * out-chars.c: (bitmap_to_gf_char): Call kpse_find_tfm with
- find_tfm_filename(output_name) instead of something built with
- input_name, so that will have the design size in the name.
-
-Tue Nov 14 07:28:21 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * ifi.c: (read_ifi_file): increment n after setting the charcode,
- not before, so first character will have charcode 0.
-
-Sat Oct 14 14:54:27 1995 Kathy Hargreaves <karl@cs.umb.edu>
-
- * out-chars.c: (bitmap_to_gf_char): Also have to call
- remove_suffix on input name passed to kpse_find_tfm.
-
-Thu Oct 12 10:44:23 1995 Karl Berry <karl@cs.umb.edu>
-
- * out-chars.c (bitmap_to_gf_char): Have to call basename on the
- input name passed to kpse_find_tfm.
-
-Sun Aug 13 18:01:11 1995 Karl Berry <karl@cs.umb.edu>
-
- * main.c: Call kpse_set_progname.
-
-Sun May 15 11:32:54 1994 Karl Berry (karl@cs.umb.edu)
-
- * out-chars.c (output_chars): Change `x' to `<ignored>'.
-
-Fri May 13 15:27:29 1994 Karl Berry (karl@cs.umb.edu)
-
- * out-chars.c (bitmap_to_gf_char): Call kpse_find_tfm, now that it
- exists.
-
-Sun Aug 22 13:32:49 1993 Karl Berry (karl@cs.umb.edu)
-
- * out-epsf.c (PIXELS_TO_BP): No longer needed.
-
-Sat Aug 7 13:44:10 1993 Karl Berry (karl@cs.umb.edu)
-
- * input-img.c (img_get_header): Allow grayscale images.
-
- * *.h: types.h now in kpathsea.
-
-Tue Jul 27 09:04:12 1993 Karl Berry (karl@cs.umb.edu)
-
- * GNUmakefile (libraries): Add tfm.
-
-Sun Jul 25 19:20:04 1993 Karl Berry (karl@cs.umb.edu)
-
- * out-chars.c (bitmap_to_gf_char): Get TFM width from existing TFM
- file, if we can find one. Convert for use with kpathsea.
-
-Thu May 20 17:11:25 1993 Karl Berry (karl@cs.umb.edu)
-
- * ifi.c: Doc fix.
-
-Mon Nov 9 09:46:32 1992 Karl Berry (karl@cs.umb.edu)
-
- * image-header.h: Doc fix.
-
-Tue Oct 27 13:02:04 1992 Karl Berry (karl@cs.umb.edu)
-
- * Version 0.6.
-
-Sat Oct 24 05:13:02 1992 Karl Berry (karl@cs.umb.edu)
-
- * ifi.c (read_ifi_file): Just do successive character codes if we
- don't have an encoding file.
- * main.c (USAGE): Change doc.
-
-Fri Oct 23 10:43:46 1992 Karl Berry (karl@cs.umb.edu)
-
- * out-chars.c (output_chars): Free the bounding box list we construct.
-
- * out-chars.c (output_chars): If the IFI struct says no bounding
- boxes, don't read any of the bitmap, and reconsider the current bb.
-
-Tue Oct 20 17:17:26 1992 Karl Berry (karl@cs.umb.edu)
-
- * GNUmakefile (install): Make the second arg a file, not a directory.
-
-Fri Oct 16 15:40:53 1992 Karl Berry (karl@cs.umb.edu)
-
- * out-epsf.c: Doc fix.
-
-Mon Oct 5 09:31:30 1992 Karl Berry (karl@cs.umb.edu)
-
- * main.c (read_command_line): Make -print-clean-info imply -verbose.
- (main): Remove now-redundant test for `print_clean_info'.
-
- * out-chars.c (write_image_chars): Only report "+" if we have to
- keep reading vertically, not horizontally.
- (do_image_line): Remove the report from here.
-
-Sun Oct 4 08:59:55 1992 Karl Berry (karl@cs.umb.edu)
-
- * out-chars.c (write_image_chars): Don't keep adding to
- `row_height' for appended image rows, just assign.
-
- * main.c (main): Test for zero resolution here.
- (set_input_format): Not here.
-
- * out-chars.c (clean_threshold): Remove.
- * out-chars.h: Likewise.
- * main.c (USAGE, read_command_line): And here.
-
- * out-chars.c (bb_equal_p): New fn.
-
- * out-chars.c (offset_bb_list): Function moved here from bb-outline.c.
-
- * out-chars.c (clean_bitmap): Rewrite to take a list of known
- boxes, and remove those that aren't in the list.
- (output_chars): Only call `clean_bitmap' once, after we've
- combined everything.
- (image_to_bitmap_bbs): New fn.
-
-Sat Oct 3 13:54:39 1992 Karl Berry (karl@cs.umb.edu)
-
- * out-chars.c (write_image_chars): Don't abort if the image ends
- prematurely, just give a warning and return.
-
- * out-chars.c (OUTPUT_CHAR_P): New macro.
- (output_chars): Use it, instead of repeating the same expr several
- times.
-
-Fri Oct 2 16:14:03 1992 Karl Berry (karl@cs.umb.edu)
-
- * out-chars.[ch]: New files constructed from main.[ch].
- * main.c: Include out-chars.h.
-
- * extract.c (REPORT_SCANLINE): use REPORT.
-
- * main.c (-info-filename): remove this option.
-
- * {epsf,strips}.[ch]: Rename to out-*.
- * GNUmakefile (c_and_h): Likewise.
-
- * ifi.[ch]: New files constructed from image-char.[ch] and main.c.
- * main.c: include ifi.h.
- (extract_chars): Change call to read_ifi_file.
- * GNUmakefile (c_and_h): add `ifi', remove `image-char'.
-
-Mon Sep 28 11:11:59 1992 Karl Berry (karl@cs.umb.edu)
-
- * main.c: change `fprintf (stderr's to use REPORT*.
-
- * main.c (clean_bitmap): print the size of the bounding box being
- cleaned, not that of the enclosing character. (halvers@sol.crd.ge.com)
-
-Tue Sep 22 13:01:54 1992 Karl Berry (karl@cs.umb.edu)
-
- * main.c (read_ifi_file): call make_suffix to make the default IFI
- filename, instead of appending to the root.
- (input_rootname): remove.
- (main): don't assign to input_rootname; just set output_name to
- the fn call.
- (input_name): new static.
-
- * main.c (clean_bitmap): if clean_threshold is 1.0, do nothing;
- else only clean if the gray value is > threshold, not >=.
-
- * main.c: make diagnostic messages consistent.
-
- * main.c (do_image_line): set `bb_offset' to just the width
- of the previous bb, since we're already incorporating the
- interbb whitespace in the second bb.
-
-Mon Sep 21 10:32:07 1992 Karl Berry (karl@cs.umb.edu)
-
- * main.c (read_command_line): new option -ifi-file, a synonym for
- -info-file.
- (USAGE): document it.
-
- * main.c (set_input_format): don't call strcmp on NULL if the
- input filename lacks an extension.
-
-Thu Sep 3 09:30:54 1992 Karl Berry (karl@hayley)
-
- * Version 0.5.
-
-Sat Aug 29 16:14:35 1992 Karl Berry (karl@hayley)
-
- * GNUmakefile (dist, install): new targets to deal with strips.tex.
-
-Fri Aug 21 16:14:10 1992 Karl Berry (karl@hayley)
-
- * main.c (read_ifi_file): improve warning message.
-
-Mon Jul 13 16:58:44 1992 Karl Berry (karl@hayley)
-
- * epsf.c (write_epsf): use `width_used' for the width of image buffer.
-
-Thu Jul 2 14:06:09 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (BB_TO_CARTESIAN): subtract IMAGE_CHAR_BASELINE_ADJUST(.)
- instead of adding it.
-
- * main.c (bitmap_to_gf_char): removed `char_baseline'.
-
-Sun Jun 28 11:54:23 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (bitmap_to_gf_char): added cartesian_bb; fill it using
- BB_TO_CARTESIAN and assign to the GF char. Print out the GF
- char's rows for baseline adjustment.
-
-Fri Jun 26 13:45:20 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (read_ifi_file): changed warning to include encoding name.
-
-Mon Jun 15 07:37:29 1992 Karl Berry (karl@hayley)
-
- * extract.c (get_image_row): allocate more than one row at a time.
-
- * extract.c (get_image_row): don't realloc if we're keeping
- leading white rows.
-
- * main.c (extract_chars): change `nchars_per_line' to one if
- `print_guidelines' is true.
-
- * main.c (read_ifi_file): if the character name is undefined in
- the encoding, omit it from the output.
-
- * main.c (get_image_info): rename to `read_ifi_file'.
-
- * main.c (get_image_info): make `.notdef' mean omission, instead
- of `-1'.
-
- * image-char.h (image_char_type): new field `charname'.
- (IMAGE_CHARNAME): new accessor macro.
- * main.c (bitmap_to_gf_char): print the character name, instead of
- relying on %c.
- (get_image_info): set it.
-
- * main.h (print_scanline): new routine.
- * main.c (print_scanline): define it.
- * input-img.c (img_get_scanline): print the scanlines if
- `trace_scanlines' is set.
- * input-pbm.c (pbm_get_scanline): call it, instead of doing the
- printing inline.
-
-Sat Jun 13 12:04:00 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (get_image_info): renamed charcode_str to charname_str.
- Removed comment-handling stuff.
-
- * main.c (encoding_name, encoding_info): added.
- (get_image_info): added `encoding_info'; call `encoding_number'
- on `charcode_str' instead of `xparse_charcode'.
- (USAGE, read_command_line): added -encoding option.
-
-Tue Jun 9 13:45:42 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (output_chars): deleted clean_all_bbs.
- (clean_bitmap): deleted CLEAN_ALL_BBS; call find_outline_bbs
- with false instead of this. Updated doc. Now only check
- bounding boxes which don't enclose the whole character, instead
- of those which also are on the edge, unless clean_all_bbs is
- true, whereupon check those also.
- (get_image_info): don't handle CLEAN_ALL_BBS_FLAG anymore.
-
- * image-char.h (image_char_type): deleted clean_inner_bbs field.
- (IMAGE_CHAR_CLEAN_ALL_BBS, CLEAN_ALL_BBS_FLAG): deleted
-
-Mon Jun 8 12:33:45 1992 Kathy Hargreaves (kathy@hayley)
-
- * input-pbm.c (pbm_get_scanline): increment scanline_count after
- printing it.
-
- * main.c (BB_TO_CARTESIAN): added.
- (bitmap_to_gf_char): when print-guidelines is true, print the
- bounding box's max and min (in that order) row in Cartesian
- coordinates, not the GF char's min and max row.
-
-Fri Jun 5 21:18:12 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (output_chars): don't clean bounding boxes unless
- outputting the character.
-
- * main.c (get_image_info): set clean_all_bbs field of `c' false if
- there's not a CLEAN_ALL_BBS_FLAG at the end of the character string.
-
-Fri Jun 5 09:19:48 1992 Karl Berry (karl@hayley)
-
- * main.c (main): `return 0' instead of `exit (0)'. (From Paul Eggert)
-
-Tue Jun 2 18:03:52 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (output_chars): call clean_bitmap with 0's for LEFT_MARK
- and RIGHT_MARK if clean_all_bbs is true.
-
-Mon Jun 1 11:19:46 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (output_chars): added clean_all_bbs to send to clean_bitmap.
-
- * main.c (clean_bitmap): clean only those boxes which are on the
- edges only if CLEAN_ALL_BBS is false; otherwise, clean them all.
-
- * main.c (get_image_info): if there's a CLEAN_ALL_BBS_FLAG appended
- to the character code, then set the clean_all_bbs field of c.
-
- * image-char.h (image_char_type): added clean_all_bbs field.
-
-Sun May 31 13:10:48 1992 Karl Berry (karl@hayley)
-
- * main.c: rename `design-size' option to `designsize'.
-
- * epsf.c (write_epsf): change the EPS output to not write one
- gigantic image.
-
-Sat May 30 11:58:02 1992 Kathy Hargreaves (kathy@hayley)
-
- * main.c (USAGE -clean-threshold): doc fix.
-
-Fri May 29 11:34:52 1992 Karl Berry (karl@hayley)
-
- * main.c (main): declare to return an int.
-
-Tue May 26 07:56:34 1992 Karl Berry (karl@hayley)
-
- * main.c: simplify comments on IFI file format, since now the real
- documentation describes it.
-
-Mon May 25 11:45:49 1992 Karl Berry (karl@hayley)
-
- * main.c (clean_bitmap): wasn't printing clean info for bbs that
- weren't cleared.
-
- * main.c (read_command_line): make -print-guidelines => -verbose.
- (USAGE): document this.
- (main): don't bother to test `print_guidelines' anymore when we
- doing verbose things.
-
- * main.c (main): use `output_name', not `gf_name' (which we no
- longer need).
-
- * main.c (set_{pbm,img}_input_format): set `input_extension' to
- just `pbm' or `img', omitting the leading `.'.
-
-Sun May 24 18:03:09 1992 Karl Berry (karl@hayley)
-
- * main.c (read_command_line): in -input-format, complain if they
- give an unrecognized input format.
- (main): call set_input_format.
- (set_input_format): new routine to intuit the input format from
- the input filename if they didn't specify.
- (set_{pbm,img}_input_format): new routines.
-
-Thu May 21 10:59:23 1992 Karl Berry (karl@hayley)
-
- * GNUmakefile, version.c, main.c: change `imagetofont' to `imageto'.
-
- * strips.c (write_chars_as_strips): don't bother to initialize
- `gf_row'.
-
-Wed May 20 07:34:38 1992 Karl Berry (karl@hayley)
-
- * strips.h: include image-header.h, not input-img.h.
-
- * main.c (extract_chars): new fn (to shorten main).
- (main): call it.
-
- * main.c (do_epsf): new global.
- (read_command_line): new option `-epsf'.
- (main): call `write_epsf' if set.
- * GNUmakefile (c_and_h): add epsf.
- * epsf.[ch]: new files.
-
-Mon May 4 09:27:55 1992 Karl Berry (karl@hayley)
-
- * main.c (main): don't lose the `<dpi>gf' from the output name.
-
- * strips.c (write_chars_as_strips): add one to `lines_per_char' to
- compensate for roundoff error.
-
- * main.c (verbose): remove this, as it's defined in report.c.
-
-Sun May 3 19:31:29 1992 Karl Berry (karl@hayley)
-
- * strips.c (write_chars_as_strips): use REPORT for the progress
- report.
-
-Tue Apr 21 07:44:36 1992 Karl Berry (karl@hayley)
-
- * extract.c (append_next_image_row): use XTALLOC1.
-
-Mon Apr 20 12:53:43 1992 Karl Berry (karl@hayley)
-
- * main.c (main): simplify logic again for figuring out the output
- filename; remove any suffix from the input filename before it is
- used to make the IFI or output filename.
- (get_image_info): the variable is named `input_rootname' now, not
- `input_basename'.
-
-Wed Apr 15 15:26:53 1992 Karl Berry (karl@hayley)
-
- * main.c (main): `make_output_filename' is now `extend_filename'.
-
-Wed Apr 8 12:28:59 1992 Karl Berry (karl@hayley)
-
- * main.c (do_image_line): don't increment the max_col transition
- in the horizontally concatenated block, either.
-
- * main.c: make most of the globals static.
- * main.h: remove declarations for unneeded globals.
-
- * main.c (debug): add this.
-
-Mon Apr 6 16:43:39 1992 Karl Berry (karl@hayley)
-
- * extract.c (get_image_row): count white rows in image size; free
- the scanline storage after we've copied it.
-
-Sun Apr 5 11:46:33 1992 Karl Berry (karl@hayley)
-
- * main.c (do_image_line): don't increment the transition which we
- use for the maximum column.
-
-Sat Apr 4 12:57:15 1992 Karl Berry (karl@hayley)
-
- * main.c (do_image_line): move test for enough boxes to above
- dealing with the current bitmap, so garbage at the end doesn't
- mess us up. (from wales@cs.ucla.edu)
-
-Wed Apr 1 16:17:18 1992 Karl Berry (karl at hayley)
-
- * main.c (main): simplify the output name creation code.
-
- * main.c (font_name_extension): rename to `input_extension', and
- don't bother to initialize it.
-
-Sat Mar 28 07:48:43 1992 Karl Berry (karl at hayley)
-
- * Version 0.4.
-
- * Change copyright years to 1992 only.
-
-Mon Mar 9 16:46:10 1992 Kathy Hargreaves (kathy at hayley)
-
- * main.c (main): move setting of dpi to above (and out of)
- do_strips test.
-
- * main.c (main): set output_name_suffix with static strings
- and xmalloc dpi and design_size_str.
-
- * main.c (main): if output_name has no suffix, append either
- output_name_suffix or design_size to its stem before appending
- a suffix.
-
-Sat Mar 7 09:55:42 1992 Karl Berry (karl at hayley)
-
- * GNUmakefile (libraries): define again.
- (files, headers, sources): replace with `c_and_h', etc.
-
-Thu Mar 5 06:47:26 1992 Karl Berry (karl at hayley)
-
- * main.c (output_filename): rename to `output_name', and remove
- the other `output_name' declaration.
-
-Wed Mar 4 17:21:32 1992 Kathy Hargreaves (kathy at hayley)
-
- * main.c (main) changed `output_basename' to `output_name'.
- Deleted add_suffix and add_design_size.
- Added dpi, design_size_str, and output_name_suffix.
- Use make_output_filename to check if output name has a suffix.
- If output_name not given and not doing strips, set design_size_str.
- If doing strips, set output_name_suffix to "sp".
- Always set dpi.
-
-Mon Mar 2 12:15:52 1992 Karl Berry (karl at hayley)
-
- * main.c (main): decrease nchars_per_line to 11.
-
-Sun Mar 1 13:03:23 1992 Karl Berry (karl at hayley)
-
- * GNUmakefile (files): remove bb-outline.
-
- * GNUmakefile (need_pbm_library): define.
- (sources): remove the PBM stuff.
-
-Fri Feb 28 07:53:09 1992 Karl Berry (karl at hayley)
-
- * extract.c (image_row_transitions): new routine.
- (some_black_to_all_white_row): call it after getting the image row.
- (append_next_image_row): call it after appending.
- (get_image_row): do not compute the transitions here.
-
- * main.c (bitmap_to_gf_char): the GF min_row is the depth, the GF
- max_row is the height; we had it the other way around. Also,
- `row_baseline' is one-origin, but char rows are 0-origin.
-
-Tue Feb 25 14:40:54 1992 Karl Berry (karl at hayley)
-
- * main.c (main): decrease number of chars reported without
- guidelines to 12.
-
- * input-pbm.c (pbm_get_scanline): declare the test character for
- EOF as int, not char. Also, print the scanlines if
- trace_scanlines is set.
- * main.c (trace_scanlines): new global.
- (read_command_line): new option.
-
- * bitmap2.c (bitmap_vconcat): put one blank row between the
- bitmaps, to compensate for what some_black... removed.
-
- * extract.c (get_image_row): don't keep leading white rows if
- there weren't any; always append scanline, even if there were.
-
-Fri Jan 31 17:08:38 1992 Karl Berry (karl at hayley)
-
- * main.c (read_command_line): declare `option_index' (for new
- getopt).
-
-Tue Jan 21 11:47:26 1992 Kathy Hargreaves (kathy at hayley)
-
- * main.c (main): wasn't putting the suffix on the gf name when
- gave an output filename without a suffix because was finding the
- dot in the pathname `../fonts'.
-
- * main.c (bitmap_to_gf_char): were switching the minimum and
- maximum rows when assigning to the gf char.
-
- * main.c (main): malloc gf_name more precisely.
-
- * main.c (bitmap_to_gf_char): fixed calculation of gf char's rows.
- (main): changed how build the gf output filename: if the user
- specifies an output file, don't ever add on a design size and don't
- add a suffix if there's one already.
-
- * main.c (bitmap_to_gf_char): now print gf character's (baseline-
- adjusted) row instead of the bounding box's (unadjusted) ones.
-
-Mon Jan 20 14:46:16 1992 Kathy Hargreaves (kathy at hayley)
-
- * main.c (main): added variable `output_basename' so user could
- specify an output file basename.
- (read_command_line): Added `output-file' option.
-
-Tue Jan 14 13:14:46 1992 Kathy Hargreaves (kathy at hayley)
-
- * main.c (get_image_info): when call libfile_start with
- info_filename, specify "ifi" as the (now-default) suffix.
-
- * main.c [USAGE] (info-file): use <filename>.ifi if <filename>
- doesn't have a dotted suffix; otherwise use <filename>.
-
-Thu Jan 9 08:29:52 1992 Karl Berry (karl at hayley)
-
- * main.c (read_command_line): rename `scan_integer_list' to
- `scan_unsigned_list'.
-
- * *.c: do not include global.h.
-
- * *.h: remove #pragma once.
-
-Wed Jan 8 15:28:00 1992 Karl Berry (karl at hayley)
-
- * update copyright messages.
-
- * change `allocate to `xmalloc', `reallocate' to `xrealloc', and
- `string_copy' to `strdup'.
-
-Tue Jul 30 13:18:48 1991 Karl Berry (karl at ra.cs.umb.edu)
-
- * Version 0.3.
-
-Fri Jul 26 07:02:28 1991 Karl Berry (karl at hayley)
-
- * main.c (get_image_info): read the left and side bearings from
- the IFI file, if present.
- (bitmap_to_gf_char): use these numbers.
- * image-char.h (image_char_type): new members `lsb' and `rsb'.
- (IMAGE_CHAR_{L,R}SB): new accessor macros.
-
-Wed Jul 24 06:07:11 1991 Karl Berry (karl at hayley)
-
- * bitmap2.c (bitmap_concat): the height of the result is the
- height of one, not twice that.
-
- * main.c (do_image_line): rename `concat_bitmaps' to
- `bitmap_concat'.
- * GNUmakefile (files): new file `bitmap2'.
-
- * main.c (do_image_line): return a boolean saying if we need
- another image row.
- (main): if `do_image_line' fails, read more of the image.
- * extract.h (append_next_image_row): declare new routine.
- * extract.c (append_next_image_row): define it.
- (get_image_row): new routine.
- (some_black_to_all_white_row): call `get_image_row'.
-
- * make-gsfont.ps (octal-value): prepend 0 to the character code.
-
- * extract.c (some_black_to_all_white_row): use xcalloc to initialize
- `or_of_all', not allocate. We need it to be all zeroes
- initially.
-
- * main.c, version.c: change `imgtogf' to `imagetofont'.
-
- * make-gsfont.ps: remove all the if-verbose's.
-
- * main.c: doc fix.
-
-Mon Jul 22 07:54:42 1991 Karl Berry (karl at hayley)
-
- * make-gsfont.ps (output-encoding): set /output-encoding to the
- dictionary.
-
- * main.c: output ``imagetofont'' as our name in the GF file header,
- instead of ``IMGtoGF''.
-
- * make-gsfont.ps (print-char-dimensions-if-verbose): lose the
- `-if-verbose'.
-
- * make-gsfont.ps (octal-value): `get' the character name, don't
- `load' it, so we find it in the right dictionary.
-
- * libpbm1.c: declare parms, external functions to avoid warnings.
-
-Sat Jun 15 09:50:46 1991 Karl Berry (karl at hayley)
-
- * input-*.c: change `checked_' to `x'.
-
-Thu Jun 6 07:29:06 1991 Karl Berry (karl at hayley)
-
- * All files: change to version 2 of the GPL.
-
-Sat Jun 1 15:18:11 1991 Kathy Hargreaves (kathy at hayley)
-
- * main.c (get_image_info): Now build an info filename if the
- variable info_filename *is* NULL, not when it's not.
- (USAGE): Deleted that resolution was set only for pbm input.
- Stated that input-format is required and shortened comment.
-
-Fri May 31 14:30:01 1991 Kathy Hargreaves (kathy at hayley)
-
- * imgtogf: Moved directory to `imagetofont'.
-
- * GNUmakefile: Changed program name from `imgtogf' to `imagetofont'.
-
- * main.c (get_image_info): Make default image info file be
- <fontname>.ifi instead of imginf.<fontname>.
-
- * main.[hc], input-*.[hc]: *_get_header now don't return a
- header but rather modify the global header in main.c. Changed
- all references to `[img, pbm]_header->' to `image_header.'.
-
- * main.c, image-char.[hc]: Replaced all instances of `img_char'
- with `image_char'.
-
- * image-char.[hc]: Moved from img-char.[hc].
-
- * main.h (image_header): Made this visible to the outside.
-
- * input-[pbm, img].c ([pbm, img]_get_header): Set h to
- image_header in main.c. #include main.h.
-
- * main.c (read_command_line): Cast the assignment to
- image_header.hres to type two_bytes.
-
- * image-header.h, input-*.[hc], main.[hc]: Changed `img-header.h'
- to `image-header.h'.
-
- * main.c: Replaced all instances of `img_header*' with
- `image_header*'. Moved `img_' and `pbm_' to the front of the
- function names.
-
- * img-header.h: Moved to image_header.h and replaced all
- instances of `img_header*' with `image_header*'.
-
- * input-img.[hc] (*_img_*): Moved `img_' to the front of the
- variable names. Replaced instances of `img_header_type' with
- `image_header_type'.
-
- * input-pbm.[hc] (*_pbm_*): Moved `pbm_' to the front of the
- variable names.
-
- * extract.c, strips.c: (ptr_get_scanline): Removed `ptr_' from in
- front of this function's name and replaced it with `image'.
- Replaced instances of `img_header*' with `image_header*', if any.
-
- * main.h (ptr_open_input_file, ptr_close_input_file, ptr_get_header,
- ptr_get_scanline): Removed `ptr_' from the front of all these
- names and replaced it with `image'. Replaced `img_header_type'
- with `image_header_type'.
-
- * main.c (ptr_open_input_file, ptr_close_input_file, ptr_get_header,
- ptr_get_scanline): Moved and set all to NULL.
- Removed `ptr_' from the front of all these names and replaced it
- with `image'.
- (read_command_line): Remove "img-input-format" from option
- structure.
- Removed variable need_resolutions, as don't need it.
- Force them to specify the input format on the command line
- rather than having a default.
-
-Wed May 29 16:19:57 1991 Kathy Hargreaves (kathy at hayley)
-
- * input-pbm.c (line_in_bytes): Deleted this global variable, as
- don't need it. (pbm_readpbmrow reads right into line_in_bits in
- get_pbm_scanline.)
-
- * pbm.h: Took out #include for types.h.
-
- * input-pbm.c (get_pbm_scanline): Check if at EOF before calling
- pbm_readpbmrow.
-
- * libpbm2.c (pbm_readpbmrow): Restored to original; can test if at
- EOF in the wrapper get_pbm_scanline.
- Took out #include for types.h.
-
- * input-pbm.c (get_pbm_scanline): Hooked up to libpbm2.c routine.
-
- * main.c (read_command_line): Combined some options and changed
- their names and their input.
- Make input-format take an argument.
-
-Mon May 27 14:52:45 1991 Kathy Hargreaves (kathy at hayley)
-
- * main.c (read_commandline): If both resolutions are missing and
- are required on the commandline, print that they both are, not
- just that the horizontal one is.
-
- * bb-outline.c (is_outline_edge): Changed VALID_LOCATION to
- BITMAP_VALID_PIXEL.
-
- * pbmplus.h: Commented out malloc, etc. declarations.
-
- * libpbm2.c (pbmreadpbmrow): Make it return a boolean instead of a
- void, so will fit into our code.
- Make it return false instead of an error message.
-
- * pbm.h (top): pbmplus.h is in the current directory, so take out
- the `../' before it in the #include.
- (pbmreadpbmrow): Make it return a boolean instead of a void, so
- will fit into our code.
-
- * extract.c (top): Now #include input-pbm.h.
- (some_black_to_all_white_row): Changed all instances of
- get_img_scanline to get_scanline.
-
- * input-img.c (top): Now #include img-header.h.
- (get_img_header): Got rid of variable format, as now put that in
- the header.
-
- * main.c: (open_input_file, close_input_file, get_header,
- get_scanline): Declared these pointers to functions so could set
- them to a set of routines belonging to the type of input we're
- using. Set them to .pbm input format routines as a default.
- (font_name_extension): Added this static variable so could set
- it when get read the input format on the command line. Set to
- `.pbm' by default.
- (main): Initialize img_header to all zeros so will know if the
- user set them using the command line.
- Changed call to open_img_input_file to open_input_file and
- concat font_name_extension instead of ".img" for the argument.
- Changed some comments.
- Changed the call to get_img_header to get_header.
- Changed the call to close_img_input_file to close_input_file.
- (USAGE): Added horz-resolution, img-input-format,
- pbm-input-format, and vert-resolution.
- (read_command_line): Added boolean variable need_resolutions to
- keep track of whether or not the user needs to input the
- horizontal and vertical resolutions on the command line.
- Added horz-resolution, img-input-format, pbm-input-format, and
- vert-resolution to the option variable long_options.
- If the argument is horz-resolution or vert-resolution, then set
- the appropriate field in the header.
- If the argument if img-input-format or pbm-input-format, the set
- the input function pointers in main to the appropriate set of
- functions that belong to the input format. If the argument is
- the former, then set needs_resolution to false; if it's the latter,
- set it to true.
- If the user wants .pbm input format, then check that the header's
- resolutions are set; if not, issue an error message and exit.
-
- * main.h (open_input_file, close_input_file, get_header, get_scanline):
- Added these function pointer declarations so extract.c and strips.c
- could use them.
-
- * strips.c (top): Now #include input-pbm.h.
- (write_chars_as_strips): Changed the call to get_img_scanline to
- a call to get_scanline.
-
-Sat Apr 13 17:13:51 1991 Karl Berry (karl at hayley)
-
- * main.c (get_image_info): use the libfile routines to read the
- image info files.
-
- * main.c, input-img.c: new includes from the library
- rearrangements.
-
-Mon Feb 25 16:32:45 1991 Karl Berry (karl at hayley)
-
- * main.c, strips.c: use `gf_...' instead of `..._gf_...'.
-
-Sun Feb 17 09:39:20 1991 Karl Berry (karl at hayley)
-
- * *.c: include config.h.
-
-Tue Jan 22 15:43:19 1991 Karl Berry (karl at hayley)
-
- * extract.[ch] (extract_subimage): move to kbase.
-
-Thu Jan 17 10:32:09 1991 Karl Berry (karl at hayley)
-
- * main.c (main): don't put the day of the week in the font comment.
-
-Tue Oct 9 09:07:02 1990 Karl Berry (karl at hayley)
-
- * main.c (scan_baseline_list): move to kbase.
- (baseline_list): make a vector of ints, not unsigneds.
- (main): test for the end of the baseline list being -1, not 0.
-
-Mon Oct 8 16:37:07 1990 Karl Berry (karl at hayley)
-
- * main.c: #include cmdline.h.
- (read_command_line): call FINISH_COMMAND_LINE.
-
-Sun Sep 30 09:15:25 1990 Karl Berry (karl at hayley)
-
- * main.c (do_image_line): don't give a report when we read part of
- the line, after all.
-
-Fri Sep 28 13:47:15 1990 Karl Berry (karl at hayley)
-
- * main.c (scan_integer_list): use strtok, instead of doing the
- work ourselves.
-
-Sat Sep 22 06:16:49 1990 Karl Berry (karl at hayley)
-
- * main.c (output_chars): don't increment `current_char' if we've
- already seen the box.
-
-Fri Sep 21 08:40:49 1990 Karl Berry (karl at hayley)
-
- * img-char.h (img_char_type): new element, `alternating'.
- (IMG_CHAR_BB_ALTERNATING): macro to access it.
- * main.c (get_image_info): if the bb count is negative, set
- `alternating' (and make it positive).
- (output_chars): handle the bounding boxes alternating.
-
- * main.c (do_image_line): give a progress report when we read part
- of the line.
-
- * main.c (read_command_line): return NULL at the end; the POSIX
- include files don't declare `exit' as volatile, more's the pity.
- * bb-output.c (is_outline_edge): return false at the end, for the
- same reason.
-
-Sun Sep 16 11:13:43 1990 Karl Berry (karl at hayley)
-
- * main.c: include "getopt.h" instead of <getopt.h>.
-
- * main.c (read_command_line): change call of PARSE_CHAR_CODE to
- xparse_char_code.
-
- * main.c (main): make the default info filename `imginf.<name>',
- not `imginfo.<name>'.
-
-Sat Sep 8 10:06:19 1990 Karl Berry (karl at hayley)
-
- * main.c (read_command_line): remove any suffix on the font name
- before returning it.
-
- * main.c (read_command_line): use GET_RANGE.
-
- * main.c (get_image_info): use PARSE_CHAR_CODE to get the
- character code from the file.
-
-Thu Sep 6 06:16:29 1990 Karl Berry (karl at hayley)
-
- * main.c (scan_integer_list): doc fix.
-
-Wed Sep 5 06:19:53 1990 Karl Berry (karl at hayley)
-
- * main.c (USAGE): doc fix in -range.
-
-Tue Sep 4 09:33:49 1990 Karl Berry (karl at hayley)
-
- * main.c (do_image_line): pass the current character to
- output_chars, not the current box count.
-
- * extract.c (REPORT_SCANLINE): output to stderr instead of stdout.
-
- * main.c (get_image_info): always assign to the character code and
- omit fields.
-
-Mon Sep 3 16:57:02 1990 Karl Berry (karl at hayley)
-
- * main.c (get_image_info): use NULL in subsequent calls to strtok.
-
- * main.c (get_encoding): replace with get_image_info; change
- callers.
- * img-char.[ch]: new files to support the data structure.
-
-Thu Aug 16 08:00:19 1990 Karl Berry (karl at hayley)
-
- * bb-outline.c (free_bounding_box_list): check if the list is
- allocated before freeing it.
-
- * main.c (do_image_line): only say that we've read too many boxes
- once.
-
-Wed Aug 8 08:06:53 1990 Karl Berry (karl at hayley)
-
- * main.c (read_command_line): change `encoding-file' to
- `info-file'.
-
-Tue Aug 7 08:53:13 1990 Karl Berry (karl at hayley)
-
- * main.c (main): use the basename of the image filename to
- construct the output name, instead of the full name.
-
- * main.c (USAGE): explain `-baselines' better.
-
-Thu Jul 26 06:54:56 1990 Karl Berry (karl at hayley)
-
- * extract.c (find_transitions): move to kbase.
-
-Tue Jul 24 13:09:38 1990 Karl Berry (karl at hayley)
-
- * main.c: don't include time.h.
-
-Thu Jul 19 15:22:29 1990 Karl Berry (karl at aten)
-
- * main.c (main): don't dereference baseline_list if it's null.
-
-Mon Jul 16 08:56:41 1990 Karl Berry (karl at hayley)
-
- * main.c (clean_bitmap): only print the `. ' if we're printing the
- cleaning info.
-
-Sun Jul 15 08:27:52 1990 Karl Berry (karl at hayley)
-
- * bb-outline.c (append_bounding_box_list): don't change anything
- if we're appending a list of length zero.
-
-Fri Jul 13 11:35:15 1990 Karl Berry (karl at hayley)
-
- * main.c (clean_bitmap): also potentially clean bounding boxes on
- the bottom edge.
-
- * main.c (SET_EDGES): make coordinates relative to the bitmap of
- the character.
-
- * main.c (clean_bitmap): only test the gray value for bounding
- boxes that are on the edge.
-
- * main.c (output_chars): return the number of characters actually
- output, omitting the ones out of range.
-
- * main.c (clean_bitmap): print gray values for the bounding boxes
- if requested.
- (read_command_line): new option, `print_clean_info'.
-
-Thu Jul 12 06:08:33 1990 Karl Berry (karl at hayley)
-
- * extract.c (some_black_to_all_white_row): don't output a newline
- after reading the scanlines.
-
- * main.h: new file.
- * extract.c: include it, remove declaration of verbose.
-
- * strips.[ch]: new files.
- * main.c (main): cut the image into strips if requested.
- (read_command_line): new option `strips'.
-
- * extract.c (find_transitions): new routine.
- (some_black_to_all_white_row): call it, at the end, with a new
- variable that is the logical or of all the rows we read.
- (some_black_to_all_white_column, found_color_in_column): these
- routines aren't needed any more.
- * main.c (do_image_line): use the transition vector to set
- `char_bitmap'.
-
- * main.c (scan_integer_list): increment length after checking the
- exit condition.
-
- * main.c (do_image_line): new routine, consisting of a lot of the
- main loop.
-
- * main.c (bitmap_to_gf_char): determine the baseline.
- (read_command_line): new option `baselines' to set the baselines.
- (scan_integer_list): new routine.
-
- * extract.c (found_color_in_column): start halfway down the
- bitmap.
-
-Wed Jul 11 06:19:51 1990 Karl Berry (karl at hayley)
-
- * main.c (bitmap_to_gf_char): take another argument, the character
- code, to consolidate where the GF char is set.
-
- * main.c (nchars_per_line): new static to say how many characters
- we can report on per line; different for `print_guidelines' being
- set and not set.
-
- * main.c (print_guidelines): new global.
- (read_command_line): new option to set it.
- (bitmap_to_gf_char): print the row numbers if it's set.
-
- * bb-outline.c (find_outline_bbs): take two additional arguments:
- column numbers between which we don't look.
- * bb-outline.h (find_outline_bbs): change the declaration.
- * main.c (main), (clean_bitmap): change the calls.
-
- * bb-outline.c (append_bounding_box_list): reallocate based on the
- element size, not the list size.
-
- * bb-outline.c (set_bounding_box_list_offset): replace by
- `offset_bounding_box_list'.
- (append_bb): don't offset the bounding boxes as they come in.
- * bb-outline.h (set_bounding_box_list_offset): likewise.
- * main.c (main): change call.
-
- * main.c (output_chars): set char_code to *next_code at the bottom
- of the loop, and increment next_code.
-
-Tue Jul 10 06:10:05 1990 Karl Berry (karl at hayley)
-
- * bb-outline.c (set_bounding_box_list_offset): new routine.
- (append_bb): move the bounding box to the right by the offset.
- * bb-outline.h (set_bounding_box_list_offset): declare it.
-
- * main.c (get_char_code): rename to get_encoding, and read the
- whole file.
-
- * bb-outline.h (init_bounding_box_list, append_bounding_box_list):
- declare new routines.
- bb-outline.c (same): define them.
-
-Mon Jul 9 08:10:20 1990 Karl Berry (karl at hayley)
-
- * main.c (main): don't split each line at white columns.
-
- * extract.c (clean_bitmap): set verbose to false before calling
- find_outline_bbs.
-
- * main.c (get_char_code): make sure we actually find a character
- code.
-
- * main.c (output_chars): don't extract or clean anything if the
- character isn't within range.
-
- * extract.c (REPORT_SCANLINE): report every 100 scanlines.
-
- * main.c (output_chars): only give the status report if we
- actually output the character.
-
-Sat Jul 7 10:43:18 1990 Karl Berry (karl at hayley)
-
- * bb-outline.c (append_bb): changed MAX_ROW, instead of MAX_COL.
-
- * main.c (clean_bitmap): new routine.
- (output_gf_chars): call it.
- * bb-outline.c (find_outline_bbs): take an additional parameter to
- determine whether to look for inside outlines or not.
-
- * extract.c (REPORT_SCANLINE): report every 50 scanlines, instead
- of every 10.
-
- * bb-outline.c (find_outline_bbs): look for outlines in
- column-major order, instead of row-major.
+DEPRECATED - USE ROOT CHANGELOG
+For historical purposes you can view ChangeLog.old.
diff --git a/imageto/GNUmakefile b/imageto/GNUmakefile
index 7f75fc1..e14dcd3 100644
--- a/imageto/GNUmakefile
+++ b/imageto/GNUmakefile
@@ -2,10 +2,10 @@
#
# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
#
-# This program is free software; you can redistribute it and/or modify
+# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,8 +13,8 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
program = imageto
@@ -39,5 +39,3 @@ install::
$(INSTALL_DATA) strips.tex $(texinputdir)/strips.tex
include M.depend
-
-
diff --git a/imageto/bitmap2.c b/imageto/bitmap2.c
index 78be75b..ee823cc 100644
--- a/imageto/bitmap2.c
+++ b/imageto/bitmap2.c
@@ -1,29 +1,25 @@
-/* bitmap2.c: extra bitmap manipulation routines.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# bitmap2.c: extra bitmap manipulation routines.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#include "config.h"
-
#include "bitmap.h"
-
#include "bitmap2.h"
-
-
/* Put B2 to the right of B1, changing B1. For example, if B1 looked
like `A' and B2 like `B', the result would look like `AB'. The two
bitmaps must have the same number of rows. */
diff --git a/imageto/bitmap2.h b/imageto/bitmap2.h
index b7b1f3d..3e1faf1 100644
--- a/imageto/bitmap2.h
+++ b/imageto/bitmap2.h
@@ -1,20 +1,20 @@
-/* bitmap2.h: declare extra bitmap manipulation routines.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# bitmap2.h: declare extra bitmap manipulation routines.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#ifndef BITMAP2_H
#define BITMAP2_H
diff --git a/imageto/extract.c b/imageto/extract.c
index e6866c3..154e993 100644
--- a/imageto/extract.c
+++ b/imageto/extract.c
@@ -1,22 +1,23 @@
-/* extract.c: operations on bitmaps. These could be put in
- lib/bitmap.c, but since they are not particularly common
- operations, we may as well define them separately for now.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# extract.c: operations on bitmaps.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# These could be put in lib/bitmap.c, but since they are not particularly
+# common operations, we may as well define them separately for now.
#include "config.h"
@@ -33,9 +34,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
static bitmap_type *get_image_row (boolean, unsigned);
static unsigned *image_row_transitions (bitmap_type);
-
-
-
/* Combine the images in the bitmaps B1 and B2, returning the result in
B1. The relative position of the bitmaps is given by the bounding
boxes BB1 and BB2. We update the bounding box, also. */
@@ -94,7 +92,7 @@ combine_images (bitmap_type *b1, bitmap_type b2,
*b1 = whole_bitmap;
*bb1 = whole_bb;
}
-
+
/* Get the next image row of width WIDTH, ignoring leading white rows.
Return the columns at which there are black-to-white or white-black
transitions in TRANSITIONS. */
@@ -128,7 +126,7 @@ append_next_image_row (bitmap_type b, unsigned width, unsigned **transitions)
*transitions = image_row_transitions (*new);
return new;
}
-
+
/* Because scanlines take a relatively long time to read, we will want
some kind of status report. */
diff --git a/imageto/extract.h b/imageto/extract.h
index 77b92c5..5cfb1f8 100644
--- a/imageto/extract.h
+++ b/imageto/extract.h
@@ -1,20 +1,20 @@
-/* extract.h: declare operations on bitmaps.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# extract.h: declare operations on bitmaps.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#ifndef EXTRACT_H
#define EXTRACT_H
diff --git a/imageto/ifi.c b/imageto/ifi.c
index 41b72ab..655cad7 100644
--- a/imageto/ifi.c
+++ b/imageto/ifi.c
@@ -1,20 +1,21 @@
-/* ifi.c: read an IFI file.
+# ifi.c: read an IFI file.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -35,7 +36,7 @@ string ifi_filename = NULL;
static void append_image_char (image_char_list_type *l, image_char_type c);
static image_char_list_type new_image_char_list (void);
-
+
/* Read the IFI file `ifi_filename' (or construct the IFI filename from
`input_name'), which gives us information about the image we are
going to read.
@@ -162,7 +163,7 @@ read_ifi_file (unsigned *total_count)
return image_char_list;
}
-
+
/* Return an initialized, empty list. */
static image_char_list_type
diff --git a/imageto/ifi.h b/imageto/ifi.h
index 34565ea..3275b4e 100644
--- a/imageto/ifi.h
+++ b/imageto/ifi.h
@@ -1,20 +1,21 @@
-/* ifi.h: information about the characters in the image.
+# ifi.h: information about the characters in the image.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef IFI_H
#define IFI_H
diff --git a/imageto/image-char.c b/imageto/image-char.c
index 4e0aafd..da34691 100644
--- a/imageto/image-char.c
+++ b/imageto/image-char.c
@@ -1,20 +1,21 @@
-/* image-char.c: manipulate information about the characters in the image.
+# image-char.c: manipulate information about the characters in the image.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
diff --git a/imageto/image-header.h b/imageto/image-header.h
index 7a62961..b2bf2dc 100644
--- a/imageto/image-header.h
+++ b/imageto/image-header.h
@@ -1,20 +1,21 @@
-/* image-header.h: declarations for a generic image header.
+# image-header.h: declarations for a generic image header.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef IMAGE_HEADER_H
#define IMAGE_HEADER_H
diff --git a/imageto/input-img.c b/imageto/input-img.c
index a1b967b..522ea50 100644
--- a/imageto/input-img.c
+++ b/imageto/input-img.c
@@ -1,20 +1,20 @@
-/* input-img.c: read Interleaf .img files.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# input-img.c: read Interleaf .img files.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#include "config.h"
@@ -42,7 +42,7 @@ static unsigned pixel_depth;
#define IMG_GET_TWO() get_two (img_input_file, img_input_filename)
#define IMG_GET_FOUR() get_four (img_input_file, img_input_filename)
-
+
/* Only one file can be open at a time. We do no path searching. If
FILENAME can't be opened, we quit. */
@@ -66,7 +66,7 @@ img_close_input_file ()
xfclose (img_input_file, img_input_filename);
img_input_file = NULL;
}
-
+
/* Read the header information.
Modifies the global image_header in main.c. */
@@ -115,7 +115,7 @@ img_get_header ()
byte_width = short_width * 2;
line_in_bytes = xmalloc (byte_width);
}
-
+
/* Read one scanline of the image, returning each bit of the scanline in
a separate byte. We may use the `line_in_bytes' variable, allocated in
`img_get_header' just above, to read into. */
diff --git a/imageto/input-img.h b/imageto/input-img.h
index 324e080..8fc1576 100644
--- a/imageto/input-img.h
+++ b/imageto/input-img.h
@@ -1,20 +1,21 @@
-/* input-img.h: declarations for reading an IMG file.
+# input-img.h: declarations for reading an IMG file.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef INPUT_IMG_H
#define INPUT_IMG_H
diff --git a/imageto/input-pbm.c b/imageto/input-pbm.c
index 6143214..c08647e 100644
--- a/imageto/input-pbm.c
+++ b/imageto/input-pbm.c
@@ -1,20 +1,20 @@
-/* input-pbm.c: read PBM files.
-
-Copyright (C) 1990, 1991, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# input-pbm.c: read PBM files.
+#
+# Copyright (C) 1990, 1991, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#include "config.h"
@@ -33,7 +33,7 @@ static FILE *pbm_input_file;
static string pbm_input_filename;
-
+
/* Only one file can be open at a time. We do no path searching. If
FILENAME can't be opened, we quit. */
@@ -59,7 +59,7 @@ pbm_close_input_file ()
}
-
+
/* Read the header information.
Modifies the global image_header in main.c. */
@@ -76,7 +76,7 @@ pbm_get_header ()
}
-
+
/* Read one scanline of the image. */
boolean
diff --git a/imageto/input-pbm.h b/imageto/input-pbm.h
index 37c95ef..e6f8021 100644
--- a/imageto/input-pbm.h
+++ b/imageto/input-pbm.h
@@ -1,20 +1,21 @@
-/* input-pbm.h: declarations for reading an PBM file.
+# input-pbm.h: declarations for reading an PBM file.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef INPUT_PBM_H
#define INPUT_PBM_H
@@ -41,4 +42,3 @@ extern void pbm_get_header (void);
extern boolean pbm_get_scanline (one_byte *p);
#endif /* not INPUT_PBM_H */
-
diff --git a/imageto/main.c b/imageto/main.c
index 15b3906..51cfb92 100644
--- a/imageto/main.c
+++ b/imageto/main.c
@@ -1,20 +1,20 @@
-/* imageto -- convert a scanned image.
-
-Copyright (C) 1992, 2004, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# imageto -- convert a scanned image.
+#
+# Copyright (C) 1992, 2004, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#include "config.h"
#include "lib.h"
@@ -52,7 +52,7 @@ string input_name;
/* Show every scanline on the terminal as we read it? (-trace-scanlines) */
boolean trace_scanlines = false;
-
+
/* Private variables. */
/* The design size of the font we're creating. (-designsize) */
@@ -76,7 +76,7 @@ static string read_command_line (int, string[]);
static void set_img_input_format (void);
static void set_input_format (string);
static void set_pbm_input_format (void);
-
+
/* We have three different strategies for processing the image:
1) (normal) analyze the image and write out the ``true'' characters,
2) (-strips) takes a constant number of scanlines as each character,
@@ -182,7 +182,7 @@ main (int argc, string argv[])
return 0;
}
-
+
/* We are semi-clever about printing this, for the sake of huge images. */
void
@@ -217,7 +217,7 @@ print_scanline (one_byte line[], unsigned width)
putchar ('\n');
}
}
-
+
/* Reading the options. */
/* This is defined in version.c. */
@@ -358,7 +358,7 @@ read_command_line (int argc, string argv[])
FINISH_COMMAND_LINE ();
}
-
+
/* If the input format wasn't explicitly set on the command line,
attempt to intuit it from FILENAME, and set the necessary variables.
If we can't tell what the format should be, quit. */
diff --git a/imageto/main.h b/imageto/main.h
index 2ee3123..467d1c8 100644
--- a/imageto/main.h
+++ b/imageto/main.h
@@ -1,20 +1,21 @@
-/* main.h: global variable declarations.
+# main.h: global variable declarations.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef MAIN_H
#define MAIN_H
diff --git a/imageto/out-chars.c b/imageto/out-chars.c
index 2ad9325..6c2f8da 100644
--- a/imageto/out-chars.c
+++ b/imageto/out-chars.c
@@ -1,20 +1,21 @@
-/* out-chars.c: try to extract the real characters from the image.
+# out-chars.c: try to extract the real characters from the image.
+#
+# Copyright (C) 1992, 1993, 2004, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 1993, 2004, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -68,7 +69,7 @@ boolean print_guidelines = false;
ordering in the font file. (-range) */
int starting_char = 0;
int ending_char = MAX_CHARCODE;
-
+
/* The design size of the font we're creating. */
static real design_size;
@@ -91,7 +92,7 @@ static void image_to_bitmap_bbs (bb_list_type *);
extern void offset_bb_list (bb_list_type *l, int offset);
static unsigned output_chars
(bb_list_type, bitmap_type, real, image_char_list_type, unsigned);
-
+
/* Analyze the input image, outputting the characters we find. */
void
@@ -170,7 +171,7 @@ write_image_chars (image_header_type image_header, real ds)
free_bitmap (image_line_bitmap);
}
}
-
+
/* Analyze and output all of the bitmap IMAGE, which is one line of type
in the original. The resolution of the image is H_RESOLUTION, and
we've read NCHARS characters (including .notdefs) so far. We use
@@ -359,7 +360,7 @@ fclose(testfileptr);
return true;
}
-
+
/* Move all the elements in BB_LIST to the right by OFFSET. */
void
@@ -387,7 +388,7 @@ bb_equal_p (bounding_box_type bb1, bounding_box_type bb2)
&& MAX_COL (bb1) == MAX_COL (bb2)
&& MAX_ROW (bb1) == MAX_ROW (bb2);
}
-
+
/* For each bounding box in the list BOXES, extract from IMAGE_LINE_BITMAP
and turn the resulting bitmap into a single character in the font.
The information in IMAGE_CHAR_LIST maps bounding boxes to character codes;
@@ -568,7 +569,7 @@ fclose(testfileptr);
return nchars_written;
}
-
+
/* Remove bits of adjacent characters that may have crept into B because
of overlapping characters in the original image. KNOWN_BOXES lists
all the known parts of B; if we find other bounding boxes in B, we
@@ -662,7 +663,7 @@ image_to_bitmap_bbs (bb_list_type *boxes)
MAX_ROW (*bb) -= min_row;
}
}
-
+
/* Derive the information necessary to output the font character from
the bitmap B, and return it. The resolution of the bitmap is given
in pixels per inch as H_RESOLUTION. The bounding box BB encloses the
diff --git a/imageto/out-chars.h b/imageto/out-chars.h
index eb41326..768cf15 100644
--- a/imageto/out-chars.h
+++ b/imageto/out-chars.h
@@ -1,20 +1,21 @@
-/* out-chars.h: extract the characters from the image.
+# out-chars.h: extract the characters from the image.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef OUT_CHARS_H
#define OUT_CHARS_H
diff --git a/imageto/out-epsf.c b/imageto/out-epsf.c
index 0b2d847..9187861 100644
--- a/imageto/out-epsf.c
+++ b/imageto/out-epsf.c
@@ -1,20 +1,20 @@
-/* out-epsf.c: output the whole image as an EPS file.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# out-epsf.c: output the whole image as an EPS file.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#include "config.h"
@@ -27,7 +27,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
extern string version_string;
static void pack_scanline (one_byte *, unsigned);
-
+
/* Abbreviations for output to `eps_file'. */
#define OUT_STRING(s) fprintf (eps_file, "%s", s)
#define OUT_SIMPLE(s) fprintf (eps_file, "%%%%%s\n", s)
@@ -35,7 +35,7 @@ static void pack_scanline (one_byte *, unsigned);
#define OUT1(s, v1) fprintf (eps_file, s, v1)
#define OUT2(s, v1, v2) fprintf (eps_file, s, v1, v2)
#define OUT3(s, v1, v2, v3) fprintf (eps_file, s, v1, v2, v3)
-
+
/* Write an Encapsulated PostScript file corresponding to the image. */
void
@@ -131,7 +131,7 @@ write_epsf (string output_name, image_header_type image_header)
OUT_SIMPLE ("TRAILER");
OUT_SIMPLE ("EOF");
}
-
+
/* Change the one bit/byte representation (call each byte a `cell') of
LENGTH bits in DATA to be eight bits/byte. Pad the last byte with
zero. We don't change those bytes beyond the end of packed portion,
diff --git a/imageto/out-epsf.h b/imageto/out-epsf.h
index 6c75633..f644caf 100644
--- a/imageto/out-epsf.h
+++ b/imageto/out-epsf.h
@@ -1,20 +1,21 @@
-/* out-epsf.h: output the whole image as an EPS file.
+# out-epsf.h: output the whole image as an EPS file.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef OUT_EPSF_H
#define OUT_EPSF_H
diff --git a/imageto/out-strips.c b/imageto/out-strips.c
index 948f508..389db42 100644
--- a/imageto/out-strips.c
+++ b/imageto/out-strips.c
@@ -1,20 +1,20 @@
-/* out-strips.c: cut the entire image into strips.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# out-strips.c: cut the entire image into strips.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
#include "config.h"
@@ -23,7 +23,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "main.h"
#include "out-strips.h"
-
+
/* Output a ``font'' in which each ``character'' is a constant number of
scanlines from the image. This might use less than resources than
the giant PostScript file that -epsf outputs.
diff --git a/imageto/version.c b/imageto/version.c
index bc45a43..39012f2 100644
--- a/imageto/version.c
+++ b/imageto/version.c
@@ -1,19 +1,19 @@
-/*version.c
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# version.c: Provides version of package.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
char *version_string = "imageto version REPLACE-WITH-VERSION";