summaryrefslogtreecommitdiff
path: root/src/libs
Commit message (Collapse)AuthorAgeFilesLines
* * src/libs/gnulib/*: Update `gnulib' files.wl2012-12-3047-1672/+5292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because we currently don't support `gnulib-tool' directly but add everything to the CVS repository, and many internal details of the gnulib setup has changed, it is necessary to do redo the import. . Temporarily rename `src/libs/gnulib' to `src/libs/gnulib.old'. . Call gnulib-tool --create-testdir \ --dir=src/libs/gnulib \ wcwidth . Manually move directories `src/libs/gnulib/gl{lib,m4}' to `src/libs/gnulib/{lib,m4}', and do `s/gllib/lib/' and `s/glm4/m4/' in all files to `convert' the gnulib testbed to a standard gnulib configuration as maintained by gnulib-tool. Additionally, remove the directory `src/libs/gnulib/gltests' and the references to `gltests' in all files. (All of this could be done with a script, but I hope that this is eventually replaced with migrating groff as a whole to gnulib and its setup). . Call gnulib-tool --add-import \ --dir=src/libs/gnulib \ wcwidth to update everything. . Merge the changed, new, and deleted files into `gnulib.old', delete `gnulib', rename `gnulib.old' to `gnulib', then commit.
* Provide proper Unicode mapping from and to dotless j.wl2012-08-102-1/+3
| | | | | * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list), src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Add it.
* Fix Unicode mapping of Greek stroked and curly phi.wl2012-07-031-3/+3
| | | | | | | | | | Problem reported by Alkis Georgopoulos <alkisg@gmail.com>; see https://bugs.launchpad.net/ubuntu/+source/groff/+bug/1008115 * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Flip values of U+03C6 and U+03D5.
* Update configuration files from `gnulib' and `config' repositories..wl2012-02-264-768/+889
| | | | | | | | | | | | | | | | | | | | | | | This also fixes a problem with `iconv' on Solaris 10, as reported in http://lists.gnu.org/archive/html/bug-groff/2012-02/msg00007.html * configure.ac: Call `gl_LOCALCHARSET. Call `AM_ICONV' as C++. * config.guess, config.rpath, config.sub, install-sh, mkinstalldirs: Updated. * m4/codeset.m4, m4/glib21.m4, m4/iconv.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: Updated. * m4/fcntl-o.m4, m4/localcharset.m4: New files. * Makefile.in: Updated. * src/include/localcharset.h, src/libs/libgroff/config.charset, src/libs/libgroff/localcharset.c: Updated. * aclocal.m4, configure, src/include/config.hin: Regenerated.
* One more aux file.wl2012-02-201-0/+4
|
* Update `gnulib' files.wl2012-02-2050-1851/+4105
| | | | | | | | | | | | | The invocation was gnulib-tool --add-import \ --dir=src/libs/gnulib \ wcwidth Additionally, src/libs/gnulib/configure.ac was adjusted from a `test' run as described in the change from 2010-12-13. * src/libs/gnulib/*: Updated.
* Fix clang warnings.wl2011-07-031-3/+2
| | | | | | | * src/libs/libdriver/input.cpp (odd): Use parentheses. * src/roff/troff/mtsm.cpp (state_set::is_in): Fix parentheses; previous code always tested for bit 0.
* Remove compiler warning.wl2010-12-181-1/+1
| | | | | * src/libs/libgroff/relocate.cpp (msw2posixpath): Remove redundant dereferencing.
* Add wide character support to grotty.wl2010-12-1358-21/+24046
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a huge patch, mainly by adding the gnulib infrastructure in a separate directory tree (in `src/libs/gnulib/lib') for its `wcwidth' module. However, the actual changes to native groff source files are just a few lines. * Makefile.comm (INCLUDES): Updated. (LIBGNU): Define. * Makefile.in (NOMAKEDIRS): Updated. (GNULLIBDIRS): Define. (DISTDIRS): Add GNULLIBDIRS. ($LIBDIRS): Depend on GNULLIBDIRS. ($GNULLIBDIRS): New target. * src/libs/libgroff/font.cpp (font::get_width, font::load) [is_unicode]: Use `wcwidth'. * src/roff/troff/Makefile.sub (XLIBS): Add LIBGNU. * src/roff/troff/input.cpp (main): Set LC_CTYPE. * src/devices/grotty/Makefile.sub (XLIBS): Add LIBGNU. * src/devices/grotty/tty.cpp (main): Set LC_CTYPE. * src/libs/gnulib/*: New files. The import was done as follows: . Call gnulib-tool --create-testdir \ --dir=src/libs/gnulib \ wcwidth to get a testbed. . Manually move directories src/libs/gl{lib,m4} to src/libs/{lib,m4}, and do s/gllib/lib/ and s/glm4/m4/ everywhere to `convert' the gnulib testbed to a standard gnulib configuration as maintained by gnulib-tool. . Call gnulib-tool --add-import \ --dir=src/libs/gnulib \ wcwidth to update everything.
* Implement support for character classes.wl2010-12-131-73/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch uses standard C++ headers, contrary to the rest of groff. Ideally, everything in groff should be updated to do the same. * src/include/font.h (glyph_to_unicode): New function. * src/libs/libgroff/font.cpp (glyph_to_unicode): Implement it. (font::contains, font::get_code): Use it. * src/roff/troff/charinfo.h: Include <vector> and <utility>. (charinfo): New members `ranges' and `nested_classes'. New member functions `get_unicode_code' and `get_flags'. New member functions `add_to_class', `is_class', and `contains'. (charinfo::overlaps_horizontally, charinfo::overlaps_vertically, charinfo::can_break_before, charinfo::can_break_after, charinfo::can_break_after, charinfo::ends_sentence, charinfo::transparent,, charinfo:ignore_hcodes): Use `get_flags', which handles character classes also. * src/roff/troff/input.cpp (char_class_dictionary): New global variable. (define_class): New function. (init_input_requests): Register `class'. (charinfo::get_unicode_code, charinfo::get_flags, charinfo::contains): Implement it. * NEWS, doc/groff.texinfo (Character Classes), man/groff_diff.man, man/groff.man: Document it.
* Fix crash in tbl with option `nospaces'.wl2010-11-111-1/+2
| | | | | | | | Reported by Louis Guillaume <louis@zabrico.com>. * src/libs/libgroff/string.cpp (string::remove_spaces): If input data consists of spaces only and thus reduces to nothing, set `sz' to 0.
* Handle ditroff command `Dt' without argument gracefully.wl2010-05-091-4/+5
| | | | | | | | | | | | | | | | | | | Without this patch, grotty goes into an infinite loop if it tries to process x T utf8 x res 240 24 40 x init p1 Dt * src/libs/libdriver/input.cpp (get_integer_arg): Emit a fatal error on a non-integer argument, bringing the code into line with the behaviour documented in the header comment. (get_possibly_integer_args): Terminate the loop on a non-integer argument. (next_arg_begin): Return newline or EOF after emitting the corresponding error, rather than continuing on to the next line.
* Update copyright year.wl2009-01-0554-57/+78
|
* * */*: Update GPL2 to GPL3.wl2009-01-0461-312/+245
|
* Update .cvsignore files.wl2009-01-032-0/+4
|
* * config.rpath, m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4,wl2009-01-024-80/+135
| | | | | | | | | m4/lib-link.m4, m4/lib-prefix.m4, src/include/localcharset.h, src/libs/libgroff/config.charset, src/libs/libgroff/localcharset.c, src/libs/libgroff/ref-add.sin, src/libs/libgroff/ref-del.sin: Updated from `gnulib' git repository. * configure: Regenerated.
* * src/preproc/html/pre-html.cpp (usage): Don't describe options butwl2008-01-191-6/+8
| | | | | | | | | | mention that it should never be called stand-alone. * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man, man/groff_tmac.man, man/groff_out.man, README, README.MinGW, src/roff/groff/groff.man: Mention -Txhtml. * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
* * src/libs/libgroff/font.cpp (font::contains, font::get_code):wl2008-01-161-1/+13
| | | | | | | | Handle single-letter names correctly. * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^ and \|. * NEWS: Updated.
* name_to_glyph() exists two times. Explain this.wl2008-01-161-1/+4
|
* * */*: s/Osanna/Ossanna/.wl2008-01-041-3/+4
| | | | | | | | | | | * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac). Replace .MTO with .MT/.ME (except in groff_www.tmac). Insert `\:' in URLs where appropriate. Don't include www.tmac (except in groff_www.tmac). * man/groff.man (.ESC[]): Fix font of closing bracket. (.ESCq): Fix font of closing quote character. Many other improvements.
* * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memorywl2007-09-111-1/+1
| | | | | | | allocation. * src/preproc/tbl/table.cpp (table::allocate): Initialize `blockflag' array.
* formattingwl2006-09-264-5/+9
|
* Add a request `.fzoom' and a number register `.zoom' to magnifywl2006-07-121-16/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fonts. * src/include/font.h (font): Add member variable `zoom'. Add member functions `set_zoom' and `get_zoom'. Remove `static' attribute from `scale' member function. * src/libs/libgroff/font.cpp (font::font): Updated. (scale_round): New version with three parameters to handle zoom factor. (font::scale, font::get_width): Handle zoom factor. (font::set_zoom, font::get_zoom): New functions. (font::load): Handle `zoom' while computing `space_width'. * src/roff/troff/env.h: Declare `env_get_zoom'. (environment): Add member function `get_zoom'. * src/roff/troff/env.cpp (environment::get_zoom): New function. (init_env_requests): Initialize `.zoom' register. * src/roff/troff/node.cpp (font_info): New member functions `set_zoom' and `get_zoom'. (tfont): New member function `get_zoom'. (env_get_zoom): New function. (troff_output_file::set_font): Handle zoom factor. (font_zoom_request): New function. (init_node_requests): Initialize `fzoom' request. * docs/groff.texinfo (Changing Fonts), man/groff.man, man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom' register. * src/roff/troff/TODO: Updated.
* * src/libs/libgroff/font.cpp (font::load): Reject fonts calledwl2006-05-301-8/+18
| | | | | | | | | | | | | | | | | | | | `DESC'. Reduce number of false positives for `.if F ...' conditionals. Improve warning messages. * tmac/Makefile.sub: Add copyright notice. (NORMALFILES): Add man.tmac and ms.tmac. (SPECIALFILES): Remove man.tmac and ms.tmac. (CLEANADD): Remove man.tmac-sed and ms.tmac-sed. (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac specially. (stamp-sed): Don't handle man.tmac and ms.tmac. Remove obsolete components in sed's regexp. * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps. * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
* * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_filewl2006-04-261-3/+3
| | | | | <'F'>): Use `get_extended_arg' to behave as documented. Reported by Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
* * LICENSE: Renamed to...wl2006-03-181-8/+0
| | | | | * LICENSES: This. Collect all licensing information in this file. * tmac/README, src/libs/snprintf/README: Removed.
* * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable. (CLEANADD): Use it.wl2006-02-262-159/+332
| | | | | | | | | | | | | | | | | | | | | | | | (install_html, uninstall_sub): Updated. Introduce Unicode fonts. * font/devhtml/DESC.proto: Mark as unicode. font/devhtml/R.proto: Remove all * charset entries that are already in glyphuni.cpp. font/devutf8/DESC.proto: Mark as unicode. * font/devutf8/R.proto: Remove all charset entries. src/include/font.h * (font): New static field `is_unicode'. Change order of fields. src/libs/libgroff/font.cpp: Include unicode.h. * (font::font): Update for changed order of fields. (font::contains, font::get_width, font::get_height, font::get_depth, font::get_italic_correction, font::get_left_italic_correction, font::get_subscript_correction, font::get_character_type, font::get_code, font::get_special_device_encoding): Handle both the explicitly enumerated glyphs and use general code for Unicode fonts. (font::load): Make the charset section optional when the font is declared unicode. (font::load_desc): Recognize the `unicode' attribute. * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
* * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entrywl2006-02-242-9/+5
| | | | | | | | | | | | for \-. Remove commented out entries for \' and \` (there are no such glyph names). * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove commented out entries for \' and \`. * */*: s/legal/valid/ where appropriate.
* Add comments from Bruno.wl2006-02-231-0/+8
|
* * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'wl2006-02-231-0/+12
| | | | and \` entries.
* Remove all remaining traces from the `shc' glyph.wl2006-02-232-3/+5
| | | | | | | | | | | | | | * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list), src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove entry for `shc'. * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc' entry with unnamed glyph. * tmac/html/tmac: Remove `shc' entry from call to `.cflags'. * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD specially.
* Concretize the glyph datatype.wl2006-02-233-68/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/include/font.h (struct glyph): Remove class. (struct glyph): Renamed from struct glyphinfo. (glyph_to_index): New inline function. (glyph_to_name): Make extern, not inline. (glyph_to_number): Update. (font): Use `glyph *' instead of `glyph'. * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class `glyph'. Make `name' field public. (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *' instead of `glyph'. (glyph_to_name): Renamed from `glyph::glyph_name'. * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'. Use `glyph *' instead of `glyph'. * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use `glyph *' instead of `glyph'. (glyph_to_name): Renamed from `glyph::glyph_name'. * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph', and `glyph_to_index' instead of `glyph::glyph_index'. * src/include/printer.h (printer): Use `glyph *' instead of `glyph'. * src/libs/libdriver/printer.cpp: Likewise. * src/devices/grodvi/dvi.cpp: Likewise. * src/devices/grohtml/post-html.cpp: Likewise. * src/devices/grolbp/lbp.cpp: Likewise. * src/devices/grolj4/lj4.cpp: Likewise. * src/devices/grops/ps.cpp: Likewise. * src/devices/grotty/tty.cpp: Likewise.
* add commentwl2006-02-221-0/+3
|
* * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entrywl2006-02-221-1/+1
| | | | for `sqrt'.
* * src/libs/libgroff/nametoindex.cpp (character_indexer): Renamewl2006-02-171-40/+49
| | | | | | | methods and fields from *_index to *_glyph. (character_indexer::named_char_glyph): Test for `charNNN' name here... (name_to_glyph): ... not here.
* * src/include/font.h (name_to_glyph): Renamed fromwl2006-02-173-10/+10
| | | | | | | | | | | | | | | | | font::name_to_index. (number_to_glyph): Renamed from font::number_to_index. (glyph_to_name): Renamed from font::index_to_name. (glyph_to_number): Renamed from font::index_to_number. * src/libs/libgroff/nametoindex.cpp: Likewise. * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from charinfo::get_index. * src/roff/troff/input.cpp: All callers changed. * src/roff/troff/node.cpp: Likewise. * src/libs/libgroff/font.cpp: Likewise. * src/devices/grops/ps.cpp: Likewise. * src/devices/grohtml/post-html.cpp: Likewise. * src/libs/libdriver/printer.cpp: Likewise.
* * src/include/font.h (struct glyphinfo): New class.wl2006-02-171-29/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (struct glyph): Change internal representation. Change constructor signature. New method glyph::glyph_number(). (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index, glyph::operator==, glyph::operator!=): Update. (font::index_to_name, font::index_to_number): New functions. * src/include/itable.h: New file, based on src/include/ptable.h. * src/libs/libgroff/nametoindex.cpp: Include itable.h. (class charinfo): New class. (class character_indexer): Change table result type from `int' to `class charinfo'. Add table with integer key. (character_indexer::character_indexer): Update. (character_indexer::ascii_char_index): Update. (character_indexer::numbered_char_index): Use NULL as name, not a string starting with a space. (character_indexer::named_char_index): Update. (font::number_to_index, font::name_to_index): Remove no-op cast. (glyph::glyph_name): New method. * src/roff/troff/charinfo.h (class charinfo): Inherit from class glyphinfo. (NUMBERED): Remove flag bit. (charinfo::numbered, charinfo::get_index): Update. * src/roff/troff/input.cpp (charinfo::charinfo): Update. (charinfo::set_number, charinfo::get_number): Update. (glyph::glyph_name): New method.
* * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fixwl2006-02-141-4/+6
| | | | entries for `>>', `<<', `*f', and `+f'. Reported by Bruno.
* Add comment for `sqrt' glyph (which doubles `sr').wl2006-02-141-1/+2
|
* * src/include/font.h: s/glyph_t/glyph/.wl2006-02-113-82/+84
| | | | | | | Update all callers. * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/. s/output_character_t/output_character/.
* New accessor method glyph_t::glyph_name().wl2006-02-111-19/+29
| | | | | | | | | | | | | | | | | | | | | * src/include/ptable.h (declare_ptable): Add a return value to the 'define' method, and declare a 'lookupassoc' method. (implement_ptable): Return the stored key in 'define'. Implement lookupassoc. * src/include/font.h (glyph_t): Add 'name' field. Add an argument to the constructor. (glyph_t::glyph_name): New method. * src/libs/libgroff/nametoindex.cpp (character_indexer): Change return type of methods and field member type to glyph_t. (character_indexer::character_indexer): Update. (character_indexer::ascii_char_index): Allocate a name for the glyph. Return a glyph_t with name. (character_indexer::numbered_char_index): Return a glyph_t without a name. (character_indexer::named_char_index): Return a glyph_t with a name. (font::number_to_index, font::name_to_index): Update. * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as the glyph's name.
* Make the glyph data type abstract.wl2006-02-113-84/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/include/font.h (glyph_t): New class. (name_to_index, number_to_index): Change return type to glyph_t. (font::contains, font::get_width, font::get_height, font::get_depth, font::get_character_type, font::get_kern, font::get_skew, font::get_italic_correction, font::get_left_italic_correction, font::get_subscript_correction, font::get_code, font::get_special_device_encoding, font::add_entry, font::copy_entry, font::add_kern, font::hash_kern): Change argument type to glyph_t. * src/libs/libgroff/font.cpp (struct font_kern_list): Change members type and constructor argument types to glyph_t. (font::contains, font::get_width, font::get_height, font::get_depth, font::get_character_type, font::get_kern, font::get_skew, font::get_italic_correction, font::get_left_italic_correction, font::get_subscript_correction, font::get_code, font::get_special_device_encoding, font::add_entry, font::copy_entry, font::add_kern, font::hash_kern): Change argument type to glyph_t. (font::load): Use glyph_t variables. * src/libs/libgroff/nametoindex.cpp (name_to_index, number_to_index): Change return type to glyph_t. * src/roff/troff/charinfo.h (charinfo::index): Change type to glyph_t. (charinfo::get_index): Change return type to glyph_t. * src/roff/troff/env.cpp: Include font.h. * src/roff/troff/node.cpp: Include font.h before charinfo.h. * src/roff/troff/input.cpp: Include font.h before charinfo.h. (charinfo::charinfo): Update. (name_to_index, number_to_index): Change return type to glyph_t. * src/include/printer.h (printer::set_char_and_width): Change return type to glyph_t. * src/libs/libdriver/printer.cpp (printer::set_char_and_width): Change return type to glyph_t. * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change argument type to glyph_t. * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update. (html_printer::space_glyph): Renamed from space_char_index. (html_printer::add_to_sbuf, html_printer::sbuf_continuation, html_printer::overstrike, html_printer::set_char): Change argument type to glyph_t. (html_printer::set_char_and_width): Change return type to glyph_t. * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change argument type to glyph_t. * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change argument type to glyph_t. * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from space_char_index. (ps_printer::set_subencoding, ps_printer::set_char): Change argument type to glyph_t. * src/devices/grotty/tty.cpp (tty_printer::set_char): Change argument type to glyph_t.
* * src/roff/troff/input.cpp (font::name_to_index): Never return awl2006-02-111-17/+2
| | | | | | negative value. * src/libs/libgroff/font.cpp (font::load): Remove failure tests for font::name_to_index.
* This change is based on a patch by Bruno Haible <bruno@clisp.org>.wl2006-01-262-6/+10
| | | | | | | | | * src/include/device.h: Add comments. * src/include/font.h: Add comments. * src/include/unicode.h: Likewise. * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise. Fix quotation in comments to be of the form `xxx'.
* * configure.ac: Test for getc_unlocked (needed for localcharset).wl2006-01-113-17/+21
| | | | | | | | | | | | | * configure, src/include/config.hin: Regenerated. * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define ENABLE_RELOCATABLE. * src/libs/libgroff/relocatable.h: New dummy header file for localcharset.c. * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS gnulib version.
* Work around unportability of nl_langinfo(CODESET).wl2006-01-105-1/+1174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/glibc21.m4: New file, from gnulib. * Makefile.sub (M4MACROS): Add m4/glibc21.m4. * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21. * Makefile.in (HOST, GLIBC21): New variables. (MDEFINES): Pass them to subdirectories. * src/include/relocate.h (relocatep): Define with C linkage. * src/include/localcharset.h: New file, from gnulib. * src/libs/libgroff/localcharset.c: New file, from gnulib with a modification for relocate(). * src/libs/libgroff/config.charset: New file, from gnulib. * src/libs/libgroff/ref-add.sin: New file, from gnulib. * src/libs/libgroff/ref-del.sin: New file, from gnulib. * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR. (OBJS): Add localcharset.o. (CSRCS): Add localcharset.c. (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed. (charset.alias): New rule. (PACKAGE): New variable. (ref-add.sed, ref-del.sed): New rules. (MKINSTALLDIRS): New variable. (install_data): Depend on install_charset_data. (install_charset_data): New rule for creating or updating charset.alias. (uninstall_sub): Depend on uninstall_charset_data. (uninstall_charset_data): New rule for uninstalling or updating charset.alias. * src/preproc/preconv/preconv.cpp: Include localcharset.h instead of <langinfo.h>. (main): Initialize default_encoding from locale_charset() instead of nl_langinfo(CODESET). * aclocal.m4, configure, src/include/config.hin: Regenerated.
* * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.wl2005-12-092-7/+279
| | | | | | | | | | | | | | | | | | * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode 4.1.0. * src/utils/afmtodit/make-afmtodit-tables: New script to generate afmtodit.tables. * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode 4.1.0 data. * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed, %AGL_to_unicode): Removed. Replace it with a tag. * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression to replace tag with actual file contents.
* Another round in fixing getopt problems. Hopefully the last one!wl2005-06-233-96/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This time we use the getopt stuff from gnulib and define a prefix unconditionally so that there are no collisions with any other getopt implementations. This is a slight waste of space in case we already use a GNU getopt implementation, but on the other hand it really simplifies life. * src/include/getopt.h: Use gnulib version. * src/include/getopt_int.h: Use gnulib version. * src/include/groff-getopt.h: Removed. Obsolete now. * src/include/lib.h: Regarding getopt, don't handle any platform specially; just include getopt.h. (__GETOPT_PREFIX): Define (before getopt.h). * src/include/Makefile.sub (HDRS): Updated. * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use gnulib version. * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set __GETOPT_PREFIX. * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c (__GETOPT_PREFIX): Define (before getopt.h).
* Another try to update getopt files. This time we add a dummywl2005-06-163-330/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gettext.h file to satisfy the dependency. * src/include/getopt.h, src/libs/libgroff/getopt.c, src/libs/libgroff/getopt1.c: Updated from GNU libc CVS. * src/include/getopt_int.h: New file (from GNU libc CVS). * src/include/gettext.h: Dummy file which just defines a gettext() macro. * src/include/groff-getopt.h: Updated. * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h. * src/libs/libdriver/input.cpp (IntArray): Remove superfluous `const' keywords in return value. * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer): Remove redundant variable `old'. (pushBackBuffer::skipToNewline): Remove redundant variable `ch'. * src/preproc/tbl/main.cpp (process_table): Remove redundant variable `c'. Fix more friend name injection problems since modern C++ compilers fail otherwise. We simply provide (global) declarations for all functions declared as friends. This is not really necessary but doesn't harm. * src/preproc/eqn/lex.cpp: Provide declarations for get_char, peek_char, and get_location. * src/preproc/refer/ref.h: Provide declarations for compare_reference, same_reference, same_year, same_date, same_author_last_name, and same_author_name. * src/roff/troff/div.h: Provide declarations for do_divert and page_offset. * src/roff/troff/env.h: Provide declarations for title_length, space_size, fill, no_fill, adjust, no_adjust, center, right_justify, vertical_spacing, post_vertical_spacing, line_spacing, line_length, indent, temporary_indent, do_underline, do_input_trap, set_tabs, margin_character, no_number, number_lines, leader_character, tab_character, hyphenate_request, no_hyphenate, hyphen_line_max_request, hyphenation_space_request, hyphenation_margin_request, line_width, tabs_save, tabs_restore, line_tabs_request, widow_control_request, and do_divert. * src/roff/troff/input.cpp: Provide declaration for chop_macro. * src/roff/troff/node.cpp: Provide declarations for class tfont_spec. Provide declaration for make_tfont.
* * All affected files: Update postal address of FSF.wl2005-05-2654-58/+58
|