View Single Post
Old 04-06-2018, 10:31 AM   #6
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by kovidgoyal View Post
Use an if statement to condition the output. I'm afraid I dont have the time to write the script for you.
Can the script be multiline and include variable declarations?

I'm thinking that your example can take care of the Arabic numerals, (using _PAGENUM_ - N, where N is the number of Roman pages), and then the Roman numerals could use a simple array of text elements predefined for the max no. needed. This is usually a small number and would be easier than writing a full conversion.
Agama is offline   Reply With Quote