-
Notifications
You must be signed in to change notification settings - Fork 715
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
fix short_version (upper/lower) case priority #972
base: master
Are you sure you want to change the base?
Conversation
I think we should remove that ancient custom short_version function and instead rely on Pango::EllipsizeMode |
My understanding is that Pango ellipsizing is a completely different concept. This one was called "disemvoweling" and comes up with entirely different results. On long text, disemvoweling still makes most languages legible, which ellipszing does not. However, it is possible that on short text (e.g. plugin names), the results are not the same. |
@x42, If we talk about this enum https://docs.gtk.org/Pango/enum.EllipsizeMode.html, I think we are not talking about the same thing. EllipsizeMode only removes the start, the middle or the end of the string. The For me, the biggest problem remain the fact narrow strips limits the strip name to 5 characters (https://tracker.ardour.org/view.php?id=6610). I try since few days a build with this limit set to 10, and I have never seen any truncated name. It probably depends on the font though, but I think this limit could be set to 8 without any risk. |
The vowel and consonant lists are translatable and can be any size. |
Too many characters, too much work to try to cover many latin languages. example: https://altcodeunicode.com/alt-codes-all-latin-vowel-consonant-letters-with-accents-diacritical-marks/ |
The idea would be, e.g. that the French translation includes tfrnaslations for the vowel list, and the Hungarian translation also, with its own list. There's no need or reason for a unviersal list. |
something like this ?
|
we localize strings in ardour with gettext, which means the _() macro hence _("aeiou") is localizable. no other verbiage necessary. |
Replaces #971.
short_version
is used in narrow strips to limit the number of letters of strip names or plugin names. Reading its code, something jumped out at me and explain why many times there is nearly no link between the original name and the short name.This function removes characters until the desired limit is reached.
Originally, It removes characters in this order :
In this PR, it removes characters in this order:
Upper case has priority over lower case ! It explain why
ACE Reasonable Synth
gave in 5 charactersCRsnS
(no link with original, instead ofACRsS
, not perfect but better). It allows to use CamelCase and have at least the first letter of each word.Note that "Y" is considered as a consonant, "S" is never removed, I did not change that.