Commit graph

1328 commits

Author SHA1 Message Date
Simon Kornblith
0ccc6d0892 don't need bufPtr 2010-12-19 06:41:33 +00:00
Simon Kornblith
1ed0c88c32 protect against potential buffer overflow 2010-12-19 06:28:37 +00:00
Simon Kornblith
afea210a99 add missing file 2010-12-19 06:27:42 +00:00
Simon Kornblith
66b1ce048d - Update integration pipe code so that it will work with Fx 4.0b9 once it is released. At the moment, this only works if Firefox is patched with the patch at https://bugzilla.mozilla.org/show_bug.cgi?id=615153, which requires compiling from source.
- Fix integration issues with Minefield.
2010-12-19 06:26:47 +00:00
Dan Stillman
a97d70da9e Fix broken error reporting 2010-12-14 17:39:06 +00:00
Dan Stillman
17fae0d657 Fix tag not disappearing on removal from item if tag selector is closed 2010-12-13 22:28:45 +00:00
Dan Stillman
07c450acbf Remove unnecessary joins 2010-12-13 22:10:06 +00:00
Dan Stillman
2f7bf480c0 Display proper error message if Zotero directory or Zotero database is not writable, instead of just if the database isn't readable 2010-12-13 22:09:20 +00:00
Dan Stillman
ef36b39454 Use separate buttons for "Reset Translators" and "Reset Styles" in preferences 2010-12-13 22:07:13 +00:00
Dan Stillman
045667fe93 Fixes #1724, Missing box around tags popup in attachment metadata pane in Firefox 4 2010-12-13 21:25:31 +00:00
Dan Stillman
f4cfba06d3 Fixes #1708, discontinuities in context menus in Fx4 2010-12-13 21:20:45 +00:00
Dan Stillman
cba0c0ad51 Replace WebDAV HEAD requests with GET requests 2010-12-13 18:20:06 +00:00
Simon Kornblith
4bdfa5f30b revise comment 2010-12-12 13:29:28 +00:00
Simon Kornblith
43670e3d4c fix invalid XML on export due to quotation marks in URI 2010-12-12 13:24:47 +00:00
Simon Kornblith
e01aa91e49 check UTF-8 in separate chunks, since running a regexp on too much data produces an error 2010-12-12 07:16:00 +00:00
Simon Kornblith
071c05e0bb return en-US test, which i had disabled for testing 2010-12-11 07:02:24 +00:00
Simon Kornblith
83d34a9f77 load date strings from Fx dateFormat bundle instead of using citeproc-js 2010-12-11 07:00:42 +00:00
Simon Kornblith
ac9d524a9f update to citeproc-js 1.0.88
From 1.0.82:

Fixes to cs:if and cs:else-if logic.  Was failing to set the match
attribute on singleton nodes, among other things.

Treat greek letters as part of the "romanesque" character set,  for
name formatting purposes.

If cs:number input has numbers separated by spaces, but also
extraneous non-comma, non-ampersand, non-hyphen characters, then
render as literal.

From 1.0.83:

Use en-dash rather than hyphen in formatted page range joins.

From 1.0.84:

Preserve explicit double spaces in HTML output.

From 1.0.85:

Pass full suite of double space suppression tests.

Language switching within a style works, for both localized dates and
terms.  (This functionality is not yet valid in CSL.)

From 1.0.86:

Address bug that caused unreasonable delays with large namesets.

From 1.0.87:

Where et-al-min, et-al-subsequent-min or names-min are set to some
value larger than zero, and the number of names in a nameset exceeds
an arbitrary threshold of 50, truncate author lists that are longer
than the *-min value (plus a buffer value of 2), to raise performance
to a  reasonable level with large namesets.

From 1.0.88:

Adjustments to language condition logic, to use only the base language
name for matching, while applying the full locale specified in the
conditional to node children.

Refinements to the recently introduced handling of brace-enclosed
leading characters as initialized form of names.

Adjustments to print statement arbitration, with a view to playing
nice with various systems.
2010-12-10 07:12:08 +00:00
Simon Kornblith
070c8eb7a5 fix code mistakenly removed in r7384 2010-11-30 21:02:34 +00:00
Simon Kornblith
17466694bb fix error message display during Standalone startup 2010-11-30 20:59:21 +00:00
Simon Kornblith
add7bef0be Show a meaningful error message when multiple instances of Zotero are open simultaneously 2010-11-30 20:34:08 +00:00
Dan Stillman
a50167ac40 Add support for second-field-align to HTML mode 2010-11-27 00:03:25 +00:00
Simon Kornblith
de1df45444 don't disable animation when saving snapshots in Fx4, as this appears to result in a crash 2010-11-23 21:37:03 +00:00
Dan Stillman
5d622b91f0 Bibliography HTML: move line-height to root div and disable some comments 2010-11-22 20:40:08 +00:00
Simon Kornblith
c6f3e0b844 - Update to citeproc-js 1.0.81
- Fix "myxml.localName() is null" when using dates on non-base locales

