teTex on the LN server

Started by Toruk Makto, September 30, 2013, 05:51:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Toruk Makto

#40
My problem with this right now is that this is my busy season. I will not have much time for testing or upgrading until after the first of the year.

Lì'fyari leNa'vi 'Rrtamì, vay set 'almong a fra'u zera'u ta ngrrpongu
Na'vi Dictionary: http://files.learnnavi.org/dicts/NaviDictionary.pdf

baritone

I have alredy compiled the russian dictionary with xelatex for testing, and I ready to compile what you want. And I have got the clean Gentoo desktop to install texlive with its own installer.

Tuiq

LN.org isn't using a Linux distro though, I think it's FreeBSD (or OpenBSD) - so things are likely (quite) differently.
Eana Eltu: PDF/TSV/jMemorize

`Eylan Ayfalulukanä

I'm ready with Fedora Linux. I installed the whole TeX package, so I am assuming all the bits are there.

FreeBSD is different, but how different, I am not sure. I know Linux aims to be POSIX compliant, and it wouldn't surprise me if FreeBSD is the same.

Yawey ngahu!
pamrel si ro [email protected]

baritone

Quote from: `Eylan Ayfalulukanä on November 13, 2013, 02:45:44 PM
I'm ready with Fedora Linux. I installed the whole TeX package, so I am assuming all the bits are there.

FreeBSD is different, but how different, I am not sure. I know Linux aims to be POSIX compliant, and it wouldn't surprise me if FreeBSD is the same.
I think so that if the differences of the TexLive work on Windows and POSIX systems may be differ (because of the different font systems and so on, for example), but on POSIX systems all that staff  must work quite the same way. But even if there are differences (which is doubtful), I have an old 40 GB hard drive, which can be used to install FreeBSD and TexLive.

Tuiq

I have access to vmware, a computer that can easily run it and all the dictionary tools. Tell me how to install stuff and I'll do it.

I had a little bit of trouble to find the proper distribution though. Perhaps an update to a less legacy one couldn't hurt..?
Eana Eltu: PDF/TSV/jMemorize

baritone

Quote from: Tuiq on November 14, 2013, 08:05:16 AM
I have access to vmware, a computer that can easily run it and all the dictionary tools. Tell me how to install stuff and I'll do it.

I had a little bit of trouble to find the proper distribution though. Perhaps an update to a less legacy one couldn't hurt..?
I can say nothing about the choice of operating system, only about texlive. IMHO, easiest way to install texlive - installing texlive over the Internet, instruction for binary installer in pdf can be found here

In .tex file, you ought to use polyglossia with xelatex
\usepackage{polyglossia} % in place of babel
\setdefaultlanguage{russian}

instead of babel
\usepackage[russian]{babel}

Fonts can be selected by something like this :
\setromanfont{DejaVu Serif}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\setmainfont{DejaVu Serif}


A list of available fonts can be taken by # fc-list command.

Tuiq

Let's assume I know absolutely nothing about Unix safe for wget, screen, rm, cd and probably ls.
Eana Eltu: PDF/TSV/jMemorize

baritone

