| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
position by 'N'. gropdf now obeys this rule.
Fixed kerning issue where width of non-kerned text could be wrongly
calculated using previous kern factor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* font/devpdf/Foundry.in: Add font path to debian `gsfonts' package.
* font/devpdf/util/BuildFoundries.pl: Handle missing fonts in a more
sane way, do NOT abort the complete make run!
* src/devices/gropdf/gropdf: Accept papersize names (i.e. A4) as
either upper or lower case.
The -p (papersize) option should be length,width (currently reversed
- width,length)
* src/devices/gropdf/pdfmom.pl: Support use of GROFF_BIN_PATH.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Makefile.in (OTHERDIRS): Move contrib/mom to be run after
devices/gropdf.
* src/devices/gropdf/gropdf.pl: Various fixes:
. Correct image scaling issue.
. Handle relative horizontal movement 'h' followed by absolute
vertical movement 'V'.
. Correct handling of track kerning.
* src/devices/gropdf/pdfmom.pl: New wrapper for mom (pdfmom)
using gropdf or grops driver.
* src/devices/gropdf/pdfmom.man: New man page.
* src/devices/gropdf/Makefile.sub: Updated to handle new files.
|
| |
|
| |
|
|
|
|
|
| |
sizes (with \X'papersize ...') ensure final page is correct
size.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Document new gropdf options -u and -s.
* src/devices/gropdf/gropdf.man: Remove references to Type 42 fonts,
they do not work in PDFs.
Document new option -s which adds `statistics' line to end of PDF
file showing number of pages in document. This has always been the
default behaviour (to add this line), all other software seems to
ignore it as intended, but `gs' sometimes complains, so the default
is now to omit the statistics.
Document new option -u[cmapfilename] to allow a user ToUnicode CMap
instead of gropdf's default. If no `cmapfilename' given then do not
include any ToUnicode CMap.
* src/devices/gropdf/gropdf.pl <top>: Allow `bundled' flags on
command line (i.e. -de = -d -e).
Use $RT_SEP as multi path separator, not hard coded `:'. Update all
users.
New flags -u and -s.
Once a custom papersize has been set as \X'papersize x,y' make it
sticky so all following pages use custom size.
When importing pdf with \X'pdf: pdfpic ...' do not compress objects
which are already compressed! This caused problems with PDFs
created with ImageMagick, now fixed.
(IsText, PutLine, do_t): The troff `u' command can contain a kerning
adjustment number, this was not being handled, now fixed.
(do_c): The troff `c' command was not being handled correctly, now
fixed.
(FindChar, RemapChr, do_N): Handle fonts with more than 255 glyphs.
($ucmap): Define CMap ToUnicode to convert ligatures
(fl,fi,ff,ffl,ffi) back to individual characters, useful for
cut'n'paste and text searching.
(LoadFont): Handle it.
(ToPoints, GetPoints): Handle `z' unit.
(do_x, FixPDFColour, PutHotSpot): Allow Annotation colour to be
groff colour, i.e. 0-65535 *3, or #rrggbb, or #rrrrbbbbgggg.
(do_p):The papersize width/length in switch -p were reversed,
corrected.
* src/devices/gropdf/Makefile.sub (gropdf): Use $RT_SEP.
Use $fontpath rather than $fontdir (this ensures site-font is
included in searches).
* tmac/pdf.tmac (PDFBOOKMARK.VIEW, PDFHREF.VIEW, PDFPAGE.Y): Fix
strings.
(pdfbookmark): Correct handling of bookmark levels.
Convert \[em] to hyphen in bookmarks
Rather use -N than -T for "named" bookmarks (-T already used for "tag"
in pdfmark.tmac)
(.pdfclean): New macro which attempts to asciify bookmark text.
(.pdfpagename): New wrapper macro for \X'pdf: pagename'.
(.pdfswitchtopage): New wrapper macro for \X'pdf: switchtopage'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/preproc/html/pre-html.cpp (alterDeviceTo): Avoid ambiguous
if-else clause.
* src/preproc/grn/main.cpp (sccsid): Comment out.
* src/roff/troff/number.cpp (parse_expr) <case '*'>: Add cast.
* src/devices/xditview/Makefile.sub (EXTRA_CFLAGS): Add `-Dlint' so
that unused static ID arrays don't cause a warning.
(Some) problems reported by Bjarni Ingi Gislason
<bjarniig@rhi.hi.is>.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/devices/gropdf/gropdf.pl (<top>, do_u): Add facility to handle
track kerning (.tkf).
(do_x, do_p, do_t): If pages are reordered using `pagename' and
`switchtopage' keep track of outline bookmarks.
(PutHotSpot): Allow user to control size of hotspot bounding box on
clickable links by setting PDFHREF.LEADING
* tmac/pdf.tmac (PDFHREF.LEADING): Adjust value.
(pdf*href): Pass value of PDFHREF.LEADING to gropdf.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/preproc/eqn/main.cpp (do_file), src/roff/troff/env.cpp
(environment::print_env), src/roff/troff/mtsm.cpp
(statem::display_state): Add syntactical sugar.
* src/utils/tfmtodit/tfmtodit.cpp (char_info_word): Use `unsigned
char' for all members.
* src/devices/grohtml/html-text.cpp (html_text::remove_def): Remove
unused variable `q'.
* src/devices/grohtml/post-html.cpp
(html_printer::lookahead_for_tables): Remove unused variable `left'
and `seen_text'.
|
|
|
|
|
|
|
|
|
| |
* font/devpdf/Makefile.sub (MOSTLYCLEANADD): Don't attempt to
install 'util/BuildFoundries', only used in 'make'.
* src/devices/gropdf/gropdf.pl (<top>, GetType1): Make STDOUT and
any font files read to be accessed in binary rather than text mode.
Prevents errors when running on systems set up for UTF-8.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/devices/gropdf/gropdf.pl: Change command line option `-fy' to
`-y' for consistency.
Better support for Windows platform.
(do_x): Handle keywords `pagename' and `switchtopage'.
* doc/groff.texinfo, src/devices/gropdf/gropdf.man: Updated.
* font/devpdf/Foundry: Renamed to...
* font/devpdf/Foundry.in: This.
Add default alias font names.
* font/devpdf/util/BuildFoundries.pl: This is now an installation
helper script and gets not longer installed.
Support alternative font file names (separated with `!').
* font/devpdf/Makefile.sub: Fixes to work with a separate build
directory.
Font files are now build at `make' time; this makes `test-groff'
work with -Tpdf.
* font/devpdf/util/Makefile.sub: Removed.
* Makefile.in (DEVDIRS, OTHERDIRS, EXTRADIRS): Handle devpdf
specially.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* font/devpdf/*: New device files for gropdf.
* src/devices/gropdf/*: New device.
* Makefile.comm (install_dev, uninstall_dev): Handle more
subdirectories.
* Makefile.in (DEVDIRS, OTHERDIRS, EXTRADIRS): Add directories
related to gropdf.
* MANIFEST: Updated.
* test-groff.in (GROFF_BIN_PATH): Updated.
* tmac/Makefile.sub (NORMALFILES): Updated.
* tmac/pdf.tmac: New file.
* tmac/troffrc: Updated.
* doc/groff.texinfo: Document it.
* doc/Makefile.in, doc/Makefile.sub (groff_bin_dirs): Udpated.
* doc/pic.ms: Updated.
* man/groff_out.man, src/devices/grops/grops.man,
src/preproc/pic/pic.man, src/roff/groff/groff.man,
src/utils/afmtodit/afmtodit.man, src/utils/pfbtops/pfbtops.man:
Updated.
* contrib/pdfmark/pdfmark.ms: Updated.
|
|
|
|
|
|
|
| |
* src/devices/grops/Makefile.sub (XLIBS),
src/devices/grodvi/Makefile.sub, src/devices/grolj4/Makefile.sub,
src/devices/grohtml/Makefile.sub, src/devices/grolbp/Makefile.sub:
Add $(LIBGNU).
|
|
|
|
|
|
|
| |
* src/devices/grotty/tty.cpp (tty_printer::make_underline): Only
emit a single backspace in no-SGR mode. less (at least) backspaces
over a character at a time.
(tty_printer::make_bold): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* src/devices/grohtml/grohtml.man: Document two-pass handling of
input data.
|
|
|
|
| |
Found by Krzysztof Zelechowski <giecrilj@stegny.2a.pl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Consequently, no longer check directly for the `utf8' device name
which prevented the creation of arbitrarily called output device
directories like `devunicode'.
Problem reported by Christopher Yeleighton <giecrilj@stegny.2a.pl>
in Savannah bug #29895.
* src/devices/grotty/tty.cpp (tty_printer): Remove `is_utf8' member.
Replace all ocurrences with `font::is_unicode'.
(tty_printer::tty_printer): Remove argument.
* src/devices/grotty/grotty.man: Document `unicode' keyword.
|
|
|
|
|
|
|
| |
Reported by Colin Watson <cjwatson@debian.org>.
* src/devices/grohtml/post-html.cpp (get_html_entity): Add U+27E8
and U+27E9.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Problem reported by Miklos Somogyi <msom@netspace.net.au>.
* src/devices/grops/ps.cpp (ps_printer::special): Check color state
before doing a PS special and flush buffer.
Update called functions.
|
| |
|
| |
|
|
|
|
|
|
| |
src/preproc/soelim/soelim.man: Correct documentation of -I switch.
Reported by Larry Kollar.
Other minor formatting issues.
|
|
|
|
|
|
|
|
|
|
|
| |
* */*.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.
|
|
|
|
| |
(html_printer::writeHeadMetaStyle): Fix CSS output.
|
|
|
|
| |
typo.
|
|
|
|
| |
Typos.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the production of html files.
(pic.html): Ditto.
Remove background colour switch.
(.SUFFIXES, clean): Handle *.xhtml files.
* src/devices/grohtml/grohtml.man: Document that -V option now
generates an HTML-4.01 validator or XHTML validator.
* src/devices/grohtml/html-text.cpp (html_text::end_tag,
html_text::start_tag): Suppress <small>, <big>, and <color> tags if
we are inside a <pre> block.
* src/devices/grohtml/post-html.cpp
(html_printer::handle_valid_flag): Add a parameter to indicate
whether it needs to generate a paragraph block.
(html_printer::write_navigation): Updated.
(html_printer::do_file_components): Generate an HTML-4.01 blue
validator button also.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reference entries.
* NEWS: Updated.
* src/devices/grohtml/grohtml.man: Document new -V and -y options.
* src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
(html_table:: emit_colspan, html_table::emit_td): New methods.
(html_table::emit_col): Use html_table::emit_td.
(html_table::emit_table_header): Use html_table::emit_colspan if
dialect xhtml is specified.
(html_table::finish_row): Updated.
* src/devices/grohtml/html-table.h (html_table): Declare
emit_colspan, emit_td.
* src/devices/grohtml/html-text.cpp: Modified tags to comply with
xhtml if this dialect was requested.
* src/devices/grohtml/html-text.h (html_dialect): New enumeration.
(html_text): Add new variable `dialect'.
* src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
compliant.
(valid_flag, groff_sig, dialect): New global variables.
(html_printer::handle_valid_flag, html_printer::do_math,
html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
html_printer::do_math, html_printer::handle_valid_flag): New
methods.
(html_printer::emit_line, html_printer::emit_raw,
html_printer::do_check_center, html_printer::write_title,
write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
html_printer::begin_page): Altered to be XHTML compliant.
(html_printer::write_header): Updated.
(html_printer::troff_tag): Call do_math.
(html_printer::insert_split_file, html_printer::do_file_components,
html_printer::write_navigation): Create XHTML file components if
necessary and also produces a groff signature if requested.
(~html_printer): Call writeHeadMetaStyle at appropriate places
depending upon html_dialect.
(html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
(main): Added options -x, -V, and -y.
(usage): Updated.
* src/preproc/eqn/box.cpp: Create a distinction between
the MathML device and the XHTML device.
(do_text): Issue a newline at the end of the equation if XHTML was
specified.
(box::top_level): Prefix the output of an equation by the .MATHML
macro.
(output_string): Suppress \n if XHTML was specified.
* src/preproc/eqn/main.cpp (xhtml): New global flag.
(inline_equation): Skip leading spaces after inline equation for
XHTML device.
(main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
* src/preproc/eqn/eqn.h (xhtml): New external flag.
* src/preproc/eqn/text.cpp (entity_table): Fix typo.
* src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
(dialect, eqn_flag): New global variables.
(html_system): Improve debugging support.
(alterDeviceTo): Test for -Txhtml when altering device to the image
device and reset to -Txhtml.
(addZ): Renamed to...
(addArg): This.
Introducea a general parameter.
(print_args): New debugging function.
(char_buffer::run_output_filter): Use print_args and addArg rather
than addZ.
(char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
line parameter as an argument to the html generation of text when
xhtml is needed. Include -e on the command line if mathml is
required.
(scanArguments): Allow -e, -V, -y and -x options.
-V, -y are handled by the back end. -e sets `eqn_flag'.
-x determines HTML dialect.
* src/roff/groff/groff.cpp (possible_command): New method
`clear_name'.
(main): Set eflag if -e is present on command line.
Set is_xhtml if -Txhtml is present.
Pass `-x x' to the HTML pre and post processors.
Pass `-e' to the HTML pre processor if required.
Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
* src/roff/troff/input.cpp (init_input_requests): Introduce new
number register `\n[.O]'.
* tmac/s.tmac: (LP): Use .nop for semantic sugar.
(cov*ab-init) reformat.
(@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
(CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
<cite></cite> for the html device rather than generate images for
footnotes.
* tmac/troffrc-end: Define EQN-HTML-IMAGE,
EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
* tmac/www.tmac: (HTML<?p>): New macro.
(MATH<?p>): New macro.
(IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
(www-emit-ltag): New macro.
(www-push-li): Updated.
(ULS): Ensure that tags are balanced in order by use of
www-emit-ltag.
(ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
order.
(OLS, OLE, DLS, DLE): Ditto.
<global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
respectively.
(www-li-ul, www-li-ol, www-li-dl): Updated.
(EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
MATHML): New macros.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
Handle `GXditview-color'.
* src/devices/xditview/gxditview.man: Updated.
* m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
* m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
from `gnulib' git repository.
* configure.ac: Updated.
* configure: Regenerated (using autoconf 2.61).
* config.guess, config.sub: Updated from `config' CVS repository.
* config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
repository.
|
|
|
|
|
|
|
| |
accelerators.
* src/devices/xditview/GXditview.ad: Updated.
Make widget more colourful.
|
|
|
|
| |
correctly.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Makefile.comm (.man.n): Add @APPRESDIR@.
Sort entries.
* src/devices/xditview/gxditview.man: Document GXditview resource
file.
Other documentation enhancements based on a patch from Jörg.
* src/devices/xditview/GXditview.ad: Make all keys work regardless
of the current mouse position.
|
|
|
|
| |
line thickness.
|
| |
|
|
|
|
| |
the effect was cute.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(MDEFINES): Add $(oldfontdir).
(uninstall_dirs): Remove `current' link.
Remove $(oldfontdir).
* Makefile.comm (oldfontsubdir): New variable.
(install_dev): Install files collected in $(OLDDEVFILES) into
$(oldfontsubdir).
(uninstall_dev): Remove data in $(oldfontsubdir).
(.man.n): Handle @OLDFONTDIR@.
* src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
Document GROFF_FONT_PATH.
* src/devices/grops/grops.man: Document GROFF_FONT_PATH and
old font description files.
* font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
variables.
* font/devps/old/*: New directory, holding the previous version
of the 35 Adobe core font description files.
* font/devps/*: Regenerated the 35 Adobe core fonts, using the
Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
* NEWS: Document font update.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/devices/grops/grops.man: Document BPHook.
Reorder some sections for better readability.
* src/include/lib.h (getlocale): New macro.
(setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
suggested by Bruno.
* src/preproc/preconv/preconv.cpp (main): Use getlocale.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
its code to...
(tty_printer::line): This function.
(tty_printer::draw): Rewritten; just call either draw_line or
draw_polygon.
(tty_printer::draw_line, tty_printer::draw_polygon): New functions.
* src/devices/grotty/grotty.man, NEWS: Document it.
|
|
|
|
|
| |
swallow character immediately after `\[...]'.
Simplify code.
|
|
|
|
| |
Handle current_paragraph only if it is non-NULL.
|
|
|
|
| |
messages where appropriate.
|
|
|
|
|
|
|
| |
for -Thtml as `\[...]'.
* src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
* doc/groff.texinfo (\X): Updated.
|
|
|
|
| |
files.
|