Author Topic: teTex on the LN server  (Read 5692 times)

0 Members and 1 Guest are viewing this topic.

Offline Toruk Makto

  • LearnNavi Admin
  • Toruk Makto
  • Palulukan Makto
  • *****
  • *
  • Posts: 6058
  • us United States
  • Karma: 212
  • . Txepsiyu Markì .
    • Learn Na'vi
Re: teTex on the LN server
« Reply #40 on: November 13, 2013, 07:05:55 am »
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.
« Last Edit: November 13, 2013, 07:14:11 am by Toruk Makto »

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

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #41 on: November 13, 2013, 12:16:04 pm »
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.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #42 on: November 13, 2013, 12:25:54 pm »
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

Offline `Eylan Ayfalulukanä

  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 4752
  • us United States
  • Karma: 44
  • Palulukan alu Kenya 06/23/1996 - 01/15/2017
    • The Lionlamb website
Re: teTex on the LN server
« Reply #43 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.

Yawey ngahu!
pamrel si ro [email protected]

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #44 on: November 13, 2013, 07:00:00 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.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #45 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..?
Eana Eltu: PDF/TSV/jMemorize

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #46 on: November 14, 2013, 04:33:13 pm »
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
Code: [Select]
\usepackage{polyglossia} % in place of babel
\setdefaultlanguage{russian}
instead of babel
Code: [Select]
\usepackage[russian]{babel}
Fonts can be selected by something like this :
Code: [Select]
\setromanfont{DejaVu Serif}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\setmainfont{DejaVu Serif}

A list of available fonts can be taken by
Code: [Select]
# fc-list command.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #47 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.
Eana Eltu: PDF/TSV/jMemorize

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #48 on: November 15, 2013, 01:25:51 am »
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.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #49 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.
Eana Eltu: PDF/TSV/jMemorize

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #50 on: November 16, 2013, 02:06:00 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
Code: [Select]
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz3) When install-tl-unx.tar.gz downloaded, run the following command to unpack the archive:
Code: [Select]
tar -xzf install-tl-unx.tar.gz4) Go to unpacked directory:
Code: [Select]
cd ./install-tl-20131114 5) Run the instalator:
Code: [Select]
./install-tlThen you can see something like that:
Code: [Select]
======================> 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:
Code: [Select]
Enter command: I7)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:
Code: [Select]
# ./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:
Code: [Select]
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 :)

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #51 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.
« Last Edit: November 16, 2013, 04:40:20 am by Tuiq »
Eana Eltu: PDF/TSV/jMemorize

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #52 on: November 16, 2013, 05:13:41 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.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #53 on: November 16, 2013, 01:52:10 pm »
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.
« Last Edit: November 16, 2013, 01:56:02 pm by Tuiq »
Eana Eltu: PDF/TSV/jMemorize

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #54 on: November 16, 2013, 09:28:45 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:
Code: [Select]
% _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}

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #55 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.
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

Quote
parentheses 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

Quote
parentheses 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
          ЭÑо ÑловаÑÑ ÑзÑка Ðа-ви, Ñозданного Ð...
« Last Edit: November 17, 2013, 01:55:09 am by Tuiq »
Eana Eltu: PDF/TSV/jMemorize

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #56 on: November 18, 2013, 11:11:27 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?
Code: [Select]
\usepackage[UTF8]{inputenc}
inputenc package is incompartible with xelatex.
If you replace content of % _LANGUAGE_PACKAGES_ section of NaviDictionary_ru.tex with
Code: [Select]
% _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.
Code: [Select]
% _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.
Code: [Select]
\setmainfont{CMU Serif} I'll check it as soon as I get home.
« Last Edit: November 18, 2013, 12:16:28 pm by baritone »

Offline `Eylan Ayfalulukanä

  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 4752
  • us United States
  • Karma: 44
  • Palulukan alu Kenya 06/23/1996 - 01/15/2017
    • The Lionlamb website
Re: teTex on the LN server
« Reply #57 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 ::)

Yawey ngahu!
pamrel si ro [email protected]

Offline baritone

  • 'Eveng
  • ***
  • Posts: 217
  • Karma: 4
Re: teTex on the LN server
« Reply #58 on: November 18, 2013, 04:05:05 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 .

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: teTex on the LN server
« Reply #59 on: November 18, 2013, 04:40:59 pm »
Am I correct that you do not comment out the line with inputenc package call in NaviDictionary_ru.tex file?

Yes.

in that case I am absolutely certain that the compilation of russian dictionary will have been successful.

Code: [Select]
[2Broken pipe
#

Directly creating them seems to fail. Creating them in two steps yielded this and this_ru.
« Last Edit: November 18, 2013, 04:46:25 pm by Tuiq »
Eana Eltu: PDF/TSV/jMemorize

 

Become LearnNavi's friend on Facebook Follow LearnNavi on Twitter! Watch LearnNavi's videos on YouTube

SMF 2.0.15 | SMF © 2017, Simple Machines
Privacy Policy
| XHTML | RSS | WAP2 | Site Rules

LearnNavi is not affiliated with the official Avatar website,
James Cameron, or the Twentieth Century-Fox Film Corporation.
All trademarks and servicemarks are the properties of their respective owners.
Images in the LearnNavi.org Forums and Gallery may not be used without permission.

LearnNavi Affiliates:
ToS

LearnNavi is the community to learn Na'vi, the Avatar Language
"A place where real friendships are made." -Paul Frommer

AvatarMeet | Learn Na'vi Forum | Learn Na'vi Wiki | Na'viteri

LearnNavi