Thanks to Frank for dealing with my pestering regarding locale behavior.

From citeproc-js 1.0.78:

Enable the proper parsing and rendering of seasons in ranged dates, in
the internal dates parser.

From citeproc-js 1.0.79:

Correct fault in locale fallback behavior.  Had been ignoring optional
default argument set in the processor.

From citeproc-js 1.0.80:

More fixes to locale selection behavior.

Provide a toggle to override the locale of a style with the locale set
on the processor at runtime.

From citeproc-js 1.0.81:

Yet more fixes to locale selection logic. Now uses en-US as ultimate
fallback, for any missing terms or missing locales.
2010-11-22 19:33:22 +00:00
Dan Stillman
b2bcff1dac Disable debug output 2010-11-22 19:19:22 +00:00
Dan Stillman
fbee8ece40 Include inline CSS when generating HTML bibliographies
Rules based on primitive.css from citeproc-js demo, with some modifications

second-field-align is not yet supported
2010-11-22 19:18:54 +00:00
Simon Kornblith
62d2af7d4c fix calling search translators from web translators with different sandboxes 2010-11-21 02:52:50 +00:00
Simon Kornblith
87363fbe2e - update citeproc-js to 1.0.76
- fix issues with RTF export of brackets

From 1.0.71:
Variables (including names) should be (and have been) suppressed when
rendered via the cs:substitute node of cs:names.  Prior to this patch,
however, citeproc-js was unconditionally suppressing name variables
after their first use within a given cite, and this behavior differed
from the Zotero CSL 0.8.1 processor.  This patch restores the original
behavior, allowing names rendered outside of cs:substitute to be used
repeatedly within a cite.  (The only exception to this behavior is a
name rendered with et-al-min=1 and et-al-use-first=1, which will be
clipped from subsequent output within the same cite.)

The processor was using the localized close-inner-quote character for
apostrophes.  This caused problems in styles that use alternative
quotation marks.  The processor now uses a hard-coded apostrophe
character for apostrophes.

A bug in the normalization of names, for disambiguation purposes, that
contain punctuation or extraneous spaces has been fixed.

From 1.0.72:
Allow simple range, comma, and ampersand joins in the input to
cs:number, to permit "1st-2nd",  "xi-xv", etc.  When multiple numbers
are given, the following operations are performed: (1) ranges are
expanded and the numbers are converted to a list; (2) the resulting
list is sorted; (3) duplicates are eliminated; (4) ranges are
truncated; (5) numeric formatting is performed; and (6) appropriate
punctuation is applied to the result. (As of this writing, the use of
multiple numbers with cs:number is not covered by the CSL 1.0
specification, so this is an anticipatory change.  It is consistent
with the CSL 1.0 schema, however, and does not have any effect on
single input numbers. Production use of multiple number, issue,
volume, and edition variables should await the formal approval of a
CSL 1.0 schema change to allow the use of these variables with
cs:label, for contextual pluralization of any associated label.)

Eliminate space following a trailing apostrophe on a dropping-
particle, when immediately followed by the family name part in
rendered output.

Recognize multiple parameters to a position attribute on cs:if and
cs:else-if, per the CSL 1.0 schema.  For the fix, we eliminate cutted-
and-pasteded code from node_if.js and node_elseif.js, and consolidate
all position node-level position logic in attributes.js.

From 1.0.73:
Limit the recognition of multiple numbers to cases in which they are
separated by at least one space, to prevent the accidental
reformatting of things like "Document no. 1-3752,42".

From 1.0.74:
Recognize new Khmer locale for CSL provided by Hem Sras.

When parsing number ranges in the input to cs:number, abort parsing
when spread of range is over an arbitrary limit of 1000.

Support names-use-last attribute on cs:key. (Anticipatory change to
support upcoming change to CSL schema and specification.)

Use unicode ellipsis character rather than (nonexistent) locale term
when splicing author listings trucated with et-al-use-last.

From 1.0.75:
Do not apply decorative formatting to name suffixes.

Fix breakage in ordinal suffix formatting for days in a date.

