I have a .bib bibliography that has some entries completely in English and some completely in Hebrew.
I'd like to display the bibliography items so that the Hebrew items are justified right-to-left and the English items left-to-right. The bibliography should all be under one title ("Bibliography" or "References"), then all the Hebrew items, then all the English items.
I've tried many things but could not get anything to work. I am using LyX, so I prefer a solution using pdflatex and bibtex, but biber with biblatex might also be okay.
MWE
In this MWE both files (.tex and .bib) are CP1255-encoded; the same result occurs with UTF8-encoding, but with UTF8, I need to \DeclareUnicodeCharacter all the Hebrew characters or it won't compile...
mwe.bib
@article{EnglishExample,
title={Example},
author={John McAuthor},
year={2016},
journal={American Journal of Examples}
}
@article{HebrewExample,
title={דוגמה},
author={מחבר},
year={2016},
journal={כתב העת הישראלי לדוגמאות}
}
mwe.tex
\documentclass[oneside,hebrew,english]{book}
\usepackage[T1]{fontenc}
\usepackage[cp1255,latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\usepackage{apacite}
\makeatother
\usepackage{babel}
\begin{document}
\inputencoding{cp1255}%
\inputencoding{latin9}test \inputencoding{cp1255}\R{בדיקה}
\inputencoding{latin9}\bibliographystyle{apacite}
\nocite{*}
\bibliography{mwe}
\end{document}
In this example, the "test" in the document itself renders fine:
However, the bibliography looks like this:
I want it to look like this (excuse the inconsistent styling - I made this with MS Word...):



