Closed niruvt closed 3 years ago
Have you tried to configure numbers with \DeclareNumChars
?
Nope. How to do that?
Please consult p. 262 of the documentation. Basically you can give a list of characters to be considered as a number.
\DeclareNumChars{१,२,३,४,५,६,७,८,९}
Thanks. Closing.
Note that \DeclareNumChars
does not take a comma-separated argument. It just takes an undelimited list of characters. So you'd probably want
\DeclareNumChars{१२३४५६७८९}
@moewew Thanks, but then is it understood as one number or every character is understood as different a separate string?
Each character is processed and treated separately. The argument of \DeclareNumChars
is treated as an undelimited list of single characters.
Okay thanks.
Try this code -
One might notice that
pp.
andIn:
are missing in the output. This is because३
and१-५
are understood as characters and not as numerals, but well technically they are numerals. Changing३
to3
and१-५
to1-5
works. This forces users to use Latin numerals in their.bib
files. For Marathi at least Devanagari numerals are shown even with the Latin numerals in the code because of the conversion programs by XeLaTeX and LuaLaTeX, but I am not sure if it is true for other languages, which means in the lack of a conversion program the output will show Latin numerals. Can something be done to makebiber
understand that१
,२
,३
,४
,५
,६
,७
,८
,९
are numerals? (At least when these come in the.bib
file of Marathi/Hindi/Sanskrit/Nepali.)