Skip to content

LkbGrammarEncodingProposal

BenjaminWaldron edited this page Aug 23, 2005 · 7 revisions
  • (Ensure Lisp/LKB reads grammar files using correct encoding)

    • In grammar's global.lsp use a Lisp function to set the character encoding. Something like (grammar-encoding "utf-8")

    • if running Allegro something like the following will then be executed (setf excl:*locale* (excl::find-locale ".utf8"))

    • ISSUES: canonical encoding (take from Emacs? or PET?), mapping into encoding names used by specific Lisps

  • (Ensure Emacs and Lisp/LKB communicate in compatible and sufficient character encoding)

    • In .emacs require (set-default-coding-systems 'mule-utf-8)

    • ISSUES:

  • (Ensure Emacs reads grammar files using correct encoding)

    • In every grammar file require header ;;; -*- Mode: TDL; Coding: utf-8 -*-

    • ISSUES: all files must have correct header

Clone this wiki locally