Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Custom naming #29

Closed
mizz141 opened this issue Apr 21, 2023 · 4 comments
Closed

[Feature Request] Custom naming #29

mizz141 opened this issue Apr 21, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@mizz141
Copy link

mizz141 commented Apr 21, 2023

Currently when updating a series, it jncep generates a name based on the Volume and Parts of the Prepub, I'd like a configuration where only the Volume is shown and numbered, additionally flags could be set for converting spelled out numbers into decimals and removing underscores etc.

this is doable on linux currently with

"Rebuild_World_Volume_2_Part_Two_Parts_1_to_9.epub"

You'd get "Rebuild_World_Volume_2_Part_Two.epub"

now if the spelled out numbers could be regenerated into a decimal:

"Rebuild_World_Volume_2_Part_2.epub"

Adding some padding and replacing the "part" with a decimal:

"Rebuild_World_Volume_02.2.epub"

@gvellut
Copy link
Owner

gvellut commented Apr 22, 2023

Thank you for your feedback.

Isn't there some text missing from the post? (actual Linux commands).

At first glance, I would say, that if it is doable outside jncep, it doesn't seem necessary to add transformations in the program itself.

However, for the transformations you want, if you can list the rules you would like to see, then I would accept a patch that would add an option that takes as values a rule name (or list of rule names) to apply to the file names. Something like: -r volume_only or -r decimal,zero-padding.

@gvellut gvellut added the enhancement New feature or request label Apr 22, 2023
@mizz141
Copy link
Author

mizz141 commented Aug 10, 2023

@gvellut
Copy link
Owner

gvellut commented Aug 12, 2023

OK Thanks. I will have a look.

@gvellut
Copy link
Owner

gvellut commented Jan 22, 2024

It took a while but I got around to implement that feature (it turns out it was something I needed and I wanted to take into account your use case and mine). It is a bit complex and not documented yet but I will do that for the next release.

@gvellut gvellut closed this as completed Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants