CSL code to bibtex citations styles?

David Carlisle d.p.carlisle at gmail.com
Mon Jun 13 18:28:21 CEST 2022


On Mon, 13 Jun 2022 at 17:00, Mike Marchywka <marchywka at hotmail.com> wrote:

> On Sun, Jun 12, 2022 at 08:30:18PM +0800, Zeping Lee wrote:
> >    In practical it’s impossible to convert a CSL style to BibTeX (.bst)
> style.
> >
> >    The bst language doesn’t provide enough features to implement CSL’s
>
> btw, is XML really a good language to describe what amounts to
> algorithms? Its good for a bunch of parameters and data but
> adding logic sounds kind of odd. I guess LISP for windoh's users
> was not an option although I guess an invented language, heck
> even a stack based thing like postscript or FORTh ( or bst lol )
> may have been better. Any comments on the culture behind this?
> It may be a better topic for a flame war but always curious
> why these things get adopted.
>
> Thanks.
>
>
>
XSLT which is the standard xml transformation language is written using xml
syntax, and works very well.
Certainly proved a lot more popular than its immediate predecessor, dsssl
which used scheme lisp syntax.
I think the csl developer mentioned in that stackexchange post that initial
prototyping was done in xslt...

David

>
> >    complex specifications. For example, there are no data types like
> list or
> >
> >    hash map so it’s difficult to disambiguate names as required by CSL.
> >
> >    If you want to use CSL with LaTeX, you may consider
> >    [
> https://ctan.org/pkg/citation-style-language]https://ctan.org/pkg/citation-style-language.
> I started this package not
> >    long ago and some CSL features are not implemented yet.
> >    Zeping Lee
> >    Beijing, China
> >    E-mail: [mailto:zepinglee at gmail.com]zepinglee at gmail.com
> >
> >    On Jun 12, 2022, at 19:38, Mike Marchywka <[mailto:
> marchywka at hotmail.com]marchywka at hotmail.com> wrote:
> >
> >    On Sun, Jun 12, 2022 at 11:56:13AM +0100, David Carlisle wrote:
> >
> >        see for example a discussion of biblatex v csl at
> >        [[
> https://tex.stackexchange.com/questions/434946/citation-style-language-vs-biblatex-vs-possibly-other-citing-systems
> ]
> >      https:]
> https://tex.stackexchange.com/questions/434946/citation-style-language-vs-biblatex-vs-possibly-other-citing-syste
> >      ms]https:
> >        //[
> http://tex.stackexchange.com/questions/434946/citation-style-language-vs-biblatex-vs-possibly-other-citing-systems
> ]
> >
> tex.stackexchange.com/questions/434946/citation-style-language-vs-biblatex-vs-possibly-other-citing-systems
> >
> >    Thanks,
> >    I guess the excerpt from your link  is pretty close,
> >    but AFAICT it sounds like you should be
> >    able to generate a bst file from the CSL ? So I guess the specific
> >    question still remains, " can you generate a bst file from the CSL?"
> >    \begin{quote}
> >    I'm the creator of CSL, which I originally created for very simple
> reasons:
> >    While I used LaTeX, I work in a field which requires Word-compatible
> files; LaTeX not accepted.
> >    I saw no reason why such styling needed to be tightly-coupled to the
> output format. So my prototype XSLT implementation had
> >    output drivers for LaTeX (bypassing BibTeX), HTML, and RTF, IIRC. I
> found that worked pretty well and so was a
> >    proof-of-concept (I used it to format my first book), and has since
> remained a priority.
> >    One additional advantage of that output flexibility is a much larger
> potential user base for CSL styles, which in turn can
> >    lead to many more supported styles.
> >    I have a lot of respect for biblatex though; it's a great solution if
> you can work exclusively in LaTeX.
> >    But you probably want to use CSL if you need non-LaTeX output targets.
> >    \end{quote}
> >
> >        On Sun, 12 Jun 2022 at 11:39, Mike Marchywka
> >      <[[mailto:marchywka at hotmail.com]mailto:marchywka at hotmail.com
> ][mailto:marchywka at hotmail.com]marchywka at hotmail.com> wrote:
> >          I was browsing the Zotero webforum, still nothing I have
> submitted
> >          as a post or reply has been published lol, and
> >          ran into this site that apparently creates xml descriptions
> >          of citation formats. For example,
> >          [[
> https://editor.citationstyles.org/styleInfo/?styleId=http%3A%2F%2Fwww.zotero.org%2Fstyles%2Fapa]https://editor.cit
> >      ation]
> https://editor.citationstyles.org/styleInfo/?styleId=http%3A%2F%2Fwww.zotero.org%2Fstyles%2Fapa]https://editor.cit
> >      ation
> >          [
> http://styles.org/styleInfo/?styleId=http%3A%2F%2Fwww.zotero.org%2Fstyles%2Fapa]styles.org/styleInfo/?styleId=http%
> >      3A%2F%2Fwww.zotero.org%2Fstyles%2Fapa
> >          IS there some utility to translate this stuff into bibtex
> >          or is that some other descrption language commonly used?
> >          I was still playing around with generalized bibliographies,
> >          adaptation to "bill of materials" and it seems languages
> >          like this may be useful.
> >          I've noticed with TooBib many places are making it harder to
> >          download webpages with wget and reliance on headless
> >          chrome, I have made a utility called Chromate, seems important
> >          now.  Any other automated tools running into problems?
> >          Still have not gotten the Zotero web form to work with any
> >          pdf file however...
> >          Thanks.
> >          --
> >          mike marchywka
> >          306 charles cox
> >          canton GA 30115
> >          USA, Earth
> >          [[mailto:marchywka at hotmail.com]mailto:marchywka at hotmail.com
> ][mailto:marchywka at hotmail.com]marchywka at hotmail.com
> >          404-788-1216
> >          ORCID: 0000-0001-9237-455X
> >
> >    --
> >    mike marchywka
> >    306 charles cox
> >    canton GA 30115
> >    USA, Earth
> >    [mailto:marchywka at hotmail.com]marchywka at hotmail.com
> >    404-788-1216
> >    ORCID: 0000-0001-9237-455X
>
> --
>
> mike marchywka
> 306 charles cox
> canton GA 30115
> USA, Earth
> marchywka at hotmail.com
> 404-788-1216
> ORCID: 0000-0001-9237-455X
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20220613/ab04f6a9/attachment.html>


More information about the texhax mailing list.