Skip to content

Commit

Permalink
Use 'literal' name field for corporate names in bibtex->CSL conv.
Browse files Browse the repository at this point in the history
  • Loading branch information
andras-simonyi committed Jan 22, 2022
1 parent c28cc73 commit 963b068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion citeproc-bibtex.el
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ brackets to the corresponding CSL XML spans."
;; Brackets indicate corporate entities without name parts.
((and (string= "{" (substring trimmed 0 1))
(string= "}" (substring trimmed -1)))
`((family . ,(citeproc-bt--to-csl (substring trimmed 1 -1)))))
`((literal . ,(citeproc-bt--to-csl (substring trimmed 1 -1)))))
;; Else standard bib(la)tex name field processing.
(t (citeproc-bt--to-csl-name (citeproc-bt--to-csl trimmed))))))
name-fields)))
Expand Down
6 changes: 3 additions & 3 deletions test/biblatex_csl/corporate_author.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
year = {1998}}
---
- author:
- family: Deutscher Bundestag
- literal: Deutscher Bundestag
issued: 1992-12-18
id: "bt12-4022"
language: de-DE
title: Entwurf eines Zweiten Gesetzes zur Änderung des Urheberrechtsgesetzes
type: bill
- author:
- family: NVIDIA Corporation
- literal: NVIDIA Corporation
id: "CUDA"
issued: 2007
publisher: NVIDIA Corporation
title: NVIDIA CUDA compute unified device architecture programming guide
type: book
- author:
- family: Big corporation
- literal: Big corporation
- family: Smith
given: John
id: "corp"
Expand Down

0 comments on commit 963b068

Please sign in to comment.