www/HACKING.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 13 Mar 2016 18:32:19 +0200
changeset 344 904e71e64fbc
parent 343 bc0b353e3de9
child 345 ca5a7d9e7a4b
permissions -rw-r--r--
Dictionary file name convention
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
243
deede3c3386f Add coding to RST files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 242
diff changeset
     1
.. -*- coding: utf-8 -*-
206
407f2a82ef26 Include common header for quick links. Exclude unnecessary .html files from build.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 109
diff changeset
     2
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
     3
======================
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
     4
 gadict HACKING guide
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
     5
======================
69
580cc720c496 Fix RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 46
diff changeset
     6
.. contents::
301
1439e072640a Remove CSS hack that suppress displaying document name in TOC by
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 252
diff changeset
     7
   :local:
1439e072640a Remove CSS hack that suppress displaying document name in TOC by
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 252
diff changeset
     8
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
     9
Versioning rules
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    10
================
231
f993fc31e03f Move versioning rules to proper file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 211
diff changeset
    11
f993fc31e03f Move versioning rules to proper file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 211
diff changeset
    12
We use **major.minor** schema.
f993fc31e03f Move versioning rules to proper file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 211
diff changeset
    13
f993fc31e03f Move versioning rules to proper file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 211
diff changeset
    14
Until we reach 5000 words **major** is 0. **minor** updated from time to time.
f993fc31e03f Move versioning rules to proper file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 211
diff changeset
    15
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    16
Getting sources
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    17
===============
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    18
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    19
Cloning repository::
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    20
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    21
  $ hg clone http://hg.defun.work/gadict gadict
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    22
  $ hg clone http://hg.code.sf.net/p/gadict/code gadict-hg
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    23
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    24
Pushing changes::
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    25
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    26
  $ hg push ssh://$USER@hg.defun.work/gadict
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    27
  $ hg push ssh://$USER@hg.code.sf.net/p/gadict/code
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    28
  $ hg push https://$USER:$PASS@hg.code.sf.net/p/gadict/code
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    29
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    30
Browsing sources online
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    31
=======================
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    32
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    33
  http://hg.defun.work/gadict
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    34
    hgweb at home page.
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    35
  http://hg.code.sf.net/p/gadict/code
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    36
    hgweb at old home page (but supported as mirror).
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    37
  https://sourceforge.net/p/gadict/code/
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    38
    Sourceforge Allure interface (not primary, a mirror).
232
81bfc95bd853 Move getting sources to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 231
diff changeset
    39
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    40
Dictionary source file format
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    41
=============================
233
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    42
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    43
For source file format used dictd C5 file format. See::
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    44
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    45
  $ man 1 dictfmt
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    46
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    47
Shortly:
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    48
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    49
 * Headwords was preceded by 5 or more underscore characters ``_`` and a blank
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    50
   line.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    51
 * All text until the next headword is considered the definition.
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    52
 * Any leading ``@`` characters are stripped out, but the file is otherwise
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    53
   unchanged.
233
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    54
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    55
For convenience also used such assumptions:
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    56
338
61a9d2de0e3e New home page. SF is used as mirror.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 301
diff changeset
    57
 * Headwords was separated by ``;<SPACE>`` (and all was placed on single line).
