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

[Question] Is there a way to convert a localized media to a pwg media (standardized name). #5721

Closed
ChoiChoongHo94 opened this issue Jan 16, 2020 · 1 comment
Assignees
Labels
question General usage question

Comments

@ChoiChoongHo94
Copy link

ChoiChoongHo94 commented Jan 16, 2020

Hi.
(I'd appreciate your understanding that I'm not native speaker.)

When I set the media option to the localized media name (for example, media='US Legal'),
(In the end user scenario, the localized media names are shown to the end user using a combobox, etc. And, when the end user choice an option, it is saved as media=(the localized media name of the option).)
It doesn't work well except some famous media like A4, A6 and so on.
If using pwg media, It works well as is known.

It would be nice if there was a way to convert localized media to pwg media.
Or, is it right that the combobox should have a map containing both localized media and pwg media.

@michaelrsweet
Copy link
Collaborator

There is no API to go from a localized media name to a PWG media size name. And I'm not sure we'd have enough context to do a fuzzy match since we only know what the built-in localizations are and not alternatives.

@michaelrsweet michaelrsweet added the question General usage question label Mar 12, 2021
@michaelrsweet michaelrsweet self-assigned this Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General usage question
Projects
None yet
Development

No branches or pull requests

2 participants