Implement accessibility.pluralize for Finnish - #105
Conversation
…f the function This might avoid unnecessary allocations. Not sure how Typst handles this internally.
|
The second commit moves dictionary definitions out of the |
|
@Mc-Zen This might be in a usable state now. Let me know if there is something missing, although I cannot promise I can work on this after the next 30--40 minutes is gone. |
hpcfzl
left a comment
There was a problem hiding this comment.
These entries sure add to the overall length, just as a suggestion have you thought about combining str.slice and the ssa/ssä suffixes as needed?
|
Yes, deriving the denominator unit versions from the plural versions could be done with a simple rule. However, I have a different problem with the denominator versions: As I understand, they also replace the I can deal with this implementation but I have one question for @SeSodesa : what happens if multiple units are in the denominator? Like V/(m s), would that be voltti metrissä sekunnissa or does it get more complicated? If it gets more complicated, I would vote for the more generic version withthe per phrase. |
This is a continuation of #88. The first commit implements pluralize but is there something else that needs to get done?