]> git.lyx.org Git - features.git/commit
Add machinery to output arbitrary unicode characters with LaTeX commands
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 28 Jan 2007 21:27:45 +0000 (21:27 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 28 Jan 2007 21:27:45 +0000 (21:27 +0000)
commitfeb789596568ab01d21943f1595ddb321142797d
tree8a6a84f4687267512dadf59e5093185695ddbd18
parenteb495d2e984c351dce6cdbb4a0b6f097bbea1560
Add machinery to output arbitrary unicode characters with LaTeX commands
read from a text file.

* src/encoding.[Ch]

(Encoding::latexChar): New, output a character to LaTeX
(Encoding::validate): New, add needed preamble stuff for a character
(Encodings::read): Read new unicodesymbols file
(Encodings::isCombiningChar): New, is a character a combining char?

* src/paragraph_pimpl.C
(isEncoding): Delete, no longer needed
(getEncoding): New, get the real encoding of a font
(Paragraph::Pimpl::latexSurrogatePair): New, output a surrogate pair
to LaTeX
(Paragraph::Pimpl::simpleTeXBlanks): Use latexSurrogatePair if needed
(Paragraph::Pimpl::simpleTeXSpecialChars): Ditto, and replace several
hardcoded characters with a call of encoding.latexChar()
(Paragraph::Pimpl::validate): replace several hardcoded characters
with a call of encoding.validate()

* src/support/debugstream.h
(basic_debugstream::disable): New, disable the stream completely
(basic_debugstream::enable): New, reenable the stream

* src/lyx_main.[Ch]: Adjust to changes above

* src/paragraph.C: Ditto

* lib/unicodesymbols: New file with UCS4 -> LaTeX command mapping.
It is far from complete yet, but contains most accents on latin
characters.

* lib/Makefile.am: add lib/unicodesymbols

* development/scons/scons_manifest.py: ditto

* development/tools/unicodesymbols.py: Helper script to update
lib/unicodesymbols with new symbols

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16920 a592a061-630c-0410-9148-cb99ea01b6c8
12 files changed:
development/scons/scons_manifest.py
development/tools/unicodesymbols.py [new file with mode: 0644]
lib/Makefile.am
lib/unicodesymbols [new file with mode: 0644]
src/encoding.C
src/encoding.h
src/lyx_main.C
src/lyx_main.h
src/paragraph.C
src/paragraph_pimpl.C
src/paragraph_pimpl.h
src/support/debugstream.h