You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Book{lucretius50bce,
author = {Lucretius},
title = {On the Nature of Things},
year = {50 BCE}, }
And Typst chokes on it, asking on discord it appears a hayagriva limitation. Making it {0050 BCE} and parsing can continue. Supporting non-quad years would be great!
The text was updated successfully, but these errors were encountered:
I was able to replicate the file aswell, the error occurs also simply with a year = {50} or any number with more or less then 4 digits.
After taking a dive through the source code it seems to be an biblatex related issue, tho a fix in that library might require a change in src/types/time.rs:
/// Parse a string with a plus/minus and one to four digits into an integer.fnparse_year(s:&mutScanner) -> Result<i32,DateError>{parse_int(s,1..=4).ok_or(DateError::UnknownFormat)// change the 4..=4 range to 1..=4 }
I allowed an era marker in the year field if no sign (+, -) is specified. The year 0 CE/BCE does not exist. Hayagriva needs no parsing fixes since it is supposed to accept ISO standard dates which do not specify era markers, instead, the year 2 BCE is -0001 or -01.
I tried to use the following BibTeX entry:
And Typst chokes on it, asking on discord it appears a hayagriva limitation. Making it
{0050 BCE}
and parsing can continue. Supporting non-quad years would be great!The text was updated successfully, but these errors were encountered: