\makeatletter
\newcommandx{\newgloss}[5][3, 5]{\@ifempty{#3}{\newglossaryentry{#1} {name={#2},description=\lr{#4}}} {\newglossaryentry{#1}{name={#2},description=\lr{#4},sort=#3}}
\@ifempty{#5}{\newglossaryentry{ep#1}{type=dicep,name={#4},description=\rl{#2}}} {\newglossaryentry{ep#1}{type=dicep,name={#4},description=\rl{#2},sort=#5}}}
%
\makeatother
%

%\newgloss{g:wg}{گراف~وزن‌دار}{weighted graph}

%\newglossaryentry{اسکالر}{name=اسکالر, description={\lr{Scalar}}}
%\newglossaryentry{نقطه ثابت}{name=نقطه ثابت, description={\lr{Fixed point}}}

%
%\newglossaryentry{گروه}{name=گروه,
%description={\lr{Group} }}
%\newglossaryentry{چنبره}{name=چنبره,
%description={\lr{Torus} }}
%\newglossaryentry{پردازشگر}{name=پردازشگر,
%description={\lr{Processor} }}
%\newglossaryentry{کلاف}{name=کلاف,
%description={\lr{Bundle} }}
%\newglossaryentry{شما}{name=شما,
%description={\lr{Scheme} }}
%\newglossaryentry{رایانه}{name=رایانه,
%description={\lr{Computer} }}
%\newglossaryentry{موسیقی}{name=موسیقی,
%description={\lr{Music} }}
%\newglossaryentry{شعر}{name=شعر,
%description={\lr{Poem} }}
%\newglossaryentry{زی‌پرشین}{name=زی‌پرشین,
%description={\lr{\XePersian} }}
%\newglossaryentry{واژه‌نامه}{name=واژه‌نامه,
%description={\lr{Glossary} }}
%\newglossaryentry{آنتن}{name=آنتن,
%description={\lr{Antenna} }}

\newgloss{g:bestproximity point}{بهترین نقطه مجاور}{Best proximity point}
\newgloss{g:cyclicmapping}{نگاشت دوری}{Cyclic mapping}
\newgloss{g:kannanmapping}{نگاشت کنن}{Kannan mapping}
\newgloss{g:orbital}{مدار}{Orbital}
\newgloss{g:$c$-nonexpansive mapping}{نگاشت $c$-نامبسوط}{$C$-nonexpansive mapping}
\newgloss{g:hadamardspace}{فضای آدامارد}{Hadamard space}
\newgloss{g:geodesicmetricspace}{فضای متریک ژئودزیک}{Geodesic metric space}
\newgloss{g:convex}{محدب}{Convex}
\newgloss{g:strictlyconvex}{اکیداء محدب}{Strictly convex}
\newgloss{g:seminormalstructure}{ساختار نیمه نرمال }{Seminormal structure}
\newgloss{g:contractionmapping}{نگاشت انقباضی}{Contraction mapping}
\newgloss{g:weaklycompact}{فشرده ضعیف}{Weakly compact}
\newgloss{g:fixpoint}{نقطه ثابت}{Fix point}
\newgloss{g:uniformlyconvex}{به طور یکنواخت محدب}{Uniformly convex}
\newgloss{g:property$UC$}{خاصیت$UC$}{Property$UC$}
\newgloss{g:reflexivespace}{فضای بازتابی}{Reflexive space}
\newgloss{g:hull}{غلاف}{Hull}
\newgloss{g:minimalset}{مجموعه مینیمال}{Minimal set}
\newgloss{g:$T$-invariantpair}{زوج$T$ ثابت}{$T$-invariant pair}
\newgloss{g:bounded}{کراندار}{Bounded}
\newgloss{g:nonempty}{ناتهی}{Nonempty}
\newgloss{g:proximalpair}{زوج مبدأیی}{Proximal pair}
\newgloss{g:diameter}{قطر}{Diameter}
\newgloss{g:convexmetricspace}{فضای متریک محدب}{Convex metric space}
\newgloss{g:banachspace}{فضای باناخ}{Banach space}
\newgloss{g:proximalcompactness}{فشردگی مبدأیی}{Proximal compactness}
\newgloss{g:minimalelement}{عضو مینیمال}{Minimal element}
\newgloss{g:distance}{فاصله}{Distance}
\newgloss{g:closed}{بسته}{Closed}
\newgloss{g:descendingchain}{زنجیر نزولی}{Descending chain}
\newgloss{g:generalizedmetricspace}{تور}{Generalized metric space}
\newgloss{g:continuous}{پیوسته}{Continuous}
\newgloss{g:diametralpoint}{نقطه قطری}{Diametralpoint}
\newgloss{g:nondiametralpoint}{نقطه غیر قطری}{Nondiametral point}
%\newgloss{g:convexhull}{غلاف~محدب}{Convex hull}
%\newgloss{g:undecreasing}{غیرنزولی}{Undecreasing}
%\newgloss{g:discreate}{گسسته}{Discreate}
%\newgloss{g:unitball}{گوی واحد}{Unit ball}
%\newgloss{g:euclideanmetric}{متریک اقلیدسی}{Euclidean metric}
%\newgloss{g:hausdorffmetric}{متریک هاسدورف}{Hausdorff metric}
%\newgloss{g:convex}{محدب}{Convex}
%\newgloss{g:equilibriumproblem}{مسئله~تعادلی}{Equilibrium problem}
%\newgloss{g:character}{مشخصه}{Character}
%\newgloss{g:locallyconvex}{موضعا~محدب}{Locally convex}
%\newgloss{g:nonempty}{ناتهی}{Nonempty}
%\newgloss{g:uncountable}{ناشمارا}{Uncountable}
%\newgloss{g:nonexpansive}{نامبسوط}{Nonexpansive}
%\newgloss{g:decreasing}{نزولی}{Decreasing}
%\newgloss{g:contractionmap}{نگاشت~انقباضی}{Contraction map}
%\newgloss{g:multivaluedmapping}{نگاشت~چندمقداری}{Multi-valued mapping}
%\newgloss{g:uppersemicontinuous}{نیم‌پیوسته~بالایی}{Upper semicontinuous}
%\newgloss{g:lowersemicontinuous}{نیم‌پیوسته~پایینی}{Lower semicontinuous}
%\newgloss{g:convergent}{همــگرا}{Convergent}
%\newgloss{g:uniform}{یکنواخت}{Uniform}
%\newgloss{g:unit}{یکه؛ واحد}{Unit}
%\newgloss{g:logic}{منطق}{Logic}
%\newgloss{g:fuzzy}{فازی}{Fuzzy}
%\newgloss{g:fuzzylogic}{منطق~فازی}{Fuzzy logic}
%\newgloss{g:philosophy}{فلسفه}{Philosophy}
%\newgloss{g:cognitivesciences}{علوم~شناختی}{Cognitive sciences}
%\newgloss{g:uncertaintyprinciple}{اصل~عدم~قطعیت}{Uncertainty principle}
%\newgloss{g:vaguelogic}{منطق~مبهم}{Vague logic}
%\newgloss{g:TwoValuedLogics}{منطق~دوارزشی}{Two-Valued Logics}
%\newgloss{g:multiplevaluedlogics}{منطق~چندارزشی}{Multiple-Valued Logics}
%\newgloss{g:intuitionisticfuzzymetric}{متریك~فازی~شهودی}{Intuitionistic fuzzy metric}
%\newgloss{g:degreeofnearness}{درجه~نزدیکی}{Degree of nearness}
%\newgloss{g:degreeofnonnearness}{درجه~دوری}{Degree of non-nearness}
%\newgloss{چندتابعی‌ها}{چندتابعی‌ها}{Multifunction}
%\newgloss{فاصله هاسدورف}{فاصله~هاسدورف}{Hausdorff metric}
%\newgloss{فضای منجر}{فضای~منجر}{Menger space}
%\newgloss{gi:fuzzytheory}{نظریه~فازی}{Fuzzy theory}
%\newgloss{gi:fixedpointtheory}{نظریه~نقطه~ثابت}{Fixed point theory}
%\newgloss{gi:unitball}{گوی~واحد}{Unit ball}
%\newgloss{gi:selfmap}{خودنگاشت}{Self-map}
%\newgloss{gi:tnorm}{$t$-نــرم}{$t$-norm}
%\newgloss{gi:tconorm}{$t$-هم‌نرم}{$t$-conorm}
%\newgloss{gi:additionaldegree}{درجه~جمع}{Additional degree}
%\newgloss{gi:nonmembershipdegree}{عدم~عضویت}{Nonmembership degree}
%\newgloss{gi:Hesitation degree}{درجه~دودلی}{Hesitation degree}
%\newgloss{gi:intuitionisticindex}{شاخص~شهودی}{Intuitionistic index}
%\newgloss{gi:intuitionisticfuzzymetricspace}{فضای~متریك~فازی~شهودی}{Intuitionistic Fuzzy Metric Space}
%\newgloss{gi:open}{باز}{Open}
%\newgloss{gi:hausdorff}{هاسدورف}{Hausdorff}
%\newgloss{gi:triangular}{مثلثی}{Triangular}
%\newgloss{gi:Greenfunction}{تابع~گرین}{Green function}
%\newgloss{gi:fuzzymathematics}{ریاضیات~فازی}{Fuzzy mathematics}
%\newgloss{gi:constantcontraction}{ثابت~انقباض}{Constant contraction}
%\newgloss{gi:fuzzycontraction}{انقباض~فازی}{Fuzzy contraction}
%\newgloss{gi:orbitallycontinuous}{پیوسته~دوره‌ای}{Orbitally continuous}
%\newgloss{gi:propertyp}{خاصیت~$(P)$}{Property $(P)$}
%\newgloss{gi:etasubadmissible}{$\eta$-زیرپذیرفتنی}{$\eta$-subadmissible}
%\newgloss{gi:alphaetacontinuous}{$\alpha^\bigstar$-$\eta^\bigstar$-پیوسته}{$\alpha^\bigstar$-$\eta^\bigstar$-continuous}
%\newgloss{gi:alphacontinuous}{$\alpha^\bigstar$-پیوسته}{$\alpha^\bigstar$-continuous}
%\newgloss{gi:etacontinuous}{$\eta^\bigstar$-پیوسته}{$\eta^\bigstar$-continuous}


%\newgloss{g:wg}{گراف~وزن‌دار}{weighted graph}