jabbrv icon indicating copy to clipboard operation
jabbrv copied to clipboard

Apostrophe sometime prevent detection of abbreviation

Open ElieGouzien opened this issue 5 years ago • 1 comments

Using apostrophe between words (typically between an article and a noun) makes jabbrv failing; you could think of "Journal d'agriculture" that fails even if I write it "Journal d'Agriculture" (what should not be done).

It's not obvious how it should be dealt with since LTWA define words containing apostrophe, and usually the cases where it should be considered as separing words is between a "spurious word" and another. See also #15.

ElieGouzien avatar Jul 31 '19 19:07 ElieGouzien

The capitalization is obviously a separate issue (Issue #14), but I've been thinking about ways to approach this and it might be doable. I'm not particularly familiar with French, is the correct behavior in this situation to drop the d' and abbreviate the rest?

compholio avatar Sep 20 '22 22:09 compholio

Yes, I think it is the correct behaviour (but I didn't check on the exact rules). The d' is a contraction of de (to avoid repeated vowel), and play the same role as of in English.

ElieGouzien avatar Feb 24 '23 17:02 ElieGouzien

When you get a chance, please give this new version a try. At the moment only d' is defined, but you can add additional prefixes to remove like so:

\DefineSpuriousJournalPrefix{d'}

compholio avatar Feb 24 '23 17:02 compholio