pierre-24 / pyiso4

Implementation of the ISO 4 standard for journal titles abbreviations in Python.
MIT License
4 stars 2 forks source link

Wrong behavior with years/numbers in titles #3

Closed klb2 closed 6 months ago

klb2 commented 6 months ago

The abbreviation is handling titles with numbers, e.g., years, incorrectly.

Examples:

Value/String
Input Proceedings of the 2024 Conference on Science
Output Proc. the4202 Conf. Sci.
Expected Output Proc. 2024 Conf. Sci. or Proc. Conf. Sci.

It seems to work fine when the number is not standalone, e.g., Proceedings of the 25th Conference on Science gets abbreviated as Proc. 25th Conf. Sci..

pierre-24 commented 6 months ago

Ok, that's fixed. You pulled a good one, since there was in fact an issue with how symbols are handled.