Comments (11)
from citeproc.
Thanks. I'll have a look into this. That looks pretty useful. I actually wanted to build something similar using shelltestrunner, but I'm on Windows and my Haskell installation refuses to compile it...
Anyway, I'm still thinking this could be something for citeproc to provide natively, given that it already supports citeproc-js's test format.
from citeproc.
Note that I am not very satisfied with the test file being in HTML, for it requires to track the changes in the HTML writer and to update the test file accordingly. Using a combination of an HTML file for visualizing the result and native or json output for testing may be better.
I've now built a simple python script for this. It tests against the output of markdown-citations.
from citeproc.
That seems an appropriate solution -- should we close this?
from citeproc.
We could. But maybe you have a better idea how this could be supported?
from citeproc.
No, but I probably don't quite understand what you're trying to do. In any case, it doesn't sound like the kind of thing that should be built into this library.
from citeproc.
The idea would be similar to what https://github.com/cormacrelf/jest-csl and https://github.com/juris-m/citeproc-test-runner provide. You can define test cases for a given style and test whether the style conforms to the tests. So, when developping styles you always know if your style is already or not. And it you make changes, you can always be sure that you don't break things.
If you think this is out of scope, we can close the issue, I was thinking it might already be possible to run the processor against a test suite given that this library already supports the format defined in the test-suite.
from citeproc.
This should be quite easy already using the citeproc
executable and a little shell scripting. See its man page.
from citeproc.
Ok. Sounds reasonable. I'll have a look.
from citeproc.
How can you build the library as an executable? The readme says I should build it with the executable flag. But how?
from citeproc.
Found it:
stack build --flag citeproc:executable
from citeproc.
Related Issues (20)
- How could citeproc support CSL-M layout? HOT 40
- `link-bibliography` option does not hyperlink references without URLs in notes HOT 6
- Localizing parts of citations HOT 5
- Error in latex generation of portuguese quotes in CSLReferences field HOT 15
- Installing the executable HOT 2
- [Help] Author only citations BibTex HOT 1
- Incorrect sorting of bibliography HOT 12
- Stopword capitalized after abbreviation HOT 6
- Support for link/color only the year in the citations HOT 1
- Can I replace the citation key with bibliography? HOT 3
- Author-in-text citations render as superscript HOT 3
- Add support for semantic markup in bibliographies HOT 3
- Disambiguation error HOT 4
- `Undefined Control Sequence \citeproctext` in custom pandoc template HOT 2
- Short DOI prefix in citations HOT 11
- Custom Field in CSLJson silently dropped HOT 1
- Space and suffix gobbled in note field with LaTeX codes
- Custom template: How to place CSLReferences at a different part of a document? HOT 2
- Non-dropping-particles in authors' family names render differently than what's configured in CSL HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citeproc.