Bug 403793 - error in saving unicode-8
Summary: error in saving unicode-8
Status: RESOLVED FIXED
Alias: None
Product: KBibTeX
Classification: Applications
Component: Loading/saving files (show other bugs)
Version: 0.8.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-31 07:30 UTC by mb.schiekel
Modified: 2019-03-16 19:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.9
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mb.schiekel 2019-01-31 07:30:18 UTC
SUMMARY
error in saving unicode-8

STEPS TO REPRODUCE
1. input autor: R{\r{u}}{\v{z}}i{\v{c}}ka ;
2. kbibtex changes this in Růžička - right ;
3. save the bibfile and find:
   author = "R{\r u}{\zcaron}i{\v c}ka"
4. latex stops with error

OBSERVED RESULT
   author = "R{\r u}{\zcaron}i{\v c}ka"

EXPECTED RESULT
autor: "R{\r{u}}{\v{z}}i{\v{c}}ka" ;

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: opensuse Leap 15.0
(available in About System)
KDE Plasma Version: 5.12.6
KDE Frameworks Version: 5.45.0
Qt Version: 5.9.4

ADDITIONAL INFORMATION
Comment 1 Thomas Fischer 2019-03-16 19:20:17 UTC
I tried to reproduce this problem, but for me there is no problem. Both bibtex and biblatex/biber work and I get a PDF with the name spelled correctly.

LaTeX file for use with BibTeX:
\documentclass{article}
\begin{document}
\nocite{*}
\bibliographystyle{plain}
\bibliography{bug403793-ruzicka}
\end{document}

LaTeX file for use with Biber/BibLaTeX:
\documentclass{article}
\usepackage[backend=biber,style=apa]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{bug403793-ruzicka.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}


Used .bib file as saved with KBibTeX:
@article{bug403793,
	author = {A. R{\r u}{\v z}i{\v c}ka},
	month = jan,
	title = {{Testing UTF-8-to-LaTeX Translation}},
	year = {2019}
}

Invocation of pdfLaTeX and BibTeX:
rm -f bug403793-*blg bug403793-*bbl bug403793-*aux bug403793-*run.xml bug403793-*bcf bug403793-*log ; pdflatex -halt-on-error bug403793-ruzicka-bibtex && bibtex bug403793-ruzicka-bibtex && pdflatex -halt-on-error bug403793-ruzicka-bibtex && pdflatex -halt-on-error bug403793-ruzicka-bibtex

Invocation of pdfLaTeX and BibLaTeX/Biber:
rm -f bug403793-*blg bug403793-*bbl bug403793-*aux bug403793-*run.xml bug403793-*bcf bug403793-*log ; pdflatex -halt-on-error bug403793-ruzicka-biblatex.tex && biber bug403793-ruzicka-biblatex && pdflatex -halt-on-error bug403793-ruzicka-biblatex.tex && pdflatex -halt-on-error bug403793-ruzicka-biblatex.tex
Comment 2 Thomas Fischer 2019-03-16 19:35:50 UTC
I noticed that your bug report mentioned version 0.8.2 whereas my test was on the latest development version. Due to a re-write, the bug should not exist in 0.9 and any later version, including the master branch.

Please test it yourself. Use the quick start to run KBibTeX [1] with the following command:
bash run-kbibtex.sh "https://anongit.kde.org/kbibtex.git" "kbibtex/0.9"

[1] https://userbase.kde.org/KBibTeX/Development#Quick_Start_to_Run_KBibTeX_from_Git