For an all-lowercase name suffix (such as an explicit "et al."),
exclude the suffix from the name for disambiguation purposes, and
include it in the strict short form of the name in the short form of a
citation.

Add and recognize delimiter-precedes-et-al attribute, in line with
draft CSL proposal.

Implement grammatical gender sensitivity for ordinal suffixes, in line
with draft CSL proposal.

From 1.0.76:
Fix bug in locale processing, arising from the previous release, that
could trigger a processor crash.
2010-11-20 22:37:38 +00:00
Simon Kornblith
3a9adcc25e closes #1747, Improvements to OpenURL ContextObject support
patch thanks to Avram
2010-11-20 22:16:21 +00:00
Dan Stillman
d4550807d8 Fix incorrect WebDAV error calls 2010-11-15 19:48:29 +00:00
Dan Stillman
a1865f5e18 Clear previousData after item save 2010-11-15 06:49:40 +00:00
Dan Stillman
e95a919c12 Display more helpful error message for nsIFile.remove() error 2010-11-14 00:38:05 +00:00
Simon Kornblith
57eb90196c closes #1734, Map CSL number-of-pages to Zotero numPages
Thanks Frank, and sorry for overlooking this
2010-11-10 01:56:47 +00:00
Dan Stillman
593d90c29d Re-enable object element (without wildcard attributes) in notes on trunk and 2.1b2 tag 2010-11-09 21:06:57 +00:00
Dan Stillman
b76d788133 Fix an issue that could cause a sync error (and maybe other tag-related problems) in very old databases 2010-11-08 09:29:35 +00:00
Simon Kornblith
734472fbe4 fix search translation fallback issues 2010-11-08 08:00:13 +00:00
Simon Kornblith
c6663988dc fix OpenURL issue 2010-11-08 07:51:03 +00:00
Simon Kornblith
dd5942c538 fix handling of files without extensions 2010-11-07 07:38:50 +00:00
Simon Kornblith
a7a911683c update to citeproc-js 1.0.70
From Frank's release notes for 1.0.69:

Suppress a leading prefix character that is nested at an arbitrary
depth on the subsequent sibling hierarchy of the current output blob
object, where it would result in duplicate punctuation in the
flattened output.

Fix over-aggressive suppression, on subsequent items, of variables
that are called through cs:substitute (and are therefore suppressed
within the current item).

Define print statement conditionally, following suggestions from
Carles Pina and Fergus Gallagher.

Limit suppression of a year that is identical to the volume number
only for cites in which volume and container-title are both rendered,
and volume precedes container-title.  Suppression allows legal cites
such as The King v. Lockwood, 99 Eng. Rep. 379 (K.B. 1782) and
Hastings v. Perkins, 1930 P. 217 (Eng. C.A.) to be handled with a
single item type and without resorting to presentation toggles in the
input data.  Limiting suppression to cites in which a rendered volume
precedes a rendered container-title prevents this behavior from
corrupting other citation forms.

From Frank's release notes for 1.0.70:

Adopt conventions from Chicago 16th ed. for commas that follow
terminal punctuation in user content fields such as title.
2010-11-07 05:08:15 +00:00
Simon Kornblith
a1f52aede4 slightly less ugly hack for opening cite preferences 2010-11-07 04:36:39 +00:00
Simon Kornblith
a1f327a97a tweaks to prefs window opening 2010-11-07 04:18:58 +00:00
Simon Kornblith
0e46cdec10 don't try to wrap null 2010-11-07 03:38:42 +00:00
Simon Kornblith
f0ff19fd05 fix error report submission 2010-11-07 03:38:29 +00:00
Simon Kornblith
352158b48c - add ZU.deepCopy()
- fix attachment export/import
- make Translator return a copy of displayOptions or configOptions objects
- adjust file export functions for above change
2010-11-07 03:13:58 +00:00
Simon Kornblith
983673e354 - don't export duplicate items
- don't export top-level collection name
- use file name for name of collection when importing
2010-11-06 22:20:53 +00:00
Simon Kornblith
4df28f93cb don't use getters, since they probably don't save much memory and they don't seem to work with Fx3.6 wrappers 2010-11-06 21:35:06 +00:00
Simon Kornblith
e531493ba0 fix collection import/export 2010-11-06 20:52:15 +00:00
Simon Kornblith
8027e6c4f2 fix accidental global variable 2010-11-06 19:51:31 +00:00
Simon Kornblith
32d97b9ef9 correct automatic handlers 2010-11-06 19:48:31 +00:00