omikhleia / labelrefs.sile Goto Github PK
View Code? Open in Web Editor NEWCross-referencing package for the SILE typesetting system
License: MIT License
Cross-referencing package for the SILE typesetting system
License: MIT License
I am personally of the opinion that while it is a good thing that this can be a third party package and I'm glad we hashed out the issues involved in making enough API surface area for this to work as an external package, this is actually a fundamental enough functionality that will be useful to enough other packages that it should be kept a little closer to SILE's core.
Would you consider one or both steps of moving this into the SILE org and publishing stable versions from the API key there; and secondarily re-splicing the code into the SILE core so it can be tested and refactored on the same release cycle?
Keep in mind that since 3rd party packages take precedence over core ones if any aspect of the core one was not to your liking you could continue to use the forked/3rd party one over the official/core one without anything different that what you're doing now.
If (optional) package resilient.styles is available (from the resilient.sile collection), then when the new v2 styling paradigm lands there (PR 13), it could be interesting for labelrefs to apply the reference styles available there.
So e.g. referring to a captioned figure ("Figure 5. Some caption") would generate "fig. 5" -- or whatever the style defines -- rather than just the "5" alone.
(Opened in advance so I remember it in due time)
When overriding the tocentry
to collect title references, we should likely
SILE.call("tocentry"...)
is used, it takes care of it, but if using a AST construct (as in resilient classes, utils.create(Structured)Command("tocentry", ...)
then the top level is the tocentry command, so we eventually get:
["some-id"] = {
link = "ref:some-dest",
marker = "some-id",
pageno = "...",
section = "x.y",
title = {
"My reference",
col = 0, -- OOPS
command = "tocentry", -- EEK
id = "command", -- EEK
lno = 0, -- OOPS
options = { -- EEK
bookmark = true,
level = N,
number = "x.y"
},
pos = 0 -- OOPS
}
}
}
SILE.process
), some of this stuff should not be here...The SILE AST is a mess of undocumented things and weird decisions... Oh my... LoL ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.