Bug 401761

Summary: KBibTex changes LaTeX accents
Product: [Applications] KBibTeX Reporter: Mathieu <mathieu.lewin>
Component: Loading/saving filesAssignee: Thomas Fischer <fischer>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: NOR    
Version First Reported In: 0.8.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mathieu 2018-12-05 09:23:00 UTC
When saving the bib file, KBibTeX changes all the LaTeX accents (e.g. {\'e}) into characters with accents (e.g. é), which can generate some later problems of compatibility. This is not what we want. LaTeX commands should not be changed.

Observed in version 0.8.1

Example: after saving the following bibitem

@Article{Lojasiewicz-93,
  Title                    = {Sur la g{\'e}om{\'e}trie semi- et sous-analytique},
  Author                   = {{\L}ojasiewicz, Stanislaw},
  Journal                  = {Ann. Inst. Fourier (Grenoble)},
  Year                     = {1993},
  Number                   = {5},
  Pages                    = {1575--1595},
  Volume                   = {43}
}

has been changed into

@article{Lojasiewicz-93,
	author = {Łojasiewicz, Stanislaw},
	journal = {Ann. Inst. Fourier (Grenoble)},
	number = {5},
	pages = {1575–1595},
	title = {Sur la géométrie semi- et sous-analytique},
	volume = {43},
	year = {1993}
}
Comment 1 Thomas Fischer 2018-12-06 08:49:05 UTC
KBibTeX supports saving BibTeX text either in some character encoding like UTF-8 or in 'LaTeX encoding' which writes out, for example, {\'e}. For files opened, KBibTeX will try to detect and remember the encoding, but you can set the encoding manually later or during a Save As operation, too.

As the 'LaTeX encoding' is the default in various situations, I am wondering if you do something else to switch away from this default?

(In reply to Mathieu from comment #0)
> When saving the bib file, KBibTeX changes all the LaTeX accents (e.g. {\'e})
> into characters with accents (e.g. é), which can generate some later
> problems of compatibility. This is not what we want. LaTeX commands should
> not be changed.
> 
> Observed in version 0.8.1
> 
> Example: after saving the following bibitem
Comment 2 Bug Janitor Service 2018-12-21 03:44:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2019-01-05 03:44:36 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!