compholio / jabbrv

Automatic Journal Title Abbreviation Package for LaTeX
71 stars 45 forks source link

\DefineSpuriousJournalWord{} are English only #15

Closed ElieGouzien closed 2 years ago

ElieGouzien commented 5 years ago

The \DefineSpuriousJournalWord{} should certainly not be hard-coded into jabbrv.sty but moved into the .ldf files and be language dependent.

Reading the ISO-4 text should help to know how it should be done.

compholio commented 2 years ago

Because these files are auto-generated from the ISSN database, I think it would be best to keep the default spurious words in the main style file but handle them in a language-specific way. How does something like this sound?:

\def\jabbrv@lang@spurious@en{
    \DefineSpuriousJournalWord{of}
    \DefineSpuriousJournalWord{in}
    \DefineSpuriousJournalWord{and}
    \DefineSpuriousJournalWord{the}
}
\csname jabbrv@lang@spurious@\jabbrv@lang\endcsname