Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 06:52 AM   #1
emmalexandria
Junior Member
emmalexandria began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2025
Device: none
Post [Feature request] CSL support for bibliographies and citations

This feature request is a long shot, as it seems rather challenging to implement.
However, it would be great if Sigil had support for CSL (I'm unsure if citeproc-js can be used, but citeproc JSON seems like a good choice for source descriptions). One way I can see this working is by citation IDs inside HTML <cite> tags being used to detect citations. Obviously given the ebook format, footnote based styles would have to be adopted to endnotes which is quite a challenge.

I hope this suggestion isn't ridiculous or impossible. I must admit a lack of familiarity with CSL as well as the codebase of Sigil. I'm just yet to find a good way to manage citations within an epub, and this functionality would be really nice.
emmalexandria is offline   Reply With Quote
Old Today, 07:40 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,682
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
This is the first time I've even heard of CSL. The main hurdle I see (after an admittedly very quick glance) is that to be integrated into Sigil, it would require non-epub compliant filetypes to be included to help generate the html. That would be unlikely to happen. I see there's a citeproc-py generator though. Since Sigil comes with the ability to run Python plugins, it would be technically possible for someone to create a CSL input plugin that could be used to generate an epub. It might prove difficult, however, to enlist a plugin developer to create a complex plugin that utilizes technology they are neither familiar with, nor have a personal need to use.
DiapDealer is offline   Reply With Quote
Advert
Old Today, 08:12 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,882
Karma: 6120478
Join Date: Nov 2009
Device: many
As far as I can tell. It is meant to be a preprocessor that is useful for citation focused management software. Its *output* is useful for finished papers and journals to match styling requirements so all citations are identically formatted for journal standards.

It is meant to by used for formatting citations from various sources *before* submittal to a journal.

I really do not see it as being apart of the epub creation process outside a plugin that would request the citations in csl format and generating a final styled xhtml file for the epub.

So I really only see this as an input plugin and possibly an output plugin to generate the CSL from an existing set of endnotes. Not as a new non-compliant file type in an epub.

Last edited by KevinH; Today at 11:02 AM.
KevinH is online now   Reply With Quote
Old Today, 11:02 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
It's highly unlikely that someone is going to write a full citation manager plugin for Sigil.

Assuming that CSL files that the OP works with look like my simple json sample, it would theoretically be possible to create a simple plugin that converts the CSL .json content to an .xhtml file with citeproc-py and adds it as an endnotes section to the current epub.

JSON:

Spoiler:
Code:
[
    {
        "id": "cite1",
        "type": "book",
        "author": [
            {
                "family": "Smith",
                "given": "John"
            }
        ],
        "issued": {
            "date-parts": [[2020]]
        },
        "title": "Understanding Complex Systems",
        "publisher": "Academic Press"
    },
    {
        "id": "cite2",
        "type": "article-journal",
        "author": [
            {
                "family": "Jones",
                "given": "Alice"
            },
            {
                "family": "Brown",
                "given": "Thomas"
            }
        ],
        "issued": {
            "date-parts": [[2018]]
        },
        "title": "Advances in Research Methods",
        "container-title": "Journal of Science",
        "volume": "45",
        "issue": "3",
        "page": "123-145"
    }
]


HTML:

Spoiler:
Code:
<section epub:type="backmatter" id="endnotes">
	<h2>Endnotes</h2>
	<ol>
		<li id="endnote1">
			<p>Smith, J. (2020). <em>Understanding Complex Systems</em>. Academic Press. <a href="#cite1">↩</a></p>
		</li>
		<li id="endnote2">
			<p>Jones, A., & Brown, T. (2018). <em>Advances in Research Methods</em>. Journal of Science, 45(3), 123–145. <a href="#cite2">↩</a></p>
		</li>
	</ol>
</section>

Last edited by Doitsu; Today at 11:12 AM.
Doitsu is offline   Reply With Quote
Old Today, 11:05 AM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,882
Karma: 6120478
Join Date: Nov 2009
Device: many
Yes, citeproc.py look like the right approach for a plugin as it requires lxml which is already part of Sigil.
KevinH is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request: CBR support BloodRagg KOReader 8 05-01-2019 12:12 PM
new feature request - paste image support dhdurgee Sigil 16 11-22-2015 06:29 AM
Feature Request: ZIM Conversion Support kichigai Conversion 1 07-24-2011 08:53 PM
feature request - OPDS support readx EPUBReader 4 01-13-2010 01:03 PM
feature request: support for iliad on OS X petteri Calibre 1 12-30-2009 08:23 AM


All times are GMT -4. The time now is 05:27 PM.


MobileRead.com is a privately owned, operated and funded community.