Bug 80387

Summary: [EasyHack] extend lint-ui.py to check for UI title labels
Product: LibreOffice Reporter: Thomas Arnhold <thomas-libo>
Component: UIAssignee: Jorendc <jorendc>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: medium CC: caolanm, jorendc
Version: unspecified   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=76203
Whiteboard: EasyHack
i915 platform: i915 features:
Attachments: Python script to check title cases

Description Thomas Arnhold 2014-06-23 10:48:47 UTC
We have lint-ui.py, which checks for several settings of ui files, so that they have consistent borders and so on. See:

http://cgit.freedesktop.org/libreoffice/core/tree/bin/lint-ui.py

The idea is to extend the script to ensure that all title words are uppercase. There was a commit, which corrected those: 171efcb7acf367e8db53694489815452d2a9894a

But for the future it would be nice if we could warn about those cases.

The titles are inside node: <child type="label">
Comment 1 Jorendc 2014-06-23 11:04:25 UTC
I did write a python script to check for titles. I'm currently working to check normal labels too (not only title labels).
I'll attach the script used to this bug report.

Afterwards I'll have a look at this lint-ui.py to implement it over there.

Kind regards,
Joren
Comment 2 Jorendc 2014-06-23 11:07:17 UTC
Created attachment 101573 [details]
Python script to check title cases

Still some manual work/review to do. It only splits words by space. Words surrounded by brackets or with other punctuation marks will need different approach.

Kind regards,
Joren
Comment 3 Thomas Arnhold 2014-06-23 12:55:01 UTC
Ah, great! So I'll assign you to this bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.