diff options
author | Joost Kremers <joostkremers@fastmail.fm> | 2021-05-12 13:39:39 +0200 |
---|---|---|
committer | Joost Kremers <joostkremers@fastmail.fm> | 2021-05-12 13:39:39 +0200 |
commit | 7235eb54a73af4015a22c1ff391c5e37980cf11f (patch) | |
tree | c7f0d1928b513288ddf7f5f99dc9fa6e18159347 | |
parent | 99fa1ce95789e09372a983c5304fea5b83cd3462 (diff) |
Update README.
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ Especially relevant for the purpose of this library is that there are difference In CSL-JSON data, the format of the alist is slightly different: `<field>` is not a string but a symbol and the symbol name is case-sensitive. The CSL-JSON standard describes which field names are lower case (most are) and which are upper case (`ISBN`, `DOI`, etc.) Furthermore, the `<value>` part of the alist items may be a string, a number or a vector, though when parsing a `.json` file, you can have `parsebib` convert all values to strings. -You can access the data in an entry's alist with `assoc` or `alist-get`, but in order to accommodate for the differences, you may want to write a custom `test` function to pass to them, so that you can generalise over the field name type. +You can access the data in an entry's alist with `assoc` or `alist-get`, but in order to accommodate for the differences, you may want to use `assoc-string` instead, which generalises over symbols and stings and has a `case-fold` argument. Another thing to note is that in BibTeX data, the type and key of an entry are stored in the entry's alist under `=type=` and `=key=`, while the same information is available in CSL-JSON data under `type` and `id`, respectively. While some of the core information on an entry is available in fields with the same name in both formats (esp. author, editor and title), most fields are named differently (i.e.., the `year` field in BibTeX corresponds to the `issued` field in CSL-JSON). |