summaryrefslogtreecommitdiff
path: root/src/yelp-man-parser.c
Commit message (Collapse)AuthorAgeFilesLines
* - Don't assume order of certain macros, bug #568066, from Andy OwenShaun McCance2009-03-081-40/+61
| | | | | | | * src/yelp-man-parser.c: - Don't assume order of certain macros, bug #568066, from Andy Owen svn path=/trunk/; revision=3229
* Handle malformed .so tags better (bug #447107 - Matt Keenan)Don Scorgie2007-08-071-4/+3
| | | | | | | | * src/yelp-man-parser.c: Handle malformed .so tags better (bug #447107 - Matt Keenan) svn path=/trunk/; revision=2881
* Better handling of cross links in man pages (bug #431078 - MatthiasDon Scorgie2007-08-071-10/+34
| | | | | | | | * src/yelp-man-parser.c: Better handling of cross links in man pages (bug #431078 - Matthias Clasen) svn path=/trunk/; revision=2880
* Handle '\*=' escape sequence correctly (bug #358825 - Björn Lindqvist)Don Scorgie2007-08-071-0/+3
| | | | | | | | * src/yelp-man-parser.c: Handle '\*=' escape sequence correctly (bug #358825 - Björn Lindqvist) svn path=/trunk/; revision=2875
* Merge of yelp rework branch:Don Scorgie2007-07-301-38/+7
| | | | | | | | | | | | | | | - Depreciate yelp-*-pager in favour of yelp-document and such. Gives us on-demand loading of pages - Switch to using rarian instead of scrollkeeper - Update to using shiny newness of gnome-doc-utils - Make printing docbook pretty - Clean up lots of errors and general cleanup of other source files - Make our resolver much, much better - and remove reliance on libgnome there svn path=/trunk/; revision=2848
* Add support for translated man pages, fixes #343275Brent Smith2006-06-111-44/+109
| | | | | | | | | | | | | | * src/yelp-man-pager.c: (man_pager_parse): * src/yelp-man-parser.c: (yelp_man_parser_parse_file), (yelp_man_parser_parse_doc), (parser_parse_line), (macro_ignore_handler), (macro_section_header_handler), (parser_handle_linetag), (parser_read_until), (parser_append_text): * src/yelp-man-parser.h: * src/yelp-toc-pager.c: (add_man_page_to_toc), (create_toc_from_index), (process_mandir_pending), (process_cleanup): * stylesheets/man2html.xsl: Add support for translated man pages, fixes #343275
* don't increment ptr, fixes #341827 - Don Scorgie get rid of pointlessBrent Smith2006-05-271-1/+1
| | | | | | | | | | | | * src/yelp-man-parser.c: (parser_append_given_text_handle_escapes): don't increment ptr, fixes #341827 - Don Scorgie * src/yelp-search-pager.c: get rid of pointless YelpListing type * src/yelp-toc-pager.c: (process_mandir_pending), (process_cleanup), (xslt_yelp_document): Need to allocate memory for encoding b/c xmlFreeDoc tries to free this cleanup the man_secthash hash table when finished
* When a man page uses the .so macro to include another file, just provide aBrent Smith2006-05-121-1/+43
| | | | | | | | | | * src/yelp-man-parser.c: (macro_reference_handler): When a man page uses the .so macro to include another file, just provide a link to the file; Only works for man pages that have .so as the first and only macro; sort of fixes #340173 * src/yelp-toc-pager.c: (process_omf_pending): Don't add OMF entries to the cache file that are missing a url attribute on the identifier element
* Fix various compiler warnings, patch by Don Scorgie. Fixes #326290Brent Smith2006-04-041-2/+2
| | | | | | | | | | | | 2006-04-03 Brent Smith <gnome@nextreality.net> * src/yelp-db-print-pager.c: (db_print_pager_dispose): * src/yelp-main.c: (slowly_and_stupidly_obtain_timestamp): * src/yelp-man-parser.c: * src/yelp-toc-pager.c: (process_mandir_pending), (xslt_yelp_document): * src/yelp-utils.c: (yelp_get_man_paths): * src/yelp-utils.h: Fix various compiler warnings, patch by Don Scorgie. Fixes #326290
* More 64-bit cleanups with gsizeBrent Smith2006-02-121-7/+7
| | | | | | | | | 2006-02-11 Brent Smith <gnome@nextreality.net> * src/yelp-info-parser.c: (open_info_file): * src/yelp-man-parser.c: (yelp_man_parser_parse_file), (macro_tp_handler), (parser_handle_row_options), (parser_parse_table): More 64-bit cleanups with gsize
* Brent Smith <gnome@nextreality.net>Brent Smith2006-01-141-5/+0
| | | | | | | | | | | | Brent Smith <gnome@nextreality.net> * configure.in: * src/yelp-man-parser.c: * src/yelp-toc-pager.c: (toc_process_pending): fixed some more compiler warnings, and added a summary of configuration parameters at the end of configure.in; Hopefully this will help us track down problems with search if people are reporting bugs, but don't know whether they are using Beagle or the basic search support.
* Brent Smith <gnome@nextreality.net>Brent Smith2006-01-141-8/+3
| | | | | | | | Brent Smith <gnome@nextreality.net> * src/yelp-db-print-pager.c: (db_print_pager_parse): * src/yelp-man-parser.c: (macro_ignore_handler), (parser_handle_linetag), (parser_append_given_text_handle_escapes): fix some silly compiler errors with debug enabled
* Brent Smith <gnome@nextreality.net>Brent Smith2006-01-091-537/+1118
| | | | | | | | | | | | | | | | | | | | | | | | Brent Smith <gnome@nextreality.net> * src/yelp-man-parser.c: (yelp_man_parser_parse_file), (yelp_man_parser_free), (parser_parse_line), (args_concat_all), (macro_ignore_handler), (macro_bold_small_italic_handler), (macro_roman_bold_small_italic_handler), (macro_new_paragraph_handler), (macro_insert_self_handler), (macro_title_header_handler), (macro_section_header_handler), (macro_spacing_handler), (macro_define_handler), (macro_tp_handler), (macro_ip_handler), (macro_hanging_paragraph_handler), (macro_mandoc_handler), (macro_url_handler), (macro_rs_re_handler), (macro_mandoc_list_handler), (macro_verbatim_handler), (is_mandoc_manual_macro_parsed), (is_mandoc_manual_macro_callable), (macro_mandoc_utility_handler), (macro_mandoc_listitem_handler), (macro_template_handler), (parser_handle_linetag), (parser_read_until), (parser_escape_tags), (parser_append_given_text_handle_escapes), (parser_append_node), (parser_append_node_attr), (parser_parse_table): * stylesheets/man2html.xsl: man page parser rework, fixes #163404, #321620, #321627, #324750, #326058
* Brent Smith <gnome@nextreality.net>Brent Smith2005-12-211-2/+2
| | | | | | | * src/test-man-parser.c: (main): * src/yelp-man-parser.c: (yelp_man_parser_parse_doc): Fix some issues with critical warnings related to gnomevfs and an incorrect expression in the man parser.
* src/yelp-bookmarks.c, src/yelp-db-pager.c, src/yelp-gecko-utils.cpp,Don Scorgie2005-11-021-9/+9
| | | | | | | | | | | | 2005-11-02 Don Scorgie <dscorgie@cvs.gnome.org> * src/yelp-bookmarks.c, src/yelp-db-pager.c, src/yelp-gecko-utils.cpp, * src/yelp-info-pager.c, src/yelp-info-parser.c, * src/yelp-man-pager.c, src/yelp-man-parser.c, * src/yelp-search-pager.c, src/yelp-toc-pager.c, * src/yelp-utils.c, src/yelp-window.c, src/yelp-xslt-pager.c Cleanup compiler warnings (casts)
* - Made the man parser ignore macros used by pod2man to reduce garbageShaun McCance2005-09-171-18/+150
| | | | | | | | | | | * src/yelp-man-parser.c: - Made the man parser ignore macros used by pod2man to reduce garbage (Brent Smith) - Handle troff \s+-[N] macros (Brent Smith) - Much-needed code comment (Brent Smith) * stylesheets/man2html.xsl - Handle <br> and <Indent> elements (Brent Smith) - Fix the SH, SS, and IP sibling selectors
* Don't use C++ comments in C files. Fixes the build with --enable-debug.Christian Persch2005-03-101-10/+10
| | | | | | | | | | | | | | | 2005-03-10 Christian Persch <chpe@cvs.gnome.org> * src/yelp-db-pager.c: (walker_walk_xml): * src/yelp-io-channel.c: * src/yelp-man-parser.c: (parser_escape_tags): * src/yelp-toc-pager.c: (toc_process_pending): * src/yelp-window.c: (window_populate), (window_do_load_pager), (pager_finish_cb): * src/yelp-xslt-pager.c: (xslt_yelp_cache): Don't use C++ comments in C files. Fixes the build with --enable-debug.
* Fix a bunch of warnings, port from gnome_i18n_* to the glib equivalents.Kjartan Maraas2005-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-23 Kjartan Maraas <kmaraas@gnome.org> * src/yelp-db-pager.c: (node_get_title): * src/yelp-error.c: * src/yelp-html-gtkhtml1.c: * src/yelp-html-gtkhtml2.c: * src/yelp-index-model.c: * src/yelp-info-pager.c: * src/yelp-main.c: * src/yelp-man-pager.c: * src/yelp-man-parser.c: * src/yelp-pager.c: * src/yelp-pregenerate.c: * src/yelp-settings.c: * src/yelp-toc-pager.c: (process_xslt): * src/yelp-uri.c: (uri_locate_file), (uri_locate_file_lang): * src/yelp-utils.c: (locate_file_lang), (convert_ghelp_uri): * src/yelp-window.c: (yelp_window_load), (window_find_entry_changed_cb): * src/yelp-xslt-pager.c: Fix a bunch of warnings, port from gnome_i18n_* to the glib equivalents. Remove deprecated headers.
* Dump html rather than xml, so gecko can parse it correctly. Man page fixesJames Bowes2004-11-141-9/+29
| | | | | | | | | | | 2004-11-14 James Bowes <bowes@cs.dal.ca> * src/yelp-man-pager.c: (xslt_yelp_document): Dump html rather than xml, so gecko can parse it correctly. * src/yelp-man-parser.c: (parser_handle_linetag), (parser_ensure_P), (parser_handle_inline), (parser_stack_pop_node): Man page fixes for paragraphs, inline tags, and line tags with arguments.
* More hanging tag (IP, TP) fixes.James Bowes2004-11-141-16/+9
| | | | | | | 2004-11-13 James Bowes <bowes@cs.dal.ca> * src/yelp-man-parser.c: (parser_handle_linetag): More hanging tag (IP, TP) fixes.
* More manpage fixing, including better handling of using hanging tagJames Bowes2004-11-141-32/+66
| | | | | | | | | 2004-11-13 James Bowes <bowes@cs.dal.ca> * src/yelp-man-parser.c: (yelp_man_parser_parse_file), (parser_parse_line), (parser_handle_linetag): More manpage fixing, including better handling of using hanging tag paragraphs as list items.
* More manpage fixes.James Bowes2004-11-141-22/+32
| | | | | | | | 2004-11-13 James Bowes <bowes@cs.dal.ca> * src/yelp-man-parser.c: (yelp_man_parser_parse_file), (parser_handle_linetag), (parser_handle_row_options), (parser_parse_table): More manpage fixes.
* Add in detection of page_name(section_num) style man page references, andJames Bowes2004-11-131-1/+64
| | | | | | | | | 2004-11-13 James Bowes <bowes@cs.dal.ca> * src/yelp-man-parser.c: (parser_read_until), (parser_parse_table), (parser_make_link): Add in detection of page_name(section_num) style man page references, and create the appropriate link.
* Add more tags to the parser, including the inline comment tag, some bsdJames Bowes2004-10-191-12/+126
| | | | | | | | | 2004-10-19 James Bowes <bowes@cs.dal.ca> * src/yelp-man-parser.c: (yelp_man_parser_parse_file), (parser_handle_linetag), (parser_handle_inline): Add more tags to the parser, including the inline comment tag, some bsd mandoc macros, and hypertext macros.
* - Small fix for TP tag from Don ScorgieShaun McCance2004-10-181-1/+4
| | | | | * src/yelp-man-parser.c: - Small fix for TP tag from Don Scorgie
* - Switched most of the stuff over to YelpDocInfo - Reworked parserShaun McCance2004-10-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: * src/Makefile.am: * src/test-man-parser.c: * src/test-pager.c: * src/test-uri.c: * src/yelp-base.c: * src/yelp-base.h: * src/yelp-db-pager.c: * src/yelp-db-pager.h: * src/yelp-error.h: * src/yelp-history.c: * src/yelp-history.h: * src/yelp-html-gecko.c: * src/yelp-html.h: * src/yelp-man-pager.c: * src/yelp-man-pager.h: * src/yelp-man-parser.c: * src/yelp-man-parser.h: * src/yelp-pager.c: * src/yelp-pager.h: * src/yelp-toc-pager.c: * src/yelp-utils.c: * src/yelp-utils.h: * src/yelp-window.c: * src/yelp-window.h: - Switched most of the stuff over to YelpDocInfo - Reworked parser semantics to make it simpler - Broke lots of stuff
* Added more tags (from the gnu man macro package) to the parser. AddedJames Bowes2004-10-011-16/+236
| | | | | | | | | | | | | 2004-09-30 James Bowes <bowes@cs.dal.ca> * src/yelp-man-parser.c: (parser_handle_linetag), (parser_handle_inline), (parser_append_text), (parser_append_node), (parser_stack_push_node), (parser_stack_pop_node), (parser_handle_table_options), (parser_handle_row_options), (parser_parse_table): Added more tags (from the gnu man macro package) to the parser. Added basic parsing for the table (tbl) macro package. Stopped parser from adding <P>'s holding only newlines.
* - Added yelp_document_info_get_filename - Made yelp-man-parser useShaun McCance2004-09-291-16/+161
| | | | | | | | | | | | * src/Makefile.am: * src/test-man-parser.c: * src/test-uri.c: * src/yelp-man-parser.c: * src/yelp-man-parser.h: * src/yelp-utils.c: * src/yelp-utils.h: - Added yelp_document_info_get_filename - Made yelp-man-parser use YelpDocument
* - DIE STRCMP DIEShaun McCance2004-09-291-12/+12
| | | | | * src/yelp-man-parser.c: - DIE STRCMP DIE
* Added test-man-parser to .cvsignoreShaun McCance2004-01-111-1/+2
| | | | | | | | | | | | | | * src/.cvsignore: Added test-man-parser to .cvsignore * src/Makefile.am: * src/yelp-error.c: * src/yelp-error.h: * src/yelp-io-channel.c: * src/yelp-io-channel.h: * src/yelp-man-parser.c: - Kick-ass custom GIOChannel that automatically uses zlib and libbz2. * stylesheets/.cvsignore: Added l10n.xml to .cvsignore
* - Gobs more work on the man page parser.Shaun McCance2004-01-081-10/+103
| | | | | * src/yelp-man-parser.c: - Gobs more work on the man page parser.
* - Added preliminary code for a man page parser.Shaun McCance2004-01-081-0/+335
* src/Makefile.am: * src/test-man-parser.c: * src/yelp-man-parser.c: * src/yelp-man-parser.h: - Added preliminary code for a man page parser.