Quote from: Tuiq on November 14, 2013, 05:09:00 PM
Let's assume I know absolutely nothing about Unix safe for wget, screen, rm, cd and probably ls.
Then maybe you'd better try the ready-for-use freebsd image from here?
The texlive installer has a graphical interface, so that it will be no problem to use.
Or you can give what you want to test to `Eylan Ayfalulukanä or me.

Tuiq

I do have freeBSD and I have it already installed in a VM, I just don't see much of a graphical interface at all.

Which represents nicely how I see servers as a whole.
Eana Eltu: PDF/TSV/jMemorize

baritone

Quote from: Tuiq on November 15, 2013, 02:42:46 AM
I do have freeBSD and I have it already installed in a VM, I just don't see much of a graphical interface at all.

Which represents nicely how I see servers as a whole.
Then you can copy the commands from here and run them consistently in the following order:
1) Log in as root
2) Type
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
3) When install-tl-unx.tar.gz downloaded, run the following command to unpack the archive:
tar -xzf install-tl-unx.tar.gz
4) Go to unpacked directory:
cd ./install-tl-20131114
5) Run the instalator:
./install-tl
Then you can see something like that:
======================> TeX Live installation procedure <=====================

======>   Letters/digits in <angle brackets> indicate   <=======
======>   menu items for commands or options            <=======

Detected platform: Intel x86 with GNU/Linux

<B> binary platforms: 1 out of 21

<S> set installation scheme (scheme-full)

<C> customizing installation collections
     44 collections out of 45, disk space required: 3436 MB

<D> directories:
   TEXDIR (the main TeX directory):
     /usr/local/texlive/2013
   TEXMFLOCAL (directory for site-wide local files):
     /usr/local/texlive/texmf-local
   TEXMFSYSVAR (directory for variable and automatically generated data):
     /usr/local/texlive/2013/texmf-var
   TEXMFSYSCONFIG (directory for local config):
     /usr/local/texlive/2013/texmf-config
   TEXMFVAR (personal directory for variable and automatically generated data):
     ~/.texlive2013/texmf-var
   TEXMFCONFIG (personal directory for local config):
     ~/.texlive2013/texmf-config
   TEXMFHOME (directory for user-specific files):
     ~/texmf

<O> options:
   [ ] use letter size instead of A4 by default
   [X] allow execution of restricted list of programs via \write18
   [X] create all format files
   [X] install macro/font doc tree
   [X] install macro/font source tree

<V> set up for portable installation

Actions:
<I> start installation to hard disk
<H> help
<Q> quit

Enter command:

6) Type I:
Enter command: I
7)The installation will started into the /usr/local/ directory. If one of the servers becomes unavailable, and the installation will stop, run the ./install-tl again, and then type y:
# ./install-tl
ABORTED TL INSTALLATION FOUND: installation.profile (in /root/install-tl-20131114)
Do you want to continue with the exact same settings as before (y/N): y

7) Wait for the message about the installation success:
done
pre-generating all format files (fmtutil-sys --all), be patient...done
running package-specific postactions
finished with package-specific postactions

See
   /usr/local/texlive/2013/index.html
for links to documentation.  The TeX Live web site
contains updates and corrections: http://tug.org/texlive.

TeX Live is a joint project of the TeX user groups around the world;
please consider supporting it by joining the group best for you. The
list of user groups is on the web at http://tug.org/usergroups.html.


Add /usr/local/texlive/2013/texmf-dist/doc/info to INFOPATH.
Add /usr/local/texlive/2013/texmf-dist/doc/man to MANPATH
   (if not dynamically found).

Most importantly, add /usr/local/tex

8 ) Open a can of favorite drink and start the playing "Gathering All The Na'vi Clans For Battle" to the maximum volume that does not cause problems with neighbors and police :)

Tuiq

#51
Stupid question, but browsing this I found "official" packages that could be installed with the packet manager. Probably these would be better than a "clean" installation, no?

In other news, I've managed to install freeBSD without network drivers, I believe! brb reinstalling.

Edit: Nevermind, I don't have the nerves for this kind of stuff.
Eana Eltu: PDF/TSV/jMemorize

baritone

Quote from: Tuiq on November 16, 2013, 04:34:58 AM
Stupid question, but browsing this I found "official" packages that could be installed with the packet manager. Probably these would be better than a "clean" installation, no?

In other news, I've managed to install freeBSD without network drivers, I believe! brb reinstalling.

Edit: Nevermind, I don't have the nerves for this kind of stuff.
I newer worked with BSD, but it is certainly that you can install additional software in your virtual machine with packet manager, if you have your virtual network driver installed. A vmware provides an opportunity to setup a virtual network device driver and the virtual driver for graphical system, if it knows the operating system (for FreeBSD it does). Therefore, you can install a graphical user interface in FreeBSD too.

Tuiq

#53
Deleted the posting spree because I've got results.

What I've done now is the following:

- Installed FreeBSD 8.3 amd64 in a vm
- ... twice because I forgot about setting up the network driver and hadn't read the systools part
- installed teTeX over pkg_add
- decided it was the wrong thing to do, installed texlive
- restarted the texlive installation like five times because it kept stopping downloading the stuff (as baritone wrote in his guide)
- compiled something, but couldn't get the file out of the vm for the love of god (why aren't shared folders working!!)
- installed KDE. and xorg. and set it up. hooray.
- after re-adjusting the RAM size to an usable 2 gig (up from 256 MB ...) to accommodate KDE's needs, created both the current NaviDictionary and NaviDictionary_ru.

Results:

NaviDictionary.pdf, NaviDictionary_ru.pdf. Both created by simply doing /usr/local/cannot/remember/all/texlive/pdflatex name.tex.

How about these files? I haven't set up *anything* with texlive, but unlike tetex, it worked out of the box. The normal one seems completely the same to me, whereas the Russian (still?) cannot be searched properly.
Eana Eltu: PDF/TSV/jMemorize

baritone

Quote from: Tuiq on November 16, 2013, 01:52:10 PM
- after re-adjusting the RAM size to an usable 2 gig (up from 256 MB ...) to accommodate KDE's needs, created both the current NaviDictionary and NaviDictionary_ru.

Results:

NaviDictionary.pdf, NaviDictionary_ru.pdf. Both created by simply doing /usr/local/cannot/remember/all/texlive/pdflatex name.tex.

How about these files? I haven't set up *anything* with texlive, but unlike tetex, it worked out of the box. The normal one seems completely the same to me, whereas the Russian (still?) cannot be searched properly.
Great news!
This is an expected result. Pdflatex in tetex and in texlive is exactly the same program. To use unicode fonts, you need to use xelatex. Please try to run xelatex with English dictionary and see if anything has changed.
I have run xelatex to compile Russian dictionary with DejaVu fonts, see the result. Here's what was in the % _LANGUAGE_PACKAGES_ section of NaviDictionary_ru.tex file:
% _LANGUAGE_PACKAGES_
%\hypersetup{unicode=true} % Makes bookmarks work in Russian

\usepackage[cm-default]{fontspec} % or install lmodern and remove cm-default opt
\usepackage{xunicode} % some extra unicode support
\usepackage{xltxtra} % \XeLaTeX macro

% Setting default fonts
\setmainfont{DejaVu Serif} % this allows to use sans-serif as default font

\tolerance=1000
\emergencystretch=0.74cm
\usepackage{indentfirst} % I believe it is better for Russian

\usepackage{polyglossia} % in place of babel
\setdefaultlanguage{russian}

\usepackage{needspace}


Tuiq

#55
NaviDictionary.tex does not compile:

Quote! Package inputenc Error: Keyboard character used is undefined
(inputenc)                in inputencoding `utf8'.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
...                                              
                                                 
