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

Internationalization of Title Case / Sentence Case formatter #9144

Open
calixtus opened this issue Sep 7, 2022 · 6 comments
Open

Internationalization of Title Case / Sentence Case formatter #9144

calixtus opened this issue Sep 7, 2022 · 6 comments

Comments

@calixtus
Copy link
Member

calixtus commented Sep 7, 2022

When looking into #9142 , i saw that we currently only support english words for title case and sentence case formatters, like and or to. JabRef wont look for words in other languages like german ('und', 'zu') or french ('et', 'pour'), that should not be written capitalized in a title.

Should also work if JabRef is displayed in another language, E.g. JabRef is displayed in german, but is formatting an english title.

One would also have to find out, which languages know that concept of title case formatting.

@sreenath-tm
Copy link
Contributor

As you mentioned the case handling is done only for english so if we support multiple language we might just need to add the extra words to our fields that we have labelled as smaller words or conjunctions. If we get the entire possible words for each of the categories Articles,Propositions and Conjunction for the supported languages ,we can add that also.

If anyone can help in identifying what all words are there for each particular classification for all the supported language we can add that

@mlep
Copy link
Contributor

mlep commented Sep 7, 2022

If we want to support case changes for multiple languages, we need to identify first the language of the string first.
There seems to be libraries dedicated to this, such as https://github.com/shuyo/language-detection .
And we could ask the people working on the localization of JabRef to provide the "small words".

@Siedlerchr
Copy link
Member

I think this is too broad for the moment. Bibtex does not support multiple languages. That is only possible in biblatex.

@mlep
Copy link
Contributor

mlep commented Sep 7, 2022

I agree for the "too broad for the moment".
However, if you provide the right casing (and a BibTeX style that does not alter it), BibTeX is ok with it, whatever the language of the string.

@sreenath-tm
Copy link
Contributor

I feel the solution now would work for all the languages irrespective of having an explicit language detector. We might just need to handle them the same way we do for English and we can use the same fields having the extra articles,propositions and conjunctions for the respective languages.

@delkc
Copy link

delkc commented Aug 16, 2023

This just got shared with me. Not sure if this issue is still in use, but it's best if we always use sentence case for page/section headers anyway.

Lattice content standards call for sentence case throughout, except for proper names/brand names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants