The MWE shown below, the text in the nodes of the Tikz picture apears outside of the node, the nodes are drawn correctly yet the text in them is outside, how can I fix this issue? Also, some times the letters are output in reverse order. How can I fix such issues?
\documentclass[a4paper,12pt,twoside]{book}
\usepackage[a4paper,top=2.5cm,bottom=2.5cm,margin=2.5cm,bindingoffset=0.5cm]{geometry}
\usepackage{pdflscape}
\usepackage[hidelinks,colorlinks=true,breaklinks,allcolors=blue]{hyperref}
\usepackage{tikz}
\usetikzlibrary{tikzmark,arrows.meta,arrows,positioning,matrix,quotes, shapes.geometric,calc,decorations.pathreplacing}
\usepackage[edges]{forest}
\begin{filecontents}{babel-cop.ini}
[identification]
charset = utf8
version = 0.1
date = 2019-08-25
name.local = ϯⲙⲉⲧⲣⲉⲙⲛ̀ⲭⲏⲙⲓ
name.english = Coptic
name.babel = coptic
tag.bcp47 = cop
tag.opentype = COP
script.name = Coptic
script.tag.bcp47 = Copt
script.tag.opentype = copt
level = 1
encodings =
derivate = no
[captions]
[date.gregorian]
[date.islamic]
[time.gregorian]
[typography]
[characters]
[numbers]
[counters]
\end{filecontents}
\usepackage[bidi=basic,layout=lists.tabular]{babel}
\babelprovide[import=ar,mapdigits,main]{arabic}
\babelprovide[import=en,language=Default]{english}
\babelprovide[import=el]{polutonikogreek}
\babelprovide[import=cop]{coptic}
\babelfont{rm}{Latin Modern Roman}
\babelfont[arabic]{rm}{amiri}
\babelfont[english]{rm}{Times New Roman}
\babelfont[polutonikogreek]{rm}[Language=Default]{Palatino Linotype}
\babelfont[coptic]{rm}[Language=Default]{FreeSerifAvvaShenouda}
\usepackage{booktabs}
\usepackage{makecell}
\usepackage{boldline}
\usepackage{fancyhdr}
\usepackage[normalem]{ulem}
\begin{document}
\newgeometry{landscape,margin=2.5cm}
\pagewidth = \paperwidth
\pageheight = \paperheight
\fancyheadoffset[lh]{0pt}%
%begin Flow chart
%%%%%%%%%%%%%%%%%%%%%%%%%%%Block definition%%%%%%%%%%%%%%%
%start and stop blocks.
\tikzset{startstop/.style={circle, minimum width=1.5cm, minimum height=1cm,text centered, draw=black, fill=black}}
\tikzset{io/.style={trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=1.5cm, minimum height=1cm, text centered, draw=black, none}}
\tikzset{process/.style={rectangle, minimum width=1.5cm, minimum height=1cm, text centered,draw=black, fill=none}}
\tikzset{emph/.style={rectangle, minimum width=1.5cm, minimum height=1cm, text centered, draw=black, fill=none}}
\tikzset{decision/.style={diamond, minimum width=1.5cm, minimum height=1cm, text centered, draw=black, fill=none}}
\tikzset{arrow/.style={thick,->,>=stealth}}
\tikzset{line/.style={thick}}
%%%%%%%%%%%%%%%%Building the flow chart%%%%%%%%%%%%%%%%%
\begin{tikzpicture}[node distance=0.5cm,auto]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\node (start) [startstop] {};
%%%%%%%%%%%%%%%%325%%%%%%%%%%%%%%%%%%%
\node (325) [process, left = of start,text width=2cm,align={center}]{ذهب الولد};
\node (325-emph) [process, below = of 325, dashed,text width=2cm]
{\textbf{جاء الإنسان}
لم ينام
\uline{سعيد}
\foreignlanguage{polutonikogreek}{δφσδφδσ}
};
%%%%%%%%%%%%%%%%325%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%arrows%%%%%%%%%%%%%%%%%%%
\draw [arrow] (start) -- (325);
\draw [line,dashed] (325) -- (325-emph);
%\draw [arrow] (325) -- (381);
\end{tikzpicture}
%\end{sidewaysfigure}
%\end{landscape}
\clearpage
\restoregeometry
\pagewidth = \paperwidth
\pageheight = \paperheight
\fancyheadoffset[lh]{0pt}%


\tikzstyleis deprecated. It would be great if you could replace those with the corresponding\tikzsetsyntax. – Apr 22 '20 at 17:45babelare not supposed to need\foreignlanguagecommands to detect a RTL script, but does adding them solve the issue? – Davislor May 11 '20 at 18:50