l.45 ...cal categorization: parentheses such as «
                                                 x» represents an infix, w...

Even when adding all the mentioned things by you, it doesn't compile.

According to SciTE, the UTF8 looks like

Quoteparentheses such as «x» represents an infix, where {\it t}«pre-first»«1»{\it ar}«2»{\it on} are the positions

without encoding, it would be

Quoteparentheses such as «x» represents an infix, where {\it t}«pre-first»«1»{\it ar}«2»{\it on} are the positions

which seems correct.

After installing DejaVu (using pkg_add again), I still can't compile the Russian one either.

Quote! Package inputenc Error: Unicode char \u8:ì(M not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
...                                             
                                                 
l.57 \par
          ЭÑо ÑловаÑÑ ÑзÑка Ðа-ви, Ñозданного Ð...
Eana Eltu: PDF/TSV/jMemorize

baritone

#56
Quote from: Tuiq on November 17, 2013, 01:38:48 AM
NaviDictionary.tex does not compile:

Quote! Package inputenc Error: Keyboard character used is undefined
(inputenc)                in inputencoding `utf8'.

See the inputenc package documentation for explanation.
After installing DejaVu (using pkg_add again), I still can't compile the Russian one either.

Quote! Package inputenc Error: Unicode char \u8:ì(M not set up for use with LaTeX.

Am I correct that you do not comment out the line with inputenc package call in NaviDictionary_ru.tex file?

\usepackage[UTF8]{inputenc}

inputenc package is incompartible with xelatex.
If you replace content of % _LANGUAGE_PACKAGES_ section of NaviDictionary_ru.tex with

% _LANGUAGE_PACKAGES_
\usepackage{polyglossia} % in place of babel
\setdefaultlanguage{russian}
% Setting default fonts
\setmainfont{DejaVu Serif}

\usepackage{needspace}
% _ADDITIONAL_PACKAGES_

in that case I am absolutely certain that the compilation of russian dictionary will have been successful.
If you make the same corrections in NaviDictionary.tex file, and replace russian with english, I am sure that NaviDictionary.tex compilation will be succesfull too.

% _LANGUAGE_PACKAGES_
\usepackage{polyglossia} % in place of babel
\setdefaultlanguage{english}
% Setting default fonts
\setmainfont{DejaVu Serif}

\usepackage{needspace}
% _ADDITIONAL_PACKAGES_

Now, however, I noticed an error in the IPA in compiled with xelatex dictionary. I going to continue experimenting with fonts.

P.S. As I can see here, IPA can be repaired with cm-unicode fonts.
\setmainfont{CMU Serif}
I'll check it as soon as I get home.

`Eylan Ayfalulukanä

Sorry I haven't been more active on this. I had a very busy weekend, which included a difficult writing project that took much of my 'conlang time'. With that project finally out of the way, I have a lot more incentive to work on projects like this agin. I want to build a High Valyrian dictionary file without the escape codes for macrons, and see how this runs through your improved LaTeX/TeXlive system. This should be simpler than dealing with Russian/Cyrillic ::)

Yawey ngahu!
pamrel si ro [email protected]

baritone

Quote from: `Eylan Ayfalulukanä on November 18, 2013, 02:45:30 PM
Sorry I haven't been more active on this. I had a very busy weekend, which included a difficult writing project that took much of my 'conlang time'. With that project finally out of the way, I have a lot more incentive to work on projects like this agin. I want to build a High Valyrian dictionary file without the escape codes for macrons, and see how this runs through your improved LaTeX/TeXlive system. This should be simpler than dealing with Russian/Cyrillic ::)
I wish you to quickly and successfully complete your project.

It is really that the problem with the IPA can be solved with the help of cm-unicode font. I have compiled Russian dictionary now without errors in IPA.
I'll be writing soon about how this can be done on the server .

Tuiq

#59
Quote from: baritone on November 18, 2013, 11:11:27 AM
Am I correct that you do not comment out the line with inputenc package call in NaviDictionary_ru.tex file?

Yes.

Quote from: baritone on November 18, 2013, 11:11:27 AM
in that case I am absolutely certain that the compilation of russian dictionary will have been successful.


[2Broken pipe
#


Directly creating them seems to fail. Creating them in two steps yielded this and this_ru.
Eana Eltu: PDF/TSV/jMemorize