-
Notifications
You must be signed in to change notification settings - Fork 5
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
Shortened titles #401
base: master
Are you sure you want to change the base?
Shortened titles #401
Conversation
Added shortening of titles based on OED abbreviations Added ellispsis-based truncation Truncation currently removes ability to break text at word boundaries (haven't found a way to resolve this).
Can now specify abbreviations that won't be abbreviated by a '.' No longer using line-clamp Fixed ascender text peaking in classes w/ >4 lines
Shortened titles now only appear when the longer title would be truncated Uses modified version of vue-line-clamp based on https://github.com/AndyDyer/vue-line-clamp/tree/add-options-change-fallback-logic
Fixes #401 |
src/utils/abbreviations.js
Outdated
'management': 'managem', | ||
'studies': 'stud', | ||
'biology': 'bio', | ||
'analysis': 'anal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably don't want this one
src/utils/abbreviations.js
Outdated
'advanced': 'adv', | ||
'research': 'res', | ||
'technology': 'tech', | ||
'management': 'managem', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe mgmt even? not sure how standard that is
'and': nonAbbreviator + '&', | ||
'i': nonAbbreviator + '1', | ||
'ii': nonAbbreviator + '2', | ||
'iii': nonAbbreviator + '3', | ||
'iv': nonAbbreviator + '4', | ||
'v': nonAbbreviator + '5', | ||
'vi': nonAbbreviator + '6', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this nonabbreviator thing? does that mean v
will become |5
?
'certificate': 'certif', | ||
'exercise': 'exerc', | ||
'physiological': 'physiol', | ||
'company': 'comp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be confused with computer
Changed/removed some abbreviations Fixed linter errors in vue-line-clamp.js
…into shortened-titles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall! Just some small changes in the comments. One other thing to consider is that maybe some people would want to turn this off. We don't necessarily need to add this now, but would it be easy to make this a setting in the future?
It may be a good idea to use the standard abbreviations for transcripts given by the Registrar's Office. |
0f59bcf
to
eb71773
Compare
nonAbbreviator
to an abbreviation to have it not followed by a'.'
in shortened titlesSet the
Class
component'suseShortenedTitle
totrue
in order to have all classes display shortened titles, even if they aren't truncatedI don't have the full list of words in class names that are missing abbreviations because my MacBook's battery died. When I get access to the files again, I will post them.