Skip to content

Add ordinal ª and º indicators#178

Open
sdalmonte wants to merge 4 commits into
typst:mainfrom
sdalmonte:ordinal
Open

Add ordinal ª and º indicators#178
sdalmonte wants to merge 4 commits into
typst:mainfrom
sdalmonte:ordinal

Conversation

@sdalmonte

Copy link
Copy Markdown

This pull request adds the ordinal indicators ª and º.

character Unicode value symbol
ª U+00AA FEMININE ORDINAL INDICATOR ordinal.a
º U+00BA MASCULINE ORDINAL INDICATOR ordinal.o

@MDLC01 MDLC01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, those characters are documented in the Unicode Core Specification.1 Notably, they do not seem to be included for compatibility reasons, which motivates their addition to Codex.

Footnotes

  1. https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-7/#G6207

Comment thread src/modules/sym.txt Outdated
@MDLC01 MDLC01 added the waiting on reviews Breaking and non-breaking changes need respectively 3 and 2 reviews label Jul 6, 2026
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
@MDLC01

MDLC01 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

You will also need to update the changelog in CHANGELOG.md

@MDLC01 MDLC01 removed the waiting on reviews Breaking and non-breaking changes need respectively 3 and 2 reviews label Jul 7, 2026
@MDLC01

MDLC01 commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

We are trying a new way to keep track of changes by maintaining the changelog in a separate shared document (https://typst.app/project/r2ChBGT9XWBoEhAKGM6icb). Feel free to drop the update to the changelog from this PR to prevent any further conflict.

@Enivex

Enivex commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Would it make more sense to call them ordinal.f and ordinal.m? For reference, the names in HTML are &ordf; and &ordm;, they are \textordfeminine and \textordmasculine in latex, and the unicode names also use feminine/masculine. I don't see a particularly good reason for typst to go against the grain here.

@MDLC01

MDLC01 commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

One of the advantages of using .a and .o is that it is more future-proof in case one day Unicode adds ordinal indicators for other languages that use different letters. For this reason, I am in favor of keeping .a and .o.

If we go for a more semantic name, I would be in favor of longer modifiers, such as .fem and .masc, if not .feminine and .masculine. For comparison, we already use similarly long modifiers, e.g., gender.female.

@Enivex

Enivex commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

One of the advantages of using .a and .o is that it is more future-proof in case one day Unicode adds ordinal indicators for other languages that use different letters. For this reason, I am in favor of keeping .a and .o.

I'm not sure I buy that argument. They could equally well add ordinal symbols that visually look the same, but carry different semantic information.

If we go for a more semantic name, I would be in favor of longer modifiers, such as .fem and .masc, if not .feminine and .masculine. For comparison, we already use similarly long modifiers, e.g., gender.female.

I don't think fem and masc would be very consistent with other naming, so in that case I'd prefer the full name

@MDLC01

MDLC01 commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Then maybe we can have a consensus on .feminine and .masculine?

@MDLC01 MDLC01 added the waiting on reviews Breaking and non-breaking changes need respectively 3 and 2 reviews label Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting on reviews Breaking and non-breaking changes need respectively 3 and 2 reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants