refdb-cvs Mailing List for RefDB (Page 39)
Status: Beta
Brought to you by:
mhoenicka
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(47) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(88) |
Feb
(50) |
Mar
(36) |
Apr
(9) |
May
(30) |
Jun
(30) |
Jul
(22) |
Aug
(16) |
Sep
(42) |
Oct
(18) |
Nov
(29) |
Dec
(23) |
2005 |
Jan
(18) |
Feb
(28) |
Mar
(21) |
Apr
(35) |
May
(62) |
Jun
(22) |
Jul
(5) |
Aug
(40) |
Sep
(98) |
Oct
(81) |
Nov
(51) |
Dec
(62) |
2006 |
Jan
(46) |
Feb
(36) |
Mar
(8) |
Apr
(16) |
May
(14) |
Jun
(16) |
Jul
(47) |
Aug
(60) |
Sep
(34) |
Oct
(16) |
Nov
(46) |
Dec
(11) |
2007 |
Jan
(16) |
Feb
(13) |
Mar
(58) |
Apr
(32) |
May
(4) |
Jun
(8) |
Jul
(31) |
Aug
(46) |
Sep
(22) |
Oct
(30) |
Nov
(58) |
Dec
(15) |
2008 |
Jan
(8) |
Feb
(8) |
Mar
(2) |
Apr
(6) |
May
(3) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(6) |
Nov
(3) |
Dec
(5) |
2009 |
Jan
(1) |
Feb
(20) |
Mar
(8) |
Apr
(5) |
May
(8) |
Jun
(3) |
Jul
(6) |
Aug
(4) |
Sep
(7) |
Oct
(8) |
Nov
(2) |
Dec
(1) |
2010 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2011 |
Jan
(5) |
Feb
(5) |
Mar
(13) |
Apr
(3) |
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(13) |
2014 |
Jan
(2) |
Feb
(2) |
Mar
(2) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(6) |
Sep
(3) |
Oct
|
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
(9) |
Feb
(16) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Markus H. <mho...@us...> - 2005-12-23 22:23:21
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22603 Modified Files: refdb-mode.el Log Message: more fixes for calling external viewers on different OSes Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.25 retrieving revision 1.26 diff -u -U2 -r1.25 -r1.26 --- refdb-mode.el 21 Dec 2005 00:19:03 -0000 1.25 +++ refdb-mode.el 23 Dec 2005 22:23:13 -0000 1.26 @@ -527,5 +527,4 @@ ) - (add-hook 'refdb-mode-hook 'refdb-initialize-all-menus) (add-hook 'refdb-mode-hook 'refdb-set-default-database) @@ -534,5 +533,4 @@ (add-hook 'refdb-select-database-hook 'refdb-update-completion-lists) (add-hook 'refdb-select-database-hook 'refdb-find-dbengine) -(add-hook 'menu-bar-update-hook 'refdb-update-database-menu) (defvar refdb-input-type "ris") @@ -4144,5 +4142,5 @@ "TEI.2") ((re-search-forward "<article.*>" nil t) - "book") + "article") ((re-search-forward "<book.*>" nil t) "book") @@ -4171,10 +4169,15 @@ (concat ;; need the protocol at least on Windoze - "file:///" + "file://" + ;; we may have to prepend a slash because Windoze paths + ;; start with a drive letter which has the browsers complain + ;; about malformed URLs... + (if (not (= (string-to-char buffer-file-name) 47)) + "/") (substring buffer-file-name 0 (string-match "/[^/]+$" buffer-file-name)) - (if (eq (refdb-check-doctype) "book") + (if (string= (refdb-check-doctype) "book") "/book1.html" "/t1.html") @@ -4182,4 +4185,14 @@ (t (concat + ;; add the protocol for (x)html files + (if (or + (equal type "html") + (equal type "xhtml")) + (concat + "file://" + (if (not (= (string-to-char buffer-file-name) 47)) + "/") + ) + ) (substring buffer-file-name |
From: Markus H. <mho...@us...> - 2005-12-22 20:12:59
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10353 Modified Files: Tag: Release_0_9_5_stable refdbdbib.c Log Message: getstyle(): include character encoding in processing instruction Index: refdbdbib.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbdbib.c,v retrieving revision 1.36.2.29 retrieving revision 1.36.2.30 diff -u -U2 -r1.36.2.29 -r1.36.2.30 --- refdbdbib.c 17 Dec 2005 01:34:09 -0000 1.36.2.29 +++ refdbdbib.c 22 Dec 2005 20:12:50 -0000 1.36.2.30 @@ -1927,8 +1927,10 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ int getstyle(struct CLIENT_REQUEST* ptr_clrequest, struct ADDRESULT* ptr_addresult) { + char header[80]; char *sql_command; const char* journal; char *myarg; char *token; + const char *encoding; dbi_conn conn; dbi_result dbires; @@ -1964,17 +1966,29 @@ - write header with container start markup - loop over all journal names - - write style info - - loop over all publication types - - write style info - - write citstyle info + - write style info + - loop over all publication types + - write style info + - write citstyle info - write footer with container end markup - */ + */ send_status(ptr_clrequest->fd, 000, TERM_NO); + /* connect to main database */ + if ((conn = connect_to_db(ptr_clrequest, MAIN_DB, 0)) == NULL) { + LOG_PRINT(LOG_WARNING, get_status_msg(202)); + return 1; + } + driver = dbi_conn_get_driver(conn); + + /* assemble processing instruction */ + encoding = dbi_conn_get_encoding(conn); + snprintf(header, 80, "<?xml version=\"1.0\" encoding=\"%s\"?>\n", encoding); + /* write processing instruction */ - if (tiwrite(ptr_clrequest->fd, PROCESSING_INST, TERM_NO) == -1) { + if (tiwrite(ptr_clrequest->fd, header, TERM_NO) == -1) { LOG_PRINT(LOG_WARNING, get_status_msg(110)); delete_all_lilimem(&sentinel); + dbi_conn_close(conn); return 1; } @@ -1986,162 +2000,149 @@ LOG_PRINT(LOG_WARNING, get_status_msg(110)); delete_all_lilimem(&sentinel); + dbi_conn_close(conn); return 2; } iwrite_elstart(ptr_clrequest, "STYLESET", NULL, 0); } -/* else if (ptr_clrequest->inargc - *(ptr_clrequest->ptr_optind) == 1) { /\* write CITESTYLE element *\/ */ -/* if (tiwrite(ptr_clrequest->fd, DOCTYPE_CITESTYLE, TERM_NO) == -1) { */ -/* LOG_PRINT(LOG_WARNING, get_status_msg(110)); */ -/* delete_all_lilimem(&sentinel); */ -/* return 2; */ -/* } */ -/* } */ else { /* no tokens found */ LOG_PRINT(LOG_WARNING, get_status_msg(111)); delete_all_lilimem(&sentinel); + dbi_conn_close(conn); return 2; } - /* connect to the database */ - if ((conn = connect_to_db(ptr_clrequest, MAIN_DB, 0)) != NULL) { - driver = dbi_conn_get_driver(conn); - - /* loop over all requested styles */ - for (; *(ptr_clrequest->ptr_optind) < ptr_clrequest->inargc; (*(ptr_clrequest->ptr_optind))++) { - sprintf(sql_command, "SELECT ID,JOURNAL,CITSEPARATOR,FOLLOWING,PRECEEDING,RANGESEPARATOR,BIBLIOTITLE,INTEXTSEQUENCE,BIBLIOSEQUENCE,BIBLIOFIRSTINDENT,BIBLIOBLOCKINDENT,FONTSIZE,STYLE,JANABBREV,FEBABBREV,MARABBREV,APRABBREV,MAYABBREV,JUNABBREV,JULABBREV,AUGABBREV,SEPABBREV,OCTABBREV,NOVABBREV,DECABBREV,JANFULL,FEBFULL,MARFULL,APRFULL,MAYFULL,JUNFULL,JULFULL,AUGFULL,SEPFULL,OCTFULL,NOVFULL,DECFULL,JANTHREELET,FEBTHREELET,MARTHREELET,APRTHREELET,MAYTHREELET,JUNTHREELET,JULTHREELET,AUGTHREELET,SEPTHREELET,OCTTHREELET,NOVTHREELET,DECTHREELET FROM CITSTYLE WHERE JOURNAL='%s'", (ptr_clrequest->inargv)[*(ptr_clrequest->ptr_optind)]); + /* loop over all requested styles */ + for (; *(ptr_clrequest->ptr_optind) < ptr_clrequest->inargc; (*(ptr_clrequest->ptr_optind))++) { + sprintf(sql_command, "SELECT ID,JOURNAL,CITSEPARATOR,FOLLOWING,PRECEEDING,RANGESEPARATOR,BIBLIOTITLE,INTEXTSEQUENCE,BIBLIOSEQUENCE,BIBLIOFIRSTINDENT,BIBLIOBLOCKINDENT,FONTSIZE,STYLE,JANABBREV,FEBABBREV,MARABBREV,APRABBREV,MAYABBREV,JUNABBREV,JULABBREV,AUGABBREV,SEPABBREV,OCTABBREV,NOVABBREV,DECABBREV,JANFULL,FEBFULL,MARFULL,APRFULL,MAYFULL,JUNFULL,JULFULL,AUGFULL,SEPFULL,OCTFULL,NOVFULL,DECFULL,JANTHREELET,FEBTHREELET,MARTHREELET,APRTHREELET,MAYTHREELET,JUNTHREELET,JULTHREELET,AUGTHREELET,SEPTHREELET,OCTTHREELET,NOVTHREELET,DECTHREELET FROM CITSTYLE WHERE JOURNAL='%s'", (ptr_clrequest->inargv)[*(ptr_clrequest->ptr_optind)]); - dbires = dbi_conn_query(conn, sql_command); - LOG_PRINT(LOG_DEBUG, sql_command); - if (dbires) { - while (dbi_result_next_row(dbires)) { /* should run only once */ - citstyle_id = my_dbi_result_get_short_idval(dbires, "ID"); - - /* start citestyle */ - iwrite_elstart(ptr_clrequest, "CITESTYLE", NULL, 0); - - /* output style name */ - iwrite_element(ptr_clrequest, "STYLENAME", NULL, my_dbi_result_get_string(dbires, "JOURNAL")); - - /* start refstyle block */ - iwrite_elstart(ptr_clrequest, "REFSTYLE", NULL, 0); - - /* loop over all publication types */ - sprintf(sql_command, "SELECT ID,PUBTYPE FROM REFSTYLE WHERE CITSTYLEID=%u AND PUBTYPE!=\'INTEXT\' AND PUBTYPE!=\'AUTHORONLY\' AND PUBTYPE!=\'YEARONLY\'", citstyle_id); - dbires_ref = dbi_conn_query(conn, sql_command); - LOG_PRINT(LOG_DEBUG, sql_command); - if (dbires_ref) { - while (dbi_result_next_row(dbires_ref)) { - refstyle_id = my_dbi_result_get_short_idval(dbires_ref, "ID"); + dbires = dbi_conn_query(conn, sql_command); + LOG_PRINT(LOG_DEBUG, sql_command); + if (dbires) { + while (dbi_result_next_row(dbires)) { /* should run only once */ + citstyle_id = my_dbi_result_get_short_idval(dbires, "ID"); + + /* start citestyle */ + iwrite_elstart(ptr_clrequest, "CITESTYLE", NULL, 0); + + /* output style name */ + iwrite_element(ptr_clrequest, "STYLENAME", NULL, my_dbi_result_get_string(dbires, "JOURNAL")); + + /* start refstyle block */ + iwrite_elstart(ptr_clrequest, "REFSTYLE", NULL, 0); + + /* loop over all publication types */ + sprintf(sql_command, "SELECT ID,PUBTYPE FROM REFSTYLE WHERE CITSTYLEID=%u AND PUBTYPE!=\'INTEXT\' AND PUBTYPE!=\'AUTHORONLY\' AND PUBTYPE!=\'YEARONLY\'", citstyle_id); + dbires_ref = dbi_conn_query(conn, sql_command); + LOG_PRINT(LOG_DEBUG, sql_command); + if (dbires_ref) { + while (dbi_result_next_row(dbires_ref)) { + refstyle_id = my_dbi_result_get_short_idval(dbires_ref, "ID"); - iwrite_pubtype(ptr_clrequest, my_dbi_result_get_string(dbires_ref, "PUBTYPE"), citstyle_id, conn); - } + iwrite_pubtype(ptr_clrequest, my_dbi_result_get_string(dbires_ref, "PUBTYPE"), citstyle_id, conn); } - dbi_result_free(dbires_ref); - - /* end refstyle block */ - iwrite_elend(ptr_clrequest, "REFSTYLE"); + } + dbi_result_free(dbires_ref); - /* begin citstyle block */ - if (insert_liliform(&attr_sentinel, "INTEXTSEQUENCE", (char*)my_dbi_result_get_string(dbires, "INTEXTSEQUENCE"))) { - LOG_PRINT(LOG_CRIT, get_status_msg(801)); - ptr_addresult->failure++; - break; - } - if (insert_liliform(&attr_sentinel, "STYLE", (char*)my_dbi_result_get_string(dbires, "STYLE"))) { - LOG_PRINT(LOG_CRIT, get_status_msg(801)); - delete_all_liliform(&attr_sentinel); - ptr_addresult->failure++; - break; - } + /* end refstyle block */ + iwrite_elend(ptr_clrequest, "REFSTYLE"); - iwrite_elstart(ptr_clrequest, "CITSTYLE", &attr_sentinel, 0); + /* begin citstyle block */ + if (insert_liliform(&attr_sentinel, "INTEXTSEQUENCE", (char*)my_dbi_result_get_string(dbires, "INTEXTSEQUENCE"))) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + ptr_addresult->failure++; + break; + } + if (insert_liliform(&attr_sentinel, "STYLE", (char*)my_dbi_result_get_string(dbires, "STYLE"))) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); delete_all_liliform(&attr_sentinel); + ptr_addresult->failure++; + break; + } - /* preceeding */ - iwrite_element(ptr_clrequest, "PRECEEDING", NULL, my_dbi_result_get_string(dbires, "PRECEEDING")); + iwrite_elstart(ptr_clrequest, "CITSTYLE", &attr_sentinel, 0); + delete_all_liliform(&attr_sentinel); - /* following */ - iwrite_element(ptr_clrequest, "FOLLOWING", NULL, my_dbi_result_get_string(dbires, "FOLLOWING")); + /* preceeding */ + iwrite_element(ptr_clrequest, "PRECEEDING", NULL, my_dbi_result_get_string(dbires, "PRECEEDING")); - /* citseparator */ - iwrite_element(ptr_clrequest, "CITSEPARATOR", NULL, my_dbi_result_get_string(dbires, "CITSEPARATOR")); + /* following */ + iwrite_element(ptr_clrequest, "FOLLOWING", NULL, my_dbi_result_get_string(dbires, "FOLLOWING")); - /* rangeseparator */ - iwrite_element(ptr_clrequest, "RANGESEPARATOR", NULL, my_dbi_result_get_string(dbires, "RANGESEPARATOR")); + /* citseparator */ + iwrite_element(ptr_clrequest, "CITSEPARATOR", NULL, my_dbi_result_get_string(dbires, "CITSEPARATOR")); - /* intextdef */ - iwrite_pubtype(ptr_clrequest, "INTEXTDEF", citstyle_id, conn); + /* rangeseparator */ + iwrite_element(ptr_clrequest, "RANGESEPARATOR", NULL, my_dbi_result_get_string(dbires, "RANGESEPARATOR")); - /* authoronly */ - iwrite_pubtype(ptr_clrequest, "AUTHORONLY", citstyle_id, conn); + /* intextdef */ + iwrite_pubtype(ptr_clrequest, "INTEXTDEF", citstyle_id, conn); - /* yearonly */ - iwrite_pubtype(ptr_clrequest, "YEARONLY", citstyle_id, conn); + /* authoronly */ + iwrite_pubtype(ptr_clrequest, "AUTHORONLY", citstyle_id, conn); - /* end citstyle block */ - iwrite_elend(ptr_clrequest, "CITSTYLE"); + /* yearonly */ + iwrite_pubtype(ptr_clrequest, "YEARONLY", citstyle_id, conn); - /* begin bibstyle block */ - if (insert_liliform(&attr_sentinel, "BIBLIOSEQUENCE", (char*)my_dbi_result_get_string(dbires, "BIBLIOSEQUENCE"))) { - LOG_PRINT(LOG_CRIT, get_status_msg(801)); - delete_all_liliform(&attr_sentinel); - ptr_addresult->failure++; - break; - } + /* end citstyle block */ + iwrite_elend(ptr_clrequest, "CITSTYLE"); - if (insert_liliform(&attr_sentinel, "BIBLIOFIRSTINDENT", (char*)my_dbi_result_get_string(dbires, "BIBLIOFIRSTINDENT"))) { - LOG_PRINT(LOG_CRIT, get_status_msg(801)); - delete_all_liliform(&attr_sentinel); - ptr_addresult->failure++; - break; - } + /* begin bibstyle block */ + if (insert_liliform(&attr_sentinel, "BIBLIOSEQUENCE", (char*)my_dbi_result_get_string(dbires, "BIBLIOSEQUENCE"))) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + delete_all_liliform(&attr_sentinel); + ptr_addresult->failure++; + break; + } - if (insert_liliform(&attr_sentinel, "BIBLIOBLOCKINDENT", (char*)my_dbi_result_get_string(dbires, "BIBLIOBLOCKINDENT"))) { - LOG_PRINT(LOG_CRIT, get_status_msg(801)); - delete_all_liliform(&attr_sentinel); - ptr_addresult->failure++; - break; - } + if (insert_liliform(&attr_sentinel, "BIBLIOFIRSTINDENT", (char*)my_dbi_result_get_string(dbires, "BIBLIOFIRSTINDENT"))) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + delete_all_liliform(&attr_sentinel); + ptr_addresult->failure++; + break; + } - if (insert_liliform(&attr_sentinel, "FONTSIZE", (char*)my_dbi_result_get_string(dbires, "FONTSIZE"))) { - LOG_PRINT(LOG_CRIT, get_status_msg(801)); - delete_all_liliform(&attr_sentinel); - ptr_addresult->failure++; - break; - } + if (insert_liliform(&attr_sentinel, "BIBLIOBLOCKINDENT", (char*)my_dbi_result_get_string(dbires, "BIBLIOBLOCKINDENT"))) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + delete_all_liliform(&attr_sentinel); + ptr_addresult->failure++; + break; + } - iwrite_elstart(ptr_clrequest, "BIBSTYLE", &attr_sentinel, 0); + if (insert_liliform(&attr_sentinel, "FONTSIZE", (char*)my_dbi_result_get_string(dbires, "FONTSIZE"))) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); delete_all_liliform(&attr_sentinel); + ptr_addresult->failure++; + break; + } - /* bibliotitle */ - iwrite_element(ptr_clrequest, "BIBLIOTITLE", NULL, my_dbi_result_get_string(dbires, "BIBLIOTITLE")); + iwrite_elstart(ptr_clrequest, "BIBSTYLE", &attr_sentinel, 0); + delete_all_liliform(&attr_sentinel); - /* months block */ - iwrite_months(ptr_clrequest, dbires); + /* bibliotitle */ + iwrite_element(ptr_clrequest, "BIBLIOTITLE", NULL, my_dbi_result_get_string(dbires, "BIBLIOTITLE")); - /* end bibstyle block */ - iwrite_elend(ptr_clrequest, "BIBSTYLE"); + /* months block */ + iwrite_months(ptr_clrequest, dbires); - /* end citestyle */ - iwrite_elend(ptr_clrequest, "CITESTYLE"); - } - dbi_result_free(dbires); - ptr_addresult->success++; - } /* end if style exists */ - else { - ptr_addresult->skipped++; + /* end bibstyle block */ + iwrite_elend(ptr_clrequest, "BIBSTYLE"); + + /* end citestyle */ + iwrite_elend(ptr_clrequest, "CITESTYLE"); } - } /* end for loop over all tokens */ + dbi_result_free(dbires); + ptr_addresult->success++; + } /* end if style exists */ + else { + ptr_addresult->skipped++; + } + } /* end for loop over all tokens */ - dbi_conn_close(conn); + dbi_conn_close(conn); - if (n_have_styleset) { - tiwrite(ptr_clrequest->fd, "</STYLESET>\n", TERM_YES); - } - } - else { - LOG_PRINT(LOG_WARNING, get_status_msg(202)); - return 1; + if (n_have_styleset) { + tiwrite(ptr_clrequest->fd, "</STYLESET>\n", TERM_YES); } + delete_all_lilimem(&sentinel); |
From: Markus H. <mho...@us...> - 2005-12-22 00:05:21
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17497 Modified Files: download.html Log Message: fixed link to elisp package Index: download.html =================================================================== RCS file: /cvsroot/refdb/homepage/download.html,v retrieving revision 1.16 retrieving revision 1.17 diff -u -U2 -r1.16 -r1.17 --- download.html 15 Nov 2005 21:24:23 -0000 1.16 +++ download.html 22 Dec 2005 00:05:13 -0000 1.17 @@ -154,6 +154,6 @@ <h2 id="sources">Source distributions</h2> - <p>If you want to build the current version of RefDB from the sources, please grab the latest source code release <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=19605&release_id=370943">refdb-0.9.6.tar.gz</a> along with the Perlmod package <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=74687&release_id=370923">RefDB-perlmod-0.4.tar.gz</a> (you can skip the latter if you don't require the MARC and Pubmed import filters). If you intend to write custom Perl clients, please grab the <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=92147&release_id=370926">RefDB-perlclient</a> archive as well. As an Emacs user you may also be interested in the <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=169552&release_id=371177">refdb-elisp</a> archive.</p> - <p>There is also a meta-archive called <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=75763&release_id=289691">refdb-starterkit-0.9.5.tar.gz</a> containing the RefDB sources as well as all required library sources and Perl modules. You'll get the following archives along with some terse build instructions:</p> + <p>If you want to build the current version of RefDB from the sources, please grab the latest source code release <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=19605&release_id=370943">refdb-0.9.6.tar.gz</a> along with the Perlmod package <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=74687&release_id=370923">RefDB-perlmod-0.4.tar.gz</a> (you can skip the latter if you don't require the MARC and Pubmed import filters). If you intend to write custom Perl clients, please grab the <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=92147&release_id=370926">RefDB-perlclient</a> archive as well. As an Emacs user you may also be interested in the <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=169552">refdb-elisp</a> archive which implements a graphical frontend for RefDB.</p> + <p>There is also a (<b>currently outdated</b>) meta-archive called <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=75763&release_id=289691">refdb-starterkit-0.9.5.tar.gz</a> containing the RefDB sources as well as all required library sources and Perl modules. You'll get the following archives along with some terse build instructions:</p> <ul> <li>Text-Iconv-1.4: Perl module for character encoding conversions</li> |
From: Markus H. <mho...@us...> - 2005-12-22 00:00:36
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14449 Modified Files: emacs.html Log Message: fixed link to package Index: emacs.html =================================================================== RCS file: /cvsroot/refdb/homepage/emacs.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -U2 -r1.9 -r1.10 --- emacs.html 21 Dec 2005 23:48:53 -0000 1.9 +++ emacs.html 22 Dec 2005 00:00:27 -0000 1.10 @@ -119,5 +119,5 @@ <h1>RefDB Features: Emacs support</h1> <p>RefDB integrates nicely into Emacs. Combined with editing modes for SGML, XML, and RIS documents, you'll get an integrated authoring environment with direct access to your bibliographic data. "Cite-while-you-write", document transformation, and previewing is just a few mouseclicks away for DocBook SGML and XML as well as for TEI XML documents. Emacs support is not included in the RefDB sources, but available separately.</p> - <p>The modes below are also available as an autotools-based <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=169552&release_id=371177">package</a> including a manual.</p> + <p>The modes below are also available as an autotools-based <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=169552">package</a> including a manual, allowing a <code>./configure && make &&make install</code> kind of installation on most Unix-style systems.</p> <div class="localnav"> <table class="localnav"> |
From: Markus H. <mho...@us...> - 2005-12-21 23:54:52
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12980 Modified Files: index.html Log Message: fixed typos which look odd on a front page... Index: index.html =================================================================== RCS file: /cvsroot/refdb/homepage/index.html,v retrieving revision 1.15 retrieving revision 1.16 diff -u -U2 -r1.15 -r1.16 --- index.html 21 Dec 2005 23:48:52 -0000 1.15 +++ index.html 21 Dec 2005 23:54:40 -0000 1.16 @@ -138,5 +138,5 @@ <div class="news"> <h3>December 22, 2005</h3> - <p>A new version of the refdb-elisp package is available. Please download them from the <a href="http://www.sourceforge.net/projects/refdb">Project page</a>. The two Emacs modes contained in the package turn Emacs into a full-fledged frontend for RefDB, allows direct editing and updating of reference, note, and style data, and allows a convenient "cite-while-you-write" kind of authoring your next book or publication.</p> + <p>A new version of the refdb-elisp package is available. Please download it from the <a href="http://www.sourceforge.net/projects/refdb">Project page</a>. The two Emacs modes contained in the package turn Emacs into a full-fledged frontend for RefDB, allows direct editing and updating of reference, note, and style data, and allows a convenient "cite-while-you-write" kind of authoring of your next book or publication.</p> </div> <div class="news"> |
From: Markus H. <mho...@us...> - 2005-12-21 23:49:03
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11821 Modified Files: index.html emacs.html Log Message: added new refdb-elisp version Index: index.html =================================================================== RCS file: /cvsroot/refdb/homepage/index.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -U2 -r1.14 -r1.15 --- index.html 23 Nov 2005 22:40:45 -0000 1.14 +++ index.html 21 Dec 2005 23:48:52 -0000 1.15 @@ -137,4 +137,8 @@ <h2>News</h2> <div class="news"> + <h3>December 22, 2005</h3> + <p>A new version of the refdb-elisp package is available. Please download them from the <a href="http://www.sourceforge.net/projects/refdb">Project page</a>. The two Emacs modes contained in the package turn Emacs into a full-fledged frontend for RefDB, allows direct editing and updating of reference, note, and style data, and allows a convenient "cite-while-you-write" kind of authoring your next book or publication.</p> + </div> + <div class="news"> <h3>November 23, 2005</h3> <p>Cygwin binaries of 0.9.6 are available. Please download them from the <a href="http://www.sourceforge.net/projects/refdb">Project page</a>.</p> Index: emacs.html =================================================================== RCS file: /cvsroot/refdb/homepage/emacs.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -U2 -r1.8 -r1.9 --- emacs.html 15 Nov 2005 21:24:23 -0000 1.8 +++ emacs.html 21 Dec 2005 23:48:53 -0000 1.9 @@ -119,5 +119,5 @@ <h1>RefDB Features: Emacs support</h1> <p>RefDB integrates nicely into Emacs. Combined with editing modes for SGML, XML, and RIS documents, you'll get an integrated authoring environment with direct access to your bibliographic data. "Cite-while-you-write", document transformation, and previewing is just a few mouseclicks away for DocBook SGML and XML as well as for TEI XML documents. Emacs support is not included in the RefDB sources, but available separately.</p> - <p>The modes below are also available as a autotools-based <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=169552&release_id=371177">package</a> including a manual.</p> + <p>The modes below are also available as an autotools-based <a href="http://sourceforge.net/project/showfiles.php?group_id=26091&package_id=169552&release_id=371177">package</a> including a manual.</p> <div class="localnav"> <table class="localnav"> @@ -162,5 +162,5 @@ <h2 id="refdbmode">Emacs refdb-mode</h2> <p class="authors">Current Author: Markus Hoenicka <mho...@us...></p> - <p><strong><a href="addons/refdb-mode.el">Download refdb-mode.el (1.17)</a></strong></p> + <p><strong><a href="addons/refdb-mode.el">Download refdb-mode.el (1.25)</a></strong></p> <p>This minor mode for <a href="http://directory.fsf.org/emacs.html">Emacs</a> and <a href="http://www.xemacs.org/">XEmacs</a> is a frontend, and then some, for RefDB.</p> <ul> |
From: Markus H. <mho...@us...> - 2005-12-21 22:07:32
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17797 Modified Files: ChangeLog Log Message: updated for 1.1 Index: ChangeLog =================================================================== RCS file: /cvsroot/refdb/elisp/ChangeLog,v retrieving revision 1.2 retrieving revision 1.3 diff -u -U2 -r1.2 -r1.3 --- ChangeLog 20 Nov 2005 20:29:28 -0000 1.2 +++ ChangeLog 21 Dec 2005 22:07:24 -0000 1.3 @@ -1,5 +1,84 @@ +2005-12-21 23:06 mhoenicka + + * manual.css (1.2): added coloring of pre elements + +2005-12-21 23:01 mhoenicka + + * NEWS (1.2), README (1.3): updated for 1.1 + +2005-12-21 21:40 mhoenicka + + * refdb-mode-manual.xml (1.5): updated for 1.1 + +2005-12-21 21:39 mhoenicka + + * configure.in (1.6): fixed version number + +2005-12-21 01:19 mhoenicka + + * refdb-mode.el (1.25): fixed viewer stuff for Windoze + +2005-12-20 01:26 mhoenicka + + * refdb-mode.el (1.24): new config option for citation formats, + i.e. SGML vs. XML; new function refdb-check-doctype() determines + the document type;check doctype to call proper filename for viewing + html output from SGML;use proper citation format for SGML and XML + +2005-12-19 10:30 mhoenicka + + * refdb-mode.el (1.23): fixed probs with previous checkin + +2005-12-19 10:25 mhoenicka + + * refdb-mode.el (1.22): removed leftover reference to + refdb-check-doctype + +2005-12-19 00:55 mhoenicka + + * configure.in (1.5): some more additions and fixes for the viewer + detection + +2005-12-19 00:52 mhoenicka + + * refdb-mode-manual.xml (1.4): updated for 1.2 + +2005-12-19 00:50 mhoenicka + + * refdb-mode.el (1.21): adapt query prompts to database engine + used;use start-process-shell-command instead of start-process to + simplify setup on Windoze;create empty xref elements with end tag + compatible with both XML and SGML + +2005-12-08 01:58 mhoenicka + + * refdb-mode-manual.xml (1.3): added + refdb-getref-from-citation;added NTEmacs setup instructions + +2005-12-08 01:56 mhoenicka + + * refdb-mode.el (1.20): added L1-L4 to tag list;new config variable + refdb-default-ris-encoding;new function refdb-getref-from-citation + +2005-11-26 01:26 mhoenicka + + * refdb-mode.el (1.19): added refdb-sysconfdir;added minibuffer + completion to a couple of functions + +2005-11-26 01:23 mhoenicka + + * refdb-mode-manual.xml (1.2): added administrative functions + +2005-11-26 01:21 mhoenicka + + * refdb-mode-config.el.in (1.2): added refdb-sysconfdir + +2005-11-26 01:20 mhoenicka + + * configure.in (1.4): added more viewers + 2005-11-20 21:28 mhoenicka - * refdb-mode-manual.xml (1.1): initial version + * refdb-mode-manual.xml (1.1), ChangeLog (1.2): initial version 2005-11-20 21:27 mhoenicka @@ -37,328 +116,2 @@ * manual.css (1.1): initial version -2005-11-13 00:07 mhoenicka - - * AUTHORS (1.1), COPYING (1.1), ChangeLog (1.1), INSTALL (1.1), - NEWS (1.1), README (1.1), aclocal.m4 (1.1), configure.in (1.1): - initial version - -2005-11-13 00:01 mhoenicka - - * refdb-mode-config.el (1.2): added transient-mark-mode;made - database name customization more obvious - -2005-11-12 23:59 mhoenicka - - * Makefile.am (1.5): moved to an autotools-based installation of - the lisp files; added documentation - -2005-11-12 22:25 mhoenicka - - * refdb-mode.el (1.17): removed -f stdin default option as the - clients no longer need it;moved to applications customize - section;use full citation format by default;moved cite-references - submenu to document section;various comment fixes - -2005-08-09 01:26 mhoenicka - - * refdb-mode.el (1.16): added CK and ID commands to the - getref-by-region and getnote-by-region groups of commands - -2005-06-25 23:52 mhoenicka - - * refdb-mode.el (1.15): added support for full-style - citations;added function to normalize endterms and linkends in - full-style citations - -2005-06-22 21:49 mhoenicka - - * refdb-mode-config.el (1.1): initial version - -2005-06-22 21:36 mhoenicka - - * refdb-mode.el (1.14): keep a list of styles for - tab-completion;support creating documents via refdbnd;support - document transformation via refdbnd-generated Makefile;support - viewing transformation output;added commands to cite references in - TEI and DocBook formats - -2005-06-12 23:18 mhoenicka - - * refdb-mode.el (1.13): added support for author,keyword,and - periodical tab completion;rearranged customization stuff into - subgroups;added support for getref on regions;added support for - bibutils - -2005-06-07 22:07 mhoenicka - - * refdb-mode.el (1.12): added commands to start and stop the - application server;added commands to edit config files;added - encodings;added pickref and dumpref commands;added whichdb - command;added addlink and deletelink commands;fixed buffer modes - for output - -2005-05-31 23:05 mhoenicka - - * refdb-mode.el (1.11): made selectdb a dynamic submenu;added - support for all refdba commands;added support for refdbc note - commands;addref,updateref,addstyle now work on whole buffer for XML - data;deleteref,deletenote ask for ID list instead of using - region;automatically set encoding of output buffer;made sure - refdb-mode is loaded after commands have finished;new major mode - refdb-output-mode - -2005-05-17 23:08 mhoenicka - - * refdb-mode.el (1.10): added regexp search - -2005-05-08 21:34 mhoenicka - - * ris.el (1.9): simplified regexps;added support for L1 through - L4;moved UR to unlimited size - -2005-05-08 18:15 mhoenicka - - * ris.el (1.8): improved template for new set - -2005-05-08 16:33 mhoenicka - - * ris.el (1.7): improved author syntax check - -2005-05-08 03:05 mhoenicka - - * ris.el (1.6): fixed RP date format - -2005-05-08 02:11 mhoenicka - - * refdb-mode.el (1.9): added Update command;force refdbc output to - stdout;turn RefDB mode on in output buffers - -2005-05-07 23:27 mhoenicka - - * ris.el (1.5): added length checks - -2005-05-07 22:45 mhoenicka - - * ris.el (1.4): added validation for authors, pubdates, reprints - -2004-01-28 04:07 xmldoc - - * refdb-mode.el (1.8): added to TODO list - -2003-12-31 08:18 xmldoc - - * Makefile.am (1.4): Moved refdb/site-lisp/Makefile.am to - elisp/Makefile.am - -2003-12-31 08:08 xmldoc - - * ris.el (1.3): Moved refdb/site-lisp/ris.el to elisp/ris.el - -2003-12-28 13:02 xmldoc - - * refdb-mode.el (1.7): RFE #866615 (listb query only at startup), - RFE #865893 (deleteref) - - - http://sourceforge.net/tracker/index.php?func=detail&aid=866615&gro - up_id=26091&atid=385994 - - http://sourceforge.net/tracker/index.php?func=detail&aid=865893&gro - up_id=26091&atid=385994 - - RFE #866615 - do listdb query only at startup - - Enhancement: - refdb-mode now does a listdb query only once per session, - instead - of doing it each time refdb-mode-hook runs - - RFE #865893 - Add deletref support to refdb-mode - - Enhancement: - Added refdb-deleteref-on-region command and corresponding menu - item. - -2003-12-26 10:48 xmldoc - - * refdb-mode.el (1.6): RFE #865873 (set default db) and #865812 - (refdb-mode in output buffer) - - - http://sourceforge.net/tracker/index.php?func=detail&aid=865873&gro - up_id=26091&atid=385994 - - http://sourceforge.net/tracker/index.php?func=detail&aid=865812&gro - up_id=26091&atid=385994 - - RFE #865873 - refdb-mode should read refdbcrc to set default - database - - Enhancement: - refdb-mode now sets the default database based on output from - 'refdbc -C set defaultdb'. - - RFE #865812 - Put refdb-output buffer into refdb-mode - - Enhancement: - refdb-mode now automatically puts the refdb-output buffer into - refdb-mode; this enables you can start working with output data - right away, without needing to manually invoke refdb-mode. - -2003-12-25 11:11 xmldoc - - * refdb-mode.el (1.5): RFE #864364 (output format) and #865638 - (show version info) - - - http://sourceforge.net/tracker/index.php?func=detail&aid=864364&gro - up_id=26091&atid=385994 - - http://sourceforge.net/tracker/index.php?func=detail&aid=865638&gro - up_id=26091&atid=385994 - - ------------------------------------------------------------------- - --- RFE #864364 - provide control over which fields appear in - dataset output - - Enhancement: - Added new functions refdb-select-data-output-format and - refdb-select-additional-data-fields and corresponding new menu - items 'Select Output Format' and 'Select Additional Data - Fields'. - Those control the value passed to the 'refdcbc -C getref -s' - option, and so enable you to control which fields appear in - data - output -- either the default fields, all fields, IDs only, or a - user-customizable set of additional fields that appear in - addition - to the default fields. - - ------------------------------------------------------------------- - --- RFE #865638 - Add "show version" feature - - Enhancement: - Added new function refdb-show-version and corresponding menu - item - 'Show RefDB Version' for displaying version information both - for - refdb-mode and the version of refdbd that refdbd-mode is - running - against. - -2003-12-17 12:32 xmldoc - - * refdb-mode.el (1.4): Change for RFE #861367, "consolidate - variables containing refdbc" - - - http://sourceforge.net/tracker/index.php?func=detail&aid=861367&gro - up_id=26091&atid=385994 - - Problem: The customization buffer of refdb-menu contains a - variety of entries containing the name/path of the refdbc - executable. Changing the refdb-refdbc-program variable will - change the others only after a restart or after reloading .emacs. - This is inconvenient if you want to switch e.g. to a debug - version of the executable. I'd suggest to modify the code so - that in all places refdb-refdbc-program is used, and use the - other variables which so far depend on this to carry only - additional arguments. - - Cause: Bad design; custom variables referencing other custom - variables don't get updated when the values of the referenced - custom variables change. - - Fix: All user commands now include a direct call - refdb-refdbc-program (instead of a call to a custom variable that - references refdb-refdbc-program. - - Affects: All commands that call the refdbc program. If you change - the value of refdb-refdbc-program during a session, the new value - will be used in all commands that call refdbc (i.e., you don't - have to restart your Emacs for the changes to take effect). As a - consequence of this, the following custom variables have been - removed: - - refdb-refdbc-program-and-options - refdb-addref-command - refdb-getref-command - refdb-listdb-command - - Other: Made some minor formatting changes to make code look - better in outline view. - -2003-12-17 11:36 xmldoc - - * refdb-mode.el (1.3): Fix for Bug #861419, "handle percent sign in - queries". - - - http://sourceforge.net/tracker/index.php?func=detail&aid=861419&gro - up_id=26091&atid=385991 - - Problem: If you try to use a string that contains a percent sign, - e.g., "Walsh%", in a getref query, Emacs emits a "not enough - arguments for format call" error, and the query fails. - - Cause: Message functions with nested format functions, like this: - - (message (format CONTROL-STRING OBJECTS)) - - In that case, when objects for that nested format call had - percent - signs in them, the message function choked on them. - - Fix: Un-nested content that was in the format function, like - this: - - (message CONTROL-STRING OBJECTS) - - Because the message function has built-in support for expanding - control-strings just as the format function does, the format call - was actually unnecessary. - - Also, added a new function, `refdb-message-getting-refs', for - displaying the "Getting datasets for FIELD VALUE" message. All - the - refdb-getref-by-* functions now call this (instead of having - their own hard-coded message calls). - - Affects: All getref queries, whether from command-line or menu. - -2003-12-16 05:48 xmldoc - - * refdb-mode.el (1.2): paren missing before function name; fixed - -2003-12-12 12:39 xmldoc - - * refdb-menu.el (1.6), refdb-mode.el (1.1): renamed refdb-menu.el - to refdb-mode.el - -2003-12-10 18:16 xmldoc - - * refdb-menu.el (1.5): simplified database selection - -2003-12-09 03:13 xmldoc - - * refdb-menu.el (1.4): Select Output Type menu fixes - - - fixed minor bug reported by Bruce D'Arcus; output type param - and value weren't actually getting passed to getref command - - - added functionality suggested by Bruce D'Arcus; current output - type now shows up with a check mark on Select Output Type menu - -2003-12-08 16:06 xmldoc - - * refdb-menu.el (1.3): cruft deleted - -2003-12-08 14:44 xmldoc - - * refdb-menu.el (1.2): output-type menu added; input-type selection - logic added - -2003-12-03 16:38 xmldoc - - * refdb-menu.el (1.1): initial add; alpha quality - |
From: Markus H. <mho...@us...> - 2005-12-21 22:07:02
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17733 Modified Files: manual.css Log Message: added coloring of pre elements Index: manual.css =================================================================== RCS file: /cvsroot/refdb/elisp/manual.css,v retrieving revision 1.1 retrieving revision 1.2 diff -u -U2 -r1.1 -r1.2 --- manual.css 19 Nov 2005 19:19:23 -0000 1.1 +++ manual.css 21 Dec 2005 22:06:48 -0000 1.2 @@ -52,2 +52,10 @@ } +pre.programlisting { + background-color: #E0E0E0; +} + +pre.screen { + background-color: #000000; + color: #32CD32; +} \ No newline at end of file |
From: Markus H. <mho...@us...> - 2005-12-21 22:01:43
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16555 Modified Files: NEWS README Log Message: updated for 1.1 Index: NEWS =================================================================== RCS file: /cvsroot/refdb/elisp/NEWS,v retrieving revision 1.1 retrieving revision 1.2 diff -u -U2 -r1.1 -r1.2 --- NEWS 12 Nov 2005 23:07:23 -0000 1.1 +++ NEWS 21 Dec 2005 22:01:35 -0000 1.2 @@ -1,2 +1,28 @@ +NEWS file for the refdb-elisp package +===================================== + + +___________________________ +Version 1.1 (December 2005) + +- manual is now chunked with CSS styling + +- configure now tries to find appropriate file viewers and + preconfigures refdb-mode-config.el accordingly + +- improved minibuffer completion + +- the default encoding for RIS data can now be configured + +- regexp query prompts now reflect the database engine used + (Unix-style regexp vs. SQL regexp) + +- new function refdb-getref-from-citation allows a convenient reverse + lookup of cited references + +- citations can now be configured for XML and SGML + +- lots of fixes to better support NTEmacs on the Windows platforms + ___________________________ @@ -4,2 +30,6 @@ initial release as an autotools-based package. + +(c) Markus Hoenicka <ma...@mh...> 2005 + +$Id$ \ No newline at end of file Index: README =================================================================== RCS file: /cvsroot/refdb/elisp/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -U2 -r1.2 -r1.3 --- README 20 Nov 2005 20:26:38 -0000 1.2 +++ README 21 Dec 2005 22:01:35 -0000 1.3 @@ -12,5 +12,5 @@ information. -To install the package, run: +To install the package on Unix-like systems, run: tar -xzf refdb-elisp-1.0.tar.gz @@ -23,2 +23,9 @@ (load-file "/usr/local/etc/refdb-mode-config.el") + +To install the package on Windows, please see the additional +instructions in the enclosed manual. + +(c) Markus Hoenicka <ma...@mh...> 2005 + +$Id$ |
From: Markus H. <mho...@us...> - 2005-12-21 20:40:28
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31588 Modified Files: refdb-mode-manual.xml Log Message: updated for 1.1 Index: refdb-mode-manual.xml =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode-manual.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -U2 -r1.4 -r1.5 --- refdb-mode-manual.xml 18 Dec 2005 23:52:00 -0000 1.4 +++ refdb-mode-manual.xml 21 Dec 2005 20:40:19 -0000 1.5 @@ -78,5 +78,5 @@ </note> <note> - <para>Path names need a little extra care on Windows. Save yourself a great deal of pain by adding all Win32 executables that you want to call (mainly viewers for RTF, PDF, and Postscript files) to your Windows PATH. In your <filename>/usr/local/etc/refdb-mode-config.el</filename> file, use the command names instead of the full paths of the viewing programs.</para> + <para>Path names need a little extra care on Windows. Save yourself a great deal of pain by adding all Win32 executables that you want to call (mainly viewers for RTF, PDF, and Postscript files) to your Windows PATH. In your <filename>/usr/local/etc/refdb-mode-config.el</filename> file, use the command names instead of the full paths of the viewing programs. Viewing HTML files is handled by browse-url which should be set up to use an external browser like Firefox. The Emacs w3 browser does not seem to grok the paths assembled by refdb-mode.</para> </note> <programlisting> @@ -114,5 +114,5 @@ <para>This block of commands uses the Cygwin version of <command>bash</command> as the default shell. It also makes sure that a few additional directories are added to the path. Finally it tells NTEmacs that the data returned by the shell use the UTF-8 encoding as well. The paths shown here need to be adapted to your local installation.</para> <note> - <para>If you want to process SGML files, you'll have to set <envar>SGML_CATALOG_FILES</envar> in your <filename>.bashrc</filename> using Unix-style paths (bash, when called from NTEmacs, doesn't seem to evaluate <filename>/etc/profile</filename>).</para> + <para>If you want to process SGML files, you'll have to set <envar>SGML_CATALOG_FILES</envar> once in your <filename>.bashrc</filename> using Unix-style paths (bash, when called from NTEmacs, doesn't seem to evaluate <filename>/etc/profile</filename>) to make the catalogs available to OpenJade et al., and once in your system (the usual clicking odyssey in the control panel) using the Win32 paths. PSGML will use the latter when running under NTEmacs.</para> </note> <programlisting> @@ -130,5 +130,5 @@ </programlisting> <para>Finally, we also load nxml-mode to edit XML files. The setup of PSGML to edit SGML-files has been described <ulink url="http://www.mhoenicka.de/software/sgml/sgmlnt.html">elsewhere</ulink> (slightly outdated, though).</para> - <para>The final step to make nxml-mode work properly is to make the RefDB RelaxNG schemas known to the system. To this end, create or edit the file <filename>schemas.xml</filename> in <emphasis>what NTEmacs thinks is your home directory</emphasis>. This may be different from <filename class="directory">My Files</filename> (I prefer to set it to my <envar>HOME</envar> in Cygwin). The contents for the RefDB schemas looks like this:</para> + <para>The final step to make nxml-mode work properly is to make the RefDB RelaxNG schemas known to the system. To this end, create or edit the file <filename>schemas.xml</filename> in your home directory. The contents for the RefDB schemas looks like this:</para> <programlisting> <locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> @@ -142,4 +142,5 @@ </locatingRules> </programlisting> + <para>You may have to run the command <keycombo><keycap>M</keycap><keycap>x</keycap></keycombo>customize-variable<keycap>RET</keycap>rng-schema-locating-files<keycap>RET</keycap> and add the path of your <filename>schemas.xml</filename> to the existing list of schema files. <emphasis>Do not</emphasis> use a drive letter but start the path with a slash, like in the file itself.</para> </sect1> </chapter> @@ -269,5 +270,6 @@ <para>By default, the document using the full citation format will be loaded as refdb-mode can handle the link normalization on its own. However, if you have a reason to do so you can configure refdb-mode to load the document using the short citation format.</para> </note> - <para>To add citations to your document, use the appropriate <xref linkend="submenu-get-references"/> or <xref linkend="submenu-get-references-on-region"/> commands to retrieve the references you want to cite. Then either move point into the reference that you want to cite, or set mark and point to select several references. Use the appropriate command of the <xref linkend="submenu-cite-references"/> submenu to add the citation(s) to the kill ring. Now switch back to your source document and use <keycombo><keycap>C</keycap><keycap>y</keycap></keycombo> to yank the citation in place.</para> + <para>To add citations to your document, use the appropriate <xref linkend="submenu-get-references"/> or <xref linkend="submenu-get-references-on-region"/> commands to retrieve the references you want to cite. Then either move point into the reference that you want to cite, or set mark and point to select several references. Use the appropriate command of the <xref linkend="submenu-cite-references"/> submenu to add the citation(s) to the kill ring. Now switch back to your source document and use <keycombo><keycap>C</keycap><keycap>y</keycap></keycombo> to yank the citation in place. The default citation format works with XML documents. If you're editing SGML documents, use the <menuchoice><guimenu>RefDB</guimenu><guisubmenu>Customize Data Output</guisubmenu><guimenuitem>Select Citation Output Format</guimenuitem></menuchoice> menu command to switch to SGML.</para> + <para>It is also easy to do a reverse lookup, i.e. display the references in a citation. To this end, place point somewhere into a citation and run the <menuchoice><guimenu>RefDB</guimenu><guimenuitem>Get References from Citation</guimenuitem></menuchoice> menu command.</para> </sect1> </chapter> @@ -1012,5 +1014,16 @@ </funcprototype> </funcsynopsis> - <para>Selects the output type of citations. The short and the full citation format are available.</para> + <para>Selects the output type of citations. The short and the full citation type are available.</para> + </sect3> + <sect3 id="command-select-citation-output-format" xreflabel="Select Citation Output Format"> + <title>Select Citation Output Format</title> + <indexterm><primary sortas="select-citation-format">refdb-select-citation-format</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-select-citation-format</function></funcdef> + <paramdef><parameter>citationformat</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Selects the output format of citations. The default is the XML syntax, but you can select the SGML syntax for SGML documents. The <sgmltag class="element">xref</sgmltag> element is empty, therefore the XML version requires an additional slash to denote this fact.</para> </sect3> </sect2> @@ -1173,5 +1186,5 @@ </funcprototype> </funcsynopsis> - <para>Adds the XML data using the citestylex.dtd in the current buffer to the system database. refdb-mode will refuse to add the data if nxml-mode indicates they are invalid.</para> + <para>Adds the XML data using the citestylex.dtd in the current buffer to the system database. refdb-mode will refuse to add the data if nxml-mode indicates they are invalid. If the database already contains a style with the given name, it will be replaced with the new version.</para> </sect2> <sect2 id="command-list-styles" xreflabel="List Styles"> |
From: Markus H. <mho...@us...> - 2005-12-21 20:39:41
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31556 Modified Files: configure.in Log Message: fixed version number Index: configure.in =================================================================== RCS file: /cvsroot/refdb/elisp/configure.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -U2 -r1.5 -r1.6 --- configure.in 18 Dec 2005 23:55:15 -0000 1.5 +++ configure.in 21 Dec 2005 20:39:33 -0000 1.6 @@ -4,5 +4,5 @@ dnl check for one of the source files AC_INIT(refdb-mode.el) -AM_INIT_AUTOMAKE(refdb-elisp, 1.2) +AM_INIT_AUTOMAKE(refdb-elisp, 1.1) dnl find Emacs and set site-lisp path |
From: Markus H. <mho...@us...> - 2005-12-21 00:19:13
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17405 Modified Files: refdb-mode.el Log Message: fixed viewer stuff for Windoze Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.24 retrieving revision 1.25 diff -u -U2 -r1.24 -r1.25 --- refdb-mode.el 20 Dec 2005 00:26:32 -0000 1.24 +++ refdb-mode.el 21 Dec 2005 00:19:03 -0000 1.25 @@ -4134,5 +4134,5 @@ (defun refdb-check-doctype () - "Determine the document type of the current document" + "Determine the document type of the current document. Only DocBook and TEI are handled currently." (save-excursion (goto-char (point-min)) @@ -4147,5 +4147,5 @@ ((re-search-forward "<book.*>" nil t) "book") - ((re-search-forward "<TEI.2.*>" nil t) + ((re-search-forward "<TEI\\.2.*>" nil t) "TEI.2") (t @@ -4162,5 +4162,4 @@ ) (let ((view-target-file - (shell-quote-argument ;; the DSSSL stylesheet generate book1.html, t1.html and so on ;; the XSLT stylesheets generate basename.html @@ -4171,4 +4170,6 @@ (string-match ".sgml$" buffer-file-name)) (concat + ;; need the protocol at least on Windoze + "file:///" (substring buffer-file-name @@ -4188,5 +4189,6 @@ (string-match "\\.[^\\.]+$" buffer-file-name))) "." - type))))) + type))) + ) (view-program (cond ((equal type "pdf") @@ -4211,20 +4213,16 @@ (equal type "html") (equal type "xhtml")) + ;; browse-url apparently does its own quoting as calling + ;; shell-quote-argument here screws up things (browse-url-of-file view-target-file)) (t (if -;; running the viewer as an argument to a shell has the advantage -;; that we can use argument lists of variable length, as the viewer -;; command including all arguments appears as a single argument -;; of the start-process command (start-process-shell-command (concat "refdb-view-output-" (buffer-name)) (get-buffer-create "*refdb-messages*") -; refdb-external-program-shell -; "-c" (format "%s %s %s" view-program view-options - view-target-file)) + (shell-quote-argument view-target-file))) (message "Viewing %s in %s viewer...done" view-target-file type) (error "Could not start %s viewer") |
From: Markus H. <mho...@us...> - 2005-12-20 00:26:42
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6214 Modified Files: refdb-mode.el Log Message: new config option for citation formats, i.e. SGML vs. XML; new function refdb-check-doctype() determines the document type;check doctype to call proper filename for viewing html output from SGML;use proper citation format for SGML and XML Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.23 retrieving revision 1.24 diff -u -U2 -r1.23 -r1.24 --- refdb-mode.el 19 Dec 2005 09:30:12 -0000 1.23 +++ refdb-mode.el 20 Dec 2005 00:26:32 -0000 1.24 @@ -401,4 +401,5 @@ ;; refdb-select-notesdata-output-format ;; refdb-select-additional-data-fields +;; refdb-select-citation-format ;; -- ;; refdb-select-database @@ -761,5 +762,5 @@ full ) - "*List of supported citation formats for RefDB." + "*List of supported citation types for RefDB." :type '(list symbol symbol) :group 'refdb-data-options) @@ -794,4 +795,13 @@ :group 'refdb-data-options) +(defcustom refdb-citation-formats + '( + sgml + xml + ) + "*List of supported citation formats for RefDB." + :type '(list symbol symbol) + :group 'refdb-data-options) + (defcustom refdb-default-ris-encoding 'iso-latin-1 "*Use this character encoding to display datasets in RIS format." @@ -1482,4 +1492,21 @@ ) +(defun refdb-select-citation-format (citationformat) + "Set RefDB citation format to CITATIONFORMAT. +Note that CITATIONFORMAT is a symbol, not a string." + (interactive + (list (intern + (completing-read + "Citation Format: " + (refdb-make-alist-from-symbol-list refdb-citation-formats) + nil t + ) + ) + ) + ) + (setq refdb-citation-format citationformat) + (message "Current citation format is now '%s'" (symbol-name citationformat)) + ) + (defvar refdb-addref-menu-item ["Add References" (refdb-addref-on-region) t] @@ -1960,4 +1987,18 @@ ) +(defvar refdb-select-citation-format-submenu-contents + (list "Select Citation Output Format" + ["XML" + (refdb-select-citation-format 'xml) + :style toggle + :selected (eq refdb-citation-format 'xml)] + ["SGML" + (refdb-select-citation-format 'sgml) + :style toggle + :selected (eq refdb-citation-format 'sgml)] + ) + "RefDB 'Select Citation Format' submenu." + ) + (defvar refdb-whichdb-menu-item ["Show Database Info" (refdb-whichdb) t] @@ -4092,4 +4133,26 @@ ) +(defun refdb-check-doctype () + "Determine the document type of the current document" + (save-excursion + (goto-char (point-min)) + (cond ((search-forward "<!DOCTYPE article" nil t) + "article") + ((search-forward "<!DOCTYPE book" nil t) + "book") + ((search-forward "<!DOCTYPE TEI.2" nil t) + "TEI.2") + ((re-search-forward "<article.*>" nil t) + "book") + ((re-search-forward "<book.*>" nil t) + "book") + ((re-search-forward "<TEI.2.*>" nil t) + "TEI.2") + (t + nil) + ) + ) + ) + (defun refdb-view-output (type) "Display the transformed document in an appropriate viewer" @@ -4100,5 +4163,5 @@ (let ((view-target-file (shell-quote-argument -;; the DSSSL stylesheet generate book1.html, article1.html and so on +;; the DSSSL stylesheet generate book1.html, t1.html and so on ;; the XSLT stylesheets generate basename.html ;; both stylesheets generate basename.XXX for all other output types @@ -4112,5 +4175,8 @@ 0 (string-match "/[^/]+$" buffer-file-name)) - "/book1.html")) + (if (eq (refdb-check-doctype) "book") + "/book1.html" + "/t1.html") + )) (t (concat @@ -4232,8 +4298,10 @@ (if (eq refdb-citation-type 'short) (setq id-string (concat id-string ";" (match-string 1 nil))) - ;; the xref notation used here works for both SGML and XML + ;; the xref notation must be adapted to SGML and XML (setq id-string (concat id-string (format - "<xref linkend=\"ID%s-X\"></xref>" + (if (eq refdb-citation-format 'xml) + "<xref linkend=\"ID%s-X\"/>" + "<xref linkend=\"ID%s-X\">") (match-string 1 nil)) )) @@ -4256,5 +4324,7 @@ ;; the xref notation used here works for both SGML and XML (format - "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"></xref>" + (if (eq refdb-citation-format 'xml) + "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"/>" + "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\">") linkend ) @@ -4302,6 +4372,7 @@ (concat (format - ;; the xref notation used here works for both SGML and XML - "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"></xref>" + (if (eq refdb-citation-format 'xml) + "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"/>" + "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\">") linkend ) @@ -4365,5 +4436,7 @@ ;; the xref notation used here works for both SGML and XML (format - "<xref linkend=\"ID%s-X\"></xref>" + (if (eq refdb-citation-format 'xml) + "<xref linkend=\"ID%s-X\"/>" + "<xref linkend=\"ID%s-X\">") (match-string 1 nil))) nil) @@ -4382,5 +4455,7 @@ ;; the xref notation used here works for both SGML and XML (format - "<xref linkend=\"ID%s-X\"></xref>" + (if (eq refdb-citation-format 'xml) + "<xref linkend=\"ID%s-X\"/>" + "<xref linkend=\"ID%s-X\">") (match-string 1 nil))) nil) @@ -6291,4 +6366,12 @@ ) +(defcustom refdb-citation-format 'xml + "*Specifies the default citation type." + :type '(choice (const :tag "XML " xml) + (const :tag "SGML " sgml) + ) + :group 'refdb-data-options + ) + (defcustom refdb-data-output-submenu-contents '( @@ -6298,4 +6381,5 @@ refdb-select-additional-data-fields-menu-item refdb-select-citation-type-submenu-contents + refdb-select-citation-format-submenu-contents ) "*Contents of 'Customize Data Output' submenu for RefDB mode. |
From: Markus H. <mho...@us...> - 2005-12-19 18:07:47
|
Update of /cvsroot/refdb/refdb/dsssl/refdb/print In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5207 Modified Files: Tag: Release_0_9_5_stable docbook-refdb.dsl Log Message: removed a superfluous pair of parens Index: docbook-refdb.dsl =================================================================== RCS file: /cvsroot/refdb/refdb/dsssl/refdb/print/docbook-refdb.dsl,v retrieving revision 1.5.2.4 retrieving revision 1.5.2.5 diff -u -U2 -r1.5.2.4 -r1.5.2.5 --- docbook-refdb.dsl 17 Dec 2005 00:57:51 -0000 1.5.2.4 +++ docbook-refdb.dsl 19 Dec 2005 18:07:39 -0000 1.5.2.5 @@ -235,5 +235,5 @@ first-line-start-indent: (if refdb-text-indent refdb-text-indent - (-2pi)) + -2pi) font-size: (if refdb-font-size refdb-font-size |
From: Markus H. <mho...@us...> - 2005-12-19 09:30:22
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27088 Modified Files: refdb-mode.el Log Message: fixed probs with previous checkin Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.22 retrieving revision 1.23 diff -u -U2 -r1.22 -r1.23 --- refdb-mode.el 19 Dec 2005 09:25:10 -0000 1.22 +++ refdb-mode.el 19 Dec 2005 09:30:12 -0000 1.23 @@ -1,8 +1,4 @@ ;;; refdb-mode.el --- Minor mode for RefDB interaction -<<<<<<< refdb-mode.el ;; $Id$ -======= -;; $Id$ ->>>>>>> 1.21 ;; Copyright (C) 2005 Markus Hoenicka @@ -11,13 +7,7 @@ ;; (1.10-current) Markus Hoenicka <ma...@mh...> ;; Created: 2003-11-04 [...3848 lines suppressed...] - stylename - ) - "*refdb-output*" "*refdb-messages*") - (error "No style specified")) -======= (defvar refdb-getref-by-id-on-region-menu-item ["ID" @@ -7802,5 +4183,5 @@ )) ) - ) + ) (kill-new (cond ((eq type 'docbook) @@ -8508,5 +4889,4 @@ "*refdb-output*" "*refdb-messages*") (error "No style specified")) ->>>>>>> 1.21 (message |
From: Markus H. <mho...@us...> - 2005-12-19 09:25:54
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26355 Modified Files: refdb-mode.el Log Message: removed leftover reference to refdb-check-doctype Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.21 retrieving revision 1.22 diff -u -U2 -r1.21 -r1.22 --- refdb-mode.el 18 Dec 2005 23:50:00 -0000 1.21 +++ refdb-mode.el 19 Dec 2005 09:25:10 -0000 1.22 @@ -1,4 +1,8 @@ ;;; refdb-mode.el --- Minor mode for RefDB interaction +<<<<<<< refdb-mode.el ;; $Id$ +======= +;; $Id$ +>>>>>>> 1.21 ;; Copyright (C) 2005 Markus Hoenicka @@ -7,7 +11,13 @@ ;; (1.10-current) Markus Hoenicka <ma...@mh...> ;; Created: 2003-11-04 [...3849 lines suppressed...] + ) + "*refdb-output*" "*refdb-messages*") + (error "No style specified")) +======= (defvar refdb-getref-by-id-on-region-menu-item ["ID" @@ -4183,6 +7802,5 @@ )) ) - (ml-type (refdb-check-doctype)) - ) + ) (kill-new (cond ((eq type 'docbook) @@ -4890,4 +8508,5 @@ "*refdb-output*" "*refdb-messages*") (error "No style specified")) +>>>>>>> 1.21 (message |
From: Markus H. <mho...@us...> - 2005-12-18 23:55:23
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13157 Modified Files: configure.in Log Message: some more additions and fixes for the viewer detection Index: configure.in =================================================================== RCS file: /cvsroot/refdb/elisp/configure.in,v retrieving revision 1.4 retrieving revision 1.5 diff -u -U2 -r1.4 -r1.5 --- configure.in 26 Nov 2005 00:20:13 -0000 1.4 +++ configure.in 18 Dec 2005 23:55:15 -0000 1.5 @@ -4,5 +4,5 @@ dnl check for one of the source files AC_INIT(refdb-mode.el) -AM_INIT_AUTOMAKE(refdb-elisp, 1.1-pre2) +AM_INIT_AUTOMAKE(refdb-elisp, 1.2) dnl find Emacs and set site-lisp path @@ -19,7 +19,7 @@ AC_PATH_PROG(mysudo, sudo, sudo) AC_PATH_PROGS(mygnumake, gmake make, make) -AC_PATH_PROGS(mypdfviewer, acroread xpdf gv kpdf gpdf gnome-gv kghostview evince Preview, gv, [$PATH:/opt/csw/bin:/Applications/Preview.app/Contents/MacOS]) +AC_PATH_PROGS(mypdfviewer, acroread xpdf gv kpdf gpdf gnome-gv kghostview evince Preview AcroRd32, gv, [$PATH:/opt/csw/bin:/Applications/Preview.app/Contents/MacOS]) AC_PATH_PROGS(mypsviewer, gv kghostview gnome-gv ggv bmv gsview32 Preview, gv, [$PATH:/opt/csw/bin:/Applications/Preview.app/Contents/MacOS]) -AC_PATH_PROGS(myrtfviewer, soffice oowriter abiword ted kword TextEdit, soffice, [$PATH:/usr/local/OpenOffice.org1.1.4/program:/opt/csw/bin:/Applications/TextEdit.app/Contents/MacOS]) +AC_PATH_PROGS(myrtfviewer, soffice oowriter abiword ted Ted kword TextEdit openoffice.org-2.0.0 openoffice.org-1.1.4 write, soffice, [$PATH:/opt/csw/bin:/Applications/TextEdit.app/Contents/MacOS]) AC_PATH_PROGS(myshell, sh ash bash, sh) |
From: Markus H. <mho...@us...> - 2005-12-18 23:52:07
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12328 Modified Files: refdb-mode-manual.xml Log Message: updated for 1.2 Index: refdb-mode-manual.xml =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode-manual.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -U2 -r1.3 -r1.4 --- refdb-mode-manual.xml 8 Dec 2005 00:58:26 -0000 1.3 +++ refdb-mode-manual.xml 18 Dec 2005 23:52:00 -0000 1.4 @@ -73,9 +73,12 @@ <sect1> <title>Using refdb-mode with NTEmacs</title> - <para>Windows is an extra challenge for refdb-mode, as we have to call Cygwin programs (the RefDB clients) from a Win32 application through Lisp commands, leaving enough room for things to go wrong. It boils down to getting your <filename>.emacs</filename> right, and we'll show here step by step what it takes to see the light. You'll notice that the setup uses UTF-8 quite heavily, assuming that you've set up your RefDB databases accordingly. I've settled for this encoding as it gave me the simplest consistent setup possible. You may well experiment with other character encodings, but I hardly see any benefit in doing so.</para> + <para>Windows is an extra challenge for refdb-mode, as we have to call Cygwin programs (which use Unix-style paths) from a Win32 application (which uses Win32-style paths) by running a Cygwin shell (which needs a different environment than the one it inherits from NTEmacs) through Lisp commands, leaving enough room for things to go wrong. It boils down to getting your <filename>.emacs</filename> right, and we'll show here step by step what it takes to see the light. You'll notice that the setup uses UTF-8 quite heavily, assuming that you've set up your RefDB databases accordingly. I've settled for this encoding as it gave me the simplest consistent setup possible. You may well experiment with other character encodings, but I hardly see any benefit in doing so.</para> <note> <para>Some of the administrative functions currently do not work under NTEmacs. Affected are all functions which run <command>sudo</command> for authentication or which start an xterm to obtain database passwords.</para> </note> - <programlisting> + <note> + <para>Path names need a little extra care on Windows. Save yourself a great deal of pain by adding all Win32 executables that you want to call (mainly viewers for RTF, PDF, and Postscript files) to your Windows PATH. In your <filename>/usr/local/etc/refdb-mode-config.el</filename> file, use the command names instead of the full paths of the viewing programs.</para> + </note> + <programlisting> ;; use Unix-style line endings (setq-default buffer-file-coding-system 'undecided-unix) @@ -89,5 +92,5 @@ file-coding-system-alist)) </programlisting> - <para>First we ask NTEmacs to use Unix-style line endings. The second expression makes sure that all XML files as well as all files with the string "utf-8" in their name (e.g. <filename>refdata.utf-8.ris</filename>) are loaded as Unicode files using the UTF-8 character encoding.</para> + <para>First we ask NTEmacs to use Unix-style line endings. The second expression makes sure that all XML files as well as all files with the string "utf8" in their name (e.g. <filename>refdata-utf8.ris</filename>) are loaded as Unicode files using the UTF-8 character encoding.</para> <programlisting> ;; use bash as the default shell @@ -110,4 +113,7 @@ </programlisting> <para>This block of commands uses the Cygwin version of <command>bash</command> as the default shell. It also makes sure that a few additional directories are added to the path. Finally it tells NTEmacs that the data returned by the shell use the UTF-8 encoding as well. The paths shown here need to be adapted to your local installation.</para> + <note> + <para>If you want to process SGML files, you'll have to set <envar>SGML_CATALOG_FILES</envar> in your <filename>.bashrc</filename> using Unix-style paths (bash, when called from NTEmacs, doesn't seem to evaluate <filename>/etc/profile</filename>).</para> + </note> <programlisting> ;; refdb-mode and ris mode |
From: Markus H. <mho...@us...> - 2005-12-18 23:50:11
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11779 Modified Files: refdb-mode.el Log Message: adapt query prompts to database engine used;use start-process-shell-command instead of start-process to simplify setup on Windoze;create empty xref elements with end tag compatible with both XML and SGML Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.20 retrieving revision 1.21 diff -u -U2 -r1.20 -r1.21 --- refdb-mode.el 8 Dec 2005 00:56:49 -0000 1.20 +++ refdb-mode.el 18 Dec 2005 23:50:00 -0000 1.21 @@ -1373,5 +1373,6 @@ (progn (setq refdb-regexp-query-string "") - (setq refdb-periodical-regexp ".+"))) + (setq refdb-periodical-regexp ".+") + (setq refdb-regexp-prompt "\(regexp\)"))) ((or (equal dbengine "sqlite") @@ -1379,5 +1380,6 @@ (progn (setq refdb-regexp-query-string "%%") - (setq refdb-periodical-regexp "_%%"))) + (setq refdb-periodical-regexp "_%%") + (setq refdb-regexp-prompt "\(SQL regexp\)"))) (t (progn @@ -2774,5 +2776,4 @@ ) ) - ;; todo: should be customizable. use refdbc setting (set-buffer-file-coding-system refdb-default-ris-encoding) ) @@ -2794,6 +2795,7 @@ "Display all RefDB datasets regexp-matching AUTHOR." (interactive (list - (completing-read "Author \(regexp\): " - (refdb-make-alist-from-list refdb-current-authors-list)) + (completing-read + (format "Author %s: " refdb-regexp-prompt) + (refdb-make-alist-from-list refdb-current-authors-list)) ) ) @@ -2813,5 +2815,5 @@ (defun refdb-getref-by-title-regexp (title) "Display all RefDB datasets regexp-matching TITLE." - (interactive (list (read-string (format "Title \(regexp\): ")))) + (interactive (list (read-string (format "Title %s: " refdb-regexp-prompt)))) (refdb-message-getting-refs 'title "like" title) (refdb-getref-by-field-regexp "TI" title) @@ -2834,6 +2836,7 @@ "Display all RefDB datasets regexp-matching KEYWORD." (interactive (list - (completing-read "Keyword \(regexp\): " - (refdb-make-alist-from-list refdb-current-keywords-list)) + (completing-read + (format "Keyword %s: " refdb-regexp-prompt) + (refdb-make-alist-from-list refdb-current-keywords-list)) ) ) @@ -2858,6 +2861,7 @@ "Display all RefDB datasets regexp-matching PERIODICAL." (interactive (list - (completing-read "Periodical \(regexp\): " - (refdb-make-alist-from-list refdb-current-periodicals-list)) + (completing-read + (format "Periodical %s: " refdb-regexp-prompt) + (refdb-make-alist-from-list refdb-current-periodicals-list)) ) ) @@ -3517,5 +3521,5 @@ (defun refdb-getnote-by-title-regexp (title) "Display all RefDB notes regexp-matching TITLE." - (interactive (list (read-string (format "Title \(regexp\): ")))) + (interactive (list (read-string (format "Title %s: " refdb-regexp-prompt)))) (refdb-message-getting-notes 'title "like" title) (refdb-getnote-by-field-regexp "NTI" title) @@ -3538,6 +3542,7 @@ "Display all RefDB notes regexp-matching KEYWORD." (interactive (list - (completing-read "Keyword \(regexp\): " - (refdb-make-alist-from-list refdb-current-keywords-list)) + (completing-read + (format "Keyword : " refdb-regexp-prompt) + (refdb-make-alist-from-list refdb-current-keywords-list)) ) ) @@ -3578,6 +3583,7 @@ "Display all RefDB notes linked to regexp AUTHOR." (interactive (list - (completing-read "Author \(regexp\): " - (refdb-make-alist-from-list refdb-current-authors-list)) + (completing-read + (format "Author %s: " refdb-regexp-prompt) + (refdb-make-alist-from-list refdb-current-authors-list)) ) ) @@ -3602,6 +3608,7 @@ "Display all RefDB notes linked to regexp PERIODICAL." (interactive (list - (completing-read "Periodical \(regexp\): " - (refdb-make-alist-from-list refdb-current-periodicals-list)) + (completing-read + (format "Periodical : " refdb-regexp-prompt) + (refdb-make-alist-from-list refdb-current-periodicals-list)) ) ) @@ -3626,6 +3633,7 @@ "Display all RefDB notes linked to regexp KEYWORD." (interactive (list - (completing-read "Keyword \(regexp\): " - (refdb-make-alist-from-list refdb-current-keywords-list)) + (completing-read + (format "Keyword %s: " refdb-regexp-prompt) + (refdb-make-alist-from-list refdb-current-keywords-list)) ) ) @@ -4044,5 +4052,5 @@ ) (message "Transforming document to %s..." type) - (start-process + (start-process-shell-command (concat "refdb-transform-" (buffer-name)) (get-buffer-create "*refdb-messages*") @@ -4074,5 +4082,5 @@ ) (message "Transforming document to %s..." type) - (start-process + (start-process-shell-command (concat "refdb-transform-" (buffer-name)) (get-buffer-create "*refdb-messages*") @@ -4091,27 +4099,28 @@ ) (let ((view-target-file + (shell-quote-argument ;; the DSSSL stylesheet generate book1.html, article1.html and so on ;; the XSLT stylesheets generate basename.html ;; both stylesheets generate basename.XXX for all other output types - (cond ((and (or - (equal type "html") - (equal type "xhtml")) - (string-match ".sgml$" buffer-file-name)) - (concat - (substring - buffer-file-name - 0 - (string-match "/[^/]+$" buffer-file-name)) + (cond ((and (or + (equal type "html") + (equal type "xhtml")) + (string-match ".sgml$" buffer-file-name)) + (concat + (substring + buffer-file-name + 0 + (string-match "/[^/]+$" buffer-file-name)) "/book1.html")) - (t - (concat - (substring - buffer-file-name - 0 - (if (string-match "\\.short\\." buffer-file-name) - (string-match "\\.short\\." buffer-file-name) - (string-match "\\.[^\\.]+$" buffer-file-name))) - "." - type)))) + (t + (concat + (substring + buffer-file-name + 0 + (if (string-match "\\.short\\." buffer-file-name) + (string-match "\\.short\\." buffer-file-name) + (string-match "\\.[^\\.]+$" buffer-file-name))) + "." + type))))) (view-program (cond ((equal type "pdf") @@ -4143,9 +4152,9 @@ ;; command including all arguments appears as a single argument ;; of the start-process command - (start-process + (start-process-shell-command (concat "refdb-view-output-" (buffer-name)) (get-buffer-create "*refdb-messages*") - refdb-external-program-shell - "-c" +; refdb-external-program-shell +; "-c" (format "%s %s %s" view-program @@ -4174,4 +4183,5 @@ )) ) + (ml-type (refdb-check-doctype)) ) (kill-new @@ -4223,7 +4233,8 @@ (if (eq refdb-citation-type 'short) (setq id-string (concat id-string ";" (match-string 1 nil))) + ;; the xref notation used here works for both SGML and XML (setq id-string (concat id-string (format - "<xref linkend=\"ID%s-X\"/>" + "<xref linkend=\"ID%s-X\"></xref>" (match-string 1 nil)) )) @@ -4244,6 +4255,7 @@ (match-string 1 id-string)))) (concat + ;; the xref notation used here works for both SGML and XML (format - "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"/>" + "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"></xref>" linkend ) @@ -4291,5 +4303,6 @@ (concat (format - "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"/>" + ;; the xref notation used here works for both SGML and XML + "<xref endterm=\"IM0\" linkend=\"%s\" role=\"MULTIXREF\"></xref>" linkend ) @@ -4351,6 +4364,7 @@ (if (eq refdb-citation-type 'short) (match-string 1 nil) + ;; the xref notation used here works for both SGML and XML (format - "<xref linkend=\"ID%s-X\"/>" + "<xref linkend=\"ID%s-X\"></xref>" (match-string 1 nil))) nil) @@ -4367,6 +4381,7 @@ (if (eq refdb-citation-type 'short) (match-string 1 nil) + ;; the xref notation used here works for both SGML and XML (format - "<xref linkend=\"ID%s-X\"/>" + "<xref linkend=\"ID%s-X\"></xref>" (match-string 1 nil))) nil) @@ -4981,5 +4996,5 @@ (defun refdb-listdb (dbname) "List available databases." - (interactive "sDatabase name \(regexp\):") + (interactive "sDatabase name \(SQL regexp\):") (refdb-list-item "listdb" dbname) @@ -5188,5 +5203,5 @@ (progn (let ((sudo-password (read-passwd "Your sudo password: ")) - (my-proc (start-process + (my-proc (start-process-shell-command "my-proc" (get-buffer-create "*refdb-messages*") |
From: Markus H. <mho...@us...> - 2005-12-18 20:57:16
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13150 Modified Files: Tag: Release_0_9_5_stable noteshandler.c Log Message: changed key to citekey (thanks Damien) Index: noteshandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/noteshandler.c,v retrieving revision 1.18.2.12 retrieving revision 1.18.2.13 diff -u -U2 -r1.18.2.12 -r1.18.2.13 --- noteshandler.c 3 Nov 2005 20:40:19 -0000 1.18.2.12 +++ noteshandler.c 18 Dec 2005 20:57:08 -0000 1.18.2.13 @@ -124,5 +124,5 @@ id = ptr_attr[i+1]; } - else if (!strcmp(ptr_attr[i], "key")) { + else if (!strcmp(ptr_attr[i], "citekey")) { key = ptr_attr[i+1]; } |
From: Markus H. <mho...@us...> - 2005-12-17 01:39:01
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26674 Modified Files: Tag: Release_0_9_5_stable backend-dbiba.c Log Message: removed debug printf() calls Index: backend-dbiba.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-dbiba.c,v retrieving revision 1.26.2.17 retrieving revision 1.26.2.18 diff -u -U2 -r1.26.2.17 -r1.26.2.18 --- backend-dbiba.c 17 Dec 2005 01:22:46 -0000 1.26.2.17 +++ backend-dbiba.c 17 Dec 2005 01:38:49 -0000 1.26.2.18 @@ -1589,5 +1589,5 @@ /* dbi_conn conn; */ - printf("start format_title. intext=%d\n", n_intext); +/* printf("start format_title. intext=%d\n", n_intext); */ /* conn = dbi_result_get_conn(dbires); */ |
From: Markus H. <mho...@us...> - 2005-12-17 01:36:42
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26537 Modified Files: Tag: Release_0_9_5_stable mset.c Log Message: removed debug printf() calls Index: mset.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/Attic/mset.c,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -U2 -r1.1.2.1 -r1.1.2.2 --- mset.c 17 Dec 2005 01:03:42 -0000 1.1.2.1 +++ mset.c 17 Dec 2005 01:36:33 -0000 1.1.2.2 @@ -60,8 +60,4 @@ } -/* if (!pop_mset(ptr_first, current_mset)) { */ -/* *current_mset = '\0'; */ -/* no_close = 1; */ -/* } */ if (!ptr_first->ptr_next) { *current_mset = '\0'; @@ -73,8 +69,6 @@ } - printf("current:%s:new:%s:no_close=%d:stacksize:%d\n", current_mset, new_mset, no_close, ptr_first->stacksize); if (/*(!(*current_mset == *new_mset && *current_mset == '\0')) || strcmp(current_mset, new_mset) != 0*/ 1) { if (!*new_mset/* && *current_mset */ && !no_close) { /* dont add new bibliomset, but old one exists */ - printf("close only\n"); if ((new_ref = mstrcat(*ptr_ref, "</bibliomset>", ptr_ref_len, 0)) == NULL) { return NULL; @@ -86,5 +80,4 @@ } else if (!no_close && *new_mset && strcmp(current_mset, new_mset)){ /* close old one, add new one */ - printf("close and open\n"); pop_mset(ptr_first, current_mset); if ((new_ref = mstrcat(*ptr_ref, "</bibliomset><bibliomset relation=\"", ptr_ref_len, 0)) == NULL) { @@ -109,5 +102,4 @@ } else if (*new_mset && strcmp(current_mset, new_mset)) { /* add new one, no old one to close */ - printf("open only\n"); if ((new_ref = mstrcat(*ptr_ref, "<bibliomset relation=\"", ptr_ref_len, 0)) == NULL) { return NULL; @@ -131,7 +123,4 @@ } } -/* else if (!strcmp(current_mset, new_mset)) { */ -/* push_mset(ptr_first, new_mset); */ -/* } */ return *ptr_ref; |
From: Markus H. <mho...@us...> - 2005-12-17 01:35:22
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26356/src Modified Files: Tag: Release_0_9_5_stable xmlhandler.c Log Message: fix handling of link0 Index: xmlhandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/xmlhandler.c,v retrieving revision 1.22.2.21 retrieving revision 1.22.2.22 diff -u -U2 -r1.22.2.21 -r1.22.2.22 --- xmlhandler.c 3 Nov 2005 20:40:19 -0000 1.22.2.21 +++ xmlhandler.c 17 Dec 2005 01:35:14 -0000 1.22.2.22 @@ -1208,5 +1208,8 @@ else if (strcmp(ptr_el->elname, "LINK") == 0) { ptr_attr = get_ancestor_attr(ptr_el, "LINK", "ROLE"); - if (ptr_attr && strcmp(ptr_attr, "2") == 0) { + if (ptr_attr && strcmp(ptr_attr, "1") == 0) { + strcpy(concat, "LINK1"); + } + else if (ptr_attr && strcmp(ptr_attr, "2") == 0) { strcpy(concat, "LINK2"); } @@ -1218,5 +1221,5 @@ } else { - strcpy(concat, "LINK1"); + strcpy(concat, "LINK0"); } } |
From: Markus H. <mho...@us...> - 2005-12-17 01:34:18
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26162 Modified Files: Tag: Release_0_9_5_stable refdbdbib.c Log Message: mset fixes Index: refdbdbib.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbdbib.c,v retrieving revision 1.36.2.28 retrieving revision 1.36.2.29 diff -u -U2 -r1.36.2.28 -r1.36.2.29 --- refdbdbib.c 3 Nov 2005 20:40:19 -0000 1.36.2.28 +++ refdbdbib.c 17 Dec 2005 01:34:09 -0000 1.36.2.29 @@ -59,5 +59,5 @@ static int append_return_msg(struct ADDRESULT *ptr_addresult, int n_status, const char* entry_id, dbi_conn conn); static int sort_entries_asis(dbi_conn conn, struct CLIENT_REQUEST* ptr_clrequest, struct ADDRESULT* ptr_addresult, const char* table_name); -static int fill_in_authoryear_info(struct BIBCONNS* ptr_bibconns, dbi_result dbires, dbi_result dbires_cit, struct CLIENT_REQUEST* ptr_clrequest, struct ADDRESULT* ptr_addresult, struct bibinfo* biblio_info, const char* table_name, char* pubtype, char* current_mset, unsigned long long* nref_counter); +static int fill_in_authoryear_info(struct BIBCONNS* ptr_bibconns, dbi_result dbires, dbi_result dbires_cit, struct CLIENT_REQUEST* ptr_clrequest, struct ADDRESULT* ptr_addresult, struct bibinfo* biblio_info, const char* table_name, char* pubtype, struct mset* ptr_mset_sentinel, unsigned long long* nref_counter); static void close_dbi_connections(struct BIBCONNS* ptr_bibconns, const char* drivername); static int write_bibstyle_info(int fd, const char* bibliofirstindent, const char* biblioblockindent, const char* fontsize, int type); @@ -131,5 +131,4 @@ char sql_command1[512]; char intext_string[8] = "INTEXTS"; - char current_mset[10] = ""; char table_name[] = "getbibtemp"; char *curr_multi_id = NULL; @@ -676,5 +675,5 @@ if (!nis_numeric) { /* only useful for author/year style */ - if ((n_status = fill_in_authoryear_info(&bibconns, dbires, dbires_cit, ptr_clrequest, ptr_addresult, ptr_biblio_info, table_name, intext_string, current_mset, &nref_counter)) != 0) { + if ((n_status = fill_in_authoryear_info(&bibconns, dbires, dbires_cit, ptr_clrequest, ptr_addresult, ptr_biblio_info, table_name, intext_string, NULL /* don't need bibliomsets */, &nref_counter)) != 0) { send_status(ptr_clrequest->fd, n_status, TERM_NO); dbi_result_free(dbires_cit); @@ -1201,8 +1200,10 @@ temporary table to query + struct mset* ptr_mset_sentinel ptr to bibliomset relation argument stack + unsigned long long* nref_counter ptr to a reference counter ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -static int fill_in_authoryear_info(struct BIBCONNS* ptr_bibconns, dbi_result dbires, dbi_result dbires_cit, struct CLIENT_REQUEST* ptr_clrequest, struct ADDRESULT* ptr_addresult, struct bibinfo* biblio_info, const char* table_name, char* pubtype, char* current_mset, unsigned long long* nref_counter) { +static int fill_in_authoryear_info(struct BIBCONNS* ptr_bibconns, dbi_result dbires, dbi_result dbires_cit, struct CLIENT_REQUEST* ptr_clrequest, struct ADDRESULT* ptr_addresult, struct bibinfo* biblio_info, const char* table_name, char* pubtype, struct mset* ptr_mset_sentinel, unsigned long long* nref_counter) { int n_pubyear; int unique_count; @@ -1293,5 +1294,5 @@ title_as_author = dbi_result_get_short(dbires, "title_as_author"); - if ((n_status = format_entry(&authorlist_buffer, &authorlist_buffer_len, pubtype, ptr_bibconns, dbires_cit, NULL /* authorlist only */, item, ptr_clrequest->username, 0, current_mset, biblio_info, title_as_author)) != 0) { + if ((n_status = format_entry(&authorlist_buffer, &authorlist_buffer_len, pubtype, ptr_bibconns, dbires_cit, NULL /* authorlist only */, item, ptr_clrequest->username, 0, ptr_mset_sentinel, biblio_info, title_as_author)) != 0) { append_return_msg(ptr_addresult, n_status, NULL, ptr_bibconns->conn); free(id_string); |
From: Markus H. <mho...@us...> - 2005-12-17 01:22:55
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24654 Modified Files: Tag: Release_0_9_5_stable backend-dbiba.c Log Message: fixes for empty pubyears Index: backend-dbiba.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-dbiba.c,v retrieving revision 1.26.2.16 retrieving revision 1.26.2.17 diff -u -U2 -r1.26.2.16 -r1.26.2.17 --- backend-dbiba.c 3 Nov 2005 20:40:19 -0000 1.26.2.16 +++ backend-dbiba.c 17 Dec 2005 01:22:46 -0000 1.26.2.17 @@ -1063,5 +1063,5 @@ /* first try pubdate, then pubdatesec */ n_pubyear = dbi_result_get_ushort_idx(dbires, REFDB_PUBYEAR); - if (!n_pubyear && dbi_conn_error_flag(ptr_bibconns->conn_source)) { /* reference has no pubdate data */ + if (!n_pubyear/* && dbi_conn_error_flag(ptr_bibconns->conn_source) */) { /* reference has no pubdate data */ citem = my_dbi_result_get_string_idx(dbires, REFDB_PYOTHER_INFO); if (!citem || !*citem) { /* reference has no pubdate data */ @@ -1081,5 +1081,5 @@ /* use only requested date */ n_pubyear = dbi_result_get_ushort_idx(dbires, n_date_index); - if (!n_pubyear && dbi_conn_error_flag(ptr_bibconns->conn_source)) { /* reference has no pubdate data */ + if (!n_pubyear/* && dbi_conn_error_flag(ptr_bibconns->conn_source) */) { /* reference has no pubdate data */ return *ptr_ref; } @@ -1589,5 +1589,5 @@ /* dbi_conn conn; */ -/* printf("start format_title\n"); */ + printf("start format_title. intext=%d\n", n_intext); /* conn = dbi_result_get_conn(dbires); */ @@ -1811,4 +1811,9 @@ } } + /* else: no title found */ +/* else { */ +/* printf("no title found\n"); */ +/* } */ + if (real_item_title) { free(real_item_title); @@ -1866,5 +1871,6 @@ dbi_result dbires_ulink; -/* printf("start format_ulink\n"); */ +/* printf("start format_ulink, preceeding:%d; following:%d\n", n_preceeding_index, n_following_index); */ + dbires_ulink = request_ulinks(ptr_bibconns->conn, my_dbi_result_get_idval(dbires, "refdb_id"), 0 /* ref entry */, type /* link type */); if (dbires_ulink == NULL) { @@ -1881,4 +1887,5 @@ preceeding = my_dbi_result_get_string_copy_idx(dbires_ref, n_preceeding_index); + if (preceeding && *preceeding && !dbi_conn_error_flag(ptr_bibconns->conn_refdb)) { /* preceeding */ if (sgml_entitize(&preceeding, NULL) == NULL) { |