documentation icon indicating copy to clipboard operation
documentation copied to clipboard

et-al-min has to be greater than et-al-use-first

Open georgd opened this issue 3 years ago • 12 comments

Stumbling upon this twice in a PR today I couldn’t find this restraint neither in the schema (I wouldn’t know how to express it there) nor in the documentation.

georgd avatar Apr 27 '21 21:04 georgd

Stumbling upon this twice in a PR today I couldn’t find this restraint neither in the schema (I wouldn’t know how to express it there)

Pretty sure you need to use schematron for that. The existing sch schema should give some ideas, if you'd like to give it a try.

bdarcus avatar Apr 27 '21 22:04 bdarcus

Stumbling upon this twice in a PR today I couldn’t find this restraint neither in the schema (I wouldn’t know how to express it there)

Pretty sure you need to use schematron for that. The existing sch schema should give some ideas, if you'd like to give it a try.

I just looked into the existing files in the schema repo and couldn’t find a hint about that. But my knowledge of the whole schema thing is all but profound.

georgd avatar Apr 27 '21 22:04 georgd

If other reviewers approve the substantive change, we can add the logic to the schema, which is here:

https://github.com/citation-style-language/schema/blob/master/schemas/styles/csl.sch

bdarcus avatar Apr 27 '21 22:04 bdarcus

Please format this change as one-sentence-per-line rather than 80-characters-per-line.

This document isn't currently formatted that way.

I'll see if I can find a script to automate the conversion.

bdarcus avatar Apr 27 '21 23:04 bdarcus

Yes, but we have started in a few places to add new additions that way to reduce later changes.

bwiernik avatar Apr 27 '21 23:04 bwiernik

Yes, but we have started in a few places to add new additions that way to reduce later changes.

Ah.

I experimented a bit, and concluded a completely automated solution isn't practical.

This, OTOH, if you use Emacs (I imagine other editors may have similar), is awesome!

https://emacs.stackexchange.com/a/473

bdarcus avatar Apr 28 '21 00:04 bdarcus

But that won't give you a line per sentence, would it?

I was almost through when I remarked I was in the wrong branch...

georgd avatar Apr 28 '21 01:04 georgd

But that won't give you a line per sentence, would it?

Yes; the fill-paragraph command converts this:

One line per
sentence.

One line. Per sentence.

... to this:

One line per sentence.
One line.
Per sentence.

bdarcus avatar Apr 28 '21 13:04 bdarcus

Will this work with one space after a period as well? Or do you need two spaces? Will it convert "Mrs. Smith said ..." to:

Mrs. Smith said ... Or.: Mrs. Smith said ...

?

denismaier avatar Apr 28 '21 13:04 denismaier

Will this work with one space after a period as well?

No, it's not very smart as is.

But I wouldn't run this on an entire file; more paragraph-by-paragraph, or region-by-region.

It still simplifies the process.

bdarcus avatar Apr 28 '21 14:04 bdarcus

I might also try using RStudio's editor, which has a function to convert between 80 spaces/sentence. It seems to be fairly smart.

bwiernik avatar Apr 28 '21 14:04 bwiernik

@georgd Could you submit this change as a PR to the schema repo?

bwiernik avatar Apr 19 '22 11:04 bwiernik