GeneralLanguages Supported by Latex

LaTeX specific issues not fitting into one of the other forums of this category.
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Re: Languages Supported by Latex

Post by s.david »

I did as you told me, but no output file is generated. There was a kind of error, but I didn't undrerstand what it is. I attached the running command prompt window.

Regarding the arabic text, yes it seems encrypted. I don't know, may be it is encoding issue. By the way, the same is applied on the arabic text in the simple test.tex file you wrote.

Regards
Attachments
Test.JPG
Test.JPG (64.24 KiB) Viewed 4394 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Languages Supported by Latex

Post by meho_r »

You should replace "Scheherazade" font with an arabic font that you have installed on your system, or, better, you may download Scheherazade font from this link. Just extract it from .zip archive and put the font in your Fonts folder (C:\Windows\Fonts). After that, try compiling the document again.

As for cryptic arabic text, it may be encoding issue. If you have problems, try entering couple of arabic sentences in place of cryptic characters.
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Languages Supported by Latex

Post by s.david »

meho_r wrote:You should replace "Scheherazade" font with an arabic font that you have installed on your system, or, better, you may download Scheherazade font from this link. Just extract it from .zip archive and put the font in your Fonts folder (C:\Windows\Fonts). After that, try compiling the document again.

As for cryptic arabic text, it may be encoding issue. If you have problems, try entering couple of arabic sentences in place of cryptic characters.
Sorry for the inconvenience, but I still get errors. Now the error related to the \documentclass:
Attachments
Test2.JPG
Test2.JPG (50.92 KiB) Viewed 4392 times
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Re: Languages Supported by Latex

Post by s.david »

Ok, when I tried xelatex instead of xetex it works. But I have two problems then:

1- I just have a PDF file as the only output file. I mean, I also need a dvi an PS files.

2- When I write Arabic by using my keyboard, it appears some thing different, some letters with boxes or some thing like this. Why? While your text, which doesn't appear Arabic to me, compiled as complete Arabic sentences.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Languages Supported by Latex

Post by meho_r »

s.david wrote:Ok, when I tried xelatex instead of xetex it works. But I have two problems then:

1- I just have a PDF file as the only output file. I mean, I also need a dvi an PS files.

2- When I write Arabic by using my keyboard, it appears some thing different, some letters with boxes or some thing like this. Why? While your text, which doesn't appear Arabic to me, compiled as complete Arabic sentences.
1. This is problematic. XeTeX output is only .pdf document. You may try with some conversion from .pdf but I cannot guarantee it'll work well.

2. This is because of encoding. I used utf8 encoding (which is used by Xe(La)TeX) while you probably are using another.

Maybe Xe(La)TeX isn't the best solution for you after all. For using arabic with LaTeX (not XeTeX) basically you have two options: to use ArabTeX or Arabi packages. You may start with Arabi, read its documentation and test if it works for you.

I think that LaTeX actually calls Arabi package automatically. In your first code problematic part is

Code: Select all

\\\selectlanguage{arabic}

Try separating \selectlanguage{arabic} from previous latin text to get proper text orientation, so that your code looks like this:

Code: Select all

\documentclass[a4paper,12pt,openany,oneside]{memoir}
\usepackage[arabic,english]{babel}
\begin{document}
\noindent Hello, how are you?\\
Hello, I am fine. Thank you % Manual break removed and \selectlanguage put in a new paragraph

\selectlanguage{arabic} ÇáÞæá ÇáãÃ辄 ÈÃä ÇáÎØÃ ÇáãÔåæÑ ÎíÑ ãä ÇáÕæÇÈ ÇáãåÌæÑ
\end{document}
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Re: Languages Supported by Latex

Post by s.david »

I will try. Thank you anyway.

Best regards
Post Reply