233
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    58
 * UTF-8 encoding was used.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    59
 * Lines started with ``#`` striped out (comment syntax).
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    60
 * First line with ``ABOUT:`` used as description of dictionary.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    61
 * First URL (line with ``http://``) used as dictionary home page.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
    62
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    63
Comment syntax convention
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    64
=========================
46
86c0184efac7 Comment syntax convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 44
diff changeset
    65
86c0184efac7 Comment syntax convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 44
diff changeset
    66
As 'dictd -c5' format does not support comment syntax we filter out all
86c0184efac7 Comment syntax convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 44
diff changeset
    67
lines that start with '#'.
86c0184efac7 Comment syntax convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 44
diff changeset
    68
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    69
TODO convention
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    70
===============
249
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    71
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    72
Entries or parts of text that was not completed marked by keywords:
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    73
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    74
  TODO
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    75
    incomplete
249
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    76
  XXX
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    77
    urgent incomplete
249
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    78
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    79
Makefile rules ``todo`` find this occurrence in sources::
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    80
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    81
  $ make todo
5ad075a475f2 TODO convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 247
diff changeset
    82
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    83
Dictionary file name convention
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    84
===============================
252
7aac5f9dcf06 Dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 249
diff changeset
    85
7aac5f9dcf06 Dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 249
diff changeset
    86
BNF form::
7aac5f9dcf06 Dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 249
diff changeset
    87
343
bc0b353e3de9 New dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 342
diff changeset
    88
  FILE ::= "gadict_" NAME ".gadict"
252
7aac5f9dcf06 Dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 249
diff changeset
    89
343
bc0b353e3de9 New dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 342
diff changeset
    90
``NAME`` may have form ``ISOCODE "-" ISOCODE``, like ``en-ru``, where
bc0b353e3de9 New dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 342
diff changeset
    91
``ISOCODE`` is ISO 639-1 language (2 letter) code
bc0b353e3de9 New dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 342
diff changeset
    92
bc0b353e3de9 New dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 342
diff changeset
    93
``NAME`` may be a dictionary abbreviation name.
252
7aac5f9dcf06 Dictionary file name convention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 249
diff changeset
    94
344
904e71e64fbc Dictionary file name convention
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 343
diff changeset
    95
During dictionaries compilation and releases ``".gadict"`` suffix changed to
904e71e64fbc Dictionary file name convention
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 343
diff changeset
    96
appropriated but base name should be preserved as ``"gadict_" NAME``.
904e71e64fbc Dictionary file name convention
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 343
diff changeset
    97
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    98
World wide dictionary formats and standards
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
    99
===========================================
233
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   100
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   101
  http://en.wikipedia.org/wiki/Dictionary_writing_system
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   102
                Dictionary writing system
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   103
  http://www.sil.org/computing/shoebox/mdf.html
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   104
                Multi-Dictionary Formatter (MDF). It defines about 100 data
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   105
                field markers.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   106
  http://fieldworks.sil.org/flex/
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   107
                FieldWorks Language Explorer (or FLEx, for short) is designed
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   108
                to help field linguists perform many common language
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   109
                documentation and analysis tasks.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   110
  http://code.google.com/p/lift-standard/
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   111
                LIFT (Lexicon Interchange FormaT) is an XML format for storing
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   112
                lexical information, as used in the creation of dictionaries.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   113
                It's not necessarily the format for your lexicon.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   114
  http://www.lexiquepro.com/
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   115
                Lexique Pro is an interactive lexicon viewer and editor, with
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   116
                hyperlinks between entries, category views, dictionary
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   117
                reversal, search, and export tools. It's designed to display
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   118
                your data in a user-friendly format so you can distribute it
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   119
                to others.
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   120
  http://deb.fi.muni.cz/index.php
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   121
                DEBII — Dictionary Editor and Browser
d3670cd252ce Move info about dict format to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 232
diff changeset
   122
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   123
Register gadict dictionaries for dictd under Debian
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   124
===================================================
44
41bcc534528d Fix rst formating.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 43
diff changeset
   125
::
43
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   126
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   127
  $ su
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   128
  $ cat >>etc/dictd/dictd.order <<EOF
44
41bcc534528d Fix rst formating.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 43
diff changeset
   129
  gadict-dictabbr
41bcc534528d Fix rst formating.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 43
diff changeset
   130
  /home/user/usr/share/dictd/
43
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   131
  $ dictdconfig --write
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   132
  $ /etc/init.d/dictd restart
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   133
  $ ^D
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   134
  $ dictdconfig --list
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   135
  $ dict -d gadict-dictabbr v
b75220c0eef6 Register gadict dictionaries for dictd under Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   136
342
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   137
Typing IPA chars in Emacs
e3d85aeefdec Remove trailing dot from section titles.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   138
=========================
95
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   139
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   140
For entering IPA chars use IPA input method. To enable it type::
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   141
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   142
  C-u C-\ ipa <enter>
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   143
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   144
All chars from alphabet typed as usual. To type special IPA chars use next key
246
2c3b02416526 M-x describe-input-method
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 243
diff changeset
   145
bindings (or read help in Emacs by ``M-x describe-input-method`` or ``C-h I``).
95
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   146
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   147
For vowel::
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   148
247
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   149
  æ  ae
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   150
  ɑ  o| or A
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   151
  ɒ  |o  or /A
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   152
  ʊ  U
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   153
  ɛ  /3 or E
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   154
  ɔ  /c
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   155
  ə  /e
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   156
  ʌ  /v
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   157
  ɪ  I
95
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   158
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   159
For consonant::
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   160
247
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   161
  θ  th
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   162
  ð  dh
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   163
  ʃ  sh
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   164
  ʧ  tsh
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   165
  ʒ  zh or 3
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   166
  ŋ  ng
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   167
  ɡ  g
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   168
  ɹ  /r
95
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   169
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   170
Special chars::
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   171
247
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   172
  ː  : (semicolon)
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   173
  ˈ  ' (quote)
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   174
  ˌ  ` (back quote)
95
27117b30660d Move 'IPA chars' section to HACKING file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 69
diff changeset
   175
247
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   176
Alternatively use ``ipa-x-sampa`` or ``ipa-kirshenbaum`` input method (for help
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   177
type: ``C-h I ipa-x-sampa RET`` or ``C-h I ipa-kirshenbaum RET``).
ba56b6c0877b About ipa-x-sampa and ipa-kirshenbaum.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
   178