~ubuntu-branches/ubuntu/saucy/luatex/saucy

« back to all changes in this revision

Viewing changes to source/texk/web2c/luatexdir/lang/hyphen.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2009-12-25 09:47:05 UTC
  • mfrom: (1.1.9 upstream) (4.2.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091225094705-y33rpflo8t4u9nag
Tags: 0.50.0-1
* new upstream release
* disable fix-hurd-ftbfs patch, included upstream
* disable upstram-fixes, included upstream
* disable ubuntu_libpoppler-0.11, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LibHnj is dual licensed under LGPL and MPL. Boilerplate for both
 
2
 * licenses follows.
 
3
 */
 
4
 
 
5
/* LibHnj - a library for high quality hyphenation and justification
 
6
 * Copyright (C) 1998 Raph Levien, (C) 2001 ALTLinux, Moscow
 
7
 *
 
8
 * This library is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU Library General Public
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This library is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Library General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Library General Public
 
19
 * License along with this library; if not, write to the 
 
20
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
 
21
 * Boston, MA  02111-1307  USA.
 
22
*/
 
23
 
 
24
/*
 
25
 * The contents of this file are subject to the Mozilla Public License
 
26
 * Version 1.0 (the "MPL"); you may not use this file except in
 
27
 * compliance with the MPL.  You may obtain a copy of the MPL at
 
28
 * http://www.mozilla.org/MPL/
 
29
 *
 
30
 * Software distributed under the MPL is distributed on an "AS IS" basis,
 
31
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
 
32
 * for the specific language governing rights and limitations under the
 
33
 * MPL.
 
34
 *
 
35
 */
 
36
#ifndef __HYPHEN_H__
 
37
#  define __HYPHEN_H__
 
38
 
 
39
#  ifdef __cplusplus
 
40
extern "C" {
 
41
#  endif                        /* __cplusplus */
 
42
 
 
43
    typedef struct _HyphenDict HyphenDict;
 
44
 
 
45
#  include "ptexlib.h"
 
46
 
 
47
    HyphenDict *hnj_hyphen_new(void);
 
48
    void hnj_hyphen_load(HyphenDict * dict, const unsigned char *fn);
 
49
    void hnj_hyphen_free(HyphenDict * dict);
 
50
    void hnj_hyphen_clear(HyphenDict * dict);
 
51
    void hnj_hyphen_hyphenate(HyphenDict * dict, halfword first, halfword last,
 
52
                              int size, halfword left, halfword right,
 
53
                              lang_variables * lan);
 
54
    unsigned char *hnj_serialize(HyphenDict *);
 
55
    void hnj_free_serialize(unsigned char *);
 
56
 
 
57
#  ifdef __cplusplus
 
58
}
 
59
#  endif                        /* __cplusplus */
 
60
#endif                          /* __HYPHEN_H__ */