sile-typesetter / sile

The SILE Typesetter — Simon’s Improved Layout Engine
https://sile-typesetter.org
MIT License
1.67k stars 99 forks source link

Scope parindent setting to language #2154

Open alerque opened 3 weeks ago

alerque commented 3 weeks ago

The more relevant point is that there are a handful of languages that specifically eschew this: French being a notable one. I think the correct approach here will be to make this behavior have a per-language default. That isn't easy to do right no because of the chaotic overlap in scopes for the language modules, but I'm actually refactoring that right now and am hopeful we'll have a better place to "hang this hat" soon. I'll leave this PR around as a reminder of the issue and we'll update it to to the right thing when there is a sensible way to do so.

Originally posted by @alerque in https://github.com/sile-typesetter/sile/pull/1991#pullrequestreview-1864740830

The PR where this came up is closed, but this still needs to be addressed. When we get the option to actually handle settings per-language this should be one that is.