-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for formatting attributes in layout element
Fixes #99
- Loading branch information
1 parent
fbf8e3d
commit 383b6a5
Showing
6 changed files
with
76 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[submodule "citeproc-java/src/test/resources/test-suite"] | ||
path = citeproc-java/src/test/resources/test-suite | ||
url = https://github.com/citation-style-language/test-suite.git | ||
shallow = true | ||
[submodule "citeproc-java/src/test/resources/citeproc-js"] | ||
path = citeproc-java/src/test/resources/citeproc-js | ||
url = https://github.com/Juris-M/citeproc-js.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule citeproc-js
added at
27c95b
31 changes: 31 additions & 0 deletions
31
citeproc-java/src/test/resources/fixtures/bibliography-formatting-attributes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
mode: bibliography | ||
|
||
style: | ||
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0"> | ||
<bibliography> | ||
<layout vertical-align="sup"> | ||
<names variable="author" suffix=". "> | ||
<name initialize-with=". " /> | ||
</names> | ||
<text variable="title"/> | ||
</layout> | ||
</bibliography> | ||
</style> | ||
|
||
items: | ||
- id: item1 | ||
author: | ||
- given: Given | ||
family: Name | ||
title: My title | ||
- id: item2 | ||
author: | ||
- given: Another | ||
family: Name | ||
|
||
result: | ||
html: |- | ||
<div class="csl-bib-body"> | ||
<div class="csl-entry"><sup>G. Name. My title</sup></div> | ||
<div class="csl-entry"><sup>A. Name. </sup></div> | ||
</div> |
25 changes: 25 additions & 0 deletions
25
citeproc-java/src/test/resources/fixtures/citation-formatting-attributes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
mode: citation | ||
|
||
style: | ||
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0"> | ||
<citation> | ||
<layout delimiter="," vertical-align="sup"> | ||
<text variable="citation-number"/> | ||
</layout> | ||
</citation> | ||
</style> | ||
|
||
items: | ||
- id: item1 | ||
author: | ||
- given: Given | ||
family: Name | ||
title: My title | ||
- id: item2 | ||
author: | ||
- given: Another | ||
family: Name | ||
|
||
result: | ||
html: | ||
<sup>1,2</sup> |