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

Capitalize first letter in label not working #29889

Closed
qgib opened this issue May 14, 2019 · 7 comments
Closed

Capitalize first letter in label not working #29889

qgib opened this issue May 14, 2019 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented May 14, 2019

Author Name: matteo ghetta (@ghtmtt)
Original Redmine Issue: 22076
Affected QGIS version: 3.6.2
Redmine category:labelling


If the field used to label the layer contains values all capitalized, then the option "Capitalize first letter" is not working (nothing changes). While the expression title("field") works correctly.

@qgib
Copy link
Contributor Author

qgib commented May 17, 2019

Author Name: Giovanni Manghi (@gioman)


if is a regression it must be given high priority.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 20, 2019

Author Name: Alessandro Pasotti (@elpaso)


From the "Capitalize" function definition (Python):

In Python, the capitalize() method converts the first character of a string to capital (uppercase) letter. If the string has its first character as capital, then it returns the original string.

I'd close this as invalid or file a feature request to implement a "titleize" function.

@qgib
Copy link
Contributor Author

qgib commented May 20, 2019

Author Name: matteo ghetta (@ghtmtt)


OK get it. Still it seems a little bit confusing for users: for capitalize first letter I expect only the first letter to be capitalized, no matter what the input is.

@qgib
Copy link
Contributor Author

qgib commented May 20, 2019

Author Name: Nyall Dawson (@nyalldawson)


For what it's worth, if you search deep in the tracker this same issue has been discussed at least 3 or 4 times previously (also on the mailing list)

@qgib
Copy link
Contributor Author

qgib commented May 21, 2019

Author Name: matteo ghetta (@ghtmtt)


OK then I wasn't able to find other similar issues :) OK guys, you convinced me.


  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed May 21, 2019
@qgib
Copy link
Contributor Author

qgib commented May 21, 2019

Author Name: Harrissou Santanna (@DelazJ)


Nyall Dawson wrote:

For what it's worth, if you search deep in the tracker this same issue has been discussed at least 3 or 4 times previously (also on the mailing list)

Indeed. Then imho such a situation shows that there's an issue (people don't seem to understand this label). Or a missing option (aka "titleize" ?) that would help them put it into perspective.

@qgib
Copy link
Contributor Author

qgib commented May 22, 2019

Author Name: Alessandro Pasotti (@elpaso)


Can you file a feature request for "titleize"?

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant