Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Adding Roman numerals to page footer / header options #4065

Open
wants to merge 2 commits into
base: 0.12.1.x
Choose a base branch
from

Conversation

andyepx
Copy link

@andyepx andyepx commented Aug 30, 2018

Added to option to display page number as roman numerals, upper and lower case, to v12.1.1.x.

It would be really awesome if you consider including this in any future build, what's the process to submit pull requests / feature updates?

Thanks!

QString i[] = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"};

// Converting to roman
QString thousands = m[number / 1000];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when the number of pages becomes more than 3000? Better to use repeated, see this untested code

QString thousands = QString("M").repeated(number / 1000)

@ashkulz
Copy link
Member

ashkulz commented Apr 10, 2019

Thanks for the contribution, and sorry for the late review!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants