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

Commands for capitalizing first letter #48

Open
vmichals opened this issue Jul 21, 2024 · 1 comment
Open

Commands for capitalizing first letter #48

vmichals opened this issue Jul 21, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@vmichals
Copy link

Thank you for this cool package.

I have a feature request:
The latex glossaries package has the commands \Gls and \Glspl that capitalize the first letter, which is very useful if an entry is used at the beginning of a sentence. Would it be possible to add corresponding functions in glossarium?

I tried to write a function that calls gls() and modifies the first letter, but couldn't figure out how to access the string in the returned content object. AFAIK, Typst doesn't offer a built-in function like upper() that only capitalizes the first letter.

@slashformotion
Copy link
Collaborator

I tried adding the "title" method to strings to implement this exact behavior (see typst/typst#1809).

I will look at this a second time and try to get it merged.

@quachpas quachpas added enhancement New feature or request good first issue Good for newcomers labels Oct 1, 2024
@quachpas quachpas added this to the 0.5.0 milestone Oct 1, 2024
@quachpas quachpas self-assigned this Oct 6, 2024
@quachpas quachpas removed this from the 0.5.0 milestone Oct 8, 2024
@quachpas quachpas modified the milestones: 0.5.1, 0.6.0 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants