-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
closedown biblatex-cslc-onverter #7
Comments
Probably not, the Syntax column is a big simplification. The whole chart is meant as a way to compare different parser to replace the
So it definitely isn't a drop in replacement, as the API is quite different, and depending on your needs it may not be possible at all to switch. |
Ok, I understand. So "complete" doesn't mean "feature complete" but rather "completely covers what the other parser did"? Maybe that could be added somewhere as else it looks a bit misleading and users that may be better off using one the other parsers are lead to believe that they shouldn't. I'd prefer not to have to set up a different chart making counter claims, etc. . Speed isn't much of a concern for Fidus Writer's usecase of Accuracy is more important and also keeping maintenance costs down. So if there is another parser that can do the exact same but is maintained by someone else, I'd like to shut down And yes, please once you think your parser or one of the other ones covers all the features, let me know and I can see whether it still makes sense to put an AST converter on top and drop |
"complete" means nothing more and nothing less than that it parses
That's fair, I just didn't really intend this repository for other users to make choices with. What's missing from the description is "the new BibTeX parser formula for Citation.js". And the comparisons where either because I wanted to see if my new parser was up to the task, or because someone asked me to add it to the comparison. But I definitely see where you're coming from, and you're not the only one, so I'll change it up and also add more detailed comparisons.
I'm not really sure what you mean by this. How is an AST converter "on top", and if you'd be dropping |
Thank you very much for that. And yes, just a little bit of wording so that others understand what the purpose of the chart is and that it's not a full feature comparison of everything is all that I'm asking for. The comparison is still quite interesting.
Sorry, let me reword. Currently |
I don't mean to pile on just to be antagonistic, but
I don't know if I'm calling it wrong:
but it doesn't seem to do diacritics replacement, anything with braces, and for the subscript interpretation it just picks up the first character. Also, biblatex ignores leading and trailing spaces so title and publisher should have been trimmed. And |
Wait, I got that wrong -- |
|
Fair enough, it does.
But that doesn't apply here -- a unicode subscript
It does. My parser converts to unicode sub/superscript where possible and uses
I don't really follow -- in |
• I found just transforming the first character (if it's supported) more consistent than to create a string with part sub/superscript and part normal text |
That table is a lossy mapping from unicode to ASCII TeX, you can't always revert this table for TeX to unicode mapping -- |
Case in point: the reverse table is held separately here, and I would argue that |
Interesting conversation you guys are having here.
Does that mean this parser does not support the other html tags either? biblatex-csl-exporter currently supports these in CSL export:
|
citeproc supports these; |
Right, because as far as I know, citeproc-js doesn't have any corresponding tag for these. All the other ones are in that list you are linking to. |
Correct. |
@retorquere Ah, now I understand your reply. My first comment on this here was not formulated very well. I updated it now. I wasn't asking whether citeproc supports it (I know it does), I was wondering about this parser. |
It does, but not all the commands it seems (code): const richTextMappings = {
textit: 'i',
textbf: 'b',
textsc: 'sc',
textsuperscript: 'sup',
textsubscript: 'sub'
} |
That misses at least Parsing stuff like |
Okay, that's some more things to add to the list. This does make me lean towards moving more parts of the parsing to earlier in the process.
|
I don't see any other way this can be done. In a one-pass parser, it must be done during the parse, since you need the context to make these decision. In a two-pass parser like mine, the decision can be postponed until the 2nd pass.
Yes:
gives
I think most will actually still support it, but it's out of spec (even if I think it looks better) |
I haven't used B-C-C in a while, but it always used to be noticeably faster than the BBT parser. I don't know why the latest tests don't bear this out. |
Hey, I just discovered this chart. I have been participating in the maintenance of
biblatex-csl-converter
over the past few years. Based on your chart it looks likeIdea (reworked)
gives the same output quality asbiblatex-csl-converter
. Does that mean that it can be used as a drop in replacement and that it covers all the same features? If that is the case, is there any reason why I would continue to maintainbiblatex-csl-converter
?The text was updated successfully, but these errors were encountered: