A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

How to use LF Aligner on Mac

LF Aligner is a freeware, open source, multiplatform (Windows, OS X, Linux) alignment tool based on Hunalign and written by Farkas András. This video shows how to use LF Aligner to align two Word documents, how to review the alignment in Excel and how to create a translation memory in the TMX format from the alignment. Heartsome TMX Editor is used to open the TMX memory and browse through its content. Any translation tool (Wordfast Pro, OmegaT, CafeTran, Swordfish etc.) should be able to open the TMX file.

The last step of LF Aligner for Mac 3.12 (saving alignment as TMX) ignores any changes made to the alignment in Excel during the reviewing process. For that reason, the TMX translation memory should be created with TMX maker, a script included in the Tools subfolder of the main LF Aligner folder.

A handy macro (MergeCells.xla) is included in LF Aligner, but only in the Windows distribution, though it works perfectly in Excel 2011 for Mac as well. It is therefore a good idea to download the Windows distribution (LF Aligner 4.05 for Windows) and extract MergeCells.xla from it. The macro features a keyboard shortcut (Ctrl+J) used to merge two consecutive cells.

This video demonstrates all of the above with two sample Word documents (DOCX) in Finnish and Swedish.

2 comments to How to use LF Aligner on Mac

  • GP Pezold

    Dear CAT Guru,

    I’m new to the world of CAT tools, TMX reports, alignment etc., but am trying to learn as a result of a client’s requirements. I have tried to follow the steps you show in your video to use LF alignment. Here’s what happens (after I mistakenly entered the same file for both languages!):

    Last login: Sat Nov 12 12:45:13 on ttys000
    Macintosh:~ georgphilippvonpezold$ /Users/georgphilippvonpezold/Desktop/aligner\ mac/LF_aligner_3.12.command ; exit;
    Useless use of \E at ./scripts/LF_aligner_3.12_with_modules.pl line 51720.
    Useless use of \E at ./scripts/LF_aligner_3.12_with_modules.pl line 52056.

    LF Aligner 3.12
    OS detected: Mac OS X

    ————————————————-

    Filetype?

    t – txt (UTF-8!), rtf, doc, docx or odt file (see the readme!)
    p – pdf, or pdf exported to txt (exporting works better, see readme!)
    h – HTML file saved to your computer
    w – webpage (you provide two URLs, the script does the rest)
    c – EU legislation by CELEX number (will be downloaded automatically)
    com – European Commission proposals (downloaded by year and number)
    epr – European Parliament reports (downloaded by year and number)

    t/p/h/w/c/com/epr? (Default: t) t

    ————————————————-

    Number of languages? This will usually be 2.
    (Default: 2) 2

    ————————————————-

    Language 1? Use standard two-letter language codes, such as en, es, de, fr, hu etc. To see a full list of language codes, type list.
    (Default: en) fr

    ————————————————-

    Language 2? (Default: hu) de

    ————————————————-

    Drag and drop file 1 (fr) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt

    ————————————————-

    Drag and drop file 2 (de) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt

    ERROR: Input file not found (No such file or directory) at line 52066
    (file: /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt)
    Try again!

    ERROR! You specified the same file twice. Try again!

    ————————————————-

    Drag and drop file 1 (fr) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt

    ————————————————-

    Drag and drop file 2 (de) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_vfinfin_GP_PIECE_2_1_CCT_EXIGENCES_2\ parts_completed.txt

    ERROR: Input file not found (No such file or directory) at line 52066
    (file: /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt)
    Try again!

    ————————————————-

    Drag and drop file 1 (fr) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)

    I DID save both files in UTF-8 encoding. Is there anything I may have overlooked?

    Many thanks in advance for your help!

  • GP Pezold

    Dear CAT Guru,

    I’m new to the world of CAT tools, TMX reports, alignment etc., but am trying to learn as a result of a client’s requirements. I have tried to follow the steps you show in your video to use LF alignment. Here’s what happens (after I mistakenly entered the same file for both languages!):
    _____________________________________________________________________________________________________________________

    Last login: Sat Nov 12 12:45:13 on ttys000
    Macintosh:~ georgphilippvonpezold$ /Users/georgphilippvonpezold/Desktop/aligner\ mac/LF_aligner_3.12.command ; exit;
    Useless use of \E at ./scripts/LF_aligner_3.12_with_modules.pl line 51720.
    Useless use of \E at ./scripts/LF_aligner_3.12_with_modules.pl line 52056.

    LF Aligner 3.12
    OS detected: Mac OS X

    ————————————————-

    Filetype?

    t – txt (UTF-8!), rtf, doc, docx or odt file (see the readme!)
    p – pdf, or pdf exported to txt (exporting works better, see readme!)
    h – HTML file saved to your computer
    w – webpage (you provide two URLs, the script does the rest)
    c – EU legislation by CELEX number (will be downloaded automatically)
    com – European Commission proposals (downloaded by year and number)
    epr – European Parliament reports (downloaded by year and number)

    t/p/h/w/c/com/epr? (Default: t) t

    ————————————————-

    Number of languages? This will usually be 2.
    (Default: 2) 2

    ————————————————-

    Language 1? Use standard two-letter language codes, such as en, es, de, fr, hu etc. To see a full list of language codes, type list.
    (Default: en) fr

    ————————————————-

    Language 2? (Default: hu) de

    ————————————————-

    Drag and drop file 1 (fr) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt

    ————————————————-

    Drag and drop file 2 (de) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt

    ERROR: Input file not found (No such file or directory) at line 52066
    (file: /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt)
    Try again!

    ERROR! You specified the same file twice. Try again!

    ————————————————-

    Drag and drop file 1 (fr) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt

    ————————————————-

    Drag and drop file 2 (de) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    /Users/georgphilippvonpezold/Documents/jobs/20161112_vfinfin_GP_PIECE_2_1_CCT_EXIGENCES_2\ parts_completed.txt

    ERROR: Input file not found (No such file or directory) at line 52066
    (file: /Users/georgphilippvonpezold/Documents/jobs/20161112_PIECE_2_1_CCT_EXIGENCES_ORGANISATIONNELLES_QUALITE_6\ trains_LEB-1_T.txt)
    Try again!

    ————————————————-

    Drag and drop file 1 (fr) here and press enter. (If it’s a txt, save it first in UTF-8 encoding using File/Save As in your text editor.)
    _____________________________________________________________________________________________________________________
    I DID save both files in UTF-8 encoding. Is there anything I may have overlooked?

    Many thanks in advance for your help!

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>