-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
282 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
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
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
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,86 @@ | ||
>>===== MODE =====>> | ||
citation | ||
<<===== MODE =====<< | ||
|
||
|
||
|
||
>>===== DESCRIPTION =====>> | ||
<https://github.com/zepinglee/citeproc-lua/discussions/70> | ||
<<===== DESCRIPTION =====<< | ||
|
||
|
||
|
||
>>===== RESULT =====>> | ||
(Doe, condition false: Title Page) | ||
<<===== RESULT =====<< | ||
|
||
|
||
>>==== CITATION-ITEMS ====>> | ||
[ | ||
[ | ||
{ | ||
"id": "ITEM-1", | ||
"label": "page", | ||
"locator": "" | ||
} | ||
] | ||
] | ||
<<==== CITATION-ITEMS ====<< | ||
|
||
|
||
>>===== CSL =====>> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0"> | ||
<info> | ||
<id /> | ||
<title /> | ||
<updated>2024-07-28T11:35:35+08:00</updated> | ||
</info> | ||
<citation> | ||
<layout prefix="(" suffix=")" delimiter="; "> | ||
<group delimiter=", "> | ||
<names variable="author"> | ||
<name form="short" and="symbol" delimiter=", " initialize-with=". "/> | ||
</names> | ||
<group delimiter=" "> | ||
<choose> | ||
<if locator="page paragraph" match="any"> | ||
<text value="condition true:"/> | ||
<text variable="title"/> | ||
<label variable="locator" form="short"/> | ||
</if> | ||
<else> | ||
<text value="condition false:"/> | ||
<text variable="title"/> | ||
<label variable="locator" text-case="capitalize-first"/> | ||
</else> | ||
</choose> | ||
<text variable="locator"/> | ||
</group> | ||
</group> | ||
</layout> | ||
</citation> | ||
</style> | ||
<<===== CSL =====<< | ||
|
||
|
||
>>===== INPUT =====>> | ||
[ | ||
{ | ||
"id": "ITEM-1", | ||
"type": "book", | ||
"author": [ | ||
{ | ||
"family": "Doe", | ||
"given": "John" | ||
} | ||
], | ||
"title": "Title" | ||
} | ||
] | ||
<<===== INPUT =====<< | ||
|
||
|
||
>>===== VERSION =====>> | ||
1.0 | ||
<<===== VERSION =====<< |
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,20 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/70> | ||
|
||
\input{regression-test} | ||
\documentclass{article} | ||
\input{csl-test} | ||
|
||
\usepackage[style=chicago-fullnote-bibliography]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\TEST{Citation with empty locator}{ | ||
\cite[page = ]{ITEM-1} | ||
} | ||
|
||
\OMIT | ||
\end{document} |
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,20 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
============================================================ | ||
TEST 1: Citation with empty locator | ||
============================================================ | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1},label={page},locator={}}},properties={noteIndex={1}}. | ||
<recently read> } | ||
l. ...} | ||
> \l__csl_citation_tl=Bruce D’Arcus, \textit {Boundaries of Dissent: Protest and State Power in the Media Age} (Routledge, 2005).. | ||
<recently read> } | ||
l. ...} | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <7> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <5> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <8> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <6> on input line .... | ||
============================================================ |
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,20 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/70> | ||
|
||
\input{regression-test} | ||
\documentclass{article} | ||
\input{csl-test} | ||
|
||
\usepackage[style=chicago-fullnote-bibliography]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\TEST{Citation with empty locator}{ | ||
\cite[page = ]{ITEM-1} | ||
} | ||
|
||
\OMIT | ||
\end{document} |
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,20 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
============================================================ | ||
TEST 1: Citation with empty locator | ||
============================================================ | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1},label={page},locator={}}},properties={noteIndex={1}}. | ||
<recently read> } | ||
l. ...} | ||
> \l__csl_citation_tl=Bruce D’Arcus, \textit {Boundaries of Dissent: Protest and State Power in the Media Age} (Routledge, 2005).. | ||
<recently read> } | ||
l. ...} | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <7> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <5> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <8> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <6> on input line .... | ||
============================================================ |
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,20 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/70> | ||
|
||
\input{regression-test} | ||
\documentclass{article} | ||
\input{csl-test} | ||
|
||
\usepackage[style=chicago-fullnote-bibliography]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\TEST{Citation with empty locator}{ | ||
\cite[page = ]{ITEM-1} | ||
} | ||
|
||
\OMIT | ||
\end{document} |
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,21 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
============================================================ | ||
TEST 1: Citation with empty locator | ||
============================================================ | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1},label={page},locator={}}},properties={noteIndex={1}}. | ||
<recently read> } | ||
l. ...} | ||
LaTeX Warning: Citation `ITEM-1' on page 1 undefined on input line .... | ||
> \l__csl_citation_tl=[\textbf {ITEM-1}]. | ||
<recently read> } | ||
l. ...} | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <7> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <5> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <8> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <6> on input line .... | ||
============================================================ |
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,20 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/70> | ||
|
||
\input{regression-test} | ||
\documentclass{article} | ||
\input{csl-test} | ||
|
||
\usepackage[style=chicago-fullnote-bibliography]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\TEST{Citation with empty locator}{ | ||
\cite[page = ]{ITEM-1} | ||
} | ||
|
||
\OMIT | ||
\end{document} |
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,20 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
============================================================ | ||
TEST 1: Citation with empty locator | ||
============================================================ | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1},label={page},locator={}}},properties={noteIndex={1}}. | ||
<recently read> } | ||
l. ...} | ||
> \l__csl_citation_tl=Bruce D’Arcus, \textit {Boundaries of Dissent: Protest and State Power in the Media Age} (Routledge, 2005).. | ||
<recently read> } | ||
l. ...} | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <7> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <5> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <8> on input line .... | ||
LaTeX Font Info: External font `cmex10' loaded for size | ||
(Font) <6> on input line .... | ||
============================================================ |